joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ec4
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402ee1
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402ef0
mov ebx, 0x40f0f0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f05
mov ecx, dword [0x424378]
add ecx, eax
push ecx
call fcn.004030f3
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030c1
test eax, eax
je 0x40306c
test byte [ebp + 0x17], 0x80
je 0x403055
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b020
mov dword [ebp - 0xc], eax
call fcn.00405d8c
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030b7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f55
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0f0
push esi
push edi
call fcn.004030c1
test eax, eax
je 0x40306c
sub dword [ebp + 0x14], esi
mov dword [0x40b038], edi
mov dword [0x40b03c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b020
mov dword [0x40b040], ebx
mov dword [0x40b044], eax
call fcn.00405dac
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40304d
mov esi, dword [0x40b040]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409298], 1
mov edi, eax
je 0x402ff7
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fc4
cmp dword [ebp + 0x14], 0
jne 0x402ff7
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404d6a
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403042
cmp dword [ebp + 0x10], eax
jne 0x403020
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403051
cmp dword [ebp - 0x10], esi
jne 0x403051
add dword [ebp - 4], esi
jmp 0x403036
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b040]
jl 0x4030b7
cmp dword [ebp - 0x14], 1
jne 0x402f78
jmp 0x4030b7
cmp dword [ebp + 0x14], eax
jg 0x402f48
jmp 0x4030b7
push 0xfffffffffffffffc
jmp 0x40306e
push 0xfffffffffffffffe
jmp 0x40306e
test edi, edi
je 0x4030ac
cmp dword [ebp + 0x14], esi
jge 0x403061
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030c1
test eax, eax
jne 0x4030b4
push 0xfffffffffffffffd
pop eax
jmp 0x4030ba
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40307c
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0f0
push esi
push edi
call fcn.004030c1
test eax, eax
je 0x40306c
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403051
cmp esi, dword [ebp + 0x10]
jne 0x403051
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403071
jmp 0x4030b7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405248
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422938], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40526c
test al, 0x10
jne 0x40526f
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422938
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40529a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405302
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040559b
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405336
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243a8], eax
jmp 0x4054b5
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405354
test eax, eax
je 0x405466
test byte [ebp + 0xc], 2
je 0x405466
mov esi, 0x421938
push edi
push esi
call fcn.004059ae
test ebx, ebx
je 0x405371
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405377
push edi
call fcn.00405502
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40545c
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004054e6
cmp byte [eax], 0
je 0x4053c8
cmp byte [ebp - 0x18], 0
je 0x4053c8
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053d8
mov al, byte [esi + 1]
cmp al, 0x2e
je 0x40543b
test al, al
je 0x40543b
push esi
push ebx
call fcn.004059ae
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4053fe
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40543b
push dword [ebp + 0xc]
push edi
call fcn.00405302
jmp 0x40543b
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405433
test byte [ebp + 0xc], 4
je 0x40542b
push edi
push 0xfffffffffffffff1
call fcn.00404d6a
push 0
push edi
call fcn.004056f6
jmp 0x40543b
inc dword [0x4243a8]
jmp 0x40543b
push edi
push 0xfffffffffffffff2
call fcn.00404d6a
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053a6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405466
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054b5
cmp dword [ebp - 8], esi
jne 0x40547b
inc dword [0x4243a8]
jmp 0x4054b5
push edi
call fcn.00405c83
test eax, eax
je 0x4054b5
push edi
call fcn.004054bb
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054ad
test byte [ebp + 0xc], 4
je 0x405473
push edi
push 0xfffffffffffffff1
call fcn.00404d6a
push esi
push edi
call fcn.004056f6
jmp 0x4054b5
push edi
push 0xffffffffffffffe5
call fcn.00404d6a
pop edi
pop esi
leave
ret 8
Function at 0x40559b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d38
push esi
call fcn.004059ae
push esi
call fcn.0040554e
mov edi, eax
test edi, edi
jne 0x4055bc
xor eax, eax
jmp 0x40560e
push edi
call fcn.00405bea
test byte [0x424330], 0x80
je 0x4055d5
mov al, byte [edi]
test al, al
je 0x4055b8
cmp al, 0x5c
je 0x4055b8
sub edi, esi
jmp 0x4055ed
call fcn.00405c83
test eax, eax
je 0x4055e7
test byte [eax], 0x10
je 0x4055b8
push esi
call fcn.00405502
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055d9
call fcn.004054bb
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40567f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x4056ae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056f2
test edi, edi
jne 0x4056b9
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056ec
Function at 0x4056f6
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405cc1
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405722
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405868
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ac0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ac0
je 0x405766
push 1
push 0
push esi
call fcn.0040567f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40586e
cmp eax, edi
jg 0x40586e
mov esi, 0x422538
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40586e
cmp eax, edi
jg 0x40586e
push esi
push ebp
push str._s_s_r_n
push 0x422138
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405868
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405861
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405861
cmp edi, dword [esp + 0x18]
jne 0x405861
push str._Rename__r_n
push esi
call fcn.00405613
test eax, eax
jne 0x405875
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059ae
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422138
push eax
call fcn.0040565f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4243b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409300
push eax
call fcn.00405613
test eax, eax
je 0x40582c
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x40589e
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x405891
sub eax, esi
jmp 0x40582e
Function at 0x4058a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405906
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058f5
cmp dword [ebp + 0x14], 1
je 0x4058f7
cmp dword [ebp + 0x14], 2
je 0x4058f7
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4059d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x4059f1
mov ecx, dword [0x423afc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424358]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x4232c0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405bc4
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405bc4
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bd1
inc ebx
cmp cl, 0xfc
jbe 0x405bb7
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405b62
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405a85
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405afd
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405aa4
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058a2
jmp 0x405af8
cmp eax, 0x26
jne 0x405ad4
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058a2
cmp byte [edi], 0
jne 0x405b5a
push str.C:Program_Files
push edi
call fcn.004059ae
jmp 0x405af8
cmp eax, 0x25
jne 0x405ae7
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405af8
cmp eax, 0x24
jne 0x405afd
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b5a
cmp dword [0x4243a4], 0
jne 0x405b09
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424324]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b3f
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040521d
cmp dword [ebp - 8], 0
jne 0x405b46
jmp 0x405b42
and byte [edi], 0
test esi, esi
jne 0x405b09
cmp byte [edi], 0
je 0x405b5a
cmp dword [ebp + 0xc], 0
je 0x405b5a
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405bea
jmp 0x405ba8
cmp byte [ebp + 0xf], 0xfd
jne 0x405b96
cmp esi, 0x1b
jne 0x405b7b
push dword [0x424324]
push edi
call fcn.0040590c
jmp 0x405b8c
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059ae
add esi, 0xffffffeb
cmp esi, 6
jae 0x405ba8
jmp 0x405b5a
cmp byte [ebp + 0xf], 0xff
jne 0x405ba8
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059d0
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x4232c0
jmp 0x405bc4
jne 0x405bc1
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405bc4
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a1c
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405be6
push eax
push dword [ebp + 8]
call fcn.004059ae
leave
ret 8
Function at 0x405d1e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ec4], 0
push esi
jne 0x405d55
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d2f
mov dword [ecx*4 + 0x422ec0], eax
inc ecx
cmp ecx, 0x100
jl 0x405d2a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d86
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ec0]
xor eax, esi
inc ecx
dec edx
jne 0x405d68
pop edi
not eax
pop esi
ret 0xc
Function at 0x407d47
Capabilities:
Create thread
Inject thread

Disassembly:
mov eax, dword [0x539a40]
mov dword [0x539b64], eax
mov edx, dword [0x539a48]
push dword [0x53a144]
call fcn.0040f340
lea ecx, [0x539b68]
pop edx
call fcn.0040a000
push dword [0x539b68]
call fcn.0040a380
mov ebx, eax
inc ebx
mov dword [0x539b6c], ebx
push dword [0x539b64]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x539b70], eax
cmp dword [0x539b70], 0
je 0x407ecd
push 4
push 0x1000
push dword [0x539b6c]
push 0
push dword [0x539b70]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x539b74], eax
cmp dword [0x539b74], 0
je 0x407ec2
push 0x539b78
push dword [0x539b6c]
push dword [0x539b68]
push dword [0x539b74]
push dword [0x539b70]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x539b78]
cmp ebx, dword [0x539b6c]
jl 0x407ea6
push str.Kernel32.dll
push 0
call fcn.0040c169
and eax, eax
je 0x407ea6
push 0x41a438
push 0
call fcn.0040c1a6
mov dword [0x539b7c], eax
push 0
call fcn.0040c0fa
cmp dword [0x539b7c], 0
je 0x407ea6
push 0
push 0
push dword [0x539b74]
push dword [0x539b7c]
push 0
push 0
push dword [0x539b70]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x539b80], eax
cmp dword [0x539b80], 0
je 0x407ea6
push 0xffffffff
push dword [0x539b80]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x539970
push dword [0x539b80]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x539b6c]
push dword [0x539b74]
push dword [0x539b70]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x539b70]
call sub.KERNEL32.dll_CloseHandle
push dword [0x539a48]
call fcn.0040e84e
mov dword [0x539970], eax
ret
Function at 0x40b257
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x539d20]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.0040f0ce
mov esi, eax
cmp esi, ebx
je 0x40b392
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40b2f6
push dword [ebp + 8]
call fcn.0040b4b9
jmp 0x40b29a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40b292
push dword [esi + 0x14]
call fcn.0040b6f7
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040b134
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40b1a9
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40b2dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x40b392
test byte [ebp + 0xc], 1
je 0x40b2ff
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x40b36b
push esi
call fcn.0040adbc
lea eax, [esi + 4]
push 0xc
push eax
call fcn.0040f247
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x539d34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40b392
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
jmp 0x40b392
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40b392
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b87d
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x40b895
push dword [esp + 4]
push 0x40b816
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x40b8d2
push esi
mov esi, dword [0x539d60]
test esi, esi
je 0x40b8d1
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40b8c9
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x539d60
call fcn.0040f28a
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x40b8a2
pop edi
pop ebx
pop esi
ret 4
Function at 0x40e754
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x40e7c2
push 0x11
call esi
test al, al
js 0x40e7c2
push 0x10
call esi
test al, al
js 0x40e7c2
push 0x12
call esi
test al, al
js 0x40e7c2
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40e7c2
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x40e7e6
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x40e7e6
dec eax
push eax
push dword [0x53a66c]
call fcn.0040f0ce
mov eax, dword [eax + 0xc]
jmp 0x40e7e8
xor eax, eax
pop esi
leave
ret 4

Function at 0x40e860
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x40e895
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40eb20
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x53a67c]
push ebx
push esi
push edi
push eax
or edi, 0xffffffff
push ecx
or ebx, edi
call fcn.0040f0ce
mov esi, eax
test esi, esi
je 0x40eb7a
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [esp + 0x10]
xor edi, edi
xor edx, edx
or ecx, edx
or edi, eax
cmp dword [esi + 4], edx
je 0x40eb70
cmp dword [esi + 0x14], edx
jne 0x40eb70
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
cdq
add ecx, eax
adc edi, edx
mov edx, edi
pop edi
pop esi
mov eax, ecx
pop ebx
ret 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
ret 4

Function at 0x40eb90
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x53a67c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0040f0ce
test eax, eax
je 0x40ebda
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x40ebc7
push 1
push edx
push eax
call fcn.0040ee50
movzx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x40ebf0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x53a67c]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.0040f0ce
test eax, eax
je 0x40ec3a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x40ec27
push 4
push edx
push eax
call fcn.0040ee50
mov eax, dword [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x40ec50
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x53a67c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0040f0ce
test eax, eax
je 0x40ec9a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x40ec87
push 1
push edx
push eax
call fcn.0040ee50
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x40ecb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x40ed09
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40ed08
mov eax, dword [esp + 0x10]
mov ecx, dword [0x53a67c]
push eax
push ecx
call fcn.0040f0ce
test eax, eax
je 0x40ed04
cmp dword [eax + 4], 0
je 0x40ecf2
push esi
push edi
push eax
call fcn.0040ef80
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc