joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e5601d0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x4e5601eb
mov dword [ebp - 0x18], 1
jmp 0x4e5601f2
mov dword [ebp - 0x18], 0
movzx ecx, byte [ebp - 0x18]
test ecx, ecx
je 0x4e560211
push 0x153
push str.d:_src.gamesecurity.org_test_libraryfactory_srcpoco_poco_1.5.2_releasepoco_poco_1.5.2_release_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.4e566360
add esp, 0xc
mov ecx, dword [ebp - 4]
call fcn.4e55f690
movzx edx, al
test edx, edx
je 0x4e560267
mov eax, dword [ebp - 4]
add eax, 0x1c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x14], 8
jb 0x4e560242
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
jmp 0x4e560248
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4e560265
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call fcn.4e560430
add esp, 4
jmp 0x4e5602ac
mov edx, dword [ebp - 4]
add edx, 0x1c
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x4e560289
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x4e56028f
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4e5602ac
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.4e560430
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4e560380
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x4e56039b
mov dword [ebp - 0x10], 1
jmp 0x4e5603a2
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
je 0x4e5603c1
push 0x176
push str.d:_src.gamesecurity.org_test_libraryfactory_srcpoco_poco_1.5.2_releasepoco_poco_1.5.2_release_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.4e566360
add esp, 0xc
mov ecx, dword [ebp - 4]
call fcn.4e55f350
movzx edx, al
test edx, edx
je 0x4e5603e3
mov ecx, dword [ebp - 4]
call fcn.4e55f690
movzx eax, al
test eax, eax
je 0x4e5603e3
xor al, al
jmp 0x4e56042c
mov ecx, dword [ebp - 4]
add ecx, 0x1c
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 8
jb 0x4e560405
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
jmp 0x4e56040b
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4e56042a
mov edx, dword [ebp - 4]
add edx, 4
push edx
call fcn.4e560430
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4e570a90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a6868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.4e524340
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.4e563410
add esp, 8
cmp dword [ebp - 0x30], 8
jb 0x4e570afa
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
jmp 0x4e570b00
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e570b39
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa0]
call fcn.4e54db80
push 0x4e5caed4
lea ecx, [ebp - 0xa0]
push ecx
call fcn.4e58707b
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x54]
call fcn.4e5717b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x30], 8
jb 0x4e570b63
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], edx
jmp 0x4e570b69
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.4e514040
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x10]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.4e563980
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.4e514040
lea edx, [ebp - 0x70]
push edx
mov ecx, dword [ebp + 8]
call fcn.4e51da80
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.4e514040
mov byte [ebp - 4], 0
movzx ecx, byte [ebp - 0x48]
test ecx, ecx
je 0x4e570c1f
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.4e585fe1
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.4e524340
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e570c50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a687a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.4e524340
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.4e563410
add esp, 8
cmp dword [ebp - 0x24], 8
jb 0x4e570cb0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
jmp 0x4e570cb6
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x4e570cd6
mov dword [ebp - 0x18], 1
jmp 0x4e570cdd
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.4e524340
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4e570d10
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a689c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.4e524340
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.4e524340
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.4e563410
add esp, 8
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.4e563410
add esp, 8
cmp dword [ebp - 0x30], 8
jb 0x4e570da1
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x14], edx
jmp 0x4e570da7
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 8
jb 0x4e570dbb
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
jmp 0x4e570dc1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x4e570e2a
push 0x4e5afcb8
lea ecx, [ebp - 0x64]
call fcn.4e513ee0
mov byte [ebp - 4], 2
mov eax, dword [0x4e5ba7ac]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x64]
call fcn.4e51db00
push 0
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x90]
call fcn.4e54e1b0
push 0x4e5cf96c
lea eax, [ebp - 0x90]
push eax
call fcn.4e58707b
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.4e514040
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.4e524340
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.4e524340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e571410
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [ebp - 0x2c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xa
ja case.0x4e57143b.4
mov edx, dword [ebp - 8]
jmp dword [edx*4 + 0x4e571528]
push str.IA32
mov ecx, dword [ebp + 8]
call fcn.4e513ee0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x4e571521
push str.MIPS
mov ecx, dword [ebp + 8]
call fcn.4e513ee0
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
jmp 0x4e571521
push str.ALPHA
mov ecx, dword [ebp + 8]
call fcn.4e513ee0
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
jmp 0x4e571521
push 0x4e5afe1c
mov ecx, dword [ebp + 8]
call fcn.4e513ee0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x4e571521
push str.IA64
mov ecx, dword [ebp + 8]
call fcn.4e513ee0
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
jmp 0x4e571521
push str.IA64_32
mov ecx, dword [ebp + 8]
call fcn.4e513ee0
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
jmp 0x4e571521
push str.AMD64
mov ecx, dword [ebp + 8]
call fcn.4e513ee0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x4e571521
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.4e513ee0
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4e571560
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a68ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4e5715e7
push str.Cannot_get_computer_name
lea ecx, [ebp - 0x44]
call fcn.4e513ee0
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x90]
call fcn.4e54e1b0
push 0x4e5cf96c
lea eax, [ebp - 0x90]
push eax
call fcn.4e58707b
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.4e514040
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.4e514040
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.4e563af0
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.4e514040
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.4e51da80
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.4e514040
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e571680
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov word [ecx + 4], ax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x288
mov edx, dword [ebp - 0x10]
push edx
call fcn.4e54b3a0
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6f
jne 0x4e5716f3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.4e585fe1
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call fcn.4e54b3a0
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
jmp 0x4e5716fe
cmp dword [ebp - 0x14], 0
je 0x4e5716fe
jmp 0x4e57177e
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4e57176c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 8], 0
je 0x4e57176c
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x4e57176c
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1a0], 6
jne 0x4e571762
mov eax, dword [ebp - 8]
cmp dword [eax + 0x190], 6
jne 0x4e571762
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x190]
push edx
mov eax, dword [ebp - 8]
add eax, 0x194
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.4e5869a0
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x4e571719
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.4e585fe1
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4e572ea0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a69a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.4e570740
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.Poco::PipeImpl.0
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4e572f46
push 0x4e5afed8
lea ecx, [ebp - 0x34]
call fcn.4e513ee0
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x60]
call fcn.4e550f10
push 0x4e5cb518
lea edx, [ebp - 0x60]
push edx
call fcn.4e58707b
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.4e514040
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e579550
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a6f12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
call fcn.4e51fb10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x150]
push ecx
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x150]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x1c], 0x100
jbe 0x4e5795bb
mov dword [ebp - 0x18], 0x100
jmp 0x4e5795c1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
lea edx, [ebp + ecx*2 - 0x150]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jae 0x4e57969c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.4e524340
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x20]
jae 0x4e579631
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
test eax, eax
je 0x4e579631
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx]
mov word [ebp - 0x12], dx
movzx eax, word [ebp - 0x12]
push eax
push 1
lea ecx, [ebp - 0x50]
call fcn.4e5245a0
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x4e5795fb
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.4e514040
mov byte [ebp - 4], 1
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.4e563780
add esp, 8
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 8]
call fcn.4e51bf10
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.4e514040
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.4e524340
jmp 0x4e5795ce
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e59c6bc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e5d6510]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.4e5894bf
mov dword [ebp - 0x14], eax
cmp dword [0x4e5dafac], edi
jne 0x4e59c7ad
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4e59c73a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4e59c88d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4e59c88d
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e59c88d
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4e5dafac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4e5dafb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4e5dafb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e5dafbc], eax
test eax, eax
je 0x4e59c7aa
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e5dafb8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4e59c7d2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e59c7c5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4e59c7e7
push 4
pop eax
jmp 0x4e59c88f
cmp dword [ebp - 0x14], edi
je 0x4e59c7e7
push dword [0x4e5dafac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4e59c7cc
mov eax, dword [0x4e5dafb8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4e59c845
cmp dword [0x4e5dafbc], esi
je 0x4e59c845
push eax
call ebx
push dword [0x4e5dafbc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4e59c845
test eax, eax
je 0x4e59c845
call ecx
test eax, eax
je 0x4e59c83a
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 0x4e59c83a
test byte [ebp - 8], 1
jne 0x4e59c845
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4e59c875
mov eax, dword [0x4e5dafb0]
cmp eax, esi
je 0x4e59c872
push eax
call ebx
test eax, eax
je 0x4e59c872
call eax
mov edi, eax
test edi, edi
je 0x4e59c872
mov eax, dword [0x4e5dafb4]
cmp eax, esi
je 0x4e59c872
push eax
call ebx
test eax, eax
je 0x4e59c872
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4e5dafac]
call ebx
test eax, eax
je 0x4e59c88d
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4e59c88f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4e584c47
leave
ret
Function at 0x4e59ed98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.4e58e65d
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4e59edd0
xor eax, eax
jmp 0x4e59edfc
cmp esi, dword [ebp - 4]
je 0x4e59edf9
cmp dword [ebp + 0xc], 0
je 0x4e59edf9
push dword [edi + 0x9c]
call fcn.4e59e9a6
push dword [edi + 0x9c]
mov esi, eax
call fcn.4e589767
pop ecx
pop ecx
cmp esi, eax
je 0x4e59edcc
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x1000244d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10008298
cmp edx, dword [eax]
je 0x1000246f
add eax, 8
inc ecx
cmp eax, 0x10008328
jl 0x10002460
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10008298]
jne 0x1000259d
mov eax, dword [0x1000a1a4]
cmp eax, 1
je 0x10002577
test eax, eax
jne 0x100024a0
cmp dword [0x1000a1a8], 1
je 0x10002577
cmp edx, 0xfc
je 0x1000259d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100024d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10003270
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10003360
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000251a
lea eax, [ebp - 0x1a4]
push eax
call fcn.10003360
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100073d4
push edi
call fcn.100043e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10003270
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10003280
lea eax, [ebp - 0xa0]
push 0x100073b4
push eax
call fcn.10003280
push dword [esi + 0x1000829c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10003280
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000434e
add esp, 0x2c
pop edi
jmp 0x1000259d
lea eax, [ebp + 8]
lea esi, [esi + 0x1000829c]
push 0
push eax
push dword [esi]
call fcn.10003360
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret