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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov ecx, dword [0x10194f14]
add ecx, 0x89f
mov dword [0x10194f14], ecx
mov dword [0x10194f18], 0x1fa4
mov dword [ebp - 0x10], eax
call fcn.10157fc9
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov esi, ecx
add esi, edx
cmp dword [eax + edx], 0x4550
sete bl
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x19], bl
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x19]
test dl, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x10159251
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov dword [0x10194f14], 0xfffff354
mov ecx, dword [ebp - 0x18]
add ecx, dword [ecx + eax + 0x20]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + eax + 0x24]
mov dword [0x10194f18], 0x1e93
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
je 0x10159396
mov eax, 0xfffff354
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
add edx, esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
xor esi, esi
add edx, 0x89f
mov edi, dword [ebp - 0x2c]
mov ebx, dword [edi + ecx*4]
mov dword [0x10194f14], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x58]
mov ecx, eax
mov edx, dword [ebp - 0x50]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x5d], bh
mov byte [ebp - 0x5e], cl
je 0x10159330
mov eax, dword [ebp - 0x5c]
add eax, 1
mov cl, byte [ebp - 0x5d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x5e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x58], eax
jne 0x101592df
mov al, byte [ebp - 0x5e]
test al, 1
jne 0x10159369
jmp 0x10159339
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov esi, dword [ebp - 0x34]
cmp edx, esi
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], eax
jb 0x101592b3
jmp 0x10159396
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov dword [0x10194f14], 0x5ea
mov edi, dword [ebp - 0x18]
add edi, dword [edx + ecx*4]
mov dword [0x10194f18], 0x19e
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x38]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101593a1
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10194f14]
add eax, 0xfffff2a7
mov dword [0x10194f14], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x10194f18], 0x1944
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10194f14], 0x2173
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x1015942f
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x1d], cl
mov al, byte [ebp - 0x1d]
test al, 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edx
jne 0x101593ee
jmp 0x1015942f
mov eax, dword [ebp - 0x18]
mov dword [0x10194f18], 0x1341
mov dword [0x10194f14], 0x356f
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], eax
jne 0x101594ff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101594ff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x101594ff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101594ff
mov dword [0x10194f14], 0x8c1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101594ff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101594ff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0xe], 0x6c
sete dl
mov byte [ebp - 0x25], dl
mov eax, 0xb8a
mov ecx, 0x23bc
mov dl, byte [ebp - 0x25]
test dl, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
jne 0x101594e7
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov cl, byte [ebp - 0x25]
and cl, 1
movzx edx, cl
mov dword [0x10194f14], eax
mov eax, edx
add esp, 0x30
pop ebp
ret
xor eax, eax
add esp, 0x30
pop ebp
ret
Function at 0x401915
Capabilities:
Parse pe header

Disassembly:
jmp 0x4090e0
sub esp, 0x1c8
mov eax, dword [0x47b014]
xor eax, esp
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + 0x1d0]
push ebx
mov ebx, dword [esp + 0x1dc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1dc]
push 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1e8]
push 0x1000
mov dword [esp + 0x20], eax
lea eax, [ebx + 0x1b8]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x40934e
push 0x40
lea eax, [esp + 0xa0]
mov dword [esp + 0x14], 0
push 0
push eax
call fcn.00402324
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 0xc
mov eax, 0x5a4d
mov dword [esp + 0xd8], 0x40
mov word [esp + 0x9c], ax
lea eax, [esp + 0x10]
push eax
push 0x40
lea eax, [esp + 0xa4]
push eax
push esi
push edi
call ebp
test eax, eax
je 0x40934e
cmp dword [esp + 0x10], 0x40
jne 0x40934e
push 0xf8
lea eax, [esp + 0xe0]
add esi, 0x40
push 0
push eax
call fcn.00402324
add esp, 0xc
mov dword [esp + 0xdc], 0x4550
mov eax, 1
mov dword [esp + 0xf0], 0x200000e0
mov word [esp + 0xe2], ax
mov eax, 0x10b
mov word [esp + 0xf4], ax
lea eax, [esp + 0x10]
push eax
push 0xf8
lea eax, [esp + 0xe4]
push eax
push esi
push edi
call ebp
test eax, eax
je 0x40934e
cmp dword [esp + 0x10], 0xf8
jne 0x40934e
lea eax, [ebx + 0x58]
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], eax
add esi, 0xf8
lea eax, [esp + 0x10]
mov dword [esp + 0x40], 0
push eax
push 0x28
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x7465642e
push eax
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0x72756f
push esi
push edi
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x3c], 0x160
call ebp
test eax, eax
je 0x40934e
cmp dword [esp + 0x10], 0x28
jne 0x40934e
lea eax, [ebx + 0x58]
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x50], eax
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movlpd qword [esp + 0x54], xmm0
push eax
push 0x40
lea eax, [esp + 0x4c]
movlpd qword [esp + 0x64], xmm0
push eax
add esi, 0x28
movlpd qword [esp + 0x70], xmm0
push esi
push edi
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
mov dword [esp + 0x5c], 0x727444
mov dword [esp + 0x60], 0x40
call ebp
test eax, eax
je 0x40934e
cmp dword [esp + 0x10], 0x40
jne 0x40934e
lea eax, [ebx + 0x18]
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], eax
add esi, 0x40
mov eax, dword [esp + 0x14]
movups xmm0, xmmword [eax]
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x8c]
push eax
push esi
push edi
movups xmmword [esp + 0xa0], xmm0
call ebp
test eax, eax
je 0x40934e
cmp dword [esp + 0x10], 0x18
jne 0x40934e
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esp + 0x20]
lea ecx, [esi + 0x18]
push ecx
push edi
call ebp
test eax, eax
je 0x40934e
cmp dword [esp + 0x10], ebx
jne 0x40934e
mov eax, 1
jmp 0x409350
xor eax, eax
mov ecx, dword [esp + 0x1d4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004022c0
add esp, 0x1c8
ret 0x10
Function at 0x4025f4
Capabilities:
Terminate process

Disassembly:
jmp 0x445952
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x445963
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403a7b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402685
Capabilities:
Query environment variable

Disassembly:
jmp 0x44ccdc
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44cced
pop esi
ret
push ebx
push edi
push esi
call fcn.0044cbc3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402bda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44cd15
push ebx
push esi
push edi
call fcn.00403931
add esp, 0xc
push 0
call fcn.00403f85
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x402b76
Capabilities:
Resume thread
Terminate process

Disassembly:
jmp 0x409750
mov eax, dword [esp + 0x18]
lea edx, [esp - 0x10]
sub esp, 0x18
mov ecx, dword [esp + 0x48]
or eax, 4
test ecx, ecx
cmove ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
push edx
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
call ecx
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x40979f
movups xmm0, xmmword [esp + 8]
movups xmmword [ecx], xmm0
test eax, eax
je 0x4097d8
mov ecx, dword [esp + 0x44]
test ecx, ecx
mov eax, dword [esp]
cmovne eax, ecx
mov dword [esp], eax
xor eax, eax
test ecx, ecx
setne al
push eax
lea eax, [esp + 4]
push eax
push dword [esp + 0x10]
call fcn.0040379c
test eax, eax
jne 0x4097e0
push 0xffffffffffffffff
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add esp, 0x18
ret 0x30
test byte [esp + 0x30], 4
jne 0x4097f1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add esp, 0x18
ret 0x30
Function at 0x4039a4
Capabilities:
Parse pe header

Disassembly:
jmp 0x4100e5
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x410125
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410125
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410125
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x410125
cmp dword [ecx + 0x74], 0xe
jbe 0x410125
cmp dword [ecx + 0xe8], 0
je 0x410125
mov al, 1
ret
xor al, al
ret

Function at 0x407de0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x60
mov eax, dword [0x47b014]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
mov ebx, dword [esp + 0x70]
push esi
mov esi, dword [esp + 0x70]
push edi
mov edi, dword [esp + 0x70]
test esi, esi
jne 0x407e08
push 0x57
jmp 0x407e9d
push 0x1c
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
push eax
xorps xmm0, xmm0
push esi
push edi
movups xmmword [esp + 0x1c], xmm0
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x407ea3
push 0
push 0x40
lea eax, [esp + 0x30]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x407ea3
mov eax, 0x5a4d
cmp word [esp + 0x28], ax
jne 0x407e98
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x18]
ja 0x407e98
cmp eax, 0x40
jb 0x407e98
push 0
push 0xf8
push ebx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x407ea3
cmp dword [ebx], 0x4550
jne 0x407e98
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004022c0
add esp, 0x60
ret 0xc
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x68]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004022c0
add esp, 0x60
ret 0xc
Function at 0x40aed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x479240
push fcn.00410b40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x47b014]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40af13
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x40af2e
push 0xc1
jmp 0x40b01e
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov dword [ebp + 8], ecx
cmp dword [ecx], 0x4550
je 0x40af48
push 0xbf
jmp 0x40b01e
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x40b019
lea edx, [ecx + 0x18]
add edx, eax
mov dword [ebp - 0x20], edx
xor esi, esi
mov dword [ebp - 0x1c], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jae 0x40b019
lea eax, [esi + esi*4]
lea edi, [edx + eax*8]
mov ecx, str..detour
mov eax, edi
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40afa0
test dl, dl
je 0x40af9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40afa0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40af80
xor eax, eax
jmp 0x40afa5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40aff7
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40b019
cmp dword [edi + 0x10], 0
je 0x40b019
lea esi, [eax + ebx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x40b019
cmp dword [esi + 4], 0x727444
jne 0x40b019
cmp dword [esi + 8], 0
jne 0x40afd2
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
jmp 0x40af5f
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b4b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4791e0
push fcn.00410b40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x47b014]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x40b4f6
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
mov dword [ebp + 8], edx
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edx], ax
je 0x40b511
push 0xc1
jmp 0x40b668
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx], 0x4550
je 0x40b527
push 0xbf
jmp 0x40b668
cmp word [eax + edx + 0x14], 0
je 0x40b663
mov eax, dword [eax + edx + 0x80]
test eax, eax
je 0x40b543
lea ebx, [eax + edx]
jmp 0x40b545
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40b663
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebx]
test ecx, ecx
je 0x40b614
mov esi, dword [ebx + 0xc]
lea eax, [edx + esi]
neg esi
sbb esi, esi
and esi, eax
je 0x40b663
lea eax, [edx + ecx]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebx + 0x10]
lea eax, [edx + ecx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x24], ecx
push dword [ecx]
call fcn.00402833
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b59e
push esi
push eax
mov esi, dword [ebp + 0xc]
push esi
call ecx
test eax, eax
je 0x40b617
xor esi, esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40b606
nop word [eax + eax]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40b5f7
xor ecx, ecx
mov dword [ebp - 0x20], ecx
xor edx, edx
test eax, eax
jns 0x40b5ca
movzx ecx, ax
mov dword [ebp - 0x20], ecx
jmp 0x40b5d8
add eax, 2
je 0x40b5d6
mov edx, dword [ebp + 8]
add edx, eax
jmp 0x40b5d8
xor edx, edx
test edi, edi
je 0x40b5ee
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*4]
push eax
push edx
push ecx
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x40b5f7
inc esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp + 0x14]
jmp 0x40b5b0
test edi, edi
je 0x40b606
push 0
push 0
push 0
push dword [ebp + 0xc]
call edi
add ebx, 0x14
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp + 8]
jmp 0x40b553
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40b625
push 0
push 0
push esi
call eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x479160
push fcn.00410b40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x47b014]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
add esi, 0x10000
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov edi, 0x5a4d
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x40b789
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x24], 0x1000
jne 0x40b811
cmp byte [ebp - 0x20], 1
je 0x40b811
test dword [ebp - 0x20], 0x100
jne 0x40b811
mov dword [ebp - 4], 0
cmp word [esi], di
jne 0x40b7c3
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x40b7c3
cmp eax, 0x40
jb 0x40b7c3
cmp dword [eax + esi], 0x4550
je 0x40b7d2
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x40b764
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x40b764

Function at 0x40d2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x479260
push fcn.00410b40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x47b014]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x40d372
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x40d372
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x40d372
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x40d372
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43fd67
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43fda6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43fda6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43fda6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43fda6
cmp dword [ecx + 0x74], 0xe
jbe 0x43fda6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x44ab66
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44abb1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044b11d
test al, al
jne 0x44abab
sub edx, 2
cmp edx, edi
jne 0x44ab91
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44abd3
lea eax, [edi + 2]
cmp edx, eax
je 0x44abd3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044a75f
add esp, 0x10
jmp 0x44accd
push esi
lea ecx, [ebp - 0x255]
call fcn.0044b11d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44ac16
push dword [ebp - 0x25c]
jmp 0x44abc3
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44ac53
cmp word [ebp - 0x226], 0
je 0x44ac74
cmp word [ebp - 0x226], ax
jne 0x44ac53
cmp word [ebp - 0x224], 0
je 0x44ac74
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044a75f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44acc0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44ac2d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44aca8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44accd
push 0x44a045
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040383c
add esp, 0x10
jmp 0x44ac9d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004022c0
leave
ret

Function at 0x451746
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00402dc9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4517b5
cmp esi, dword [ebp - 4]
je 0x4517b0
cmp dword [ebp + 0xc], 0
je 0x4517b0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45178d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0045116e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4517b7
xor eax, eax
inc eax
jmp 0x4517b7
xor eax, eax
pop edi
pop esi
leave
ret