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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
push ecx
sub esp, 0x58
call fcn.00566f50
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_CommandLineToArgvW]
mov edx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 8
test eax, eax
jle 0x5761a3
mov ecx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0x2c], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call dword [ebp - 0x2c]
add edi, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
cmp eax, ebx
jg 0x576151
mov edx, esi
lea eax, [edi + eax*4 + 4]
mov dword [ebp - 0x3c], edx
mov dword [esp], eax
call fcn.00537640
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
test eax, eax
lea ecx, [ecx + eax*4 + 4]
mov dword [ebp - 0x34], ecx
jle 0x576238
mov ecx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x38], edi
mov edi, edx
mov dword [ebp - 0x2c], ecx
nop
lea esi, [esi]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
add eax, esi
mov dword [edx + ebx*4], eax
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
sub edx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call dword [ebp - 0x2c]
sub esp, 0x20
add esi, eax
cmp dword [ebp - 0x1c], ebx
jg 0x5761e0
mov edx, edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00401cf0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x582de4
Capabilities:
Hash data using sha1
Hash data using sha224
Hash data using sha256

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, edx
sar ecx, 5
cmp edx, 0xe0
mov byte [eax], cl
je 0x582e3e
cmp edx, 0x100
je 0x582e7f
cmp edx, 0xa0
jne fcn.00582ecf
mov dword [eax + 0x50], 0x67452301
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0xc3d2e1f0
mov dword [eax + 0x70], 0x54e430
jmp 0x582ebe
mov dword [eax + 0x50], 0xc1059ed8
mov dword [eax + 0x54], 0x367cd507
mov dword [eax + 0x58], 0x3070dd17
mov dword [eax + 0x5c], 0xf70e5939
mov dword [eax + 0x60], 0xffc00b31
mov dword [eax + 0x64], 0x68581511
mov dword [eax + 0x68], 0x64f98fa7
mov dword [eax + 0x6c], 0xbefa4fa4
mov dword [eax + 0x70], 0x54f5c0
jmp 0x582ebe
mov dword [eax + 0x50], 0x6a09e667
mov dword [eax + 0x54], 0xbb67ae85
mov dword [eax + 0x58], 0x3c6ef372
mov dword [eax + 0x5c], 0xa54ff53a
mov dword [eax + 0x60], 0x510e527f
mov dword [eax + 0x64], 0x9b05688c
mov dword [eax + 0x68], 0x1f83d9ab
mov dword [eax + 0x6c], 0x5be0cd19
mov dword [eax + 0x70], 0x54f5c0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
xor eax, eax
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6a0b1e93
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6ca67ac5
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x404a30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
lea edi, [ebp - 0x844]
mov ecx, 0x211
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00406480
mov eax, dword [ebp + 8]
push eax
call fcn.0040100f
add esp, 4
test eax, eax
jle 0x404ad9
push 1
call fcn.00401069
add esp, 4
mov dword [ebp - 0x804], eax
mov ecx, dword [0x435af8]
add ecx, dword [ebp - 0x804]
mov dword [0x435af8], ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401037
add esp, 4
cmp eax, dword [0x435af8]
je 0x404ac1
mov esi, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x435b44]
cmp esi, esp
call fcn.00406480
mov esi, esp
mov edx, dword [0x435afc]
push edx
call dword [0x435b70]
cmp esi, esp
call fcn.00406480
jmp 0x404af2
mov esi, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x435b44]
cmp esi, esp
call fcn.00406480
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x800]
push eax
call fcn.004068f0
add esp, 8
lea ecx, [ebp - 0x800]
push ecx
call fcn.00406400
add esp, 4
mov dword [ebp - 0x804], eax
jmp 0x404b2b
mov edx, dword [ebp - 0x804]
sub edx, 1
mov dword [ebp - 0x804], edx
mov eax, dword [ebp - 0x804]
movsx ecx, byte [ebp + eax - 0x801]
cmp ecx, 0x5c
je 0x404b40
jmp 0x404b1c
push 0x435ad8
mov edx, dword [ebp - 0x804]
lea eax, [ebp + edx - 0x800]
push eax
call fcn.004068f0
add esp, 8
mov esi, esp
push 0x32
lea ecx, [ebp - 0x400]
push ecx
push 0x1002
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp esi, esp
call fcn.00406480
push 0x425570
lea edx, [ebp - 0x400]
push edx
call fcn.00406900
add esp, 8
push 0xa
lea eax, [ebp - 0x400]
push eax
call fcn.00406400
add esp, 4
lea ecx, [ebp + eax - 0x400]
push ecx
push 0x1f
call fcn.0040a890
add esp, 0xc
lea edx, [ebp - 0x400]
mov dword [0x435afc], edx
lea eax, [ebp - 0x400]
push eax
call fcn.00406400
add esp, 4
mov dword [0x435af8], eax
lea ecx, [ebp - 0x800]
push ecx
call fcn.00401037
add esp, 4
push str.aa3vd2apeJUt
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401014
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040108c
add esp, 4
test eax, eax
je 0x404c09
call fcn.00401005
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040105f
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x844
cmp ebp, esp
call fcn.00406480
mov esp, ebp
pop ebp
ret
Function at 0x404cb0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push ebx
push esi
push edi
lea edi, [ebp - 0x38c]
mov ecx, 0xe3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x208], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x200]
push ecx
call fcn.004068f0
add esp, 8
lea edx, [ebp - 0x200]
push edx
call fcn.00406400
add esp, 4
movsx eax, byte [ebp + eax - 0x201]
cmp eax, 0x5c
jne 0x404d27
push 0x425574
lea ecx, [ebp - 0x200]
push ecx
call fcn.00406900
add esp, 8
jmp 0x404d3b
push 0x425364
lea edx, [ebp - 0x200]
push edx
call fcn.00406900
add esp, 8
mov esi, esp
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.00406480
mov dword [ebp - 0x20c], eax
movsx edx, byte [ebp - 0x320]
cmp edx, 0x2e
je 0x404dc9
movsx eax, byte [ebp - 0x320]
test eax, eax
je 0x404dc9
mov ecx, dword [ebp - 0x34c]
and ecx, 0x10
test ecx, ecx
je 0x404dc9
lea edx, [ebp - 0x320]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x208]
push eax
call fcn.004068f0
add esp, 8
lea ecx, [ebp - 0x320]
push ecx
call fcn.00406400
add esp, 4
mov edx, dword [ebp - 0x208]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x204]
add ecx, 1
mov dword [ebp - 0x204], ecx
cmp dword [ebp - 0x208], 0x3e8
jle 0x404dd7
jmp 0x404dfc
mov esi, esp
lea edx, [ebp - 0x34c]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, esp
call fcn.00406480
test eax, eax
jne 0x404d5e
mov esi, esp
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.00406480
mov eax, dword [ebp - 0x204]
pop edi
pop esi
pop ebx
add esp, 0x38c
cmp ebp, esp
call fcn.00406480
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x93f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0093f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x93f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93f06a
add dl, dl
jne 0x93f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93f0dc
xor eax, eax
add dl, dl
jne 0x93f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93f17d
add dl, dl
jne 0x93f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x93f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x93f075
mov eax, 1
add dl, dl
jne 0x93f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x93f0e1
sub eax, ebx
mov ebx, 1
jne 0x93f128
mov ecx, 1
add dl, dl
jne 0x93f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x93f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x93f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x93f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x93f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x93f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x93f136
cmp eax, 0x7d00
jae 0x93f16d
cmp eax, 0x500
jb 0x93f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x93f075
cmp eax, 0x7f
ja 0x93f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x93f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x93f19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x93f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000a7e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000a7f3
pop dword [ebp - 0x3c]
mov eax, 0x45f789d1
add eax, 0xca091e22
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xe6d27f55
add dword [ebp - 0x4c], 0x677fc5f6
mov dword [ebp - 0x48], 0x8e9aad6f
add dword [ebp - 0x48], 0xa3989ed6
mov dword [ebp - 0x44], 0x47e2590e
add dword [ebp - 0x44], 0x469eb20
mov dword [ebp - 0x40], 0x492f47d3
sub dword [ebp - 0x40], 0x492f47d3
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x23e703fb
sub dword [ebp - 0x4c], 0xaf749aa5
mov dword [ebp - 0x48], 0x6b3779b2
add dword [ebp - 0x48], 0xd634e7c3
mov dword [ebp - 0x44], 0x810aa967
sub dword [ebp - 0x44], 0x1d9b3cfb
mov dword [ebp - 0x40], 0x452ff61
add dword [ebp - 0x40], 0xfbad009f
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x2951c558
add eax, 0xe6aefad4
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a7e4
push 0
call eax
mov ecx, 0x51fa
mov edx, eax
mov ebx, 0x10047400
add ebx, dword [ebp - 0x3c]
mov edi, 0x260e699c
xor dword [ebp - 0x2c], 0x69897efb
mov esi, dword [ebx]
xor esi, edi
sub dword [ebp - 8], edi
mov dword [edx], esi
mov dword [ebp - 4], 0xab591fda
add edx, 0x2c61e411
add edx, 0xd39e1bf3
add ebx, 0xf0348664
add ebx, 0xfcb79a0
loop 0x1000a8fe
add eax, 0xf47ac31d
sub eax, 0xf4798862
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x43a9ae
Capabilities:
Parse pe header

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

Function at 0x43bcdd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x43bcfe
jl 0x43bcf5
test edi, edi
jne 0x43bcfe
xor eax, eax
xor edx, edx
jmp 0x43bdbf
cmp dword [ebx + 0x38], 0
je 0x43bd13
push eax
push edi
push dword [ebp + 8]
call fcn.0043bdc5
jmp 0x43bdbf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43bd5a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x43bd5a
cmp eax, edi
jb 0x43bd34
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0043cd20
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x43bd60
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x43bdb4
mov ecx, ebx
call fcn.0043b4e8
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x43bd9f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00445df0
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x43bdb4
jmp 0x43bd72
test edx, edx
je 0x43bdb4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00445df0
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4489cc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49fae8
push 0x49fae0
push str.FlsAlloc
push 0x1f
call fcn.00448837
mov esi, eax
add esp, 0x10
test esi, esi
je 0x448a00
push dword [ebp + 8]
mov ecx, esi
call dword [0x458164]
call esi
jmp 0x448a06
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x448a4a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49faf8
push 0x49faf0
push str.FlsGetValue
push 0x21
call fcn.00448837
mov esi, eax
add esp, 0x10
test esi, esi
je 0x448a81
push dword [ebp + 8]
mov ecx, esi
call dword [0x458164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x448a89
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49fb00
push 0x49faf8
push str.FlsSetValue
push 0x22
call fcn.00448837
mov esi, eax
add esp, 0x10
test esi, esi
je 0x448ac3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x458164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44c7fd
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 0x44c89a
push ebx
push esi
call fcn.0044c7c6
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.0044c75a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44c847
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44c899
push edi
push eax
call fcn.0044a417
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44c867
call fcn.0044a2c4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44c898
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044c75a
add esp, 0x20
test eax, eax
jne 0x44c886
push edi
call fcn.0044a2c4
jmp 0x44c88e
push ebx
call fcn.0044a2c4
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 0x44f4ee
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00449060
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 0x44f55d
cmp esi, dword [ebp - 4]
je 0x44f558
cmp dword [ebp + 0xc], 0
je 0x44f558
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44f535
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044f040
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44f55f
xor eax, eax
inc eax
jmp 0x44f55f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44f5c4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a62c0]
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.00449060
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.00449060
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 0x44f63b
cmp word [ecx], dx
je 0x44f63b
mov eax, dword [0x4a068c]
push edi
dec eax
push eax
push 0x4a0578
call fcn.0044f563
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x44f6ae
cmp word [eax], dx
je 0x44f6ae
mov eax, dword [edi]
test eax, eax
je 0x44f65f
cmp word [eax], dx
je 0x44f65f
lea eax, [ebp - 0x10]
push eax
call fcn.0044ef46
jmp 0x44f668
lea eax, [ebp - 0x10]
push eax
call fcn.0044efe1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44f6d8
mov eax, dword [0x4a0574]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4a0268
call fcn.0044f563
add esp, 0xc
test al, al
je 0x44f6d8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44f6a3
cmp word [eax], di
je 0x44f6a3
lea eax, [ebp - 0x10]
push eax
call fcn.0044ef46
pop ecx
jmp 0x44f6da
lea eax, [ebp - 0x10]
push eax
call fcn.0044efe1
jmp 0x44f6a0
mov eax, dword [edi]
test eax, eax
je 0x44f6c5
cmp word [eax], dx
je 0x44f6c5
lea eax, [ebp - 0x10]
push eax
call fcn.0044eefb
pop ecx
jmp 0x44f6d8
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 0x44f7a3
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044f3e8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44f7a3
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44f7a3
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44f7a3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44f730
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00448bc9
test ebx, ebx
je 0x44f79e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00448bc9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44f7a3
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 0x44f7a3
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004555aa
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44f7a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439e50
leave
ret