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

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x41fcec]
mov edi, eax
sub esi, dword [0x413c1c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x4031dd
push dword [0x427cfc]
call fcn.0040321a
push ebp
push ebp
push dword [0x413c1c]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x427cf8], esi
mov dword [0x41fce8], ebp
mov eax, dword [0x41fcf0]
mov ebx, 0x4000
sub eax, dword [0x427cfc]
cmp eax, ebx
jg 0x40307a
mov ebx, eax
mov esi, 0x41bca8
push ebx
push esi
call fcn.004031e8
test eax, eax
je 0x4031a8
add dword [0x427cfc], ebx
mov dword [0x413c38], esi
mov dword [0x413c3c], ebx
cmp dword [0x446f4c], ebp
je 0x40310b
cmp dword [0x446fe0], ebp
jne 0x40310b
cmp dword [esp + 0x10], ebp
je 0x4030d8
mov eax, dword [0x427cf8]
push ebp
sub eax, dword [0x41fcec]
sub eax, dword [esp + 0x20]
add eax, dword [0x413c1c]
mov dword [0x41fce8], eax
call fcn.00405da8
jmp 0x40310b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x40310b
mov eax, dword [0x446f48]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402b35
push ebp
push 0x6f
push dword [0x446f40]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x413c20
mov dword [0x413c40], 0x413ca8
mov dword [0x413c44], 0x8000
call fcn.00405e69
test eax, eax
jl 0x4031b1
mov esi, dword [0x413c40]
mov eax, 0x413ca8
sub esi, eax
je 0x403172
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031ad
cmp esi, dword [esp + 0x14]
jne 0x4031ad
add dword [0x413c1c], esi
cmp dword [0x413c3c], ebp
jne 0x4030a0
jmp 0x40317e
cmp dword [0x413c3c], ebp
jne 0x4031b1
cmp ebx, ebp
je 0x4031b1
mov eax, dword [0x41fcec]
mov ecx, eax
sub ecx, dword [0x413c1c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x403064
push ebp
push ebp
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031b6
or eax, 0xffffffff
jmp 0x4031df
push 0xfffffffffffffffe
jmp 0x4031b3
push 0xfffffffffffffffd
pop eax
jmp 0x4031df
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x4031dd
mov eax, dword [0x427cf8]
push ebp
push ebp
push 0x113
push esi
mov dword [0x41fce8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4052e3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43e550], 0x44
push eax
xor eax, eax
push 0x43e550
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40531e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053a8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040564a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4053de
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446fc8], eax
jmp 0x405563
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4053f9
test eax, eax
je 0x40550e
test cl, 2
je 0x40550e
mov esi, 0x439d50
push ebx
push esi
call fcn.00405a76
cmp dword [ebp + 8], 0
je 0x405418
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40541e
push ebx
call fcn.004055b0
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405504
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405594
cmp byte [eax], 0
je 0x40546f
cmp byte [ebp - 0x18], 0
je 0x40546f
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405485
mov al, byte [esi + 1]
test al, al
je 0x4054e3
cmp al, 0x2e
jne 0x405485
cmp byte [esi + 2], 0
je 0x4054e3
push esi
push edi
call fcn.00405a76
test byte [ebp - 0x148], 0x10
je 0x4054aa
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4054e3
push dword [ebp + 0xc]
push ebx
call fcn.004053a8
jmp 0x4054e3
push ebx
call fcn.0040572e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4054db
test byte [ebp + 0xc], 4
je 0x4054d3
push ebx
push 0xfffffffffffffff1
call fcn.00404e21
push 0
push ebx
call fcn.004057c4
jmp 0x4054e3
inc dword [0x446fc8]
jmp 0x4054e3
push ebx
push 0xfffffffffffffff2
call fcn.00404e21
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40544d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40550e
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405563
cmp dword [ebp - 8], esi
jne 0x405523
inc dword [0x446fc8]
jmp 0x405563
push ebx
call fcn.00405d48
test eax, eax
je 0x405563
push ebx
call fcn.00405569
push ebx
call fcn.0040572e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40555b
test byte [ebp + 0xc], 4
je 0x40551b
push ebx
push 0xfffffffffffffff1
call fcn.00404e21
push esi
push ebx
call fcn.004057c4
jmp 0x405563
push ebx
push 0xffffffffffffffe5
call fcn.00404e21
pop esi
pop ebx
leave
ret 8
Function at 0x40564a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43bd50
push esi
call fcn.00405a76
push esi
call fcn.004055fd
mov edi, eax
test edi, edi
jne 0x40566b
xor eax, eax
jmp 0x4056bd
push edi
call fcn.00405caf
test byte [0x446f54], 0x80
je 0x405684
mov al, byte [edi]
test al, al
je 0x405667
cmp al, 0x5c
je 0x405667
sub edi, esi
jmp 0x40569c
call fcn.00405d48
test eax, eax
je 0x405696
test byte [eax], 0x10
je 0x405667
push esi
call fcn.004055b0
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405688
call fcn.00405569
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 0x40572e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40574a
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40574d
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 0x40577c
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 0x4057c0
test edi, edi
jne 0x405787
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4057ba
Function at 0x4057c4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d6f
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4057e8
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405921
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43e6d8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43e6d8
je 0x40582c
push 1
push 0
push esi
call fcn.0040574d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405927
cmp eax, edi
jg 0x405927
mov esi, 0x43e150
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405927
cmp eax, edi
jg 0x405927
push esi
push ebp
push str._s_s_r_n
push 0x43dd50
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446f4c]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a98
push 4
push 0xc0000000
push esi
call fcn.0040574d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405921
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 0x40591a
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 0x40591a
cmp edi, dword [esp + 0x18]
jne 0x40591a
push str._Rename__r_n
push esi
call fcn.004056c2
test eax, eax
jne 0x40592e
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a76
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43dd50
push eax
call fcn.0040570e
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 [0x446fd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093b8
push eax
call fcn.004056c2
test eax, eax
je 0x4058e5
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405955
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x40594a
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058e7
Function at 0x40595d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059ce
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4059bd
cmp dword [ebp + 0x14], 1
je 0x4059bf
cmp dword [ebp + 0x14], 2
je 0x4059bf
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405a98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405ab9
mov ecx, dword [0x442f1c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x446f78]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x43eee0
sub ecx, eax
mov edi, eax
cmp ecx, 0x4000
jae 0x405adb
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
je 0x405c96
jmp 0x405aed
mov cl, byte [ebp + 0xf]
mov edx, edi
sub edx, eax
cmp edx, 0x2000
jge 0x405c96
inc ebx
cmp cl, 0xfc
jbe 0x405c7c
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, ecx
mov dword [ebp - 0xc], eax
or ch, 0x80
or ah, 0x80
inc ebx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
jne 0x405c27
cmp dword [0x446fc4], 0
push 2
pop esi
je 0x405b4c
push 4
pop esi
test dl, dl
jns 0x405b87
mov eax, edx
and edx, 0x3f
add edx, dword [0x446f78]
and eax, 0x40
push eax
push edi
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.0040595d
cmp byte [edi], 0
jne 0x405c0e
push dword [ebp - 0xc]
push edi
call fcn.00405a98
jmp 0x405c09
cmp edx, 0x25
jne 0x405b9a
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405c09
cmp edx, 0x24
jne 0x405c05
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405c05
mov eax, dword [0x446f44]
dec esi
test eax, eax
je 0x405bce
push edi
push 0
push 0
push dword [ebp + esi*4 - 0x14]
push dword [0x446f48]
call eax
test eax, eax
je 0x405c09
lea eax, [ebp - 4]
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x446f48]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405c02
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405c09
and byte [edi], 0
test esi, esi
jne 0x405baf
cmp byte [edi], 0
je 0x405c1f
cmp dword [ebp - 0xc], 0x1a
jne 0x405c1f
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405caf
jmp 0x405c6d
cmp byte [ebp + 0xf], 0xfd
jne 0x405c5b
cmp esi, 0x1d
jne 0x405c40
push dword [0x446f48]
push edi
call fcn.004059d4
jmp 0x405c51
mov eax, esi
shl eax, 0xd
add eax, section..ndata
push eax
push edi
call fcn.00405a76
add esi, 0xffffffeb
cmp esi, 7
jae 0x405c6d
jmp 0x405c1f
cmp byte [ebp + 0xf], 0xff
jne 0x405c6d
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405a98
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x43eee0
jmp 0x405c89
jne 0x405c86
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405c89
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405aea
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405cab
push eax
push dword [ebp + 8]
call fcn.00405a76
leave
ret 8
Function at 0x405ddb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43eadc], 0
push esi
jne 0x405e12
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 0x405dec
mov dword [ecx*4 + 0x43ead8], eax
inc ecx
cmp ecx, 0x100
jl 0x405de7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e43
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 + 0x43ead8]
xor eax, esi
inc ecx
dec edx
jne 0x405e25
pop edi
not eax
pop esi
ret 0xc

Function at 0x4195d7
Capabilities:
Encode data using xor

Disassembly:
loope 0x4195fd
mov eax, 0xe9c550c9
jmp 0xf232547
push edx
pushal
jo 0x4195c1
retf
add byte [edi + 0x73], dl
scasd eax, dword es:[edi]
pop es
inc edi
xchg edi, eax
xchg esp, eax
popal
add ch, byte [edx]
stc
movsd dword es:[edi], dword [esi]
add eax, dword [eax - 0x1a]
inc ebx
shl byte [ecx - 0x422ffece], cl
inc edi
and byte [edx + 0x1b], bl
fxch st(4)
and eax, 0x60ab2991
or bh, byte [esi + edx - 0x5f]
pop es

Function at 0x4c9fd5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d43e8
cmp edx, dword [eax]
je 0x4c9ff7
add eax, 8
inc ecx
cmp eax, 0x4d4478
jl 0x4c9fe8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d43e8]
jne 0x4ca125
mov eax, dword [0x4d9e10]
cmp eax, 1
je 0x4ca0ff
test eax, eax
jne 0x4ca028
cmp dword [0x4d4314], 1
je 0x4ca0ff
cmp edx, 0xfc
je 0x4ca125
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ca05f
lea eax, [ebp - 0x1a4]
push 0x4cfe00
push eax
call fcn.004ca9c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004cae50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ca0a2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004cae50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cfdfc
push edi
call fcn.004ccd20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cfde0
push eax
call fcn.004ca9c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004ca9d0
lea eax, [ebp - 0xa0]
push 0x4cfddc
push eax
call fcn.004ca9d0
push dword [esi + 0x4d43ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004ca9d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cfdb4
push eax
call fcn.004ccc94
add esp, 0x2c
pop edi
jmp 0x4ca125
lea eax, [ebp + 8]
lea esi, [esi + 0x4d43ec]
push 0
push eax
push dword [esi]
call fcn.004cae50
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 0x404f0e
Capabilities:
Read file on windows

Disassembly:
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x43d9cd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jne 0x404f32
push dword [ebp + 8]
call fcn.004255e2
add esp, 0x10
mov esp, ebp
pop ebp
in eax, 0x5d
push esi
mov ecx, dword [esp + ecx*4]
push edi
mov esi, dword [ecx]
lea edi, [ebp - 8]
push edi
add byte [ecx], bh
adc byte [ecx - 0xaeafae], bl
push esi
adc al, 0x8f
inc ebp
clc
pop edi
pop esi
jmp 0x404f24

Function at 0x409ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4c6480]
mov dword [esp + 4], ecx
push esi
push edi
test al, 1
je 0x40b3d6
or eax, 1
mov dword [0x4c6488], 0
push 0x43b5ec
mov dword [0x4c6480], eax
mov dword [0x4c6490], 0
mov dword [0x4c6494], 1
call fcn.00422d40
add esp, 4
jmp fcn.00409ebf
Function at 0x40fcff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
sub esp, 0x10
mov dword [esp + 0x28], ebx
mov eax, dword [esi + 4]
inc esi
add al, 0xc7
inc esp
and al, 0x30
add eax, dword [eax]
add byte [eax], al

Function at 0x415cf8
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x415d20
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x415d12
pop edi
Function at 0x469128
Capabilities:
Encode data using xor

Disassembly:
jl 0x46912f
mov eax, 0xff
dec ebp
or byte [ebx - 0x7e367af8], cl
in al, dx
fadd qword [eax]
add byte [eax], al
lea ecx, [ebp - 0xff00dc]
push esi
push edi
call 0x6a578f88
pop ebp
jne 0x46915b
lea ecx, [ebp - 0xff00dc]
call 0x743d8fce
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x469176
jl 0x4691b6
call dword [ecx + 0x51]
push ecx
push ecx
lea ecx, [ebp - 0xff00dc]
call 0xff479106
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x469160
pop edi
sub esp, 0x14
lea ecx, [ebp + 0x46]
invalid
Function at 0x404784
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406280
test esi, esi
jne 0x4047ba
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004063bc
jmp 0x4047d8
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404668
mov edi, eax
test esi, esi
je 0x4047d8
cmp dword [ebx], 0
je 0x4047d8
dec esi
jmp 0x4047c1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40480c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x437008], 0x8088405
inc edx
mov dword [ebx + 0x437008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405214
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004054b0
mov byte [esp], al
cmp byte [esp], 0
jne 0x40539e
test edi, edi
je 0x40539e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4052de
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4052b9
cmp edi, 0xffffffff
je 0x405279
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405279
mov byte [esp], 0
jmp 0x40539e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4052b9
test ebx, ebx
jne 0x4052ab
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4052ab
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40539e
lea eax, [esp + 0xc]
call fcn.00404fa8
dec ebp
test ebp, ebp
jg 0x40525e
cmp edi, 0xffffffff
je 0x4052de
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4052dc
mov byte [esp], 0
jmp 0x40539e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405222
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4052de
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040540c
mov edx, eax
mov ebx, dword [0x4398f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405342
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405340
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405342
xor edi, edi
cmp byte [esp], 0
je 0x405368
mov ebx, dword [esi]
test bl, 1
jne 0x40537e
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405348
mov byte [esp + 1], 1
jmp 0x40537e
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405368
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4052f5
cmp byte [esp], 0
je 0x40539e
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405f1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x439054], 0
je 0x405f83
cmp word [0x439340], 0xd7b2
jne 0x405f45
cmp dword [0x439348], 0
jbe 0x405f45
mov eax, 0x43933c
call dword [0x439358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x405fb0
call fcn.00406924
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x437032], 0
jne 0x405f9f
push 0
push 0x4379c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406140
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x437034], 0
je 0x40616b
mov edx, edi
mov eax, esi
call dword [0x437034]
mov ebx, eax
jmp 0x40617c
mov eax, 8
call fcn.004043c4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x439055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406108
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x4061ac
mov eax, ebx
call fcn.004043e0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc