joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f349
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x1001f39c
call fcn.10043694
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x1001f39c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1001f392
xor eax, eax
jmp 0x1001f4b5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x1001f3cc
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x1001f3cc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x1001f4b2
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x1001f3f9
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.1001e52c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x1001f4b2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1001f442
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x1001f442
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x1001f43c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.1001e52c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x1001f4a2
and dword [ebp + 0xc], 0
jmp 0x1001f4a2
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x1001f4a2
push 0xc
call fcn.1003b49a
mov esi, eax
test esi, esi
pop ecx
je 0x1001f484
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x1001f486
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x1001f49d
push dword [ebp - 8]
call fcn.10039fce
jmp 0x1001f4a2
call fcn.10039fa5
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x1001f407
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10027e17
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1002a930
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10027eb2
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x100860dc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10027eb2
cmp eax, 1
je 0x10027ed3
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10027eb2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10027e7f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10027eae
xor eax, eax
inc eax
jmp 0x10027ef2
cmp edi, eax
jae 0x10027eb6
xor eax, eax
jmp 0x10027ef2
cmp eax, esi
jae 0x10027ebd
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100860dc]
jmp 0x10027ed6
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10029987
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1004d9a0
call fcn.1002ab04
push 8
call fcn.1002be40
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1008611c], esi
jne 0x100299bb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10086118], esi
mov al, byte [ebp + 0x10]
mov byte [0x10086114], al
cmp dword [ebp + 0xc], edi
jne 0x10029a05
cmp dword [0x10087c10], edi
je 0x100299f5
mov eax, dword [0x10087c0c]
sub eax, 4
mov dword [0x10087c0c], eax
cmp eax, dword [0x10087c10]
jb 0x100299f5
mov eax, dword [eax]
cmp eax, edi
je 0x100299d6
call eax
jmp 0x100299d6
push 0x1005d0a4
mov eax, 0x1005d09c
call fcn.10029905
pop ecx
push 0x1005d0b0
mov eax, 0x1005d0a8
call fcn.10029905
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10029a36
cmp dword [ebp + 0x10], edi
jne 0x10029a44
mov dword [0x1008611c], esi
push dword [ebp + 8]
call fcn.100298c3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10029a43
push 8
call fcn.1002bd8b
pop ecx
ret
call fcn.1002ab3f
ret
Function at 0x10029a7b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10029b6b
mov eax, 0x94
call fcn.1002a930
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10029be0
mov ecx, dword [esi + 0x10]
mov dword [0x100860dc], ecx
mov eax, dword [esi + 4]
mov dword [0x100860e8], eax
mov edx, dword [esi + 8]
mov dword [0x100860ec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100860e0], esi
je 0x10029ae6
or esi, 0x8000
mov dword [0x100860e0], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100860e4], eax
call fcn.1002bc1d
test eax, eax
pop ecx
je 0x10029be0
call fcn.1002cc58
test eax, eax
jne 0x10029b13
call fcn.1002bc6e
jmp 0x10029be0
call fcn.1002ff4e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10087c00], eax
call fcn.100304f5
mov dword [0x10086124], eax
call fcn.1002ffd6
test eax, eax
jl 0x10029b64
call fcn.10030453
test eax, eax
jl 0x10029b5f
call fcn.10030220
test eax, eax
jl 0x10029b5f
push 0
call fcn.1002991d
test eax, eax
pop ecx
jne 0x10029b5f
inc dword [0x10086120]
jmp 0x10029bf1
call fcn.100301d4
call fcn.1002ca41
jmp 0x10029b09
test eax, eax
jne 0x10029b9b
cmp dword [0x10086120], eax
jle 0x10029be0
dec dword [0x10086120]
cmp dword [0x10086118], eax
jne 0x10029b8a
call fcn.10029a6c
call fcn.100301d4
call fcn.1002ca41
call fcn.1002bc6e
jmp 0x10029bf1
cmp eax, 2
jne 0x10029be4
push 0x8c
push 1
call fcn.1002bb48
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10029be0
push esi
push dword [0x1005e630]
call dword [0x100862a8]
test eax, eax
push esi
je 0x10029bda
call fcn.1002ca5e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10029bf1
call fcn.10027ced
pop ecx
xor eax, eax
jmp 0x10029bf4
cmp eax, 3
jne 0x10029bf1
push 0
call fcn.1002cc29
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1002f582
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1005e26c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1002f5b3
xor eax, eax
jmp 0x1002f73c
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10086880]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1002f5ef
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1003497a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1002f6ca
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1002f708
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1002f653
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1002f644
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1002f624
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002f693
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1002f69c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1002f615
jmp 0x1002f69e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1002f737
cmp dword [ebp - 0x6c], edi
je 0x1002f708
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1002f6fd
call fcn.1002b866
mov dword [eax], 9
call fcn.1002b86f
mov dword [eax], esi
jmp 0x1002f732
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002f6f2
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1002f69e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1002f69e
push dword [ebp - 0x6c]
call fcn.1002b878
pop ecx
jmp 0x1002f732
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1002f720
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1002f720
xor eax, eax
jmp 0x1002f73a
call fcn.1002b866
mov dword [eax], 0x1c
call fcn.1002b86f
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1002f73a
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1002a230
add ebp, 0x3a0
leave
ret
Function at 0x10030796
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1005e26c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1005ec10]
je 0x100307cb
inc eax
cmp eax, 0x13
jb 0x100307bc
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1005ec10]
jne 0x100308f1
mov eax, dword [0x1008612c]
cmp eax, 1
je 0x100308c9
cmp eax, edx
jne 0x100307fb
cmp dword [0x10086130], 1
je 0x100308c9
cmp ecx, 0xfc
je 0x100308f1
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10030831
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1002dab0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1002a5e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10030865
mov eax, edi
push eax
call fcn.1002a5e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1004e238
push edi
call fcn.10033190
add esp, 0x10
push edi
call fcn.1002a5e0
push dword [esi + 0x1005ec14]
mov ebx, eax
call fcn.1002a5e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1002a930
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1002dab0
push edi
push ebx
call fcn.1002dac0
push 0x1004e218
push ebx
call fcn.1002dac0
push dword [esi + 0x1005ec14]
push ebx
call fcn.1002dac0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100350d3
add esp, 0x2c
jmp 0x100308f1
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1005ec14]
push dword [esi]
call fcn.1002a5e0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1002a230
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10034e4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x10035021
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10086880]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x10035021
test cl, 0x48
je 0x10034eb8
cmp byte [eax + 5], 0xa
je 0x10034eb8
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10034f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10034ef2
call fcn.1002b866
mov dword [eax], 9
call fcn.1002b86f
mov dword [eax], esi
jmp 0x10034f02
cmp eax, 0x6d
je 0x10035021
push eax
call fcn.1002b878
pop ecx
or eax, 0xffffffff
jmp 0x10035023
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1003501c
test eax, eax
je 0x10034f31
cmp byte [ebx], 0xa
jne 0x10034f31
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x10034f3a
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x10035016
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x10035006
cmp al, 0xd
je 0x10034f6c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x10034ff8
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x10034f86
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x10034f81
add dword [ebp + 0x10], 2
jmp 0x10034fda
mov dword [ebp + 0x10], eax
jmp 0x10034ff4
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10034fae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10034ff4
cmp dword [ebp - 0xc], 0
je 0x10034ff4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10034fcf
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10034fda
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x10034ff7
cmp ebx, dword [ebp + 0xc]
jne 0x10034fdf
cmp byte [ebp - 1], 0xa
jne 0x10034fdf
mov byte [ebx], 0xa
jmp 0x10034ff7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002fb38
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x10034ff8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10034f50
jmp 0x10035016
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x10035016
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x10035023
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100350d3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10086590], ebx
push esi
push edi
jne 0x10035153
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003518e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004f8d4
push edi
call esi
test eax, eax
mov dword [0x10086590], eax
je 0x1003518e
push 0x1004f8c4
push edi
call esi
push 0x1004f8b0
push edi
mov dword [0x10086594], eax
call esi
cmp dword [0x100860dc], 2
mov dword [0x10086598], eax
jne 0x10035153
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100865a0], eax
je 0x10035153
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1008659c], eax
mov eax, dword [0x1008659c]
test eax, eax
je 0x10035198
call eax
test eax, eax
je 0x1003517f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100865a0]
test eax, eax
je 0x1003517f
test byte [ebp - 8], 1
jne 0x10035198
cmp dword [0x100860e8], 4
jb 0x10035192
or byte [ebp + 0x12], 0x20
jmp 0x100351b7
xor eax, eax
jmp 0x100351c7
or byte [ebp + 0x12], 4
jmp 0x100351b7
mov eax, dword [0x10086594]
test eax, eax
je 0x100351b7
call eax
mov ebx, eax
test ebx, ebx
je 0x100351b7
mov eax, dword [0x10086598]
test eax, eax
je 0x100351b7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10086590]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10036bf9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x10036c12
or eax, 0xffffffff
jmp 0x10036c73
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10036c6f
push 0x3d
push esi
call fcn.1002aa7b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x10036c6f
cmp esi, eax
je 0x10036c6f
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x100860fc]
sete cl
cmp eax, dword [0x10086100]
mov dword [ebp - 8], ecx
jne 0x10036c55
mov edi, eax
call fcn.10036b98
mov dword [0x100860fc], eax
cmp eax, ebx
jne 0x10036cae
cmp dword [ebp + 0xc], ebx
je 0x10036c77
cmp dword [0x10086104], ebx
je 0x10036c77
call fcn.10035aeb
test eax, eax
je 0x10036cae
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x10036c80
xor eax, eax
jmp 0x10036c72
push 4
call fcn.10027e05
cmp eax, ebx
pop ecx
mov dword [0x100860fc], eax
je 0x10036c6f
mov dword [eax], ebx
cmp dword [0x10086104], ebx
jne 0x10036cae
push 4
call fcn.10027e05
cmp eax, ebx
pop ecx
mov dword [0x10086104], eax
je 0x10036c6f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x100860fc]
call fcn.10036b4b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x10036d0f
cmp dword [esi], ebx
je 0x10036d0f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.10027ced
cmp dword [ebp - 8], ebx
pop ecx
jne 0x10036cf2
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x10036d50
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x10036ce9
mov eax, edi
shl eax, 2
push eax
push dword [0x100860fc]
call fcn.1002a728
cmp eax, ebx
pop ecx
pop ecx
je 0x10036d50
jmp 0x10036d4b
cmp dword [ebp - 8], ebx
jne 0x10036dbb
cmp edi, ebx
jge 0x10036d1e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x100860fc]
call fcn.1002a728
cmp eax, ebx
pop ecx
pop ecx
je 0x10036c6f
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x100860fc], eax
cmp dword [ebp + 0xc], ebx
je 0x10036da5
push dword [ebp - 4]
call fcn.1002a5e0
inc eax
inc eax
push eax
call fcn.10027e05
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x10036da5
push dword [ebp - 4]
push esi
call fcn.1002dab0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x10036d9e
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.10027ced
pop ecx
cmp dword [ebp - 8], ebx
je 0x10036db3
push dword [ebp - 4]
call fcn.10027ced
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x10036c72
push dword [ebp - 4]
call fcn.10027ced
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x10036c7c
Function at 0x10036dce
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1004f928
call fcn.1002ab04
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x100865c4], edi
jne 0x10036e12
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10036dfd
mov dword [0x100865c4], ebx
jmp 0x10036e12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10036e12
mov dword [0x100865c4], 2
mov eax, dword [0x100865c4]
cmp eax, ebx
jne 0x10036e32
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x10036ef5
cmp eax, 2
je 0x10036e3b
cmp eax, edi
jne 0x10036e63
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x10036e4e
mov eax, dword [0x1008652c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x10036e6a
xor eax, eax
jmp 0x10036ef5
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.1002a930
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x10036e9d
cmp esi, edi
jne 0x10036eb3
push dword [ebp - 0x20]
call fcn.10027e05
pop ecx
mov esi, eax
cmp esi, edi
je 0x10036e63
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10036ee6
cmp dword [ebp + 0x14], edi
jne 0x10036ed0
push edi
push edi
jmp 0x10036ed6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x10036ef2
push esi
call fcn.10027ced
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.1002ab3f
ret