joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a3d0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a5fc
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.0042a390
lea ecx, [ebp - 0x34]
call fcn.00441a76
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00440170
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00440170
mov byte [ebp - 4], 3
call fcn.0044fb8c
mov eax, dword [eax + 4]
add eax, 0xd4
mov eax, dword [eax + 0xf0]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044033d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00440250
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00440652
push eax
push 0
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004406a7
test edi, edi
je 0x42a485
mov eax, dword [ebp - 0x14]
push eax
call fcn.00440de5
test edi, edi
jne 0x42a4e1
lea ecx, [ebp - 0x18]
call fcn.00440250
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00440652
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004406a7
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00440652
push eax
push 0
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004406a7
mov eax, dword [ebp - 0x14]
push eax
call fcn.00440de5
mov edi, dword [ebp + 8]
test edi, edi
je 0x42a58d
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043e584
push eax
lea ecx, [ebp - 0x14]
call fcn.004406cf
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004406a7
push edi
lea ecx, [ebp - 0x14]
call fcn.004405fd
mov ebx, 1
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004417d0
test eax, eax
je 0x42a58d
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00440652
push eax
push ebx
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004406a7
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043e584
push eax
lea ecx, [ebp - 0x14]
call fcn.004406cf
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004406a7
push edi
lea ecx, [ebp - 0x14]
call fcn.004405fd
inc ebx
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004417d0
test eax, eax
jne 0x42a52b
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov dword [esi + 0x18], 1
mov byte [ebp - 4], 3
call fcn.0042a5d8
mov byte [ebp - 4], 2
call fcn.0042a5e0
mov byte [ebp - 4], 1
call fcn.0042a5e8
mov dword [ebp - 4], 0xffffffff
call fcn.0042a606
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42bbb0
Capabilities:
Capture microphone audio

Disassembly:
mov eax, dword [esp + 4]
push 0x20
cmp word [eax + 2], 1
mov ecx, dword [esp + 0xc]
push ecx
jne 0x42bbd2
mov eax, dword [eax + 0x9e]
push eax
call dword [sym.imp.WINMM.dll_waveOutWrite]
ret 8
mov eax, dword [eax + 0xa2]
push eax
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
ret 8
Function at 0x4306f0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456700
push 0x433d94
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x463f28], eax
xor eax, eax
mov al, byte [0x463f29]
mov dword [0x463f34], eax
mov eax, dword [0x463f28]
shr dword [0x463f28], 0x10
and eax, 0xff
mov dword [0x463f30], eax
shl eax, 8
add eax, dword [0x463f34]
mov dword [0x463f2c], eax
call fcn.00432d20
call fcn.00432920
test eax, eax
jne 0x430769
push 0x10
call fcn.00430890
add esp, 4
mov dword [ebp - 4], 0
call fcn.00433bb0
call fcn.00431720
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x469250], eax
call fcn.00433a10
mov dword [0x463f10], eax
test eax, eax
je 0x43079c
cmp dword [0x469250], 0
jne 0x4307a6
push 0xffffffffffffffff
call fcn.00430910
add esp, 4
call fcn.004337a0
call fcn.004336c0
call fcn.004308e0
mov esi, dword [0x469250]
mov al, byte [esi]
cmp al, 0x22
je 0x4307cd
cmp al, 0x20
jbe 0x4307fa
inc esi
cmp byte [esi], 0x20
ja 0x4307c5
jmp 0x4307fa
inc esi
cmp byte [esi], 0x22
je 0x4307f9
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4307f4
xor eax, eax
mov al, bl
push eax
call fcn.00433660
add esp, 4
test eax, eax
je 0x4307ee
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4307d6
cmp byte [esi], 0x22
jne 0x4307fa
inc esi
cmp byte [esi], 0
je 0x43080a
cmp byte [esi], 0x20
ja 0x43080a
inc esi
cmp byte [esi], 0
jne 0x4307ff
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x43082e
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00430910
jmp 0x43086f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430950
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00430a10
cmp dword [0x463f64], 1
mov esi, dword [esp + 0x10]
jne 0x430973
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x463f60], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x463f5c], bl
jne 0x4309cd
cmp dword [0x46924c], 0
je 0x4309bb
mov edi, dword [0x469248]
sub edi, 4
cmp dword [0x46924c], edi
ja 0x4309bb
mov eax, dword [edi]
test eax, eax
je 0x4309b0
call eax
sub edi, 4
cmp dword [0x46924c], edi
jbe 0x4309a8
push 0x4621a8
push 0x4621a0
call fcn.00430a30
add esp, 8
push 0x4621b0
push 0x4621ac
call fcn.00430a30
add esp, 8
test ebx, ebx
je 0x4309ec
call fcn.00430a20
pop edi
pop esi
pop ebx
ret
mov dword [0x463f64], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x432920
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00432a10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4643e0], eax
cmp eax, 0xffffffff
jne 0x43293a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.004352e0
add esp, 8
mov esi, eax
test esi, esi
je 0x43297c
push esi
mov eax, dword [0x4643e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x43297c
push esi
call fcn.00432980
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4329a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4643e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x432a03
push 0x74
push 1
call fcn.004352e0
add esp, 8
mov edi, eax
test edi, edi
je 0x4329f9
push edi
mov eax, dword [0x4643e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4329f9
push edi
call fcn.00432980
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x432a03
push 0x10
call fcn.00430890
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x433a10
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x46455c], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x433a60
call esi
mov edi, eax
test edi, edi
je 0x433a3e
mov dword [0x46455c], 1
mov ebx, dword [esp + 0x10]
jmp 0x433a68
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x433a56
mov dword [0x46455c], 2
jmp 0x433a68
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
cmp dword [0x46455c], 1
jne 0x433b17
test edi, edi
jne 0x433a8b
call esi
mov edi, eax
test edi, edi
jne 0x433a8b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x433aa5
add esi, 2
cmp word [esi], 0
jne 0x433a93
add esi, 2
cmp word [esi], 0
jne 0x433a93
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x433b06
push ebp
call fcn.004303c0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x433b06
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x433af5
push ebx
call fcn.004303a0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x46455c], 2
jne 0x433b9b
test ebx, ebx
jne 0x433b3a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x433b3a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x433b4f
inc ebp
cmp byte [ebp], 0
jne 0x433b41
inc ebp
cmp byte [ebp], 0
jne 0x433b41
sub ebp, ebx
inc ebp
push ebp
call fcn.004303c0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x433b74
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x433eb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x464588
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x433ed7
add eax, 8
inc ecx
cmp eax, 0x464610
jb 0x433ec8
cmp dword [ecx*8 + 0x464588], edx
lea ebx, [ecx*8]
jne 0x434092
cmp dword [0x463f1c], 1
je 0x434057
cmp dword [0x463f1c], 0
jne 0x433f0e
cmp dword [0x463f20], 1
je 0x434057
cmp edx, 0xfc
je 0x434092
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x433f4b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x433f8f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x46330c
push ebp
call fcn.00436970
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x456b88
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x46458c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004368d0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x469140]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x43406e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x46458c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x436af0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push ebp
mov ebp, dword [esp + 0x434]
cmp ebp, ebx
jne 0x436b18
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x469140
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov esi, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [esi]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x436b59
push 2
push 0
push edx
call fcn.00436d70
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x436bf5
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x436c2e
lea esi, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x436bbc
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x436baa
mov byte [esi], 0xd
inc ebx
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x436b91
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436c24
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp esi, eax
jle 0x436b7c
jmp 0x436c2e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436c24
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x436c2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x436cda
cmp dword [esp + 0x10], 0
je 0x436c8a
cmp dword [esp + 0x10], 5
jne 0x436c6d
call fcn.004313e0
mov dword [eax], 9
call fcn.004313f0
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00431360
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x436cb4
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x436cb4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.004313e0
mov dword [eax], 0x1c
call fcn.004313f0
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x439bf0
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x46567c]
push esi
test eax, eax
push edi
push ebp
jne 0x439c38
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x439c18
mov eax, 1
jmp 0x439c3e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x439c31
mov eax, 2
jmp 0x439c3e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [0x46567c], eax
cmp eax, 1
jne 0x439c63
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x46567c], eax
cmp eax, 2
jne 0x439cf1
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x439c7f
mov edi, dword [0x464860]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x439ca0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.004303c0
add esp, 4
mov esi, eax
test esi, esi
jne 0x439cb6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x439ce6
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x439cf6
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x439d0e
push esi
call fcn.004303a0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x439ce6
push esi
call fcn.004303a0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x439d20
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x465680]
push esi
test eax, eax
push edi
push ebp
jne 0x439d68
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x439d48
mov eax, 2
jmp 0x439d6e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439d61
mov eax, 1
jmp 0x439d6e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x465680], eax
cmp eax, 2
jne 0x439d93
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x465680], eax
cmp eax, 1
jne 0x439e2f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x439daf
mov edi, dword [0x464860]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x439dd0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.004303c0
add esp, 4
mov esi, eax
test esi, esi
jne 0x439ded
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439e24
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x439e34
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x439e4f
push esi
call fcn.004303a0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x439e24
push esi
call fcn.004303a0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43a600
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x43a83d
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00430bc0
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x43a83d
cmp dword [esp + 0x18], ebp
je 0x43a83d
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x463f44]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x463f48], ecx
jne 0x43a65d
push ecx
call fcn.0043a8b0
add esp, 4
mov dword [0x463f44], eax
cmp dword [0x463f44], 0
jne 0x43a70d
cmp dword [esp + 0x1c], 0
je 0x43a694
cmp dword [0x463f4c], 0
je 0x43a694
call fcn.004399a0
test eax, eax
je 0x43a70d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x43a6a5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x463f44], 0
jne 0x43a6d9
push 4
call fcn.004303c0
add esp, 4
mov dword [0x463f44], eax
test eax, eax
jne 0x43a6ce
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x463f44]
mov dword [eax], 0
cmp dword [0x463f4c], 0
jne 0x43a70d
push 4
call fcn.004303c0
add esp, 4
mov dword [0x463f4c], eax
test eax, eax
jne 0x43a702
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x463f4c]
mov dword [eax], 0
mov esi, dword [0x463f44]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0043a850
add esp, 8
mov edi, eax
test edi, edi
jl 0x43a775
cmp dword [esi], 0
je 0x43a775
cmp dword [esp + 0x10], 0
je 0x43a76c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.004303a0
add esp, 4
cmp dword [ebx], 0
je 0x43a759
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x43a74a
shl edi, 2
push edi
push esi
call fcn.00433470
add esp, 8
test eax, eax
je 0x43a7bd
jmp 0x43a7b8
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x43a7bd
cmp dword [esp + 0x10], 0
jne 0x43a833
test edi, edi
jge 0x43a786
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00433470
add esp, 8
test eax, eax
jne 0x43a7a8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x463f44], eax
cmp dword [esp + 0x1c], 0
je 0x43a829
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004303c0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x43a829
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb ecx, ecx
lea eax, [ebx + ebp]
mov byte [eax], 0
lea eax, [eax + 1]
and ecx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004303a0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret