joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fe750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, 0x56f9e8
mov dword [esp], eax
mov dword [esp + 4], 0x556710
mov dword [esp + 8], 0x5600d0
mov dword [esp + 0xc], 0x566d2c
mov dword [esp + 0x10], 0x566d28
mov dword [esp + 0x14], 0x554dd0
mov dword [esp + 0x18], 0x554c70
mov dword [esp + 0x1c], 0x566d24
mov dword [esp + 0x20], 0x55c884
mov dword [esp + 0x24], str.___:
mov dword [esp + 0x28], 0x56feac
mov dword [esp + 0x2c], 0x553b88
mov dword [esp + 0x30], 0x553d6c
mov dword [esp + 0x34], 0x566d20
mov dword [esp + 0x38], 0x554a7c
mov dword [esp + 0x3c], 0x56feb0
mov dword [esp + 0x40], 0x56febc
mov dword [esp + 0x44], str.0123456789
mov dword [esp + 0x48], 0x566a28
mov dword [esp + 0x4c], str.BDMS
mov dword [esp + 0x50], 0x566d10
mov dword [esp + 0x54], 0x566d0c
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x566d08
mov dword [esp + 0x64], 0x566d04
mov dword [esp + 0x68], 0x56fc54
mov dword [esp + 0x6c], 0x56fea8
mov dword [esp + 0x70], 0x566a2c
mov dword [esp + 0x74], 0x56446c
mov dword [esp + 0x78], 0x554dc8
mov dword [esp + 0x7c], 0x5644c0
mov dword [esp + 0x80], 0x5669f0
mov dword [esp + 0x84], 0x5669e8
mov dword [esp + 0x88], 0x5669e0
mov dword [esp + 0x8c], 0x566a24
mov dword [esp + 0x90], 0x56feb8
mov dword [esp + 0x94], 0x55473c
mov dword [esp + 0x98], 0x56fee8
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x56fee4
mov dword [esp + 0xc0], 0x566ab0
mov dword [esp + 0xc4], 0x566a98
mov dword [esp + 0xc8], 0x564ed0
mov dword [esp + 0xcc], str.ZYXWVUTRQPOLKJIHGFA
mov dword [esp + 0xd0], 0x566ad0
mov dword [esp + 0xd4], 0x566d00
mov dword [esp + 0xd8], 0x5669fc
mov dword [esp + 0xdc], 0x566ab4
mov dword [esp + 0xe0], 0x554dcc
mov dword [esp + 0xe4], 0x566cfc
mov dword [esp + 0xe8], 0x566ac0
mov dword [esp + 0xec], 0x566aac
cmp cl, 0x3c
jae 0x4fe96d
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret

Function at 0x512298
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x599274]
jne 0x5122a2
repz ret
jmp fcn.0051d23c
Function at 0x52f819
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0051c9ef
and dword [ebp - 4], 0
cmp dword [0x5a00a8], 0
mov ebx, eax
jne 0x52f8ca
push 0x56f028
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x52f97b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x56f01c
push edi
call esi
test eax, eax
je 0x52f97b
push eax
call fcn.0051c97d
mov dword [esp], 0x56f00c
push edi
mov dword [0x5a00a8], eax
call esi
push eax
call fcn.0051c97d
mov dword [esp], 0x56eff8
push edi
mov dword [0x5a00ac], eax
call esi
push eax
call fcn.0051c97d
mov dword [esp], 0x56efdc
push edi
mov dword [0x5a00b0], eax
call esi
push eax
call fcn.0051c97d
pop ecx
mov dword [0x5a00b8], eax
test eax, eax
je 0x52f8ca
push 0x56efc4
push edi
call esi
push eax
call fcn.0051c97d
pop ecx
mov dword [0x5a00b4], eax
mov eax, dword [0x5a00b4]
cmp eax, ebx
je 0x52f922
cmp dword [0x5a00b8], ebx
je 0x52f922
push eax
call fcn.0051c9f8
push dword [0x5a00b8]
mov esi, eax
call fcn.0051c9f8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x52f922
test edi, edi
je 0x52f922
call esi
test eax, eax
je 0x52f919
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x52f919
test byte [ebp - 0xc], 1
jne 0x52f922
or dword [ebp + 0x10], 0x200000
jmp 0x52f95b
mov eax, dword [0x5a00ac]
cmp eax, ebx
je 0x52f95b
push eax
call fcn.0051c9f8
pop ecx
test eax, eax
je 0x52f95b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x52f95b
mov eax, dword [0x5a00b0]
cmp eax, ebx
je 0x52f95b
push eax
call fcn.0051c9f8
pop ecx
test eax, eax
je 0x52f95b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a00a8]
call fcn.0051c9f8
pop ecx
test eax, eax
je 0x52f97b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x52f97d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x537fa0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x54c3f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x599274]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x537fe0
push esi
push esi
push esi
push 2
call fcn.00539420
xor al, al
jmp 0x538164
call fcn.00537230
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.005131f8
push esi
call fcn.00516110
push 0
push 0
push esi
mov edi, eax
call fcn.005131f8
add esp, 0x1c
test edi, edi
jg 0x538027
push 0
push 0
push 0
push 0xd
mov ecx, ebx
call fcn.00539420
xor al, al
jmp 0x538164
mov dword [esp + 0x14], 0x5a00d8
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00536f20
lea eax, [edi + 1]
push eax
call fcn.00511e01
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.0051567c
add esp, 0x14
cmp eax, 1
je 0x53809d
push ebp
call fcn.005103c7
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00539420
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x5a00d8
je 0x538096
push eax
call fcn.005103c7
add esp, 4
xor al, al
jmp 0x538164
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x53810c
jmp 0x5380b0
mov cl, byte [esi]
cmp cl, 0xa
jne 0x5380cc
mov ecx, esi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.005370b0
inc esi
mov eax, esi
jmp 0x538107
cmp cl, 0xd
jne 0x538106
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x5380e4
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.005370b0
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.005370b0
cmp byte [esi + 1], 0xa
jne 0x5380c7
add esi, 2
mov eax, esi
jmp 0x538107
inc esi
cmp byte [esi], 0
jne 0x5380b0
sub esi, eax
je 0x53811b
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.005370b0
push ebp
call fcn.005103c7
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x538086
cmp eax, 0x5a00d8
je 0x538162
push eax
call fcn.005103c7
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x53ab00
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x54c528
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x599274]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x90]
xor edi, edi
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x53ab52
xor eax, eax
jmp 0x53ac96
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call fcn.00463040
push edi
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
call fcn.004e52e0
mov eax, dword [eax]
add esp, 0xc
cmp eax, edi
je 0x53ab8f
cmp eax, 1
je 0x53ab8f
mov eax, 1
jmp 0x53ab91
xor eax, eax
test al, al
sete bl
cmp dword [ebp - 0x20], 8
mov byte [ebp - 4], 0
jb 0x53abac
mov eax, dword [ebp - 0x34]
push eax
call fcn.005103c7
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], edi
mov word [ebp - 0x34], cx
test bl, bl
jne 0x53ab4b
push 0x554d94
push esi
call fcn.00513bd0
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x53ac5d
push esi
push 1
lea edx, [ebp]
push 0x84
push edx
call fcn.0051567c
add esp, 0x10
cmp eax, 1
jne 0x53ac4a
mov eax, dword [ebp]
cmp eax, dword [ebp + 0x94]
jne 0x53ac37
push esi
call fcn.0053b3d0
mov ecx, dword [ebp + 0x14]
add ecx, 0x84
add esp, 4
cmp eax, ecx
jne 0x53ac24
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x53ac8a
mov dword [0x5a00e4], 8
mov dword [ebp - 4], 0xffffffff
jmp 0x53ac8a
mov dword [0x5a00e4], 6
mov dword [ebp - 4], 0xffffffff
jmp 0x53ac8a
mov dword [0x5a00e4], 2
mov dword [ebp - 4], 0xffffffff
jmp 0x53ac8a
mov dword [0x5a00e4], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x53ac8a
push esi
call fcn.00513339
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.00512298
add ebp, 0x88
mov esp, ebp
pop ebp
ret
Function at 0x53b080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c5b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x599274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
xor bl, bl
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ecx
cmp eax, ecx
je 0x53b133
mov edi, dword [ebp + 0xc]
cmp edi, ecx
je 0x53b133
push 0x554d94
push eax
call fcn.00513bd0
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x53b0f4
mov eax, dword [ebp + 0x10]
push esi
push 1
push eax
push edi
call fcn.0051567c
add esp, 0x10
cmp eax, 1
jne 0x53b0f4
mov bl, al
mov dword [ebp - 4], 0xffffffff
jmp 0x53b110
test esi, esi
je 0x53b11d
push esi
call fcn.00513339
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x53b150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c5d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x599274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
xor bl, bl
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x53b203
mov edi, dword [ebp + 0xc]
cmp edi, ecx
je 0x53b203
push 0x5545f8
push eax
mov dword [ebp - 4], ecx
call fcn.00513bd0
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x53b1c4
mov eax, dword [ebp + 0x10]
push esi
push 1
push eax
push edi
call fcn.0051307e
add esp, 0x10
cmp eax, 1
jne 0x53b1c4
mov bl, al
mov dword [ebp - 4], 0xffffffff
jmp 0x53b1e0
test esi, esi
je 0x53b1ed
push esi
call fcn.00513339
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53bab0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c770
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x599274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x53bb38
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi], eax
test eax, eax
je 0x53bb38
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
jne 0x53bb93
mov dword [ebp - 4], 0xffffffff
jmp 0x53bb51
mov eax, dword [esi + 4]
test eax, eax
je 0x53bb5f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi]
test eax, eax
je 0x53bb71
cmp eax, 0xffffffff
je 0x53bb71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi], 0
test eax, eax
je 0x53bb8a
cmp eax, 0xffffffff
je 0x53bb8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x53bc00
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x54c7a9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x599274]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x28], edi
mov byte [edi + 4], bl
mov ecx, 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x4c], bl
je 0x53bc6a
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
jb 0x53bc75
mov eax, dword [eax + 4]
jmp 0x53bc78
add eax, 4
lea esi, [esp + 0x18]
push esi
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53bd35
cmp dword [ebp + 0x18], 0x10
lea eax, [ebp + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
jb 0x53bca6
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53bd2a
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x53bd2a
cmp dword [esp + 0x20], 3
je 0x53bd2a
push eax
call fcn.00512667
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x53bd2a
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push esi
call fcn.00512510
add esp, 0xc
cmp dword [ebp + 0x18], 0x10
jb 0x53bcfd
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
jmp 0x53bd01
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53bd21
push esi
mov ecx, edi
call fcn.00405463
push esi
call fcn.0051258a
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x8ae420
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x6e6015
lea edi, [esi - 0x2e5015]
mov dword [edi + 0x4a4630], 0xfdc738a
push edi
or ebp, 0xffffffff
jmp 0x8ae44a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8ae451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ae440
mov eax, 1
add ebx, ebx
jne 0x8ae463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8ae474
jne 0x8ae493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ae493
dec eax
add ebx, ebx
jne 0x8ae480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8ae458
add ebx, ebx
jne 0x8ae48f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8ae4e5
xor ecx, ecx
sub eax, 3
jb 0x8ae4ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8ae51a
sar eax, 1
mov ebp, eax
jmp 0x8ae4b6
add ebx, ebx
jne 0x8ae4b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ae484
inc ecx
add ebx, ebx
jne 0x8ae4c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ae484
add ebx, ebx
jne 0x8ae4d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8ae4c6
jne 0x8ae4e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8ae4c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8ae504
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8ae4f6
jmp 0x8ae446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8ae504
add edi, ecx
jmp 0x8ae446
pop esi
mov edi, esi
mov ecx, 0x16649
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8ae522
cmp byte [edi], 0x91
jne 0x8ae522
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8ae527
lea edi, [esi + 0x4ab000]
mov eax, dword [edi]
or eax, eax
je 0x8ae596
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4ae000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4ae0f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8ae554
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4ae0fc]
or eax, eax
je 0x8ae590
mov dword [ebx], eax
add ebx, 4
jmp 0x8ae571
call dword [esi + 0x4ae0f8]
mov ebp, dword [esi + 0x4ae100]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x4ae5f1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8ae5e2
sub esp, 0xffffff80
jmp 0x4014a0
Function at 0x4070dc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40711e
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push GetPropW
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call GetParent
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40713e
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040a5e8
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x407334
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.004098c4
test esi, esi
jne 0x40736a
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.00409a4c
jmp 0x407388
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407278
mov edi, eax
test esi, esi
je 0x407388
cmp dword [ebx], 0
je 0x407388
dec esi
jmp FindWindowExW
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x776008], 0x8088405
inc edx
mov dword [ebx + 0x776008], edx
fld qword [ebx + 0x776790]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret
Function at 0x4084d8
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.00408964
mov byte [esp], al
cmp byte [esp], 0
jne 0x408661
test edi, edi
je FreeLibrary
mov byte [esp + 1], 0
test ebp, ebp
jle FormatMessageW
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40857c
cmp edi, 0xffffffff
je 0x40853d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40853d
mov byte [esp], 0
jmp FindFirstFileW
cmp dword [esi], 1
jg 0x40857c
cmp dword [esi], 0
jne 0x40856e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40856e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408661
lea eax, [esp + 0xc]
call fcn.004081b0
dec ebp
test ebp, ebp
jg 0x408522
cmp edi, 0xffffffff
je 0x4085a1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja EnterCriticalSection
mov byte [esp], 0
jmp 0x408661
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4084e6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4085a1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004086d0
mov edx, eax
mov ebx, dword [0x7b08fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408605
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408603
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408605
xor edi, edi
cmp byte [esp], 0
je 0x40862b
mov ebx, dword [esi]
test bl, 1
jne 0x408641
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne CreateEventW
mov byte [esp + 1], 1
jmp 0x408641
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40862b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je reloc.kernel32.dll_DeleteFileW
cmp byte [esp], 0
je 0x408661
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 0x40955c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7b005c], 0
je 0x4095c3
cmp word [0x7b0348], 0xd7b2
jne 0x409585
cmp dword [0x7b0350], 0
jbe 0x409585
mov eax, 0x7b0344
call dword [0x7b0360]
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, 0x4095f0
call fcn.0040a1d0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x776032], 0
jne 0x4095df
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret