joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413c4a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x574a77
call fcn.0054c603
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x413c70
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x413ccf
call fcn.00409fff
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c00
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.0054c5c6
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005549d2
push eax
call fcn.00404e70
add esp, 0x14
test esi, esi
je 0x413cc2
push esi
call fcn.00554886
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401d40
mov eax, ebx
call fcn.0054c5cc
ret 8

Function at 0x4158e2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041383e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41591e
call fcn.00415b04
mov dword [esi + 0xc], 1
jmp 0x415923
call fcn.00415b04
cmp dword [esi], 0
je 0x41596c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x415946
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040dff0
jmp 0x415957
push 0xff
mov ecx, esi
call fcn.00401e90
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404bd0
jmp 0x415990
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x415990
push dword [esi]
push dword [ebp - 4]
call fcn.0041f0ac
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415a59
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00415b04
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x415aa1
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040dff0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404bd0
jmp 0x415aac
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041f0ac
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41776d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x4177b3
push 0x57dac4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4177c2
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4177c2
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0054c5c6
call edi
jmp 0x4177c4
cmp dword [esi + 4], ebx
je 0x4177c2
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x418113
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41813c
call fcn.0041547f
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x418169
push esi
push eax
mov ecx, 0x5d6ac0
call fcn.0041900c
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.004185c7
int3

Function at 0x41af74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x41afbe
call fcn.0041547f
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41afbb
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41b00c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x41afea
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call fcn.0054c5c6
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x41afea
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x41b00a
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call fcn.0054c5c6
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41bb8f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x56ec3e
call fcn.0054c603
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x41bc39
push dword [ebp + 8]
mov ecx, eax
call fcn.0041bec7
mov esi, eax
test esi, esi
je 0x41bccc
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x41bc22
push edx
call fcn.004075cf
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41bc22
xor edi, edi
inc edi
jmp 0x41bc2c
push dword [ebx]
call fcn.004075ca
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.0041ba54
jmp 0x41bcca
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.0054c5c6
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x41bcc2
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.004075cf
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x41bcbc
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.00425cb9
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.00425cb9
add al, bl
mov edx, edi
test edx, edx
jns 0x41bcad
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x41bc84
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00401d40
mov eax, edi
call fcn.0054c5cc
ret 0x10

Function at 0x41bcd4
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41bd27
push esi
push dword [ebp + 8]
call fcn.0041bec7
mov edi, eax
test edi, edi
jne 0x41bcf7
mov eax, dword [ebp + 0x10]
jmp 0x41bd39
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41bcf2
mov eax, dword [ebp - 8]
jmp 0x41bd39
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43c28c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x43c2a6
mov edi, dword [esi + 0xc]
jmp 0x43c2e6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x43c2bf
call fcn.0040aa9c
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x43c2d4
call fcn.0040aa9c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x43c2e6
call fcn.0040aa9c
call fcn.0041547f
cmp dword [eax + 0x3c], 0
je 0x43c2fb
push edi
mov ecx, ebx
call fcn.0043b9c5
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0043c4d8
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x43c324
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x43c330
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47d121
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0052400c
call fcn.004154d3
cmp dword [eax + 0x14], 0
jne 0x47d13c
mov ecx, esi
pop esi
jmp fcn.0047c46c
pop esi
ret
Function at 0x484725
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x48473e
call fcn.0041547f
mov esi, dword [eax + 0xc]
push 0x58c9d0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x484794
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x484793
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x484774
xor esi, esi
jmp 0x48478a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0048479c
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4caa22
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401b30
call fcn.004154d3
cmp dword [eax + 0x14], 0
jne 0x4caa3d
mov ecx, esi
pop esi
jmp fcn.004ca2a0
pop esi
ret

Function at 0x565eab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00565b6e

Function at 0x565eb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00565cef

Function at 0x569432
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005690f2
Function at 0x14c7d68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushfd
lea esp, [esp + 4]
jne 0x14c7d78
clc
bt ax, 1
clc
xor eax, eax
call fcn.014c714e
cmp dh, dh
xchg dword [ebp + ecx*4], eax
bt sp, bp
pushal
pushal
test dl, 0xef
mov dword [esp + 0x40], eax
push dword [esp + 4]
sub ecx, 1
lea esp, [esp + 0x44]
jg 0x14c58a5
jne 0x14c7d78
clc
cmp dl, dh
xor eax, eax
pushfd
pushfd
pushal
xchg dword [ebp], eax
call fcn.014c6665
sub eax, eax
bt sp, di
jmp 0x14c7dd1
or ecx, ecx
pushal
mov byte [esp], dh
lea esp, [esp + 0x3c]
je 0x14c5dd1
cmp ax, si
cmp esp, 0x7bbc0b8d
pushfd
jmp 0x14c7395
jmp 0x14c5da7
Function at 0x401206
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x453160]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x40a]
push eax
call fcn.004104a0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40124b
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x401253
mov esi, dword [esi]
push edi
push 0x200
lea eax, [ebp - 0x40c]
push eax
push 0x44b22c
push esi
push str.data
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x424]
call fcn.0040332e
push eax
mov ecx, ebx
call fcn.00401df5
push 0
push 1
lea ecx, [ebp - 0x424]
call fcn.00403396
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408550
leave
ret 0xc
Function at 0x401ca6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x453160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor eax, eax
push str.IsWow64Process
inc eax
xor esi, esi
push str.kernel32
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 8], esi
test edi, edi
je 0x401d0f
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x401d0f
cmp dword [ebp - 8], esi
je 0x401d0f
lea eax, [ebp - 0x14]
push eax
push 0x20119
jmp 0x401d18
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d4d
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push str.MachineGuid
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push 1
pop eax
cmove esi, eax
cmp dword [ebp - 0x14], 0
je 0x401d5c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408550
leave
ret 0x14

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

Disassembly:
test ecx, ecx
je 0x40354b
cmp word [ecx], 0
je 0x40354b
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret
xor al, al
ret

Function at 0x40354e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x453160]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 8
mov edi, edx
jb 0x40356c
mov ecx, dword [esi]
call fcn.00403533
test al, al
je 0x4035cd
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004104a0
and dword [ebp - 0x38], 0
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x34], str.open
jb 0x40359f
mov esi, dword [esi]
and dword [ebp - 0x24], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], 0x40
jb 0x4035b5
mov edi, dword [edi]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x2c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408550
leave
ret
Function at 0x4036d0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4c
mov eax, dword [0x453160]
xor eax, esp
mov dword [esp + 0xa48], eax
push ebx
push esi
push edi
push str.Version
mov edi, ecx
push 0x69
push edi
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40370e
xor al, al
jmp 0x4038bb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x403707
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
call fcn.004084f3
pop ecx
mov edi, eax
xor eax, eax
push ebx
push eax
push edi
mov dword [esp + 0x1c], eax
call fcn.004104a0
add esp, 0xc
push ebx
push esi
push edi
call fcn.00409950
add esp, 0xc
mov ecx, ebx
test edi, edi
je 0x40376d
test ebx, ebx
jle 0x40376d
mov al, byte [ecx + edi]
sub al, 0x3e
xor al, 0x1d
mov byte [ecx + edi], al
dec ecx
jns 0x403760
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ecx
mov dword [esp + 0x10], 0x4034b50
mov eax, dword [esp + 0x10]
push ecx
mov edx, ebx
mov ecx, edi
mov dword [edi], eax
call fcn.004081fd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4037a4
mov dword [0x456f4c], 0x10000
jmp 0x4037c3
cmp dword [esi], 1
je 0x4037b5
mov dword [0x456f4c], 0x80000
jmp 0x4037c3
push ecx
mov ecx, dword [esi + 4]
call fcn.00407820
mov dword [0x456f4c], eax
lea eax, [esp + 0x20]
push eax
or edx, 0xffffffff
mov ecx, esi
call fcn.004082bb
mov ebx, dword [esp + 0x24]
mov eax, ebx
imul eax, eax, 0x104
pop ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
mov dword [esp + 0xc], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004084f3
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4038b0
mov eax, ebx
imul eax, eax, 0x208
push eax
xor ebx, ebx
push ebx
push ecx
call fcn.004104a0
add esp, 0xc
cmp dword [esp + 0xc], ebx
jle 0x40389a
lea eax, [esp + 0x20]
push eax
mov edx, ebx
mov ecx, esi
call fcn.004082bb
xor eax, eax
mov dword [esp], 0x7fe
push eax
mov word [esp + 0x258], ax
lea eax, [esp + 0x25a]
push eax
call fcn.004104a0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40385d
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
lea eax, [esp + 0x258]
push 0x44b3f8
push eax
call fcn.00403d05
pop ecx
pop ecx
jmp 0x40387b
push ecx
push ecx
lea eax, [esp + 0x258]
push eax
mov edx, ebx
mov ecx, esi
call fcn.004082fa
add esp, 0xc
test eax, eax
jne 0x403879
inc ebx
cmp ebx, dword [esp + 0xc]
jl 0x403821
mov ecx, esi
call fcn.0040832b
push dword [esp + 0x18]
call fcn.00408c3d
pop ecx
mov byte [esp + 0x10], 1
push edi
call fcn.00408c3d
mov al, byte [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0xa54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408550
mov esp, ebp
pop ebp
ret
Function at 0x4063d6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4063e1
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x406499
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44ba90]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44ba90]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44ba90]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44ba90]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44ba90]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44ba90]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44ba90]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44ba90]
add edx, 8
sub esi, 8
dec edi
jne 0x4063fc
pop edi
test esi, esi
je 0x4064b2
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44ba90]
inc edx
dec esi
jne 0x40649d
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x4064ba
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov edx, 0xff
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x44ba90]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x44ba90]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x406b3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x453160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 8], eax
je 0x406b82
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406b7d
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x406ba9
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x406b92
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00409950
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00408550
leave
ret
Function at 0x407772
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x407814
cmp dword [esi + 4], 0xffffffff
jne 0x407814
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4077a5
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4077d9
cmp eax, 0x2f
je 0x4077d9
push 0x44b3f4
push 0x104
push edi
call fcn.004096f9
add esp, 0xc
push 0x20
call fcn.0040855f
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], bl
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.00406df9
xor ecx, ecx
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov dword [esi], eax
mov eax, ecx
jmp 0x407819
mov eax, 0x1000000
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x407e29
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x453160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x407e5b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407e5b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x407f14
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x407e78
cmp ax, 0x5c
jne 0x407e7a
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x407e6c
cmp esi, ebx
je 0x407ebe
sub esi, ebx
and esi, 0xfffffffe
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00409950
add esp, 0xc
cmp esi, 0x208
jae 0x407f22
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.00407e29
xor eax, eax
mov word [ebp - 0x20c], ax
mov esi, 0x104
test edi, edi
je 0x407ee1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409765
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004096f9
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x407f14
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00408550
leave
ret
call fcn.00409561
int3