joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012ab
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4012d8
xor eax, eax
jmp 0x40145c
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10000
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jae 0x4012f4
dec ecx
mov dword [ebp - 8], ecx
push ebx
push esi
push edi
push edi
push edi
lea esi, [eax - 0x10000]
push 2
push edi
push dword [ebp + 8]
and esi, 0xffff0000
sub eax, esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0
je 0x401347
push ebx
push esi
push dword [ebp - 8]
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 4]
mov esi, eax
mov dword [ebp + 8], esi
call edi
test esi, esi
jne 0x40134e
xor eax, eax
jmp 0x40145a
lea ecx, [esi + ebx]
push 0x7c
lea eax, [ecx - 2]
pop edx
xor ebx, ebx
cmp byte [eax], dl
lea esi, [ecx - 4]
jne 0x4013f8
cmp byte [eax + 1], 0x3e
jne 0x4013f8
mov edi, dword [ebp + 8]
add edi, 2
cmp eax, edi
mov esi, eax
jbe 0x40144f
lea ecx, [esi - 1]
cmp byte [ecx], dl
jne 0x40138b
cmp byte [esi - 2], 0x3c
je 0x401396
mov esi, ecx
cmp esi, edi
ja 0x40137e
jmp 0x40144f
sub eax, esi
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 5
cmp esi, eax
jbe 0x4013d9
cmp byte [esi - 5], 0xef
jne 0x4013d9
cmp byte [esi - 4], 0xbb
jne 0x4013d9
cmp byte [esi - 3], 0xbf
jne 0x4013d9
lea ecx, [edi + edi + 2]
call fcn.0040190f
push edi
mov ebx, eax
push ebx
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and word [ebx + eax*2], 0
jmp 0x40144f
lea ecx, [edi + edi + 2]
call fcn.0040190f
push edi
mov ebx, eax
push ebx
push edi
push esi
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [ebx + eax*2], si
jmp 0x40144f
cmp word [esi], dx
jne 0x40144f
cmp word [esi + 2], 0x3e
jne 0x40144f
mov edi, dword [ebp + 8]
add edi, 4
cmp esi, edi
mov ecx, esi
mov dword [ebp - 4], ecx
jbe 0x40144f
jmp 0x401418
mov ecx, dword [ebp - 4]
lea eax, [ecx - 2]
cmp word [eax], dx
jne 0x401427
cmp word [ecx - 4], 0x3c
je 0x401430
cmp eax, edi
mov dword [ebp - 4], eax
ja 0x401415
jmp 0x40144f
mov eax, esi
sub eax, ecx
sar eax, 1
lea edi, [eax + eax]
lea ecx, [edi + 2]
call fcn.0040190f
mov ecx, dword [ebp - 4]
mov ebx, eax
add edi, ebx
push edi
push esi
call fcn.00401058
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, ebx
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x401461
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00401108
test eax, eax
push 2
mov dword [ebp - 4], eax
pop esi
jne 0x40148a
mov ecx, esi
call fcn.0040190f
and word [eax], 0
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004012ab
mov ebx, eax
test ebx, ebx
mov dword [ebp + 8], ebx
jne 0x4014ab
mov ecx, esi
call fcn.0040190f
mov ebx, eax
and word [ebx], 0
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
movzx ecx, word [edi]
cmp cx, 0x27
mov dword [ebp - 8], edi
je 0x4014d2
cmp cx, 0x22
jne 0x4014ec
jmp 0x4014d2
cmp ax, cx
jne 0x4014d2
cmp word [edi + 2], cx
jne 0x4014ea
add edi, esi
movzx eax, word [edi]
test ax, ax
jne 0x4014c7
jmp 0x4014ec
cmp ax, 0x20
je 0x4014f4
cmp ax, 9
je 0x4014f4
add edi, esi
movzx eax, word [edi]
test ax, ax
jne 0x4014de
mov dword [ebp - 0x10], edi
jmp 0x401507
cmp ax, 0x20
je 0x401505
cmp ax, 9
jne 0x40150f
add edi, esi
movzx eax, word [edi]
test ax, ax
jne 0x4014f9
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, dword [ebp - 0xc]
push dword [ebp - 4]
lea ebx, [ecx + eax]
call esi
mov ecx, dword [ebp + 0xc]
add eax, ebx
lea eax, [eax + ecx + 0x20]
lea esi, [eax + eax]
mov ecx, esi
call fcn.0040190f
mov ecx, dword [ebp - 8]
mov ebx, eax
lea esi, [esi + ebx - 2]
push esi
push dword [ebp - 0x10]
call fcn.00401058
mov edx, dword [ebp - 4]
cmp word [edx], 0
je 0x401567
mov word [eax], 0x20
push esi
add eax, 2
call fcn.0040103a
mov edx, dword [ebp + 8]
cmp word [edx], 0
je 0x40157e
mov word [eax], 0x20
push esi
add eax, 2
call fcn.0040103a
cmp word [edi], 0
je 0x401594
mov word [eax], 0x20
push esi
add eax, 2
mov edx, edi
call fcn.0040103a
mov ecx, dword [ebp - 4]
call fcn.00401920
mov ecx, dword [ebp + 8]
call fcn.00401920
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x401973
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [esi + 0x10]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
jmp 0x4019a6
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019af
mov eax, dword [ebp - 4]
test eax, eax
je 0x4019b7
add dword [esi + 0xc], eax
sub edi, eax
jne 0x401986
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4019ac
mov eax, dword [esi + 0xc]
cmp dword [esi + 4], eax
sbb eax, eax
and eax, 0xffffffda
add eax, 0x26
jmp 0x4019ac
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

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

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4590c8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0045a83c
test esi, esi
jne 0x4590fe
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0045a92c
jmp 0x45911c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00458f7c
mov edi, eax
test esi, esi
je 0x45911c
cmp dword [ebx], 0
je 0x45911c
dec esi
jmp 0x459105
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x459b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x469770]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x459bf8
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x459bd8
xor eax, eax
push ebp
push 0x459bd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x459c14
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459bd8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x469770]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x469770], ax
mov esp, ebp
pop ebp
ret

Function at 0x45a6c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46d548], 0
je 0x45a721
cmp word [0x46d71c], 0xd7b2
jne 0x45a6e9
cmp dword [0x46d724], 0
jbe 0x45a6e9
mov eax, 0x46d718
call dword [fcn.0046d734]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4697b8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x45a748
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x469780], 0
jne 0x45a73d
push 0
push 0x4697d8
push 0x4697b8
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x45c1a8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x45c3d8
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x45c22b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x45c3d8
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x45c22b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x45c3f4
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45c2b4
xor eax, eax
push ebp
push 0x45c2ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0045bff0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x45c292
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x45c414
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x45c292
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c2b4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x45c3ce
cmp byte [ebp - 0xd], 0
jne 0x45c2fb
cmp byte [ebp - 0x12], 0
je 0x45c3ce
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x45c314
dec ebx
cmp byte [ebx], 0x2e
je 0x45c323
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x45c313
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x45c3ce
inc ebx
cmp byte [ebp - 0x12], 0
je 0x45c360
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x45c3ce
cmp byte [ebp - 0xd], 0
je 0x45c3ce
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x45c3ce
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cb4c
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x46dabc], 1
jae 0x45cbd2
mov byte [0x46976c], 2
mov dword [fcn.0046d50c], sub.KERNEL32.DLL_RaiseException
mov dword [0x46d510], 0x466bdc
mov byte [0x46d54a], 2
mov dword [0x46d4f8], 0x45b7d8
call fcn.00459b30
test al, al
je 0x45cb8f
call fcn.00459b60
call fcn.00459c24
mov word [0x46d550], 0xd7b0
mov word [0x46d71c], 0xd7b0
mov word [0x46d8e8], 0xd7b0
call fcn.0045b6b8
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x46d53c], eax
call fcn.00457974
mov dword [0x46d538], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x46d530], eax
ret

Function at 0x4614e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x461546
call fcn.00461494
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0045d7f8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0045d7f8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4615c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x46b3cc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x46169e
cmp dword [0x46b3c8], 0
jne 0x46169e
cmp dword [0x46b5ac], 0
je 0x461658
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00461394
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46163e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00461394
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46163e
lea ebx, [ebp - 0x84]
jmp 0x46163f
inc ebx
call fcn.00461580
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4616d9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x46b3d0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0045d7f8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x46b3d3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4616d9
cmp dword [0x46b3c8], 0
je 0x4616b8
cmp dword [0x46b3c8], 0xffffffff
je 0x4616d9
push esi
call dword [0x46b3c8]
pop ecx
mov eax, dword [0x46b3cc]
test eax, eax
je 0x4616d9
cmp dword [0x46b3cc], 0xffffffff
je 0x4616d9
cmp byte [eax], 0
je 0x4616d9
push esi
push eax
call fcn.004614e4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462504
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
and eax, 1
mov dword [0x46b5ac], eax
call fcn.0045f98c
mov edx, dword [esi + 0x20]
push edx
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.0045fc10
add esp, 8
mov eax, dword [esi + 0x28]
push eax
call fcn.0045ed6c
pop ecx
mov edx, dword [esi + 0x44]
push edx
call fcn.0045ed7c
pop ecx
mov dword [0x46e4a4], 1
mov dword [0x46e4a8], esi
lea ecx, [ebp - 8]
mov dword [0x46e48c], ecx
call fcn.0045e8bc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46e47c], eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x46e478], eax
mov eax, dword [esi + 0x30]
push eax
mov edx, dword [esi + 0x2c]
push edx
call fcn.004617ec
add esp, 8
mov ecx, dword [esi + 0x40]
push ecx
mov eax, dword [esi + 0x3c]
push eax
mov edx, dword [esi + 0x38]
push edx
mov ecx, dword [esi + 0x34]
push ecx
call fcn.00461830
add esp, 0x10
call fcn.00462388
mov edi, eax
test eax, eax
je 0x4625e3
mov edx, dword [edi]
mov dword [edi + edx*4 + 4], 0xffffffff
push 0
push edi
call fcn.00462390
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ebx, [edi + 4]
jmp 0x4625dc
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push edx
push 0
call dword [eax + 0x18]
add esp, 8
inc dword [ebp - 0xc]
add ebx, 4
mov ecx, dword [edi]
cmp ecx, dword [ebp - 0xc]
jg 0x4625c8
push 0
push 0x46e4a4
call fcn.00462390
add esp, 8
test byte [esi + 0x10], 1
je 0x46265f
mov ebx, dword [0x46e478]
jmp 0x462601
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x462600
cmp al, 9
je 0x462600
cmp byte [ebx], 0x22
jne 0x462615
mov dl, 0x22
inc ebx
jmp 0x46261a
mov dl, 0x20
jmp 0x46261a
inc ebx
mov al, byte [ebx]
test al, al
je 0x462628
cmp dl, al
je 0x462628
cmp al, 9
jne 0x462619
cmp byte [ebx], 0x22
jne 0x462631
inc ebx
jmp 0x462631
inc ebx
mov al, byte [ebx]
test al, al
je 0x46263b
cmp al, 0x20
je 0x462630
cmp al, 9
je 0x462630
call fcn.00462688
push eax
push ebx
push 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call dword [esi + 0x18]
add esp, 0x10
push eax
call fcn.0046179c
pop ecx
jmp 0x462680
mov edx, dword [0x46e474]
push edx
mov ecx, dword [0x46e470]
push ecx
mov eax, dword [0x46e46c]
push eax
call dword [esi + 0x18]
add esp, 0xc
push eax
call fcn.0046179c
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401582
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 0xe0
mov dword [ebp - 0x28], 0xe247551
mov dword [ebp - 0x2c], 0x14
mov dword [ebp - 0x18], 1
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
cmp dword [ebp + 8], 0
jne 0x4015c6
mov edx, dword [ebp - 0x10]
jmp 0x401675
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x4015db
mov eax, dword [ebp - 0x10]
jmp 0x401675
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x4015f7
mov eax, dword [ebp - 0x10]
jmp 0x401675
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
add word [ebp - 0x1c], 0x62e5
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
cmp eax, 0x10b
je 0x401638
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp dword [ebp - 0x28], 0xe247551
je 0x40162b
cmp edx, 0x20b
je 0x401638
mov eax, dword [ebp - 0x10]
jmp 0x401675
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
cmp dword [ebp + 0xc], 0
je 0x40164f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x40165d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
cmp dword [ebp + 0x14], 0
je 0x401672
mov edx, dword [ebp + 0x14]
add dword [ebp - 0x1c], 0xb57c2523
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret

Function at 0x402a0f
Capabilities:
Get geographical location

Disassembly:
mov ecx, str.google_proj
call fcn.004029fe
mov eax, dword fs:[0]
jmp fcn.004026d5
Function at 0x403a6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409110
cmp edx, dword [eax]
je 0x403a8f
add eax, 8
inc ecx
cmp eax, 0x4091a0
jl 0x403a80
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409110]
jne 0x403bbd
mov eax, dword [0x40b8e8]
cmp eax, 1
je 0x403b97
test eax, eax
jne 0x403ac0
cmp dword [0x409050], 1
je 0x403b97
cmp edx, 0xfc
je 0x403bbd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403af7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405d40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405370
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b3a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405370
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40845c
push edi
call fcn.004065e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405d40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405d50
lea eax, [ebp - 0xa0]
push 0x40843c
push eax
call fcn.00405d50
push dword [esi + 0x409114]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405d50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040654f
add esp, 0x2c
pop edi
jmp 0x403bbd
lea eax, [ebp + 8]
lea esi, [esi + 0x409114]
push 0
push eax
push dword [esi]
call fcn.00405370
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
Function at 0x4058c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub dword [0x7f4084], edx
mov dword [0x7f408d], ebx
mov dword [0x7f4097], ecx
mov eax, ebp
add dword [0x806d38], eax
mov esi, esp
add dword [0x806d34], esi
mov esi, 8
add dword [0x806d34], 4
mov dword [0x7f40ba], eax
dec esi
mov dword [esp - 4], edx
test esi, esi
je 0x40591a
mov dword [0x7f4046], 0x14dd9
mov dword [0x7f40d7], 0x17d2e
mov byte [0x7f4039], 0x45
jmp 0x405920
mov dword [0x7f409b], ebx
call sub.kernel32.dll_GetTickCount
xor eax, eax
mov dword [0x807014], eax
call fcn.004028d4
mov ecx, 0x12c
mov dword [0x7f4078], edi
sub ebx, eax
call fcn.00401400
call sub.kernel32.dll_GetTickCount
inc dword [0x807014]
cmp dword [0x807014], 5
jne 0x40592c
mov dword [0x7f40b6], esi
mov dword [esp - 0x10], ebx
cmp dword [0x7f4060], 0
jne 0x40597d
and dword [0x7f4086], esi
mov dword [0x7f40a2], edx
mov byte [0x7f4052], 0x87
mov dword [0x7f40e7], edi
mov dword [esp - 0xc], edx
cmp edx, dword [ebp + 0xc]
jge 0x40599e
mov dword [0x7f40e0], ecx
xchg dword [0x7f40e2], esi
mov dword [0x7f4090], edi
mov dword [0x7f40e6], esi
mov edi, dword [0x7f4033]
mov dword [0x7f40dd], 0x1505e
mov dword [0x7f4043], ecx
xchg dword [0x7f4040], edx
mov dword [0x7f4017], edi
mov ebx, eax
call fcn.004028d4
mov dword [0x7f4103], 0x1009e
mov dword [0x7f408e], ecx
lea edi, [0x7f4100]
add dword [edi + 0x12], 0xf1
xor edx, edx
mov dword [0x7f4023], 0xdfc0
stc
div dword [0x7f4023]
jae 0x405a50
mov dword [esp - 0x20], ecx
mov edx, dword [esp + 0x12]
mov dword [0x7f4024], ebx
sub dword [0x7f40f3], eax
mov dword [0x7f40d8], ecx
call fcn.00402f54
jmp 0x405a55
call fcn.004028d9
mov dword [0x7f403d], ecx
mov ecx, edx
lea esi, [0x7f40cd]
add dword [esi], 0x76
call fcn.007f0ebc
mov dword [0x7f40fe], edi
cmp byte [0x7f4077], 0
jg 0x405a8c
mov dword [0x7f407e], edx
mov dword [0x7f4059], esi
mov dword [0x7f40a2], ecx
mov dword [0x7f4040], eax
mov word [0x7f40e5], 0xf3c1
mov ecx, esi
mov dword [0x7f409f], 0x14a16
ret