joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014d0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_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 sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x4015d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40162b
cmp byte [esi + ebx - 1], 0xa
je 0x4015ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x405094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x401d10
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x405094]
movzx eax, al
bt eax, esi
jae 0x401d70
mov ecx, dword [0x405084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x401c16
test byte [0x402018], 8
jne 0x401cb0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x402028], 8
jne 0x401c60
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401be5
cmp esi, 3
jbe 0x401c20
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4030dc]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x401be5
mov ecx, dword [0x405094]
test ecx, ecx
je 0x401d50
mov dword [esp], 0x402028
call dword [0x405094]
test al, 8
je 0x401bbc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x401bbc
mov ebx, dword [0x405094]
test ebx, ebx
je 0x401d30
mov dword [esp], 0x402018
call dword [0x405094]
test al, 8
je 0x401ba9
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
shr edx, 6
imul ebx, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, ebx
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x401baf
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401b70
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401cba
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401c6e
mov eax, 0xffffffff
jmp 0x401c16
Function at 0x413f20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x3c7b968]
xor edx, edx
cmp eax, edx
jne 0x413f46
xor eax, eax
mov byte [eax + 0x3c7b868], al
inc eax
cmp eax, 0x100
jl 0x413f2e
mov dword [0x3c7b968], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x3c7b868
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x413fd7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x413faa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x413f78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x414050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4140a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41408a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cbc0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x478a48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42cbf9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42cd0c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42cc0d
mov eax, 0xffffffc7
jmp 0x42cd0e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42cc1e
cmp dword [esi + 8], eax
jne 0x42cc0d
cmp dword [esi + 8], eax
jne 0x42cc37
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42cc37
mov eax, 0xffffffc7
jmp 0x42cd0e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42cc4b
push eax
mov ecx, ebx
call fcn.0042c3f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402640
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42cc7c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402660
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042bb60
test eax, eax
mov dword [esp + 0x38], eax
je 0x42ccaf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x3c4cdc8
call fcn.00402840
mov eax, dword [esp + 0x38]
jmp 0x42cd0e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042ca20
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42ccf3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042ca40
mov esi, eax
test esi, esi
jne 0x42cd23
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042ca20
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42ccc5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x3c4cdc8
call fcn.00402840
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x3c4cdc8
call fcn.00402840
mov eax, esi
jmp 0x42cd0e
Function at 0x43cfc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479103
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046d262
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x3c52b38
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x3c50578
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x47a0e0]
push eax
mov ecx, edi
call fcn.004728af
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473dcb
test eax, eax
je 0x43d0dc
mov ecx, dword [esp + 0x3c]
call fcn.004728dc
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x47a5cc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d0a0
push edi
mov ecx, esi
call fcn.0046ff44
mov ecx, esi
call fcn.0043d240
cmp dword [esp + 0x38], 1
jne 0x43d0d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047007f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x43fb00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fb33
push esi
call fcn.0044de50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fb2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43fbb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fba2
mov eax, dword [esi + 8]
test eax, eax
je 0x43fb57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43fb9e
cmp eax, 2
je 0x43fba2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fb4a
cmp eax, 3
je 0x43fb7d
cmp eax, 1
jne 0x43fb4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43fb4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fb4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fbe0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fbc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fbe0
add esp, 4
pop esi
ret
Function at 0xdb5b48
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdb5b52
pushal
call 0xdb5b58
pop ebp
sub ebp, 0x10
add byte [eax], al
sub ebp, 0x9b5b48
jmp 0xdb5b6e
mov eax, 0x9b5b48
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0x5fe28f78
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb5b85
jmp 0xdb5b98
mov ch, 0xf3
int1
int1
inc esp
js 0xdb5c17
js 0xdb5b9a
mov ecx, 0x78787880
jnp 0xdb5b5d
sar byte [eax + edi*2 + 0x78], 0x78
ret 0x7850
hlt
Function at 0x101ca4e
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10528e8
call fcn.0101cc54
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10599b0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101c863
cmp eax, esi
jne 0x101c856
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x101c866
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101c83d
xor esi, esi
inc esi
mov eax, dword [0x10599ac]
cmp eax, esi
jne 0x101c879
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101c8b4
mov eax, dword [0x10599ac]
test eax, eax
jne 0x101c8ae
mov dword [0x10599ac], esi
push 0x10014b4
push 0x10014a8
call fcn.0101c7ba
pop ecx
pop ecx
test eax, eax
je 0x101c8b4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x101c97e
mov dword [0x105639c], esi
mov eax, dword [0x10599ac]
cmp eax, esi
jne 0x101c8d8
push 0x10014a4
push 0x100143c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10599ac], 2
cmp dword [ebp - 0x1c], ebx
jne 0x101c8e5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10599b4], ebx
je 0x101c906
push 0x10599b4
call fcn.0101cbc9
pop ecx
test eax, eax
je 0x101c906
push ebx
push 2
push ebx
call dword [0x10599b4]
push dword [0x1056384]
push dword [0x1056388]
push dword [0x1056380]
call fcn.0101bd65
add esp, 0xc
mov dword [0x1056398], eax
cmp dword [0x105638c], ebx
jne 0x101c964
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x105639c], ebx
jne 0x101c972
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1056398]
call fcn.0101cc99
ret
call fcn.0101cda1
jmp 0x101c81b

Function at 0x101f4da
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101f50f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101f553
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x101f54b
cmp edi, esi
jbe 0x101f54b
push esi
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101f54b
cmp dword [ebp - 4], esi
jbe 0x101f54b
xor edx, edx
mov eax, edi
div dword [ebp - 4]
add dword [0x10566e4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1042888
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x800
push 8
push dword [0x10576f8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10428b2
push 0xe
pop edi
jmp 0x1042945
push esi
mov esi, 0x400
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x104292d
cmp eax, esi
jae 0x104292d
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.0104276f
mov edi, eax
test edi, edi
jne 0x1042935
lea edi, [esi + 0x10]
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x10428f1
push 0x6e
jmp 0x104290a
and dword [ebp - 4], 0
push dword [ebp - 4]
mov ecx, dword [esi + 4]
mov eax, dword [edi]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x18]
test eax, eax
je 0x104290d
push 0x19
pop edi
jmp 0x1042935
push 0
add esi, 0xc
push esi
push 0x1016668
call sub.XmlLite.dll_CreateXmlReader
test eax, eax
jne 0x1042933
mov eax, dword [esi]
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
jmp 0x1042933
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
push 0
push dword [0x10576f8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8

Function at 0x104c0d6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push 0
push dword [ebp + 0x10]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x208
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x104c116
mov dword [ebp + 8], 0x8007000e
jmp 0x104c1a8
push ebx
push esi
push edi
mov esi, 0x104
push esi
push eax
push dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jbe 0x104c134
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
ja 0x104c162
call ebx
test eax, eax
je 0x104c156
jle 0x104c15b
and eax, edi
or eax, esi
jmp 0x104c15b
mov eax, 0x80004005
mov dword [ebp + 8], eax
test eax, eax
jl 0x104c193
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jbe 0x104c17d
and dword [ebp + 8], 0
jmp 0x104c193
call ebx
test eax, eax
je 0x104c18b
jle 0x104c190
and eax, edi
or eax, esi
jmp 0x104c190
mov eax, 0x80004005
mov dword [ebp + 8], eax
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov eax, dword [ebp + 8]
leave
ret 0xc
Function at 0x104d6cb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push 0xfffffffffffffff5
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
je 0x104d814
cmp ebx, edi
je 0x104d814
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0104d643
mov esi, eax
test esi, esi
jl 0x104d842
push ebx
call fcn.0104dbe1
test eax, eax
je 0x104d757
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
call fcn.0104d509
test eax, eax
je 0x104d733
xor esi, esi
jmp 0x104d842
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x104d74b
jle 0x104d750
and eax, 0xffff
or eax, 0x80070000
jmp 0x104d750
mov eax, 0x80004005
mov esi, eax
jmp 0x104d842
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push 2
pop ecx
inc eax
mul ecx
push edx
push eax
call fcn.0101b8f5
mov esi, eax
test esi, esi
jl 0x104d842
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x104d797
mov esi, 0x8007000e
jmp 0x104d82e
push edi
push dword [ebp + 0xc]
mov byte [edi], 0
call dword [sym.imp.USER32.dll_CharToOemW]
mov ebx, 0x80070000
test eax, eax
jne 0x104d7cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x104d7c2
jle 0x104d7c7
and eax, 0xffff
or eax, ebx
jmp 0x104d7c7
mov eax, 0x80004005
mov esi, eax
test eax, eax
jl 0x104d82e
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push edi
call fcn.0104d578
mov esi, eax
test esi, esi
jl 0x104d82e
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x104d82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x104d80d
jle 0x104d82c
and eax, 0xffff
or eax, ebx
jmp 0x104d82c
mov eax, 0x80004005
jmp 0x104d82c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x104d750
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test edi, edi
je 0x104d842
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x104e71f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1055908]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0x3a
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x800
push 0
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x104e774
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x104e859
push esi
push 8
push ebx
push 0x1e
xor eax, eax
mov esi, 0x400
push esi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x104e7a7
push ebx
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.0101bc13
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x104e848
push dword [ebp - 0x18]
push esi
push ebx
call fcn.0101bc13
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x104e848
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
and dword [ebp - 0x18], 0
pop ecx
pop ecx
lea edi, [ebp - 0x2c]
test eax, eax
je 0x104e7fa
push edi
push eax
call fcn.0104e6ad
inc dword [ebp - 0x18]
add edi, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x104e848
lea eax, [ebp - 0x14]
push eax
push 0
call esi
cmp dword [ebp - 0x18], 3
pop ecx
pop ecx
jb 0x104e7d2
mov eax, dword [ebp - 0x18]
dec eax
je 0x104e83d
dec eax
je 0x104e828
dec eax
je 0x104e80f
mov dword [ebp - 0x1c], 0x80070057
jmp 0x104e848
mov cx, word [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov word [eax + 0x64], cx
mov cx, word [ebp - 0x28]
mov word [eax + 0x66], cx
mov cx, word [ebp - 0x24]
jmp 0x104e837
mov cx, word [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov word [eax + 0x66], cx
mov cx, word [ebp - 0x28]
mov word [eax + 0x68], cx
jmp 0x104e848
mov ax, word [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov word [ecx + 0x68], ax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101ca75
leave
ret 8
Function at 0x1050213
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 6
xor ebx, ebx
pop ecx
mov eax, 0x1000000
push 0x104
mov dword [0x1058010], eax
mov dword [0x1058538], eax
xor eax, eax
push ebx
mov edi, 0x1058540
push 0x1058558
mov byte [0x1058b88], bl
mov dword [0x10579e0], ebx
mov dword [0x10579e4], ebx
mov dword [0x1058014], ebx
mov dword [0x105853c], ebx
rep stosd dword es:[edi], eax
call sub.msvcrt.dll_memset
push 0x1017d8c
call fcn.010501a3
add esp, 0x10
push 0x400
mov esi, 0x1058660
push esi
push 0x1017d7c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, 1
jge 0x1050291
mov byte [0x1058660], bl
push esi
push 0x1017d68
call fcn.010501a3
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x105832c], eax
cmp eax, ebx
jne 0x10502c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1017d40
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
xor eax, eax
jmp 0x105033f
push ebx
push esi
push eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
cmp eax, ebx
jne 0x10502e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1017d1c
jmp 0x10502b9
push 0x10813
call dword [sym.imp.dbghelp.dll_SymSetOptions]
push eax
push 0x1017d0c
mov dword [0x1057bfc], eax
call fcn.010501a3
pop ecx
pop ecx
push ebx
push ebx
push 0x10501ea
push dword [0x105832c]
call dword [sym.imp.dbghelp.dll_SymRegisterCallback64]
mov esi, eax
cmp esi, ebx
jne 0x1050324
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1017ce0
jmp 0x10502b9
call fcn.0104f800
cmp dword [0x105800c], ebx
jne 0x105033d
push 0x1017c98
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
ret