joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032c60
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x10032d24
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x10063508], eax
call fcn.10034330
test eax, eax
jne 0x10032c84
ret 0xc
mov ecx, dword [0x10063508]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x10063514], edx
mov dword [0x10063510], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x1006350c], eax
mov dword [0x10063508], ecx
call fcn.10035410
test eax, eax
jne 0x10032cc6
call fcn.10034370
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10064dd4], eax
call fcn.10035c00
mov ecx, dword [0x10064dd4]
mov dword [0x10063254], eax
test ecx, ecx
je 0x10032d15
test eax, eax
je 0x10032d15
call fcn.100355f0
call fcn.10034270
call fcn.10035950
call fcn.10035860
call fcn.100352b0
mov eax, dword [0x10063250]
inc eax
mov dword [0x10063250], eax
mov eax, 1
ret 0xc
call fcn.10035470
call fcn.10034370
xor eax, eax
ret 0xc
test eax, eax
jne 0x10032d64
mov eax, dword [0x10063250]
test eax, eax
jle 0x10032d5f
mov ecx, eax
mov eax, dword [0x10063540]
dec ecx
test eax, eax
mov dword [0x10063250], ecx
jne 0x10032d48
call fcn.10035300
call fcn.10035800
call fcn.10035470
call fcn.10034370
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x10032d73
push 0
call fcn.10035540
add esp, 4
mov eax, 1
ret 0xc

Function at 0x10035310
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.100353d0
mov eax, dword [0x10063544]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x10035334
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x10063540], 1
mov byte [0x1006353c], bl
jne 0x1003538e
mov ecx, dword [0x10064dc8]
test ecx, ecx
je 0x1003537c
mov esi, dword [0x10064dc4]
sub esi, 4
cmp esi, ecx
jb 0x1003537c
mov eax, dword [esi]
test eax, eax
je 0x10035375
call eax
mov ecx, dword [0x10064dc8]
sub esi, 4
cmp esi, ecx
jae 0x10035367
push 0x10047040
push 0x10047038
call fcn.100353f0
add esp, 8
push 0x1004704c
push 0x10047044
call fcn.100353f0
add esp, 8
test ebx, ebx
je 0x100353ad
call fcn.100353e0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x10063544], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10035410
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.100343b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x10060970], eax
je 0x10035468
push 0x74
push 1
call fcn.10038a20
mov esi, eax
add esp, 8
test esi, esi
je 0x10035468
mov eax, dword [0x10060970]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10035468
push esi
call fcn.100354a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100354c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x10060970]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1003552e
push 0x74
push 1
call fcn.10038a20
mov esi, eax
add esp, 8
test esi, esi
je 0x10035524
mov ecx, dword [0x10060970]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10035524
push esi
call fcn.100354a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.10032e30
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [0x10060970]
cmp eax, 0xffffffff
je 0x100355ef
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x10035564
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100355e0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10035574
push eax
call fcn.10032600
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10035584
push eax
call fcn.10032600
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10035594
push eax
call fcn.10032600
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x100355a4
push eax
call fcn.10032600
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x100355b4
push eax
call fcn.10032600
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x100355c4
push eax
call fcn.10032600
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x10060f68
je 0x100355d7
push eax
call fcn.10032600
add esp, 4
push esi
call fcn.10032600
add esp, 4
mov eax, dword [0x10060970]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x10035c00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x10063650]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x10035c42
call edi
mov esi, eax
test esi, esi
je 0x10035c2c
mov eax, 1
jmp 0x10035c3d
call ebp
mov ebx, eax
test ebx, ebx
je 0x10035d4f
mov eax, 2
mov dword [0x10063650], eax
cmp eax, 1
jne 0x10035ce2
test esi, esi
jne 0x10035c5b
call edi
mov esi, eax
test esi, esi
je 0x10035d4f
cmp word [esi], 0
mov eax, esi
je 0x10035c75
add eax, 2
cmp word [eax], 0
jne 0x10035c63
add eax, 2
cmp word [eax], 0
jne 0x10035c63
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10035cd4
push edi
call fcn.100326a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10035cd4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10035cc6
push ebx
call fcn.10032600
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10035d4f
test ebx, ebx
jne 0x10035cf3
call ebp
mov ebx, eax
test ebx, ebx
je 0x10035d4f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x10035d0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10035cfb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10035cfb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.100326a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10035d2d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10035da0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x100609a0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x10035dc4
add eax, 8
inc ebp
cmp eax, 0x10060a30
jb 0x10035db5
cmp ecx, dword [ebp*8 + 0x100609a0]
jne 0x10035f6b
mov eax, dword [0x1006325c]
cmp eax, 1
je 0x10035f2d
test eax, eax
jne 0x10035df0
cmp dword [0x10063260], 1
je 0x10035f2d
cmp ecx, 0xfc
je 0x10035f6b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10035e2b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10035e74
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x100445c8
add ebx, ecx
push ebx
call fcn.10032ae0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100445a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x100609a4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10038af0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x10064cc0]
test eax, eax
je 0x10035f3e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x10035f48
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x100609a4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor 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 edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x10038d00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x10038d2c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x10064cc0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x10038d67
push 2
push ebp
push ecx
call fcn.10038c00
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x10038ec9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x10038e11
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x10038dc2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x10038daf
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x10038d92
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10038eba
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x10038e0d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x10038d8e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10038ea9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10038e65
cmp eax, 5
jne 0x10038e4e
call fcn.1003b290
mov dword [eax], 9
call fcn.1003b2a0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.1003b210
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x10038e85
cmp byte [ebp], 0x1a
jne 0x10038e85
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.1003b290
mov dword [eax], 0x1c
call fcn.1003b2a0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x10038e0d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10038efa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x10038e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x10038e11
Function at 0x1003d100
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1003d2be
push 0x3d
push edi
call fcn.1003d670
mov esi, eax
add esp, 8
test esi, esi
je 0x1003d2be
cmp edi, esi
je 0x1003d2be
mov dl, byte [esi + 1]
mov ecx, dword [0x10063528]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x10063524]
cmp eax, ecx
jne 0x1003d157
push eax
call fcn.1003d390
add esp, 4
mov dword [0x10063524], eax
test eax, eax
jne 0x1003d1d2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003d17e
mov eax, dword [0x1006352c]
test eax, eax
je 0x1003d17e
call fcn.1003c580
test eax, eax
je 0x1003d1cd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x1003d18a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.100326a0
add esp, 4
mov dword [0x10063524], eax
test eax, eax
je 0x1003d2be
mov dword [eax], 0
mov eax, dword [0x1006352c]
test eax, eax
jne 0x1003d1cd
push 4
call fcn.100326a0
add esp, 4
mov dword [0x1006352c], eax
test eax, eax
je 0x1003d2be
mov dword [eax], 0
mov eax, dword [0x10063524]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.1003d310
mov esi, eax
add esp, 8
test esi, esi
jl 0x1003d2cf
cmp dword [ebx], 0
je 0x1003d2cf
test ebp, ebp
je 0x1003d2c7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.10032600
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x1003d229
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x1003d218
lea eax, [esi*4]
push eax
push ebx
call fcn.10032e70
add esp, 8
test eax, eax
je 0x1003d243
mov dword [0x10063524], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003d2b6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.100326a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1003d2b6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.10032600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x1003d247
test ebp, ebp
jne 0x1003d2b6
test esi, esi
jge 0x1003d2d9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.10032e70
add esp, 8
test eax, eax
je 0x1003d2be
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x10063524], eax
jmp 0x1003d247
Function at 0x1003d400
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x100637f4]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x1003d448
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x1003d428
mov eax, 1
jmp 0x1003d443
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1003d519
mov eax, 2
mov dword [0x100637f4], eax
cmp eax, 1
jne 0x1003d468
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x1003d52b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x1003d483
mov ecx, dword [0x10063670]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x1003d4a2
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.100326a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1003d4b6
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1003d510
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1003d4f4
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x1003d510
push edi
call fcn.10032600
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x1003d520
push edi
call fcn.10032600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.10032600
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1003d530
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x100637f8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x1003d578
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003d55c
mov eax, 1
jmp 0x1003d573
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x1003d658
mov eax, 2
mov dword [0x100637f8], eax
cmp eax, 2
jne 0x1003d598
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x1003d66a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x1003d5b3
mov ecx, dword [0x10063670]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x1003d5d2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.100326a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1003d5e9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003d64f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x1003d630
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1003d64f
push esi
call fcn.10032600
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x1003d65f
push esi
call fcn.10032600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.10032600
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4032ac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004049f4
test esi, esi
jne 0x4032e2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404ae4
jmp 0x403300
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403150
mov edi, eax
test esi, esi
je 0x403300
cmp dword [ebx], 0
je 0x403300
dec esi
jmp 0x4032e9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4039d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a50
xor eax, eax
push ebp
push 0x403a49
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a8c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a50
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x45f020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404874
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46404c], 0
je 0x4048d5
cmp word [0x464220], 0xd7b2
jne 0x40489d
cmp dword [0x464228], 0
jbe 0x40489d
mov eax, 0x46421c
call dword [0x464238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4048fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f02c], 0
jne 0x4048f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret