joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421437
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
pop esi
mov eax, ecx
ret

Function at 0x421454
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8

Function at 0x4214bc
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edx, edx
mov edi, 0x3e8
div edi
mov esi, dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x110], eax
mov eax, dword [ecx]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
mov dword [ebp - 0x10c], edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x421520
xor eax, eax
jmp 0x42152b
xor ecx, ecx
test eax, eax
setne cl
mov eax, edi
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042bea8
leave
ret 8

Function at 0x421540
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
lea eax, [ebp - 0x30]
push eax
mov edi, ecx
call fcn.00408a30
cmp dword [ebp - 0x1c], 0x10
mov esi, dword [ebp - 0x30]
pop ecx
pop ecx
jae 0x42156f
lea esi, [ebp - 0x30]
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0042c3a0
add esp, 0xc
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4215b7
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4215c8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00421454
mov esi, eax
jmp 0x4215ca
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004097f0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042bea8
leave
ret 8

Function at 0x4219b6
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx], edi
je 0x4219c5
xor eax, eax
inc eax
jmp 0x421a0e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000008
push 1
push edi
push edi
push ebx
call esi
cmp eax, edi
jne 0x421a0d
push edi
push 1
push edi
push dword [0x45cfa8]
push ebx
call esi
cmp eax, edi
jne 0x421a0d
push 8
push 1
push edi
push dword [0x45cfa8]
push ebx
call esi
cmp eax, edi
jne 0x421a0d
push 0x20
push 1
push edi
push dword [0x45cfa8]
push ebx
call esi
pop esi
pop edi
pop ebx
ret
Function at 0x421a11
Capabilities:
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, dword [esi + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x8003
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x421a7b
cmp dword [esi + 0x14], 0x10
jb 0x421a44
mov esi, dword [esi]
push 0
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x421a73
push dword [ebp + 0x10]
push 0
push dword [edi]
push 0x6603
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x421a73
mov byte [ebp - 1], 1
jmp 0x421a7b
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421a90
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.004219b6
test eax, eax
jne 0x421aae
xor eax, eax
jmp 0x421b00
lea eax, [edi + 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [edi]
call fcn.00421a11
add esp, 0x10
test al, al
je 0x421aaa
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x421aec
sub eax, ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ecx
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x421b2c
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov edi, ecx
cmp eax, dword [esi + 4]
je 0x421bdd
push ebx
call fcn.004219b6
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x421bce
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x421bce
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp eax, edi
jne 0x421b7f
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov esi, dword [esi]
add esi, dword [ebp + 0x14]
push edi
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x421bc0
push 0x10
pop eax
push eax
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.0040d960
mov eax, dword [ebx]
push edi
lea ecx, [ebp + 8]
push ecx
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x421bc0
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], edi
jne 0x421bdc
push 1
mov ecx, ebx
call fcn.0040d960
mov eax, dword [ebx]
mov byte [eax], 0x17
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10

Function at 0x421be6
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call fcn.004219b6
test eax, eax
jne 0x421c08
xor eax, eax
jmp 0x421c9e
lea eax, [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call fcn.00421a11
add esp, 0x10
test al, al
je 0x421c01
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 4]
sub esi, dword [ebx]
mov dword [ebp - 4], edi
mov eax, esi
and eax, 7
je 0x421c45
push 8
pop ecx
sub ecx, eax
add esi, ecx
push edi
push esi
mov ecx, ebx
call fcn.00413b60
push esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x421c88
cmp dword [ebp - 4], esi
jbe 0x421c71
push edi
push dword [ebp - 4]
mov ecx, ebx
call fcn.00413b60
mov ebx, dword [ebx]
push esi
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp + 8], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x42432f
Capabilities:
Enumerate files on windows

Disassembly:
push 4
mov eax, 0x448032
call fcn.0042beb7
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], ecx
mov word [ebx], ax
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
cmp eax, 0xffffffff
jne 0x4243d9
push eax
push ecx
lea edi, [esi + 0x38]
push esi
mov ecx, edi
call fcn.00409cf0
push edi
call fcn.0040cc40
pop ecx
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x1c]
push eax
mov ecx, edi
call fcn.00405780
cmp dword [edi + 0x14], 8
jb 0x424393
mov eax, dword [edi]
jmp 0x424395
mov eax, edi
lea edi, [esi + 0x58]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x54], eax
cmp eax, 0xffffffff
je 0x424411
push 0x2e
pop ecx
cmp cx, word [esi + 0x84]
jne 0x4243e8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
call edi
test eax, eax
je 0x424411
push 0x2e
pop eax
cmp ax, word [esi + 0x84]
jne 0x424411
lea eax, [esi + 0x58]
push eax
push dword [esi + 0x54]
call edi
jmp 0x4243e4
lea ecx, [esi + 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x424411
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.00409cf0
push ebx
call fcn.0040cc40
add esi, 0x84
push esi
call fcn.0042c331
pop ecx
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0040d360
mov eax, ebx
call fcn.0042bf8f
ret 4
Function at 0x425657
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x20c], ax
test esi, esi
je 0x4256b9
cmp word [esi], ax
je 0x4256b9
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041967c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042c34c
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00408d60
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042bea8
leave
ret
Function at 0x42578e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x250
mov eax, 0x447f49
call fcn.0042bf20
mov esi, ecx
push 7
xor eax, eax
pop ebx
xor ecx, ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x25c], esi
mov word [esi], cx
lea edi, [esi + 0x1c]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], eax
mov dword [ebp - 4], eax
mov word [edi], cx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], eax
mov word [esi + 0x38], cx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], eax
mov word [esi + 0x54], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x70], 0xe
push dword [esi + 0x70]
lea eax, [ebp - 0x218]
push str.SOFTWAREMicrosoftOffice_ld.0ExcelInstallRoot
push eax
call fcn.0042d39b
add esp, 0xc
push 1
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x258]
call fcn.00408c70
cmp dword [ebp - 0x258], 0
je 0x4258e2
and dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x234], ax
push edi
push str.Path
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 5
call fcn.00408b00
test eax, eax
je 0x4258d3
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4258d3
cmp dword [edi + 0x14], 8
jb 0x425864
mov eax, dword [edi]
jmp 0x425866
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x425886
push 0x453b18
call fcn.0042c331
pop ecx
push eax
push 0x453b18
mov ecx, edi
call fcn.0040d360
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x234]
call fcn.00409cf0
push str.excel.exe
call fcn.0042c331
pop ecx
push eax
push str.excel.exe
lea ecx, [ebp - 0x234]
call fcn.0040d360
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4258c7
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42590a
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.00409e50
cmp dword [ebp - 0x258], 0
mov byte [ebp - 4], 3
je 0x4258fb
push dword [ebp - 0x258]
call dword [ebp - 0x24c]
dec dword [esi + 0x70]
cmp dword [esi + 0x70], 8
jg 0x4257e3
jmp 0x425976
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.00409cf0
push dword [esi + 0x70]
lea eax, [ebp - 0x218]
push str.SOFTWAREMicrosoftOffice_ld.0_
push eax
call fcn.0042d39b
lea eax, [ebp - 0x218]
push eax
call fcn.0042c331
add esp, 0x10
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x54]
call fcn.00408e30
push edi
push 1
lea ecx, [ebp - 0x234]
call fcn.00409e50
mov byte [ebp - 4], 3
cmp dword [ebp - 0x258], edi
je 0x425976
push dword [ebp - 0x258]
call dword [ebp - 0x24c]
or dword [esi + 0x74], 0xffffffff
mov eax, esi
call fcn.0042bfa3
ret
Function at 0x425982
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x68
mov eax, 0x447f89
call fcn.0042bf20
mov edi, ecx
cmp dword [edi + 0x74], 0xffffffff
jne 0x425a7a
mov esi, str.SoftwareMicrosoftOfficeExcelAddInsLockXLSRuntime.Connect
push esi
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi + 0x74], ebx
call fcn.004256fa
pop ecx
pop ecx
test eax, eax
jne 0x425a7a
push esi
push SysReAllocString
call fcn.004256fa
pop ecx
pop ecx
cmp eax, ebx
je 0x4259d3
cmp eax, 2
jne 0x425a7a
push 1
mov esi, SysReAllocString
push esi
push str.LockXLSRuntime.Connect
lea ecx, [ebp - 0x74]
call fcn.00408c70
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x74], ebx
je 0x425a6b
push 1
push esi
push str.CLSID36CFCB02_788B_41D9_A9A6_FCBCEC7FF987InprocServer32
lea ecx, [ebp - 0x50]
call fcn.00408c70
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], ebx
je 0x425a52
lea eax, [ebp - 0x2c]
push eax
push 0x453b30
lea ecx, [ebp - 0x50]
call fcn.00408b00
test eax, eax
je 0x425a52
cmp dword [ebp - 0x1c], ebx
je 0x425a52
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x425a3f
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425a52
mov dword [edi + 0x74], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409e50
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], ebx
je 0x425a6b
push dword [ebp - 0x50]
call dword [ebp - 0x44]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x74], ebx
je 0x425a7a
push dword [ebp - 0x74]
call dword [ebp - 0x68]
xor eax, eax
cmp dword [edi + 0x74], 1
sete al
call fcn.0042bfa3
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x426a8d
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x426b48
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f210]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f210]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f210]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f210]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f210]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f210]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f210]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f210]
add edx, 8
sub edi, 8
dec esi
jne 0x426aab
pop ebx
test edi, edi
je 0x426b61
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x44f210]
inc edx
dec edi
jne 0x426b4c
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x426b67
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x44f210]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x44f210]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x42702e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x427062
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42705d
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x42708a
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x427073
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0042b4d0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x427eeb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427eeb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x427f95
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x427f07
cmp cx, 0x5c
jne 0x427f09
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x427efb
cmp eax, esi
je 0x427f49
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0042b4d0
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00427eb7
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x427f65
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042c37d
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042c34c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427f95
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bea8
leave
ret
Function at 0x429512
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4295bd
cmp dword [esi + 4], 0xffffffff
jne 0x4295bd
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0042c331
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x429564
cmp eax, 0x2f
je 0x429564
push 0x453b18
push edi
call fcn.0042c34c
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x429586
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x429586
mov eax, 0x2000000
jmp 0x4295c2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426e53
add esp, 0x10
test eax, eax
jne 0x4295a4
mov eax, dword [ebp + 0x10]
jmp 0x4295c2
push eax
call fcn.00428fe7
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x4295c2
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x429b73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push dword [ebp + 8]
mov ebx, ecx
call fcn.00429b09
test eax, eax
je 0x429c1b
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x429c13
push esi
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebx + 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x429c12
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x429c12
mov eax, dword [ebp + 0x18]
cmp esi, eax
jbe 0x429c12
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x429bdd
mov edi, esi
lea ecx, [eax + edi]
cmp ecx, esi
jbe 0x429be8
sub esi, eax
mov edi, esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.0040d960
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x429c0b
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0x18]
push edi
push ecx
push eax
call fcn.0042b4d0
add esp, 0xc
mov dword [ebp - 4], 1
pop esi
mov ecx, ebx
call fcn.00429ac7
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x18
Function at 0x42a29a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x44fa48]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x44fa48]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x42a347
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x42a3bc
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x42a373
cmp dword [esi + 0x40], edi
jae 0x42a373
push eax
call fcn.0042c6ad
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x42a388
lea eax, [edi + edi]
push eax
call fcn.0042b411
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.0042b4d0
add esp, 0xc
test edi, edi
je 0x42a3b9
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.0042a2e8
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x42a39b
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42a3eb
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42a3d7
mov dword [esi + 0x14], 0x30000
jmp 0x42a40d
push edi
push edx
add eax, ecx
push eax
call fcn.0042b4d0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x42a40f
mov eax, dword [esi + 4]
test eax, eax
je 0x42a406
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x42a40f
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42a5aa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
inc dword [0x45fad0]
push esi
push dword [0x45fad0]
mov esi, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x204]
push str._ld_ld
push eax
call fcn.0042d39b
add esp, 0x10
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x204]
push eax
push esi
call fcn.0042c34c
push 0x44fe4c
push esi
call fcn.0042c34c
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.0042bea8
leave
ret 4