joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403727
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00409365
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x403748
sub eax, 1
jne 0x40375b
push 2
jmp 0x40374a
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x24]
test eax, eax
jne 0x403762
xor eax, eax
jmp 0x4037ea
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4037e7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00409365
mov ecx, dword [edi + 8]
mov ebx, 0x43af60
push 1
push ebx
call fcn.0040923e
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.0040984f
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.0040952d
add esp, 0xc
mov ecx, edi
call fcn.00402cd7
push eax
push 0x6d64
push ebx
push dword [edi + 8]
call fcn.0040939e
add esp, 0x10
mov ecx, edi
call fcn.00402cd7
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.004095b3
pop esi
xor eax, eax
pop ebx
jmp 0x4037ea
xor eax, eax
inc eax
pop edi
pop ebp
ret 0xc

Function at 0x403ebe
Capabilities:
Delete file

Disassembly:
sub esp, 0x218
push ebp
push esi
mov edx, ecx
lea ecx, [esp + 0xc]
push edi
call fcn.0040612c
push edx
call fcn.00406658
cmp dword [esp + 0x21c], 0
lea ebp, [esp + 0x10]
push 0x8001
cmovne ebp, dword [esp + 0x220]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00403cae
test eax, eax
je 0x403f4d
push 1
mov esi, 0x43af60
xor ecx, ecx
push esi
call fcn.0040923e
push ebp
push 0x6ddb
push esi
push 0
call fcn.00409380
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.004095b3
mov ecx, dword [esp + 0x21c]
call fcn.004022db
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x218
ret
Function at 0x403f67
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
push 0x8001
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x403fe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403fe5
push ecx
mov edx, ebp
lea ecx, [esp + 0x14]
call fcn.00404553
pop ecx
test eax, eax
je 0x403fe1
mov edx, dword [esp + 0x10]
push ecx
and edx, 0xfffffffe
mov ecx, ebp
call fcn.0040463b
pop ecx
test eax, eax
je 0x403fe1
mov ecx, ebp
pop edi
pop esi
pop ebp
add esp, 8
jmp fcn.00403ebe
xor eax, eax
jmp 0x40401a
call fcn.00403cae
test eax, eax
je 0x404018
push 1
mov edi, 0x43af60
xor ecx, ecx
push edi
call fcn.0040923e
push ebp
push 0x6ddb
push edi
push 0
call fcn.00409380
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.004095b3
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, esi
push 0x3a
mov edi, dword [esi + 0x20c]
test edi, edi
pop ecx
cmovne eax, edi
cmp cx, word [eax + edx*2 - 2]
jne 0x40416d
cmp byte [esp + 0x24], 0
je 0x4041f0
jmp 0x4041ab
test edi, edi
mov ecx, esi
cmovne ecx, edi
dec edx
push ecx
call fcn.00407b30
pop ecx
mov ebx, eax
mov byte [esp + 0x13], 0
push 0x5c
pop ebp
test ebx, ebx
je 0x4041cd
test edi, edi
mov eax, esi
cmovne eax, edi
add eax, 2
cmp eax, ebx
jne 0x4041bf
test edi, edi
mov eax, esi
cmovne eax, edi
cmp word [eax], bp
jne 0x4041bf
cmp byte [esp + 0x24], 0
je 0x4041ba
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40424b
mov byte [esp + 0x13], 1
test edi, edi
mov eax, esi
cmovne eax, edi
xor ecx, ecx
cmp eax, ebx
cmove ebx, ecx
test edi, edi
mov eax, esi
cmovne eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4041e9
mov ecx, eax
call fcn.00404253
jmp 0x40424b
cmp byte [esp + 0x13], 0
je 0x4041f5
xor eax, eax
inc eax
jmp 0x40424b
test ebx, ebx
je 0x404222
xor eax, eax
mov ecx, esi
mov word [ebx], ax
mov edx, ebx
mov eax, dword [esi + 0x20c]
test eax, eax
push 0
cmovne ecx, eax
sub edx, ecx
mov ecx, esi
sar edx, 1
call fcn.00404140
pop ecx
test eax, eax
je 0x4041b3
mov word [ebx], bp
mov eax, dword [esi + 0x20c]
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x14], 0xc
cmovne esi, eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40426a
Capabilities:
Delete directory

Disassembly:
sub esp, 0x218
push ebp
push esi
mov edx, ecx
lea ecx, [esp + 0xc]
push edi
call fcn.0040612c
push edx
call fcn.00406658
cmp dword [esp + 0x21c], 0
lea ebp, [esp + 0x10]
push 0x8001
cmovne ebp, dword [esp + 0x220]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00403cae
test eax, eax
je 0x4042f9
push 1
mov esi, 0x43af60
xor ecx, ecx
push esi
call fcn.0040923e
push ebp
push 0x6ddf
push esi
push 0
call fcn.00409380
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.004095b3
mov ecx, dword [esp + 0x21c]
call fcn.004022db
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x40456f
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
lea ecx, [esp + 0x18]
call fcn.0040612c
push esi
call fcn.00406658
cmp dword [esp + 0x224], 0
lea ebp, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmovne ebp, dword [esp + 0x224]
push 0x8001
call ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], eax
call esi
mov ecx, dword [esp + 0x230]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00403cae
test eax, eax
je 0x404616
push 1
mov esi, 0x43af60
xor ecx, ecx
push esi
call fcn.0040923e
mov eax, dword [esp + 0x14]
push ebp
push dword [eax]
push 0x6de2
push esi
push 0
call fcn.00409380
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004095b3
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [esp + 0x224]
cmp dword [eax], 0xffffffff
setne bl
call fcn.004022db
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x21c
ret

Function at 0x40463b
Capabilities:
Set file attributes

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00403cae
test eax, eax
je 0x4046ae
push 1
mov esi, 0x43af60
xor ecx, ecx
push esi
call fcn.0040923e
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.00409380
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004095b3
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret
Function at 0x4046b8
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x468
mov eax, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], eax
push edi
xor edi, edi
mov esi, ecx
push 0x8001
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
call fcn.0040612c
push esi
call fcn.00406658
cmp dword [esp + 0x224], edi
lea esi, [esp + 0x18]
cmovne esi, dword [esp + 0x224]
call fcn.00409fee
test eax, eax
lea eax, [esp + 0x228]
je 0x404723
push edi
push edi
push edi
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40472b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
push dword [esp + 0x10]
mov esi, eax
call dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx], 0xffffffff
jne 0x40477d
call ebp
cmp eax, 2
je 0x404754
call ebp
call fcn.00403cae
test eax, eax
je 0x4047a9
push 1
mov esi, 0x43af60
xor ecx, ecx
push esi
call fcn.0040923e
push 0x6de7
push esi
push edi
call fcn.00409380
add esp, 0xc
jmp 0x4047a9
mov edx, ebx
lea ecx, [esp + 0x228]
call fcn.004048f3
mov ecx, ebx
test eax, eax
jne 0x40479a
call fcn.004047c2
mov edi, eax
jmp 0x4047a9
lea edx, [esp + 0x228]
call fcn.00404e5c
xor edi, edi
inc edi
mov ecx, dword [esp + 0x224]
call fcn.004022db
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret

Function at 0x40494e
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x4049b1
call fcn.00403cae
test eax, eax
je 0x4049b9
push 1
mov esi, 0x43af60
xor ecx, ecx
push esi
call fcn.0040923e
push 0x6de5
push esi
push ebp
call fcn.00409380
add esp, 0xc
jmp 0x4049b9
cmp ebp, 0x104
jbe 0x4049bd
xor eax, eax
jmp 0x4049c0
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4049c4
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x105
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x404a27
call fcn.00403cae
test eax, eax
je 0x404a2f
push 1
mov esi, 0x43af60
xor ecx, ecx
push esi
call fcn.0040923e
push 0x6e93
push esi
push ebp
call fcn.00409380
add esp, 0xc
jmp 0x404a2f
cmp ebp, 0x104
jbe 0x404a33
xor eax, eax
jmp 0x404a36
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x404a3a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0
push dword [ebp + 8]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test edi, edi
setne bl
call fcn.00403cae
test eax, eax
je 0x404aaf
push 1
mov esi, 0x43af60
xor ecx, ecx
push esi
call fcn.0040923e
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.00409380
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x404f5c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.00405192
test eax, eax
je 0x405017
movzx eax, word [esi]
push eax
call fcn.0041eba3
pop ecx
mov word [ebp - 8], ax
lea ecx, [ebp - 8]
push 0x3a
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
call fcn.00404eae
cmp eax, 3
je 0x405017
cmp eax, 2
je 0x405017
mov ebx, 0x104
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x405013
push 0x1a
lea eax, [ebp - 0x214]
push str.DeviceLanmanRedirector_
push eax
call fcn.0041e761
add esp, 0xc
test eax, eax
jne 0x405013
lea edx, [ebp - 0x1e0]
lea ecx, [ebp - 0x420]
call fcn.00404f1e
test eax, eax
je 0x405013
lea eax, [ebp - 0x420]
mov edx, ebx
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00407a02
pop ecx
lea eax, [esi + 4]
mov ecx, edi
push eax
call fcn.00407a5b
jmp 0x405026
xor eax, eax
jmp 0x40502b
push 0xffffffffffffffff
push esi
mov edx, 0x104
mov ecx, edi
call fcn.00407a02
xor eax, eax
pop ecx
inc eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405030
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x18
push ebx
push edi
mov edi, dword [esp + 0x24]
mov ebx, ecx
mov ecx, edi
call fcn.00405192
test eax, eax
jne 0x40504d
mov eax, 0x4b0
jmp 0x4050ca
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 1
push 1
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x4050ca
push ebp
push esi
mov ebp, 0x640
push ebp
call fcn.0041cfdb
mov esi, eax
pop ecx
test esi, esi
je 0x4050c5
movzx ecx, word [edi]
push ecx
call fcn.0041eba3
movzx eax, ax
pop ecx
mov dword [esp + 0x20], eax
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ebp
push eax
push dword [esp + 0x28]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
mov dword [esp + 0x24], eax
cmp eax, 0xea
jne 0x4050d0
mov ebp, dword [esp + 0x14]
push ebp
push esi
call fcn.0041ebb6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x405089
push 8
pop eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x18
ret
test eax, eax
jne 0x405153
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x405089
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], ecx
mov edx, dword [ecx]
test edx, edx
je 0x405104
movzx eax, word [edx]
push eax
call fcn.0041eba3
pop ecx
cmp word [esp + 0x20], ax
je 0x405115
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc edi
add ecx, 0x20
mov dword [esp + 0x18], ecx
cmp edi, eax
jl 0x4050e5
jmp 0x405089
shl edi, 5
mov edx, 0x104
push 0xffffffffffffffff
mov ecx, ebx
push dword [edi + esi + 0x14]
call fcn.00407a02
mov edi, dword [esp + 0x34]
add edi, 4
pop ecx
pop ecx
cmp word [edi], 0x5c
je 0x405148
push ecx
push 0x43b10c
mov ecx, ebx
call fcn.00407a5b
pop ecx
pop ecx
push ecx
push edi
mov ecx, ebx
call fcn.00407a5b
pop ecx
pop ecx
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
push esi
call fcn.0041cfd6
mov eax, dword [esp + 0x28]
pop ecx
jmp 0x4050c8

Function at 0x406be6
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx], vtable.CMD5.1.0
mov dword [ecx + 8], vtable.CMD5.0
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov eax, ecx
mov dword [ecx + 0x10], 0x67452301
mov dword [ecx + 0x14], 0xefcdab89
mov dword [ecx + 0x18], 0x98badcfe
mov dword [ecx + 0x1c], 0x10325476
ret
Function at 0x408a0a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ebx, word [esi + 2]
movzx eax, word [edi + 2]
cmp bx, ax
jae 0x408a29
or eax, 0xffffffff
jmp 0x408b05
jbe 0x408a33
xor eax, eax
inc eax
jmp 0x408b05
movzx edx, word [edi + 4]
push ebp
movzx ebp, word [esi + 6]
cmp edx, 6
ja 0x408abe
movzx eax, word [esi + 4]
mov ecx, ebp
sub ecx, eax
lea eax, [edx + 6]
add eax, ecx
cdq
push 7
pop ecx
idiv ecx
movzx eax, word [edi + 6]
imul eax, eax, 7
inc edx
movzx ecx, dx
add eax, ecx
mov dword [esp + 0x18], eax
add eax, 0xfffffff9
mov dword [esp + 0x14], eax
cmp ebx, 2
jne 0x408a9f
movzx ecx, word [esi]
test cl, 3
jne 0x408a9f
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x408a9a
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x408a9f
push 0xc
pop ecx
jmp 0x408aa1
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x43671c]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x408ac2
movzx edx, word [edi + 6]
movzx ecx, word [edi + 8]
imul eax, edx, 0x18
add ecx, eax
movzx eax, word [edi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, bp
imul edx, ecx, 0x3c
imul ecx, eax, 0x18
movzx eax, word [esi + 8]
pop ebp
add ecx, eax
movzx eax, word [esi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, word [esi + 0xc]
imul ecx, ecx, 0x3c
add ecx, eax
xor eax, eax
cmp ecx, edx
setg al
or esi, 0xffffffff
cmp ecx, edx
cmovl eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x409ff6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
mov eax, 0x43b798
push esi
xor esi, esi
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 0x30], esi
mov dword [ebp - 0x38], 0x440
cmove eax, esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], edx
movups xmmword [ebp - 0x1c], xmm0
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
je 0x40a060
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret
Function at 0x40a062
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x60]
mov esi, ecx
push 0
push eax
mov ebx, edx
mov dword [ebp - 4], esi
call fcn.00417fd0
mov dword [ebp - 0x60], edi
lea eax, [ebp - 0x18]
push 0x10
xor edi, edi
push 0
inc edi
push eax
mov word [ebp - 0x30], di
call fcn.00417fd0
and dword [ebp - 0x18], 0
add esp, 0x18
call fcn.00409fe7
test eax, eax
je 0x40a0ce
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
mov edx, ebx
push dword [ebp + 0x10]
push ecx
push eax
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
push dword [ebp + 8]
sub esp, 0x14
call fcn.00409ff6
add esp, 0x2c
jmp 0x40a173
push esi
call fcn.0041ae79
push ebx
mov esi, eax
call fcn.0041ae79
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 4]
call fcn.0042c610
mov esi, esp
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call fcn.0041aed7
push 0x43b620
push esi
call fcn.0041df08
push ebx
push esi
call fcn.0041df08
mov esi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
test esi, esi
je 0x40a127
cmp word [esi], bx
je 0x40a127
push esi
call fcn.0041ae79
pop ecx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0042c610
mov edi, esp
test esi, esi
je 0x40a140
push esi
push edi
call fcn.0041aed7
pop ecx
pop ecx
jmp 0x40a145
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
xor eax, eax
test esi, esi
cmovne eax, edi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0
je 0x40a173
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ab44
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.0042c880
push esi
push edi
push 0xc
mov edi, ecx
call fcn.0041730e
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push dword [edi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push str.R_03d
push eax
call fcn.0040ac35
add esp, 0x10
lea ecx, [edi + 0x24]
call fcn.0040848a
push eax
push 0x1000
lea eax, [ebp - 0x2008]
mov esi, 0x43b7e0
push eax
push esi
lea ecx, [ebp - 8]
call fcn.0040848a
push eax
lea ecx, [edi + 0x20]
call fcn.0040848a
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2008]
push esi
push eax
call fcn.0041d05e
mov esi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x40abd9
mov eax, dword [ebp - 4]
mov edx, esi
push ecx
add eax, 8
push eax
call fcn.0040179e
pop ecx
pop ecx
jmp 0x40ac01
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x2008]
push eax
add ecx, 8
call fcn.0040860b
push ecx
mov ecx, dword [ebp - 4]
mov edx, 0x43b7e8
push 0x43b6ac
lea ecx, [ecx + 8]
call fcn.00408876
mov eax, dword [ebp - 4]
push esi
add eax, 4
push 0x43b7ec
push eax
call fcn.00408980
mov eax, dword [ebp - 4]
lea ecx, [edi + 4]
add esp, 0xc
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
call fcn.00408375
lea ecx, [ebp - 8]
call fcn.00408471
pop edi
pop esi
leave
ret 4
Function at 0x41017c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push dword [esi + 0x478]
call fcn.0041025a
mov dword [esi + 0x478], eax
movzx eax, al
add eax, dword [esi + 0x47c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x47c], eax
shr eax, 0x18
push eax
push dword [esi + 0x480]
call fcn.0041025a
mov dword [esi + 0x480], eax
pop esi
ret 4

Function at 0x410e38
Capabilities:
Hash data using djb2

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, 0x436500
push edi
cmp dword [eax], 0
mov edi, 0x1505
cmovne esi, dword [eax]
movzx eax, word [esi]
test ax, ax
je 0x410e72
push eax
call fcn.0041eba3
imul edi, edi, 0x21
lea esi, [esi + 2]
pop ecx
movzx ecx, ax
add edi, ecx
movzx ecx, word [esi]
mov eax, ecx
test cx, cx
jne 0x410e56
mov eax, edi
pop edi
pop esi
ret 4