joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0xfc324ed
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x72030431
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401907
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push 0xa
push 0x1001
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401925
jmp 0x401b16
mov dword [0x403c74], eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x40193b
jmp 0x401b16
mov dword [0x403c78], eax
push dword [0x403c74]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x401956
jmp 0x401b16
mov dword [0x403c7c], eax
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x40196a
jmp 0x401b16
mov dword [0x403c80], eax
mov ebx, eax
mov dword [ebp - 8], eax
push 0x10
push ebx
push 0x403450
call sub.kernel32.dll_RtlMoveMemory
add ebx, 0x10
mov eax, dword [0x403c78]
sub eax, 0x10
push eax
push ebx
call fcn.00401a90
mov eax, dword [ebx]
add ebx, 4
mov dword [0x410684], eax
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x401a09
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410690], eax
push dword [ebp - 4]
push ebx
push dword [0x410690]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410694], eax
push dword [ebp - 4]
push ebx
push dword [0x410694]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [0x410698], eax
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [0x41069c], eax
cmp dword [0x41069c], 2
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a8], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a0], eax
cmp dword [0x4106a0], 1
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a4], eax
mov eax, dword [ebx]
mov dword [0x4106b0], eax
add ebx, 4
mov ecx, ebx
sub ecx, dword [ebp - 8]
mov eax, dword [0x403c78]
sub eax, ecx
mov dword [0x41068c], eax
push dword [0x41068c]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [0x410688], eax
push dword [0x41068c]
push ebx
push dword [0x410688]
call sub.kernel32.dll_RtlMoveMemory
push dword [0x403c7c]
call sub.kernel32.dll_FreeResource
pop ebx
leave
ret

Function at 0x5d8e69
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5d8b64
add ecx, 0x91417fc
call fcn.005d8eba
sub esp, 4
mov dword [esp], 0xec697abf
pop ecx
xor dword [ebx], eax
add ecx, 0xe1f6669b
add ecx, 0x28adafc5
sub ecx, 1
add ebx, 2
add edx, ecx
cmp ebx, edi
jl fcn.005d8e69
sub edx, 0x246527b9
mov edx, 0x9721ac3e
ret
Function at 0x401520
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401580
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401676
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x4015f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x4015c5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x4015d5
cmp byte [esp + 0x1e], 0
je 0x4015d5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x4015d5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401520
nop

Function at 0x401910
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x405030
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x405048]
sub esp, 4
test ebx, ebx
je 0x40195b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401954
test esi, esi
je 0x401954
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401930
mov dword [esp], 0x405030
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x4013c5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4159d0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x415b7a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
sub byte [esi + ebx], 0x49
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xaa
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0xd4
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x92
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x20
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
add esp, 0x44
push eax
call fcn.0040616d
add byte [esi + ebx], 0x5a
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x51
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x32
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x61
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x3e
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xfc
add esp, 0x40
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xa8
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0x1d
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xf4
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x63
add esp, 0x30
inc esi
cmp esi, edi
jb 0x4159f0
pop ebx
pop edi
pop esi
ret

Function at 0x4035f3
Capabilities:
Terminate process

Disassembly:
jmp 0x453df9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453e0a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405948
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40371f
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c842
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c853
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c729
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c87b
push ebx
push esi
push edi
call fcn.0040572c
add esp, 0xc
push 0
call fcn.004062b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x401c5a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
sub esp, 0xc
mov ebx, ecx
lea ecx, [esp + 0x74]
push edx
call fcn.0040bf6d
mov eax, dword [esp + 0x68]
xor ecx, ecx
push dword [esp + 0x10]
mov word [esp + 0x18], 1
push dword [esp + 0x18]
mov eax, dword [eax + 4]
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
mov eax, dword [esp + eax + 0xac]
test eax, eax
mov dword [esp + 0x40], 0xf
sete byte [esp + 0x28]
push dword [esp + 0x28]
push eax
call fcn.0040e4d9
lea ecx, [esp + 0x78]
call fcn.0040d409
xor edi, edi
test eax, eax
jne 0x401ce1
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x68]
push edi
push 2
mov eax, dword [eax + 4]
add ecx, eax
call fcn.0040d51f
mov dword [ebx], edi
mov dword [ebx + 4], edi
call fcn.0040dd72
mov esi, str._c_r
mov dword [ebx], eax
push esi
call fcn.0040118c
pop ecx
push eax
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.0040cbfb
mov esi, eax
jmp 0x401e10
push 0x436a5c
lea edi, [esi + 5]
call fcn.0040118c
pop ecx
push eax
push edi
push 0x436a5c
lea ecx, [esp + 0x2c]
call fcn.0040cbfb
and dword [esp + 0x60], 0
mov esi, eax
mov ecx, esi
mov dword [esp + 0x64], 0xf
sub ecx, edi
mov byte [esp + 0x50], 0
push ecx
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040cf24
mov edi, 0x436a60
push edi
call fcn.0040118c
pop ecx
push eax
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.0040cbfb
mov edi, str.__v_
mov esi, eax
push edi
call fcn.0040118c
pop ecx
push eax
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.0040cbfb
and dword [esp + 0x48], 0
mov edi, eax
mov ecx, edi
mov dword [esp + 0x4c], 0xf
sub ecx, esi
mov byte [esp + 0x38], 0
sub ecx, 3
lea eax, [esp + 0x20]
push ecx
lea ecx, [esi + 3]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.0040cf24
lea eax, [esp + 0x50]
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040e553
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x38]
add ecx, 0x28
cmp ecx, eax
je 0x401ddc
push 0xffffffffffffffff
push 0
push eax
call fcn.0040cf24
mov esi, str._c_r
push esi
call fcn.0040118c
pop ecx
push eax
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.0040cbfb
xor edi, edi
lea ecx, [esp + 0x38]
push edi
push 1
mov esi, eax
call fcn.0040cba9
push edi
push 1
lea ecx, [esp + 0x58]
call fcn.0040cba9
cmp esi, 0xffffffff
jne 0x401d0c
push edi
push 1
lea ecx, [esp + 0x28]
call fcn.0040cba9
lea ecx, [esp + 0xd8]
call fcn.0040bf2a
lea eax, [esp + 0xd8]
mov dword [esp + 0xd8], vtable.std::ios_base.0
push eax
call fcn.0040f379
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418113
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x418152
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418152
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418152
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x418152
cmp dword [ecx + 0x74], 0xe
jbe 0x418152
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41cdfc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x42f50c
push str.FlsAlloc
push 0x1f
call fcn.0041cc67
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ce30
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a258]
call esi
jmp 0x41ce36
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ce7a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x42f530
push str.FlsGetValue
push 0x21
call fcn.0041cc67
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ceb1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a258]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ceb9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x42f544
push str.FlsSetValue
push 0x22
call fcn.0041cc67
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cef3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42a258]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41d71f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00410fa0
mov eax, dword [0x43a070]
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.0041adbf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d761
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d8bd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004291e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43b988]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041dba0
mov ecx, dword [esi*4 + 0x43b988]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41d8b6
cmp eax, dword [ecx + edi + 0x24]
jne 0x41d8b6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d8b6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041dba0
add esp, 0x14
test edx, edx
jl 0x41d8b6
jg 0x41d82c
test eax, eax
jb 0x41d8b6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d8b6
jl 0x41d846
cmp dword [ebp - 0x1008], eax
ja 0x41d8b6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d864
test ebx, ebx
je 0x41d89d
cmp ecx, edi
jae 0x41d89d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d87e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d88a
cmp byte [ecx + 1], 0xa
jne 0x41d88a
inc ecx
jmp 0x41d88a
movzx eax, al
movsx eax, byte [eax + 0x43a9a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d864
cmp edx, ebx
jne 0x41d864
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d8bb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004106b2
leave
ret
Function at 0x422403
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 0x4224a0
push ebx
push esi
call fcn.004223cc
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.004211a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42244d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42249f
push edi
push eax
call fcn.00417330
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42246d
call fcn.00417805
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42249e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004211a1
add esp, 0x20
test eax, eax
jne 0x42248c
push edi
call fcn.00417805
jmp 0x422494
push ebx
call fcn.00417805
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 0x424eae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041b37c
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 0x424f1d
cmp esi, dword [ebp - 4]
je 0x424f18
cmp dword [ebp + 0xc], 0
je 0x424f18
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x424ef5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00424a00
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x424f1f
xor eax, eax
inc eax
jmp 0x424f1f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x424f84
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43a070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041b37c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041b37c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x424ffb
cmp word [ecx], dx
je 0x424ffb
mov eax, dword [0x42fd74]
push edi
dec eax
push eax
push 0x42fc60
call fcn.00424f23
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42506e
cmp word [eax], dx
je 0x42506e
mov eax, dword [edi]
test eax, eax
je 0x42501f
cmp word [eax], dx
je 0x42501f
lea eax, [ebp - 0x10]
push eax
call fcn.00424906
jmp 0x425028
lea eax, [ebp - 0x10]
push eax
call fcn.004249a1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x425098
mov eax, dword [0x42fc5c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42f950
call fcn.00424f23
add esp, 0xc
test al, al
je 0x425098
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x425063
cmp word [eax], di
je 0x425063
lea eax, [ebp - 0x10]
push eax
call fcn.00424906
pop ecx
jmp 0x42509a
lea eax, [ebp - 0x10]
push eax
call fcn.004249a1
jmp 0x425060
mov eax, dword [edi]
test eax, eax
je 0x425085
cmp word [eax], dx
je 0x425085
lea eax, [ebp - 0x10]
push eax
call fcn.004248bb
pop ecx
jmp 0x425098
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x425163
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00424da8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x425163
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x425163
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x425163
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4250f0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041cff9
test ebx, ebx
je 0x42515e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041cff9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425163
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425163
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042807a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x425165
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106b2
leave
ret
Function at 0x4257b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43b988]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4257f9
cmp byte [ebx], 0xa
jne 0x4257f9
or byte [edi + eax + 0x28], 4
jmp 0x4257fe
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4258fd
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4258e0
inc eax
cmp dl, 0xd
je 0x42582a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x425850
cmp eax, ecx
jae 0x42585e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x425812
jmp 0x4258fd
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4258db
cmp dword [ebp - 0x10], 0
je 0x4258db
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43b988]
test byte [eax + edi + 0x28], 0x48
je 0x4258b5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4258a0
mov byte [esi], dl
jmp 0x4258b1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43b988]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4258fd
cmp byte [ebp - 1], 0xa
jne 0x4258c4
cmp esi, ebx
jne 0x4258c4
mov byte [esi], 0xa
jmp 0x4258fc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041dbbe
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4258fd
mov byte [esi], 0xd
jmp 0x4258fc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43b988]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4258fa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4258fd
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret