joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fdef0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x60
test eax, eax
jne 0x4fdf01
mov esp, ebp
pop ebp
ret
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00408718
push 2
push 0
push 0x596e30
lea ecx, [ebp - 0x18]
call fcn.0043b13f
cmp eax, 0xffffffff
jne 0x4fdf41
push 2
push 0
push 0x56ee10
lea ecx, [ebp - 0x18]
call fcn.0043b13f
cmp eax, 0xffffffff
jne 0x4fdf41
cmp dword [ebp - 8], 3
ja 0x4fe078
cmp dword [ebp + 0xc], 0
je 0x4fdfac
xor eax, eax
mov dword [ebp - 0x34], 7
push 2
push eax
mov word [ebp - 0x48], ax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], 0
push eax
call fcn.0040757d
cmp dword [ebp - 4], 8
jb 0x4fdf7b
push dword [ebp - 0x18]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x48]
mov dword [ebp - 8], 0
push eax
call fcn.004408e4
cmp dword [ebp - 0x34], 8
jb 0x4fdfac
push dword [ebp - 0x48]
call fcn.00412887
add esp, 4
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4fe078
xor eax, eax
mov dword [ebp - 0x1c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push eax
call fcn.0040757d
push str.tmp_123abc456def789hij.tmp
lea ecx, [ebp - 0x60]
call fcn.00408718
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0043eb25
add esp, 8
cmp dword [ebp - 0x4c], 8
jb 0x4fe018
push dword [ebp - 0x60]
call fcn.00412887
add esp, 4
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4fe045
xor esi, esi
jmp 0x4fe065
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.0052a948
add esp, 4
mov esi, 1
cmp dword [ebp - 0x1c], 8
jb 0x4fe07a
push dword [ebp - 0x30]
call fcn.00412887
add esp, 4
jmp 0x4fe07a
xor esi, esi
cmp dword [ebp - 4], 8
jb 0x4fe08b
push dword [ebp - 0x18]
call fcn.00412887
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4feb50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push esi
mov esi, ecx
mov dword [ebp - 0x20], 0
xor eax, eax
cmp dword [esi + 4], eax
je 0x4fed1d
push 0x13e
push eax
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 0x1a6]
push eax
call fcn.005278d0
add esp, 0xc
lea eax, [ebp - 0x1a8]
push 0xa0
push eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x64]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x1a8]
mov ecx, esi
push eax
call fcn.004feed0
test eax, eax
je 0x4fed07
lea ecx, [ebp - 0x1a8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4febc4
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jb 0x4fed07
cmp word [ebp - 0x1a6], 0x3a
jne 0x4fed07
lea eax, [ebp - 0x1a8]
push 1
push eax
call fcn.004fdef0
add esp, 8
test eax, eax
je 0x4fed07
push ebx
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00408718
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
mov ecx, esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004fd730
push 0x581774
lea ecx, [ebp - 0x68]
call fcn.00408718
lea eax, [ebp - 0x68]
mov ebx, 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004feae0
add esp, 8
cmp eax, dword [0x5b32c4]
jg 0x4fec8e
push 0x58dd44
lea ecx, [ebp - 0x38]
call fcn.00408718
lea eax, [ebp - 0x38]
mov ebx, 3
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004feae0
add esp, 8
mov byte [ebp - 1], 0
cmp eax, dword [0x5b32c4]
jle 0x4fec92
mov byte [ebp - 1], 1
test bl, 2
je 0x4feca2
lea ecx, [ebp - 0x38]
and ebx, 0xfffffffd
call fcn.0040327c
test bl, 1
pop ebx
je 0x4fecb0
lea ecx, [ebp - 0x68]
call fcn.0040327c
cmp byte [ebp - 1], 0
je 0x4fecce
mov ecx, dword [esi + 4]
add ecx, 0x24
mov eax, dword [ecx]
call dword [eax + 8]
push eax
call fcn.00452844
add esp, 4
xor esi, esi
jmp 0x4fecf0
lea eax, [ebp - 0x1c]
push eax
call fcn.004b7f70
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.00449e87
add esp, 8
mov esi, 1
lea ecx, [ebp - 0x1c]
call fcn.0040327c
lea ecx, [ebp - 0x50]
call fcn.0040327c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
add ecx, 0x24
mov eax, dword [ecx]
call dword [eax + 8]
push eax
call fcn.004525fe
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x502c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa78
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x502c37
mov eax, dword [esi]
jmp 0x502c39
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x502c49
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x56f034
push 1
push 0
push 0x572eec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp + 8]
js 0x502e37
test eax, eax
je 0x502e37
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
push edx
push 0x58cd90
push eax
call dword [ecx]
test eax, eax
jns 0x502c9e
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x502e26
mov eax, dword [ebp - 4]
test eax, eax
je 0x502e26
cmp dword [esi + 0x14], 8
jb 0x502cb1
mov esi, dword [esi]
mov ecx, dword [eax]
push 2
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x502e23
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.005278d0
push 0x24c
lea eax, [ebp - 0xa74]
mov dword [ebp - 0xa78], 0
push 0
push eax
call fcn.005278d0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xa78]
add esp, 0x18
mov ecx, dword [eax]
push 6
push edx
push 0x104
lea edx, [ebp - 0x828]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x502e23
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.005278d0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x210]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x502e23
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.005278d0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x418]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x502e23
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call fcn.005278d0
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
add esp, 0xc
mov dword [ebp - 8], 0
mov ecx, dword [eax]
push edx
push 0x104
lea edx, [ebp - 0x620]
push edx
push eax
call dword [ecx + 0x40]
test eax, eax
js 0x502e23
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x828]
push eax
mov ecx, esi
call fcn.00410011
lea eax, [ebp - 0x210]
push eax
lea ecx, [esi + 0x18]
call fcn.00410011
lea eax, [ebp - 0x418]
push eax
lea ecx, [esi + 0x30]
call fcn.00410011
lea eax, [ebp - 0x620]
push eax
lea ecx, [esi + 0x48]
call fcn.00410011
mov eax, dword [ebp - 4]
mov esi, 1
jmp 0x502e28
mov eax, dword [ebp - 4]
xor esi, esi
test eax, eax
je 0x502e32
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
jmp 0x502e39
xor esi, esi
test eax, eax
je 0x502e43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x503270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.00502ac0
cmp dword [ebp - 8], 0
je 0x5032a3
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5032a3
mov esi, 1
jmp 0x5032a5
xor esi, esi
cmp dword [ebp - 4], 8
jb 0x5032b6
push dword [ebp - 0x18]
call fcn.00412887
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5032c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x18]
push edi
push eax
lea ecx, [esi + 0x24]
call fcn.00502ac0
cmp dword [ebp - 8], 0
je 0x5032fa
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5032fa
mov edi, 1
jmp 0x5032fc
xor edi, edi
cmp dword [ebp - 4], 8
jb 0x50330d
push dword [ebp - 0x18]
call fcn.00412887
add esp, 4
test edi, edi
jne 0x503372
lea eax, [ebp - 0x18]
mov dword [esi + 4], 3
push eax
lea ecx, [esi + 0x24]
call fcn.00502ac0
mov edi, eax
add esi, 8
cmp esi, edi
je 0x503358
cmp dword [esi + 0x14], 8
jb 0x50333d
push dword [esi]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004408e4
cmp dword [ebp - 4], 8
jb 0x503369
push dword [ebp - 0x18]
call fcn.00412887
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x8c]
xor edi, edi
sub eax, edi
je 0x5033c2
dec eax
je 0x50339c
dec eax
jne 0x5033ec
sub esp, 0x18
lea ecx, [esi + 0x24]
push esp
call fcn.00502ac0
mov ecx, 0x5b9df4
call fcn.004b17e0
jmp 0x5033e6
push 1
sub esp, 0x18
lea ecx, [esi + 0x58]
push esp
call fcn.00502ac0
sub esp, 0x18
lea ecx, [esi + 0x24]
push esp
call fcn.00502ac0
mov ecx, 0x5b9df4
call fcn.004b1400
jmp 0x5033e6
push 1
sub esp, 0x18
lea ecx, [esi + 0x58]
push esp
call fcn.00502ac0
sub esp, 0x18
lea ecx, [esi + 0x24]
push esp
call fcn.00502ac0
mov ecx, 0x5b9df4
call fcn.004b15f0
mov edi, eax
test edi, edi
jne 0x50344c
mov ecx, 0x5b9df4
call fcn.004b1db0
mov dword [esi + 4], eax
mov ecx, 0x5b9df4
lea eax, [ebp - 0x18]
push eax
call fcn.004b1dc0
mov ebx, eax
add esi, 8
cmp esi, ebx
je 0x50343b
cmp dword [esi + 0x14], 8
jb 0x503420
push dword [esi]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.004408e4
cmp dword [ebp - 4], 8
jb 0x50344c
push dword [ebp - 0x18]
call fcn.00412887
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x40c], 0
call ebx
mov edi, eax
test edi, edi
jne 0x505e5e
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x505e5e
call fcn.00504ca0
mov esi, eax
jmp 0x505f0e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x505e7b
call fcn.00504ca0
jmp 0x505f01
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x505e90
call fcn.00504ca0
jmp 0x505f01
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x505ea8
mov esi, 0x8007000e
jmp 0x505f03
push eax
lea ecx, [ebp - 0x40c]
call fcn.005049c0
cmp dword [ebp - 0x40c], 0
jne 0x505ec4
mov esi, 0x8007000e
jmp 0x505f03
push esi
push dword [ebp - 0x40c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x505ee4
call fcn.00504ca0
jmp 0x505f01
mov eax, dword [ebp - 0x40c]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 8]
push dword [ebp - 0x40c]
call fcn.00505cc0
mov esi, eax
test edi, edi
je 0x505f0e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x505f27
lea ecx, [ebp - 0x40c]
call fcn.00505110
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5069e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x5069f9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x506a05
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x506a00
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5081d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi]
cmp esi, edi
je 0x5082bf
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x28]
mov dword [ebp - 0x14], 0
test ecx, ecx
jne 0x508215
mov dword [ebp - 0x14], ecx
jmp 0x508228
cmp ecx, eax
mov eax, dword [ecx]
jne 0x508221
lea edx, [ebp - 0x24]
push edx
jmp 0x508223
push 0
call dword [eax]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x508272
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0x34]
push ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x508272
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp byte [esi + 0xd], 0
jne 0x5082b7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x50829c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x5082b7
jmp 0x508290
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x508290
jmp 0x5082b7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x5082b5
cmp esi, dword [eax + 8]
jne 0x5082b5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x5082a5
mov esi, eax
cmp esi, edi
jne 0x5081e7
mov eax, dword [ebx]
mov ecx, ebx
push eax
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.00508f60
push dword [ebx]
call fcn.00412887
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x509790
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x5097b5
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x44], 0
test eax, eax
je 0x5097e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x5097f1
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 2
push 0
push dword [esi + 0x3c]
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [esi + 0x38]
mov dword [esi + 0x40], eax
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x509854
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040757d
mov ecx, esi
call fcn.00509580
mov dword [esi + 0x34], eax
test eax, eax
je 0x509890
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x34], eax
lea eax, [ebp + 8]
push eax
mov dword [esi + 0x44], ecx
push ecx
mov ecx, esi
mov dword [ebp + 8], 0
call fcn.005096d0
test eax, eax
je 0x509890
push dword [ebp + 8]
lea ecx, [esi + 0x18]
push eax
call fcn.0040eb60
pop esi
pop ebp
ret 8
Function at 0x5548a9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0053140c
mov dword [ebp - 0x14], eax
cmp dword [0x5bb0fc], esi
jne 0x55499c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x554929
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x554a7c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x554a7c
push 0x5803f8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x554a7c
push eax
call ebx
push 0x580404
push edi
mov dword [0x5bb0fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5bb100], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5bb104], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bb10c], eax
test eax, eax
je 0x554999
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bb108], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5549c1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5549b4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5549d6
push 4
pop eax
jmp 0x554a7e
cmp dword [ebp - 0x14], esi
je 0x5549d6
push dword [0x5bb0fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5549bb
mov eax, dword [0x5bb108]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x554a34
cmp dword [0x5bb10c], edi
je 0x554a34
push eax
call ebx
push dword [0x5bb10c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x554a34
test eax, eax
je 0x554a34
call ecx
test eax, eax
je 0x554a29
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x554a29
test byte [ebp - 8], 1
jne 0x554a34
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x554a64
mov eax, dword [0x5bb100]
cmp eax, edi
je 0x554a61
push eax
call ebx
test eax, eax
je 0x554a61
call eax
mov esi, eax
test esi, esi
je 0x554a61
mov eax, dword [0x5bb104]
cmp eax, edi
je 0x554a61
push eax
call ebx
test eax, eax
je 0x554a61
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5bb0fc]
call ebx
test eax, eax
je 0x554a7c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x554a7e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x406cd3
mov esi, dword [edx + 0x28]
jmp 0x406ce7
xor edi, edi
jmp 0x406cf6
movzx ecx, word [edx + 0x26]
jmp 0x406d09
jmp 0x406d18
xor eax, eax
jmp 0x406d25
lodsb al, byte [esi]
nop
cmp al, 0x61
jl 0x406d38
nop
sub al, 0x20
jmp 0x406d38
ror edi, 0xd
add edi, eax
nop
dec ecx
jmp 0x406d4c
jne 0x406d09
jmp 0x406d5a
nop
jmp 0x406d6b
push edx
jmp 0x406d7b
push edi
jmp 0x406d8c
mov edx, dword [edx + 0x10]
jmp 0x406d9c
mov eax, dword [edx + 0x3c]
nop
jmp 0x406db1
add eax, edx
nop
jmp 0x406dc4
mov eax, dword [eax + 0x78]
nop
test eax, eax
je 0x406f9a
nop
jmp 0x406de2
nop
add eax, edx
nop
mov ecx, dword [eax + 0x18]
nop
mov ebx, dword [eax + 0x20]
nop
add ebx, edx
nop
push eax
nop
jmp 0x406e03
test ecx, ecx
nop
je 0x406f87
nop
xor edi, edi
jmp 0x406e1c
dec ecx
mov esi, dword [ebx + ecx*4]
nop
jmp 0x406e2b
add esi, edx
nop
jmp 0x406e3d
jmp 0x406e47
xor eax, eax
jmp 0x406e57
ror edi, 0xd
jmp 0x406e67
lodsb al, byte [esi]
nop
jmp 0x406e75
add edi, eax
nop
cmp al, ah
jmp 0x406e8a
jne 0x406e3d
nop
nop
add edi, dword [ebp - 8]
nop
jmp 0x406ea9
cmp edi, dword [ebp + 0x24]
jmp 0x406eba
jne 0x406df2
nop
jmp 0x406ed3
nop
jmp 0x406ee3
pop eax
jmp 0x406ef2
mov ebx, dword [eax + 0x24]
nop
jmp 0x406f04
add ebx, edx
mov cx, word [ebx + ecx*2]
nop
jmp 0x406f1c
mov ebx, dword [eax + 0x1c]
nop
jmp 0x406f34
add ebx, edx
mov eax, dword [ebx + ecx*4]
nop
jmp 0x406f49
add eax, edx
nop
mov dword [esp + 0x24], eax
nop
pop ebx
nop
jmp 0x406f60
pop ebx
nop
jmp 0x406f6f
popal
nop
pop ecx
nop
pop edx
push ecx
jmp 0x406f84
jmp eax
pop eax
jmp 0x406f9a
nop
jmp 0x406fa8
pop edi
nop
jmp 0x406fbe
pop edx
nop
mov edx, dword [edx]
jmp 0x406cc8
Function at 0x401cb0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x401d20
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401d60
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x401ccc
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, 0x5e501c
mov dword [esi], sub.borlndmm.dll__Borlndmm_SysGetMem_qqri
push 0x401d50
call sub.kernel32.dll_GetModuleHandleW_1
mov ebx, eax
push 0x401d6c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
push 0x401d88
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 4], eax
push 0x401da4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 8], eax
push 0x401dc4
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x401d20
mov dword [esi + 0xc], eax
push 0x401de0
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x401d32
mov dword [esi + 0x10], eax
push 0x401e10
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x401d44
mov dword [esi + 0x14], eax
mov eax, esi
call sub.rtl170.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
pop esi
pop ebx
ret

Function at 0x418d04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
xor edx, edx
push ebp
push 0x418d6a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0x12]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x12]
mov ecx, 7
call sub.rtl170.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 4]
call sub.rtl170.bpl__System__ValLong_qqrx20System_UnicodeStringri
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x418d54
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418d71
lea eax, [ebp - 0x18]
call sub.rtl170.bpl__System__UStrClr_qqrpv
ret