joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a70
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412cbd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
xor eax, eax
mov dword [ebp - 0x2c], 0
push 0x418d24
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00401e80
mov dword [ebp - 4], 0
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x401aee
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp - 0x8c], esi
cmp ecx, eax
ja 0x401b33
cmp dword [ebp - 0x18], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [ebp - 0x1c], edi
push eax
mov eax, dword [ebp - 0x8c]
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00404c80
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x401b4b
push ecx
push edx
mov byte [ebp - 0x8c], 0
push dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402160
push str.MDCLauncher.exe_
lea ecx, [ebp - 0x2c]
call fcn.00401c30
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x44
push ecx
push 0
push 0
push 8
push 0
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push eax
push 0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x88], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401bd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d_._n
call fcn.004010f0
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x401c0a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401c00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c28
push edx
push ecx
call fcn.004023e3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004023d5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00406951
int3
Function at 0x10001054
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x1000305c], 0
push esi
push edi
jne 0x1000106e
xor eax, eax
xor edx, edx
jmp 0x100011a8
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
xor esi, esi
test ecx, ecx
jle 0x1000108f
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x10001095
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
test ecx, ecx
jle 0x100010ae
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x100010b4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
test ecx, ecx
jle 0x100010cd
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x100010d3
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
test ecx, ecx
jle 0x100010ec
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x100010f2
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov eax, edx
mov dword [ebp - 0x30], esi
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x10001129
add dword [esp], 5
retf
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100011ae
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
push esi
push edi
test ecx, ecx
je 0x1000121f
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x100011ce
test eax, eax
je 0x1000121f
test edx, edx
je 0x1000121f
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call fcn.100011df
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001225
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, str.LdrGetProcedureAddress
mov dword [ebp - 0xc], 0x17
xor eax, eax
mov dword [ebp - 8], ecx
push esi
push edi
cmp eax, ecx
je 0x100012b0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x10001250
test eax, eax
je 0x100012b0
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
push 0x33
call fcn.10001261
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100012b8
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5b8
cmp dword [0x1000305c], 0
push ebx
push esi
push edi
je 0x1000143d
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push 0x33
call 0x100012e0
add dword [esp], 5
retf
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x243867d1
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x26cd0d9e
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x6aa21b
Capabilities:
Parse pe header

Disassembly:
mov eax, esi
pop esi
pop ebp
ret
je 0x416fa6
jmp 0x5005cb
add esi, 0x1000
jmp 0x64a663
call fcn.00416ba0
jmp 0x6b2c60
cmp word [esi], 0x5a4d
jmp 0x62dfcb
test eax, eax
jmp 0x62dfc0
push dword [eax + 0x3c]
mov eax, dword [esp]
push edi
push esp
pop edi
add edi, 4
add edi, 4
xchg dword [esp], edi
mov esp, dword [esp]
jmp 0x6aa1d0
push dword [0x4b5bcc]
push dword [esp]
pop eax
push ecx
mov ecx, esp
push eax
mov eax, 4
add ecx, eax
pop eax
add ecx, 4
xchg dword [esp], ecx
pop esp
jmp 0x53c908
sub esp, 4
mov dword [esp], edi
mov dword [esp], eax
mov dword [esp], edx
mov dword [esp], ebx
sub esp, 4
mov dword [esp], ecx
mov ebx, dword [esp]
push eax
push esp
pop eax
add eax, 4
add eax, 4
xchg dword [esp], eax
pop esp
mov ebx, dword [esp]
push esi
mov esi, esp
add esi, 4
push ebp
mov ebp, 0x75aff763
shr ebp, 8
or ebp, 0x3fefb151
xor ebp, 0x3fffbff3
add esi, ebp
pop ebp
xor esi, dword [esp]
xor dword [esp], esi
xor esi, dword [esp]
mov esp, dword [esp]
push 0x7b42f172
mov dword [esp], edx
mov dword [esp], edi
mov dword [esp], edx
mov dword [esp], esi
pop dword [0x4b5bcc]
push 0x16034a0c
mov dword [esp], edi
mov dword [esp], 0x6ed0a379
mov dword [esp], esi
mov dword [esp], 0x223829ca
mov dword [esp], eax
push eax
mov eax, esp
add eax, 4
sub eax, 4
xchg dword [esp], eax
mov esp, dword [esp]
mov dword [esp], ebx
mov eax, dword [esp]
add esp, 4
mov eax, dword [esp]
push edi
mov dword [esp], esi
mov esi, esp
push eax
mov eax, 4
add esi, 0x6d9b1f90
add esi, eax
sub esi, 0x6d9b1f90
pop eax
add esi, 4
xchg dword [esp], esi
pop esp
jmp 0x50f801
je 0x5005cb
jmp 0x50f80b
jne 0x5005cb
jmp 0x573fa7
cmp esi, 0x7d000000
jmp 0x64a66e
jb 0x7298a6
jmp loc.00416f8f
push eax
mov eax, esp
push esi
mov esi, 0x1692571a
add esi, 0xe96da8ea
add eax, esi
mov esi, dword [esp]
add esp, 4
sub eax, 4
xchg dword [esp], eax
mov esp, dword [esp]
mov dword [esp], ebx
sub esp, 4
mov dword [esp], ecx
mov ebx, dword [esp]
push eax
mov eax, esp
add eax, 4
add eax, 4
xchg dword [esp], eax
mov esp, dword [esp]
push dword [esp]
pop ebx
push ebp
mov ebp, esp
push edi
mov edi, 0x3bdf1b0f
sub edi, 0x33dbab7a
shr edi, 4
inc edi
xor edi, 0x8036fe
add ebp, edi
pop edi
add ebp, 4
xor ebp, dword [esp]
xor dword [esp], ebp
xor ebp, dword [esp]
pop esp
push edi
mov dword [esp], 0x58c98162
mov dword [esp], edx
mov edx, 0x637be2dd
add eax, 0x6dbbb7d0
add eax, edx
sub eax, 0x6dbbb7d0
pop edx
add eax, esi
sub eax, 0x637be2dd
jmp 0x6de8a3
add esp, 4
jmp 0x535ea0
mov dword [0x4b5e68], eax
jmp 0x6de8ad
cmp word [eax], 0x4550
jmp 0x5005c0
push ebp
push esi
mov esi, 0x32a3f50
mov dword [esp + 4], esi
push dword [esp]
pop esi
add esp, 4
mov dword [esp], esi
push ebx
mov ebx, esp
add ebx, 4
sub ebx, 4
xchg dword [esp], ebx
mov esp, dword [esp]
mov dword [esp], ebx
mov dword [esp], eax
mov dword [esp], edx
push ebx
mov ebx, esp
add ebx, 4
sub ebx, 4
xchg dword [esp], ebx
pop esp
mov dword [esp], ecx
mov edx, dword [esp]
push ecx
mov ecx, esp
add ecx, 4
add ecx, 4
xchg dword [esp], ecx
pop esp
push dword [esp]
pop edx
push ecx
push esp
pop ecx
add ecx, 4
add ecx, 4
xor ecx, dword [esp]
xor dword [esp], ecx
xor ecx, dword [esp]
pop esp
jmp 0x5b6088
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x1aa4104e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x47836d40
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40118d
Capabilities:
Get hostname

Disassembly:
push 0x254
push 0x418598
call fcn.0040ec0c
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call section.drws0
pop ecx
pop ecx
test eax, eax
jne 0x4011d5
push edi
push edi
push edi
push 0x145
call fcn.00401308
add esp, 0x10
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x401302
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00406485
pop ecx
pop ecx
mov ebx, eax
cmp ebx, edi
je 0x4012ca
lea eax, [ebp - 0x24]
push eax
call fcn.004010f1
pop ecx
cmp dword [ebp - 0x24], edi
je 0x4012b1
cmp dword [ebx], 1
je 0x40120b
mov eax, 0x80000
jmp 0x401216
mov esi, dword [ebx + 4]
push dword [ebp - 0x24]
call fcn.00405b85
mov dword [0x41bb94], eax
cmp eax, edi
jne 0x4012a7
push 0xffffffffffffffff
lea ecx, [ebp - 0x264]
mov eax, ebx
call fcn.00406545
pop ecx
mov esi, dword [ebp - 0x264]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x20], esi
jge 0x401288
push dword [ebp - 0x20]
lea ecx, [ebp - 0x264]
mov eax, ebx
call fcn.00406545
pop ecx
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x20]
mov eax, ebx
call fcn.00406584
pop ecx
pop ecx
test eax, eax
je 0x401283
mov dword [ebp - 0x28], edi
push edi
push edi
push edi
push 0x141
call fcn.00401308
add esp, 0x10
inc dword [ebp - 0x20]
jmp 0x401243
cmp dword [ebp - 0x28], edi
je 0x401297
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4012c1
mov eax, dword [ebp + 8]
mov dword [eax], edi
push dword [ebp - 0x24]
call fcn.00407b85
pop ecx
jmp 0x4012c1
push edi
push edi
push edi
jmp 0x440530
push edi
push edi
push edi
push 0x143
call fcn.00401308
add esp, 0x10
mov esi, ebx
call fcn.004065b4
jmp 0x4012da
push edi
push edi
push edi
push 0x142
call fcn.00401308
add esp, 0x10
push dword [ebp - 0x2c]
call fcn.00407b85
pop ecx
jmp 0x4012fb
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
call fcn.0040ec47
ret

Function at 0x4013a2
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push 8
push 0x418278
call fcn.0040ec0c
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00408687
push eax
push 1
push esi
call dword [sym.imp.kernel32.dll_CreateMutexW]
cmp eax, esi
je 0x4013e1
push 0xa
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x4013e1
push esi
call dword [sym.imp.kernel32.dll_ExitProcess]
or dword [ebp - 4], 0xffffffff
jmp loc.0043dd58
Function at 0x40142a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push esi
push edi
push 9
pop ecx
xor eax, eax
xor esi, esi
mov edi, 0x41be40
mov dword [0x41be1c], esi
rep stosd dword es:[edi], eax
call fcn.00407815
call fcn.004013a2
call fcn.00401f02
test eax, eax
je 0x40149b
call fcn.00401939
call fcn.00407e71
call fcn.004083d4
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
mov edi, dword [sym.imp.kernel32.dll_CreateThread]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push 0x401d94
push esi
push esi
call edi
lea eax, [esp + 0xc]
push eax
push esi
push esi
push 0x4013eb
push esi
push esi
call edi
call fcn.004071bf
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40197f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x24
push 0x418338
call fcn.0040ec0c
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call fcn.00401939
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [0x41bec2]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x4019c7
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x401aa8
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, ebx
je 0x4019bc
cmp dword [ebp + 0x14], ebx
je 0x401a0a
push 0x1c
push pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
call fcn.00407d1d
push 0x1000
push 0x200
mov eax, esi
push eax
call dword [eax + 0x18]
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, edi
cmp eax, ebx
je 0x401a1e
push eax
call fcn.00407b66
pop ecx
mov esi, eax
jmp 0x401a20
xor esi, esi
push ebx
lea eax, [ebp - 0x30]
push eax
push edi
push esi
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4019bc
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp + 0x14], ebx
je 0x401a78
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], eax
jae 0x401a6a
push 0xff
push ebx
mov eax, dword [ebp - 0x24]
push eax
call dword [eax + 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, edi
mov byte [ecx + esi], al
inc dword [ebp - 0x1c]
jmp 0x401a45
add edi, eax
mov dword [ebp - 0x34], edi
push dword [ebp - 0x24]
call fcn.00407b73
pop ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0x2c], 1
jmp 0x401aa1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
call fcn.0040ec47
ret
Function at 0x401f02
Capabilities:
Get geographical location

Disassembly:
push 0x20
push 0x418268
call fcn.0040ec0c
mov dword [ebp - 0x24], 1
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x2c], 0x17c
mov dword [ebp - 0x28], 0x177
mov dword [ebp - 4], esi
mov eax, dword [0x41bb90]
cmp eax, esi
jne 0x401f59
push 4
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push 0x400
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov eax, dword [ebp - 0x20]
mov dword [0x41bb90], eax
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], 3
jae 0x401f8b
mov ecx, dword [ebp - 0x1c]
jmp 0x43a1f8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
call fcn.0040ec47
ret

Function at 0x4028ad
Capabilities:
Create thread

Disassembly:
push 0x10
push 0x418588
call fcn.0040ec0c
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 5]
cmp eax, ebx
je 0x4028d2
push eax
call fcn.00407b66
jmp loc.004397d0
xor esi, esi
mov dword [esi], edi
mov al, byte [ebp + 0xc]
mov byte [esi + 4], al
lea eax, [esi + 5]
push edi
push dword [ebp + 8]
push eax
call fcn.00409fb0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push 0x40266c
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
jmp 0x402917
or dword [ebp - 4], 0xffffffff
call fcn.0040ec47
ret

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x40474d
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4047ff
jmp loc.00440aa8
test edi, edi
je 0x404818
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x416950]
inc ecx
dec edi
jne 0x404803
pop esi
not eax
pop edi
ret

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

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x416950]
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
jmp 0x4428bd

Function at 0x404e92
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x404ec2
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 0x404ebd
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x404eea
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
jmp 0x43aa90
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x405adb
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x405b7a
cmp dword [esi + 4], 0xffffffff
jne 0x405b7a
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x405b09
sub eax, ecx
sar eax, 1
lea eax, [esi + eax*2 + 0x242]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x405b3a
cmp cx, 0x2f
je 0x405b3a
push 0x2f
pop ecx
mov word [eax + 2], cx
xor ecx, ecx
mov word [eax + 4], cx
push 0x20
push pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], bl
mov byte [eax + 1], 1
mov byte [eax + 0x10], bl
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.00405107
mov dword [esi], eax
jmp loc.00441340
mov eax, 0x1000000
pop edi
pop ebx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
cmp dword [ebp + 8], 0
push ebx
push edi
mov ebx, 0x104
je 0x4060ca
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x410]
push eax
call fcn.00408a75
lea eax, [ebp - 0x410]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40607e
sub eax, edx
sar eax, 1
je 0x4060a9
lea eax, [ebp + eax*2 - 0x412]
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x4060a4
cmp cx, 0x5c
jne 0x4060a9
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4060ca
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov edi, dword [ebp + 0xc]
movzx ecx, word [edi]
test cx, cx
je 0x4061a9
mov eax, edi
mov edx, edi
movzx ecx, cx
cmp cx, 0x2f
je 0x4060ec
jmp 0x440850
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4060e0
cmp eax, edi
je 0x406130
sub eax, edi
sar eax, 1
push esi
add eax, eax
mov esi, eax
push esi
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.00409fb0
xor eax, eax
mov word [ebp + esi - 0x410], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call fcn.0040604c
add esp, 0x14
pop esi
xor eax, eax
mov word [ebp - 0x208], ax
cmp dword [ebp + 8], eax
je 0x406151
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00408a75
add esp, 0xc
xor eax, eax
mov word [ebp - 2], ax
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406160
sub eax, edx
sar eax, 1
sub ebx, eax
push ebx
lea eax, [ebp + eax*2 - 0x208]
push edi
push eax
call fcn.00408a75
xor eax, eax
mov word [ebp - 2], ax
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4061a9
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
pop edi
pop ebx
leave
ret