joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eef0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x46ef31
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x46ef9e
cmp dword [esp + 0x1c], 2
jne 0x46ef9e
cmp dword [esp + 0x10], 5
jne 0x46ef9e
cmp dword [esp + 0x14], 1
jne 0x46ef9e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46ef88
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46ef79
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x46ef81
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x46ef9e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x478890
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ea310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00478c60
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.00478c60
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 1
call fcn.00478cd0
lea ecx, [esp + 0x10]
call fcn.004446b0
cmp eax, 1
jae 0x478938
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x4789a3
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4789a3
push esi
push edi
call ebx
push esi
lea ecx, [esp + 0x14]
call fcn.00478cd0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
call fcn.004446b0
cmp eax, 1
jb 0x4789a3
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.00478730
test eax, eax
je 0x4789a3
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00478a10
mov edi, dword [esp + 0x44]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00478d30
push edi
lea ecx, [esp + 0x24]
call fcn.00478d50
push esi
lea ecx, [esp + 0x24]
call fcn.00478df0
push str..tmp
lea ecx, [esp + 0x24]
call fcn.00478d50
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.00478710
test eax, eax
je 0x4789d9
inc esi
cmp esi, 0x7a0a1f00
jb 0x47895a
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.00478c80
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478c80
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
call fcn.00478d30
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.00478c80
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478c80
mov eax, 1
jmp 0x4789c4
Function at 0x479160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ea3c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00478c60
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.00478cd0
push 0
mov ecx, esi
call fcn.004790e0
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x479298
lea ecx, [esp + 0xc]
call fcn.004446b0
cmp eax, 1
jae 0x4791e7
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00478c80
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x479234
push 0
lea ecx, [esp + 0x10]
call fcn.00451eb0
push eax
push edi
mov ecx, 0x7067a4
call fcn.00478890
test eax, eax
jne 0x47923c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00478c80
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.00478cd0
push edi
mov ecx, 0x7067a4
call fcn.004787f0
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.00446200
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x479298
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x479298
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x4792c8
push 1
mov ecx, esi
call fcn.004790e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00478c80
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.00478c80
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x479bc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.00478cd0
pop edi
add esp, 0x104
ret 4
Function at 0x47a840
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x47a873
push esi
call fcn.0047f780
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47a86c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x47a8f9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47a8e2
mov eax, dword [esi + 8]
test eax, eax
je 0x47a897
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47a8de
cmp eax, 2
je 0x47a8e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47a88a
cmp eax, 3
je 0x47a8bd
cmp eax, 1
jne 0x47a88a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47a88a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47a88a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047a930
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47a919
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0047a930
add esp, 4
pop esi
ret

Function at 0x4ab190
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4ab19b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4ab29e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x6b34a0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6b34a0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6b34a0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6b34a0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6b34a0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6b34a0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6b34a0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6b34a0]
xor eax, edx
inc ecx
dec edi
jne 0x4ab1b6
pop edi
test esi, esi
je 0x4ab2c0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6b34a0]
xor eax, edx
inc ecx
dec esi
jne 0x4ab2a2
pop esi
pop ebx
not eax
ret
Function at 0x4dd6dc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4dd714
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004db769
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004db741
jmp 0x4dd720
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4dedca
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 0x4dee0c
call fcn.004e4886
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4dee0c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4dee03
xor eax, eax
jmp 0x4dee14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004dee1a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e4db6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e4de4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e4e02
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e4d1c
jmp 0x4e4e02
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e4e02
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e4d1c
test edi, edi
mov eax, edi
jne 0x4e4dec
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4038f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4129e8]
jne 0x403903
repz ret
jmp fcn.004050b8

Function at 0x40c4a5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00408e14
xor ebx, ebx
cmp dword [0x414760], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40c57a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40c4e5
xor eax, eax
jmp 0x40c63e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c4de
push eax
call fcn.00408db1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414760], eax
call esi
push eax
call fcn.00408db1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414764], eax
call esi
push eax
call fcn.00408db1
mov dword [0x414768], eax
lea eax, [ebp - 8]
push eax
call fcn.004048b5
test eax, eax
pop ecx
pop ecx
je 0x40c548
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40c57a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00408db1
cmp eax, ebx
pop ecx
mov dword [0x414770], eax
je 0x40c57a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408db1
pop ecx
mov dword [0x41476c], eax
mov eax, dword [0x41476c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40c5f3
cmp dword [0x414770], esi
je 0x40c5f3
push eax
call fcn.00408e1d
pop ecx
call eax
cmp eax, ebx
je 0x40c5c0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x414770]
call fcn.00408e1d
pop ecx
call eax
test eax, eax
je 0x40c5c0
test byte [ebp - 0x18], 1
jne 0x40c5f3
lea eax, [ebp - 0xc]
push eax
call fcn.004048ec
test eax, eax
pop ecx
je 0x40c5db
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40c5ea
or dword [ebp + 0x10], 0x200000
jmp 0x40c624
or dword [ebp + 0x10], 0x40000
jmp 0x40c624
mov eax, dword [0x414764]
cmp eax, esi
je 0x40c624
push eax
call fcn.00408e1d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c624
mov eax, dword [0x414768]
cmp eax, esi
je 0x40c624
push dword [ebp - 4]
push eax
call fcn.00408e1d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x414760]
call fcn.00408e1d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x405195
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x4051a4
pop dword [ebp - 4]
mov eax, 0x4051a4
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x511fa
push 0
mov eax, 0x8a7b8dcf
sub eax, 0x8a36db13
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0xc9c50189
sub ecx, 0xc9c4b55e
xor ebx, ebx
add ebx, eax
mov esi, 0x487e00
add esi, dword [ebp - 4]
mov edx, 0x7f678c93
mov edi, dword [esi]
xor edi, edx
mov dword [ebx], edi
add ebx, 4
add esi, 4
loop 0x4051f4
add eax, 0x891ef7ae
add eax, 0x76e22bd1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb4a2b316
sub ecx, 0xb462b316
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x40115c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, 0x407fe4
push edi
push esi
call fcn.004028b0
xor ebx, ebx
pop ecx
test eax, eax
je 0x40118b
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.004027c0
pop ecx
pop ecx
jmp 0x40119e
lea eax, [ebp - 0x110]
push 0x104
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004025c7
lea eax, [ebp - 0x210]
push 0x40714c
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00402536
add esp, 0x28
lea eax, [ebp - 0x110]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, dword [sym.imp.user32.dll_SendDlgItemMessageA]
push ebx
push ebx
mov edi, 0x3ec
push 0xe
push edi
push dword [0x407f18]
mov dword [ebp - 8], eax
call esi
mov dword [0x407f00], eax
inc eax
push eax
call fcn.0040273d
pop ecx
mov dword [ebp - 4], eax
push eax
mov eax, dword [0x407f00]
inc eax
push eax
push 0xd
push edi
push dword [0x407f18]
call esi
push ebx
push 0x407f00
push dword [0x407f00]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 4]
call fcn.0040270e
pop ecx
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013a1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
lea eax, [ebp - 0x120]
xor ebx, ebx
push 0x104
push eax
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.004025c7
push 0x4071b8
lea eax, [ebp - 0x220]
push str.Signature
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00402536
add esp, 0x28
lea eax, [ebp - 0x120]
push ebx
push 0x8000080
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4014f4
push esi
push edi
push ebx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040273d
pop ecx
mov edi, eax
lea eax, [ebp - 0x14]
push ebx
push eax
push esi
push edi
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, edi
add esi, eax
cmp esi, eax
mov dword [ebp - 0x10], esi
jbe 0x4014e7
push 0x20
push edi
call fcn.004029a0
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x4014e7
push edi
mov byte [esi], bl
call fcn.004010aa
inc esi
push 0xd
push esi
mov dword [ebp - 0x1c], eax
call fcn.004029a0
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x4014e7
mov eax, dword [ebp - 0x1c]
mov byte [edi], bl
cmp dword [ebp + 8], eax
jae 0x4014ae
inc edi
mov dword [ebp - 0x18], eax
inc edi
cmp dword [ebp - 0x10], edi
ja 0x40146b
jmp 0x4014e7
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4014cc
mov ecx, dword [ebp + 8]
sub ecx, eax
cmp ecx, 0x15180
jbe 0x4014cc
push dword [ebp + 8]
call fcn.0040132a
pop ecx
jmp 0x4014e7
push esi
mov esi, 0x4080e8
push str.____s_r_n
push esi
call dword [sym.imp.user32.dll_wsprintfA]
push esi
call fcn.00401000
add esp, 0x10
push dword [ebp - 4]
call fcn.0040270e
pop ecx
pop edi
pop esi
jmp 0x4014fd
push dword [ebp + 8]
call fcn.0040132a
pop ecx
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
leave
ret
Function at 0x401509
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 8]
mov esi, dword [sym.imp.kernel32.dll_VirtualProtectEx]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x40
push 2
push edi
push dword [0x407ef0]
call esi
test eax, eax
je 0x401590
push 0
push 2
push dword [ebp + 0xc]
push edi
push dword [0x407ef0]
call dword [sym.imp.kernel32.dll_ReadProcessMemory]
test eax, eax
jne 0x401552
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.___ReadProcessMemory_error__d___r_n
jmp 0x40159c
push 0
push 2
push 0x407030
push edi
push dword [0x407ef0]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x40157a
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.___WriteProcessMemory_error__d___r_n
jmp 0x40159c
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 2
push edi
push dword [0x407ef0]
call esi
test eax, eax
jne 0x4015b5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.___VirtualProtectEx_error__d___r_n
mov esi, 0x4080e8
push esi
call dword [sym.imp.user32.dll_wsprintfA]
push esi
call fcn.00401000
add esp, 0x10
xor al, al
jmp 0x4015b7
mov al, 1
pop edi
pop esi
pop ebp
ret

Function at 0x4015bb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
mov esi, dword [sym.imp.kernel32.dll_VirtualProtectEx]
push 0x40
push 2
push dword [ebp + 8]
push dword [0x407ef0]
call esi
test eax, eax
je 0x40161d
push 0
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x407ef0]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x401605
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.___WriteProcessMemory_error__d___r_n
jmp 0x401629
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 2
push dword [ebp + 8]
push dword [0x407ef0]
call esi
test eax, eax
jne 0x401642
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.___VirtualProtectEx_error__d___r_n
mov esi, 0x4080e8
push esi
call dword [sym.imp.user32.dll_wsprintfA]
push esi
call fcn.00401000
add esp, 0x10
xor al, al
jmp 0x401644
mov al, 1
pop esi
leave
ret
Function at 0x401647
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x4084ec
push edi
push esi
call fcn.00401509
pop ecx
pop ecx
push dword [0x407ef4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov ebx, dword [sym.imp.kernel32.dll_Sleep]
push 0x32
mov dword [0x407c20], 0x1001f
call ebx
mov ebp, dword [sym.imp.kernel32.dll_GetThreadContext]
push 0x407c20
push dword [0x407ef4]
call ebp
test eax, eax
je 0x401761
cmp esi, dword [0x407cd8]
je 0x4016b1
push 0x32
call ebx
push 0x407c20
push dword [0x407ef4]
jmp 0x40168e
push dword [0x407ef4]
call dword [sym.imp.kernel32.dll_SuspendThread]
push edi
push esi
call fcn.004015bb
pop ecx
lea eax, [esp + 0x18]
pop ecx
mov esi, dword [sym.imp.kernel32.dll_ReadProcessMemory]
push 0
push 4
push eax
push dword [0x407ce4]
push dword [0x407ef0]
call esi
push edi
push dword [esp + 0x18]
call fcn.00401509
pop ecx
pop ecx
push 0
push 0x10
push 0x407f40
push dword [0x407ce4]
push dword [0x407ef0]
call esi
mov eax, dword [0x407ce4]
mov ecx, dword [esp + 0x18]
push 0
push 4
add eax, ecx
push 0x407f50
push eax
push dword [0x407ef0]
call esi
push dword [0x407ef4]
call dword [sym.imp.kernel32.dll_ResumeThread]
push 0x32
mov dword [0x407c20], 0x1001f
call ebx
mov esi, 0x407c20
push esi
push dword [0x407ef4]
call ebp
test eax, eax
je 0x401761
mov eax, dword [esp + 0x14]
cmp eax, dword [0x407cd8]
je 0x401786
push 0x32
call ebx
jmp 0x401742
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov esi, 0x4080e8
push str.___GetThreadContext_error__d___r_n
push esi
call dword [sym.imp.user32.dll_wsprintfA]
push esi
call fcn.00401000
add esp, 0x10
xor al, al
jmp 0x4017a0
push dword [0x407ef4]
call dword [sym.imp.kernel32.dll_SuspendThread]
push edi
push dword [esp + 0x18]
call fcn.004015bb
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4017a5
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x4084ec
push ebp
call fcn.00401509
pop ecx
pop ecx
push dword [0x407ef4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov esi, dword [sym.imp.kernel32.dll_Sleep]
push 0x32
mov dword [0x407c20], 0x1001f
call esi
mov edi, dword [sym.imp.kernel32.dll_GetThreadContext]
mov ebx, 0x407c20
push ebx
push dword [0x407ef4]
call edi
test eax, eax
je 0x401807
cmp ebp, dword [0x407cd8]
je 0x40182c
push 0x32
call esi
push ebx
push dword [0x407ef4]
jmp 0x4017ec
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov esi, 0x4080e8
push str.___GetThreadContext_error__d___r_n
push esi
call dword [sym.imp.user32.dll_wsprintfA]
push esi
call fcn.00401000
add esp, 0x10
xor eax, eax
jmp 0x40183f
push dword [0x407ef4]
call dword [sym.imp.kernel32.dll_SuspendThread]
movzx eax, word [0x4084ec]
pop edi
pop esi
pop ebp
pop ebx
ret