joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066f0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowspobrestime
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40671f
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowspobrestime
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [esp + 8]
mov edx, dword [esp]
push 0x14
push ecx
push 1
push 0
push str.SendLog
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
pop ecx
ret

Function at 0x406750
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x4f0
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowspobrestime
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x406778
xor eax, eax
add esp, 0x4f0
ret
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.SendLog
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x4e2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4067c1
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x4f0
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
add esp, 0x4f0
ret
Function at 0x4031d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403201
mov ecx, dword [0x4702b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x42a6d4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004032de
cmp eax, esi
jl 0x4032d8
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405f61
test eax, eax
je 0x4032c8
push dword [ebp + 8]
add dword [0x42a6d4], 4
call fcn.004032de
mov ebx, eax
cmp ebx, esi
jl 0x4032d6
cmp dword [ebp + 0x10], esi
jne 0x4032a4
cmp dword [ebp + 8], esi
jle 0x4032d6
mov esi, 0x4266d0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403266
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405f61
test eax, eax
je 0x4032c8
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405f90
test eax, eax
je 0x4032a0
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x42a6d4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403255
jmp 0x4032d6
push 0xfffffffffffffffe
jmp 0x4032ca
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4032af
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4032cd
push 0xfffffffffffffffd
pop eax
jmp 0x4032d8
mov ebx, dword [ebp - 4]
add dword [0x42a6d4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x405a2c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x405a60
lea eax, [ebp - 0x714]
push eax
call fcn.004039da
pop ecx
push eax
push dword [ebp - 0x3a4]
invalid
cmp dword [ebp - 0x37c], 0
je 0x405a6b
jmp 0x405a70
jmp 0x40536c
cmp dword [ebp - 0x37c], 0
jne 0x405b1a
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
invalid
invalid
invalid

Function at 0x405dc5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45a730
push esi
call fcn.004063e8
push esi
call fcn.00405d68
mov edi, eax
test edi, edi
jne 0x405de6
xor eax, eax
jmp 0x405e3e
push edi
call fcn.0040667c
test byte [0x47025c], 0x80
je 0x405e03
mov ax, word [edi]
test ax, ax
je 0x405de2
cmp ax, 0x5c
je 0x405de2
sub edi, esi
sar edi, 1
jmp 0x405e1d
call fcn.0040672b
test eax, eax
je 0x405e17
test byte [eax], 0x10
je 0x405de2
push esi
call fcn.00405d09
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e09
call fcn.00405cbd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4
Function at 0x405eb9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ed8
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405ede
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405f0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a588]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a58c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405f5d
test edi, edi
jne 0x405f1a
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405f57
Function at 0x401720
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x42b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x437d10]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x24], 2
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x30]
mov ebx, eax
lea edi, [ebx + 2]
push edi
call fcn.00411f97
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x40179b
push ebp
push ebp
push str.Insufficient_memory_available
call fcn.00426f03
jmp 0x4017c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esi]
push 0
push 0
mov ecx, esi
mov dword [esp + 0x34], eax
call dword [edx + 0x28]
mov eax, dword [esi]
push ebx
push ebp
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
push ebp
jne 0x4017fb
call fcn.00411eae
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00420131
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.00420131
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420131
xor eax, eax
jmp 0x401893
lea ecx, [esp + 0x14]
push 0x4370c0
push ecx
call fcn.0041f616
add esp, 0xc
xor ebx, ebx
lea ecx, [esp + 0x10]
push ebx
push 0x43bc00
call fcn.0041f29e
mov edx, eax
cmp edx, 0xffffffff
je 0x40184d
mov edi, 0x43bc00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
inc ebx
push ecx
push 0x43bc00
lea ecx, [esp + 0x18]
call fcn.0041f29e
mov edx, eax
cmp edx, 0xffffffff
jne 0x401825
mov eax, dword [esp + 0x2c]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x28]
push ebp
call fcn.00411eae
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00420131
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.00420131
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420131
mov eax, ebx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x407f20
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
dec eax
ret 0xc

Function at 0x407f50
Capabilities:
Get file size
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407f6d
pop edi
or eax, eax
pop esi
ret 8
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0xc]
push 0
mov ecx, dword [esp + 0x14]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
mov eax, dword [esp + 4]
ret 8

Function at 0x4080d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x408107
mov eax, dword [eax]
test eax, eax
je 0x408107
cmp eax, 0xffffffff
je 0x408107
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call sub.WS2_32.dll_send
inc eax
neg eax
sbb eax, eax
and eax, 0xffffd826
add eax, 0x27da
ret 0xc
mov eax, 0x27d9
ret 0xc

Function at 0x408110
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40814d
mov eax, dword [eax]
test eax, eax
je 0x40814d
cmp eax, 0xffffffff
je 0x40814d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
jne 0x408142
mov eax, 0x27db
ret 0x10
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret 0x10
mov eax, 0x27d9
ret 0x10

Function at 0x408300
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x408311
cmp dword [eax], 0
jne 0x40831d
pop edi
pop esi
pop ebp
mov eax, 0x2775
pop ebx
ret 0xc
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
jbe 0x408357
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x408337
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x408311
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esi + ebx]
push 1
push edx
push eax
call ebp
add esi, dword [esp + 0x1c]
cmp esi, edi
jb 0x408333
jmp 0x40835b
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
pop edi
and eax, 0xffffd88a
pop esi
pop ebp
add eax, 0x2776
pop ebx
ret 0xc
Function at 0x408600
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
test ebp, ebp
push edi
je 0x4086ea
mov eax, dword [ebp]
test eax, eax
je 0x4086ea
cmp eax, 0xffffffff
je 0x4086ea
mov eax, dword [esp + 0x2c]
xor ebx, ebx
test eax, eax
mov edi, 0xa
jbe 0x4086ce
mov eax, dword [ebp]
test eax, eax
je 0x4086ea
cmp dword [ebp + 0x38], 1
jne 0x408667
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x14]
and eax, 8
cmp al, 8
je 0x4086bf
mov esi, dword [esp + 0x2c]
sub esi, ebx
cmp edi, esi
jb 0x408673
mov edi, esi
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, dword [ebp]
lea eax, [ebx + edx]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, edi
mov ecx, dword [esp + 0x24]
jb 0x408699
add ebx, ecx
jmp 0x40869b
add ebx, esi
test ecx, ecx
jne 0x4086a1
xor eax, eax
cmp ebx, dword [esp + 0x2c]
jb 0x40863a
neg eax
sbb eax, eax
pop edi
and eax, 0xffffd8ee
pop esi
pop ebp
add eax, 0x2712
pop ebx
add esp, 0x10
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0x2719
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x2c]
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 0xffffd8ee
pop ebp
add eax, 0x2712
pop ebx
add esp, 0x10
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0x2711
pop ebx
add esp, 0x10
ret 0xc

Function at 0x408700
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40876c
mov eax, dword [esi]
test eax, eax
je 0x40876c
cmp eax, 0xffffffff
je 0x40876c
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 8]
test eax, eax
jbe 0x408759
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x40873a
mov eax, ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
mov ecx, dword [esp + 0x20]
xor eax, eax
pop esi
mov dword [ecx], 0
add esp, 0xc
ret 0x10
mov eax, 0x2711
pop esi
add esp, 0xc
ret 0x10

Function at 0x408990
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push 4
mov dword [esp + 0xc], ebx
call fcn.00421184
add esp, 4
cmp eax, ebx
mov dword [esp + 8], eax
je 0x408a1c
mov dword [eax], ebx
lea eax, [esp + 0xc]
push eax
push str.explorer.exe
mov dword [esp + 0x14], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x408a1c
push esi
push edi
call fcn.00411f97
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x408a09
push esi
push edi
push ebx
push str.explorer.exe
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x408a09
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0xc]
mov bx, word [eax]
push esi
call fcn.00411eae
add esp, 4
mov ax, bx
pop esi
pop edi
pop ebx
add esp, 0xc
ret
mov ax, bx
pop edi
pop ebx
add esp, 0xc
ret
Function at 0x417881
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43b190
cmp edx, dword [eax]
je 0x4178a3
add eax, 8
inc ecx
cmp eax, 0x43b220
jl 0x417894
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43b190]
jne 0x4179d1
mov eax, dword [0x878108]
cmp eax, 1
je 0x4179ab
test eax, eax
jne 0x4178d4
cmp dword [0x438a6c], 1
je 0x4179ab
cmp edx, 0xfc
je 0x4179d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41790b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412ec0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41794e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412ec0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42fef4
push edi
call fcn.004196b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418680
lea eax, [ebp - 0xa0]
push 0x42fed4
push eax
call fcn.00418680
push dword [esi + 0x43b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00419620
add esp, 0x2c
pop edi
jmp 0x4179d1
lea eax, [ebp + 8]
lea esi, [esi + 0x43b194]
push 0
push eax
push dword [esi]
call fcn.00412ec0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41ea60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00411d90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41eb2b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41eb2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41eade
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41eae9
or bh, 8
and edi, 0x8000000
je 0x41eb04
mov eax, dword [0x87985c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41eb2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ef00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41ef2b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41ef4f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41ef6a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x424d7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x424dbf
call fcn.00427e25
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x424dbf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x424db6
xor eax, eax
jmp 0x424dc7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00424dcd
pop edi
pop esi
pop ebx
ret 4

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80b004]
jne 0x40100a
repz ret
jmp fcn.00401647

Function at 0x4071e9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x80b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404019
and dword [ebp - 0x14], 0
cmp dword [0x80dd84], 0
mov dword [ebp - 0x18], eax
jne 0x40729c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407344
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407344
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x80dd84], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x80dd88], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x80dd8c], eax
call edi
push eax
call esi
mov dword [0x80dd94], eax
test eax, eax
je 0x40729c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x80dd90], eax
mov eax, dword [0x80dd90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4072f5
cmp dword [0x80dd94], ecx
je 0x4072f5
push eax
call esi
push dword [0x80dd94]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4072f5
test ebx, ebx
je 0x4072f5
call edi
test eax, eax
je 0x4072ec
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4072ec
test byte [ebp - 8], 1
jne 0x4072f5
or dword [ebp + 0x10], 0x200000
jmp 0x407328
mov eax, dword [0x80dd88]
cmp eax, dword [ebp - 0x18]
je 0x407328
push eax
call esi
test eax, eax
je 0x407328
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407328
mov eax, dword [0x80dd8c]
cmp eax, dword [ebp - 0x18]
je 0x407328
push eax
call esi
test eax, eax
je 0x407328
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x80dd84]
call esi
test eax, eax
je 0x407344
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407346
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret