joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000eba3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [eax], 0xffffffff
mov ecx, str.DisabledPendingAutoUpdateConsent
mov edx, 4
push 4
push eax
call fcn.1000e7de
add esp, 8
test eax, eax
jne 0x1000ebe0
xor esi, esi
cmp dword [ebp - 0x1c], 0
jne 0x1000ec34
call fcn.1000e92e
mov ebx, eax
call fcn.1000ea9b
mov byte [ebp - 0x21], bl
test bl, bl
jne 0x1000ec48
test al, al
jne 0x1000ec48
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov ecx, str.RedirectionMode
mov edx, 4
push 4
push esi
call fcn.1000e7de
add esp, 8
mov edx, dword [esi]
xor ecx, ecx
inc ecx
cmp edx, 2
mov esi, edx
cmove esi, ecx
cmp byte [ebp - 0x21], 0
cmove esi, edx
cmp edx, 3
cmovae esi, ecx
test eax, eax
cmovne esi, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ba3a
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0xffffffe8
lea ebx, [ebp - 0x14]
jmp 0x1000ec72
mov esi, dword [ebp - 0x28]
jmp 0x1000ec34
xor esi, esi
mov bl, 1
test esi, esi
je 0x1000ec66
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x1000ec52
add edi, 0xc
lea ebx, [ebp - 0x14]
je 0x1000ebf7
mov eax, dword [edi + 0x1005e80c]
mov ecx, dword [edi + str.RedirectionMode]
xor edx, edx
mov dword [ebp - 0x14], edx
push ebx
push 0x20119
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ec57
mov esi, dword [ebp - 0x14]
xor ecx, ecx
dec ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [edi + 0x1005e810]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 4
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
cmp dword [ebp - 0x20], 0
setne dl
test eax, eax
jne 0x1000ec59
cmp dword [ebp - 0x18], 4
jne 0x1000ec59
xor ebx, ebx
mov cl, dl
mov dword [ebp - 0x28], ecx
jmp 0x1000ec5b

Function at 0x1000ece1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
lea ebx, [ebp - 0x14]
mov dword [ebx], esi
push ebx
push 0x20119
push esi
push str.SoftwareAppDataLowSoftwareMicrosoftEdgeIEToEdge
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000ed39
xor ebx, ebx
xor eax, eax
cmp esi, 2
cmovae esi, eax
test bl, bl
cmove esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ba3a
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
xor eax, eax
lea ecx, [ebp - 0x1c]
mov dword [ecx], eax
lea esi, [ebp - 0x18]
mov dword [esi], 0xffffffff
mov dword [ebp - 0x14], 4
push ebx
push ecx
push esi
push eax
push str.LastCustomerType
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi]
xor ecx, 4
or ecx, eax
sete bl
lea eax, [ebp - 0x1c]
mov esi, dword [eax]
test edi, edi
je 0x1000ed18
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000ed18
Function at 0x1000ed7f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
lea ecx, [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
sub esp, 0x1c
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [0x1005e2f0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], str.SoftwareAppDataLowSoftwareMicrosoftEdgeIEToEdge
mov dword [esp], SysStringLen
call fcn.100043cc
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x1000ee04
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ecx], eax
mov eax, 4
push eax
push ecx
push eax
push 0
push str.LastCustomerType
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000ee12
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1002ba3a
mov eax, esi
add esp, 0x14
pop esi
pop ebp
ret

Function at 0x1000f0ca
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x9c
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
xor esi, esi
mov dword [eax + 4], esi
mov dword [eax], esi
mov dword [eax - 4], 0xc
push esi
push eax
push 1
push str.S:_ML__NW___LW_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x1000f122
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test eax, eax
je 0x1000f139
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ba3a
mov eax, esi
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.1000f8f5
add esp, 4
test al, al
je 0x1000f119
lea ebx, [ebp - 0xa8]
mov ecx, ebx
push 2
push 0x3d3
push str....._third_partyie_to_edge_bhoie_to_edge_util.cc
call fcn.1000f93e
mov ecx, ebx
call fcn.10002820
push 0x1e
push str.Failed_to_create_mutex_named:
push eax
call fcn.100065e4
add esp, 0xc
mov ebx, eax
push edi
call fcn.100416d7
add esp, 4
push eax
push edi
push ebx
call fcn.100065e4
add esp, 0xc
push 8
push str._Error:
push eax
call fcn.100065e4
add esp, 0xc
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
push eax
call fcn.10001dc0
lea ecx, [ebp - 0xa8]
call fcn.1000fc9a
jmp 0x1000f119
Function at 0x1000f218
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x10069a20]
mov ecx, dword [0x10068d98]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1000f262
mov esi, dword [0x10069a1c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ba3a
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10069a20
call fcn.1002b027
add esp, 4
cmp dword [0x10069a20], 0xffffffff
jne 0x1000f248
mov esi, 0xffffffe8
xor edi, edi
jmp 0x1000f2a8
xor esi, esi
mov dword [0x10069a1c], esi
push 0x10069a20
call fcn.1002b09d
add esp, 4
jmp 0x1000f248
test ebx, ebx
je 0x1000f2a3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xc
je 0x1000f281
mov eax, dword [esi + 0x1005ed4c]
mov ecx, dword [esi + str.InternetExplorerIntegrationLevel]
mov dword [ebp - 0x14], edi
lea edx, [ebp - 0x14]
push edx
push 0x20119
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000f2a3
mov ebx, dword [ebp - 0x14]
xor ecx, ecx
dec ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 0x1005ed50]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000f298
cmp dword [ebp - 0x18], 4
jne 0x1000f298
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, 2
sete cl
add ecx, ecx
cmp eax, 1
cmove ecx, eax
mov esi, ecx
test ebx, ebx
je 0x1000f283
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000f283
Function at 0x1000f6c4
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x218]
mov dword [ebx], 0xffffffff
push ebx
push str.Logging
call fcn.1000e7c4
add esp, 8
xor ecx, ecx
test eax, eax
jne 0x1000f700
mov ecx, dword [ebp - 0x218]
mov dword [0x10069afc], ecx
test cl, 0x20
jne 0x1000f720
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ba3a
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], esi
push esi
push 3
push 6
call fcn.100538be
add esp, 0xc
test al, al
jne 0x1000f792
mov dword [ebp - 0x218], esi
push ebx
push esi
push esi
push 0x10054050
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x1000f773
xor eax, eax
push ebx
push eax
push eax
push 0x10054060
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1000f8d5
lea ecx, [ebp - 0x224]
push dword [ebp - 0x218]
call fcn.100109fc
push dword [ebp - 0x218]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1000f7d4
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.1002ec50
add esp, 0xc
push esi
push 0x1c
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000f8d5
push edi
call fcn.100416d7
add esp, 4
lea ecx, [ebp - 0x224]
push eax
push edi
call fcn.10029a00
lea esi, [ebp - 0x224]
mov ecx, esi
push 0xa
push 0x1005f064
call fcn.10029a90
cmp byte [eax + 0xb], 0
jns 0x1000f7f0
mov eax, dword [eax]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, esi
push 8
push str.EdgeBho
call fcn.10029a90
cmp byte [eax + 0xb], 0
jns 0x1000f810
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, esi
push 1
push 0x1005f08c
call fcn.10029a90
mov ecx, esi
push dword [ebp + 8]
call fcn.10029ce0
test byte [0x10069afd], 0x20
je 0x1000f899
lea edi, [ebp - 0x224]
mov ecx, edi
push 1
push 0x1005f090
call fcn.10029a90
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
call fcn.10053aa3
add esp, 8
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x1000f876
mov eax, dword [ebp - 0x214]
mov ebx, dword [ebp - 0x218]
jmp 0x1000f879
and eax, 0x7f
mov ecx, edi
push eax
push ebx
call fcn.10029a90
cmp byte [ebp - 0x20d], 0
jns 0x1000f899
push dword [ebp - 0x218]
call fcn.1002afb4
add esp, 4
mov ecx, esi
push 4
push 0x1005f094
call fcn.10029a90
xor eax, eax
bt dword [0x10069afc], 0xc
setae al
shl eax, 5
or eax, 0x10
cmp byte [ebp - 0x219], 0
jns 0x1000f8c9
mov esi, dword [ebp - 0x224]
mov ecx, 0x10069a44
push eax
push esi
call fcn.100109c6
cmp byte [ebp - 0x219], 0
jns 0x1000f70b
push dword [ebp - 0x224]
call fcn.1002afb4
add esp, 4
jmp 0x1000f70b
Function at 0x10018020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10028d80
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov edi, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [edi + 4], 1
jne 0x100180b6
movzx eax, byte [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [section..00cfg]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push dword [ebp - 0x20]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x100180ac
shr al, 7
mov edi, dword [ebp + 8]
mov dword [edi], ebx
test al, al
je 0x100180a1
push ecx
call fcn.1002afb4
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
lea esi, [ebp - 0x2c]
mov ecx, edi
push esi
call fcn.1001188a
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x1006a028
call fcn.10023d30
mov esi, eax
mov edi, dword [ebp - 0x2c]
xor ebx, ebx
dec ebx
mov eax, ebx
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x10018101
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0xffffffff
call dword [section..00cfg]
mov ecx, edi
call dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [esi]
mov cl, byte [ebp + 0x18]
xor cl, 1
movzx ecx, cl
mov edi, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], ebx
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
lea eax, [ebp - 0x2c]
push eax
call edi
movzx eax, byte [ebp - 0x21]
test al, al
js 0x10018143
mov edx, eax
and edx, 0x7f
jmp 0x10018146
shr al, 7
jmp 0x10018092
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
test edx, edx
je 0x1001813b
test al, al
lea eax, [ebp - 0x2c]
cmovns ecx, eax
mov edi, ecx
jmp 0x1001816f
mov esi, dword [ebp - 0x28]
mov edx, ecx
add edx, esi
inc edi
cmp edi, edx
je 0x1001808c
test ebx, ebx
je 0x1001819a
mov al, byte [edi]
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x1c]
je 0x1001819e
lea edx, [ecx + 1]
mov dword [ebx + 0x18], edx
mov byte [ecx], al
movzx eax, byte [ebp - 0x21]
mov ecx, dword [ebp - 0x2c]
test al, al
js 0x1001815f
mov esi, eax
and esi, 0x7f
lea edx, [ebp - 0x2c]
jmp 0x10018164
xor ebx, ebx
jmp 0x10018185
mov dword [ebp - 0x20], edi
movzx edi, al
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x30], ebx
mov ecx, ebx
push edi
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x100181d1
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
jmp 0x10018185
Function at 0x10038d59
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10038d98
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10038d98
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10038d98
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10038d98
cmp dword [ecx + 0x74], 0xe
jbe 0x10038d98
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003feaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1002c1c0
mov eax, dword [0x1006700c]
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.100461b3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003feec
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10040048
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004d3d0
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 + 0x10069530]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1004c790
mov ecx, dword [esi*4 + 0x10069530]
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 0x10040041
cmp eax, dword [ecx + edi + 0x24]
jne 0x10040041
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 0x10040041
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004c790
add esp, 0x14
test edx, edx
jl 0x10040041
jg 0x1003ffb7
test eax, eax
jb 0x10040041
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10040041
jl 0x1003ffd1
cmp dword [ebp - 0x1008], eax
ja 0x10040041
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003ffef
test ebx, ebx
je 0x10040028
cmp ecx, edi
jae 0x10040028
mov al, byte [ecx]
cmp al, 0xd
jne 0x10040009
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10040015
cmp byte [ecx + 1], 0xa
jne 0x10040015
inc ecx
jmp 0x10040015
movzx eax, al
movsx eax, byte [eax + 0x10067790]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003ffef
cmp edx, ebx
jne 0x1003ffef
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10040046
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002ba3a
leave
ret

Function at 0x10042ad0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10042afd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10042afd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10043c56
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x10057664
push str.FlsAlloc
push 0x1f
call fcn.10044109
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10043c8a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10043c90
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10043cd4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x10057688
push str.FlsGetValue
push 0x21
call fcn.10044109
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10043d0b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10043d13
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1005769c
push str.FlsSetValue
push 0x22
call fcn.10044109
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10043d4d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x100488cd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004345a
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 0x1004893c
cmp esi, dword [ebp - 4]
je 0x10048937
cmp dword [ebp + 0xc], 0
je 0x10048937
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10048914
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10048996
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1004893e
xor eax, eax
inc eax
jmp 0x1004893e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100495a0
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 0x1004963d
push ebx
push esi
call fcn.1004968e
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.100494a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100495ea
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004963c
push edi
push eax
call fcn.10045468
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004960a
call fcn.10042de4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004963b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100494a4
add esp, 0x20
test eax, eax
jne 0x10049629
push edi
call fcn.10042de4
jmp 0x10049631
push ebx
call fcn.10042de4
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 0x10049640
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10049651
pop esi
ret
push ebx
push edi
push esi
call fcn.1004968e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10045468
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10049679
push ebx
push esi
push edi
call fcn.1002e6d0
add esp, 0xc
push 0
call fcn.10042de4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100496c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100496d0
Function at 0x1004c3eb
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 + 0x10069530]
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 0x1004c42b
cmp byte [ebx], 0xa
jne 0x1004c42b
or byte [edi + eax + 0x28], 4
jmp 0x1004c430
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 0x1004c52f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004c512
inc eax
cmp dl, 0xd
je 0x1004c45c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004c482
cmp eax, ecx
jae 0x1004c490
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 0x1004c444
jmp 0x1004c52f
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 0x1004c50d
cmp dword [ebp - 0x10], 0
je 0x1004c50d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10069530]
test byte [eax + edi + 0x28], 0x48
je 0x1004c4e7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004c4d2
mov byte [esi], dl
jmp 0x1004c4e3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10069530]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004c52f
cmp byte [ebp - 1], 0xa
jne 0x1004c4f6
cmp esi, ebx
jne 0x1004c4f6
mov byte [esi], 0xa
jmp 0x1004c52e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004c732
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004c52f
mov byte [esi], 0xd
jmp 0x1004c52e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10069530]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004c52c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004c52f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret