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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xfbcd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xfbcd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xfbcd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xfbcd94
push eax
push esi
call fcn.00fbf20b
add esp, 8
pop esi
ret 0x10

Function at 0xfbcda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xfbce22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xfbce15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xfd5320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00fbedff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xfbcdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xfbce30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xfbcec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xfbceb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xfd5320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00fbedff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xfbceab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xfbce6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xfbd000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xfbd131
push esi
call fcn.00fc0145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00faf080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xfbd131
push 0
push ebp
call fcn.00faf3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00faf260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xfbd08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00faf2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xfbd121
push 0xfd5918
push edi
call fcn.00fbe3f0
push eax
push ebx
push esi
call fcn.00fbcf60
push 0xfd58f8
push edi
call fcn.00fbe3f0
push eax
push ebx
push esi
call fcn.00fbcf60
push 0xfd58d8
push edi
call fcn.00fbe3f0
push eax
push ebx
push esi
call fcn.00fbcf60
push 0xfd58c0
push edi
call fcn.00fbe3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00fbcf60
push 0xfd58a0
push edi
call fcn.00fbe3f0
push eax
push ebx
push esi
call fcn.00fbcf60
push 0xfd5888
push edi
call fcn.00fbe3f0
push eax
push ebx
push esi
call fcn.00fbcf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xfbe1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00fbe140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00fbe140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00fbe140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00fbe140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xfbebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xfbec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xfd087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xfbec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xfbec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x40e130
Capabilities:
Resolve function by djb2 hash

Disassembly:
push ebp
mov ebp, esp
push 0x5fbff0fb
mov eax, dword [0x468944]
push eax
call fcn.0040e4d0
add esp, 8
mov dword [0x468954], eax
push str.ntdll.dll
call dword [0x468954]
mov dword [0x468940], eax
push 0x8afb8c5a
mov ecx, dword [0x468944]
push ecx
call fcn.0040e4d0
add esp, 8
call eax
push 0xc6580d02
mov edx, dword [0x468944]
push edx
call fcn.0040e4d0
add esp, 8
mov dword [0x468958], eax
push 0xc0b381da
mov eax, dword [0x468940]
push eax
call fcn.0040e4d0
add esp, 8
mov dword [0x46895c], eax
push 0x82962c8
mov ecx, dword [0x468940]
push ecx
call fcn.0040e4d0
add esp, 8
mov dword [0x46894c], eax
push 0x6793c34c
mov edx, dword [0x468940]
push edx
call fcn.0040e4d0
add esp, 8
mov dword [0x468950], eax
pop ebp
ret

Function at 0x40e650
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0x40e2c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.0040e220
nop
xor eax, eax
pop ebp
ret

Function at 0x40ef38
Capabilities:
Parse pe header

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

Function at 0x41b674
Capabilities:
Parse pe header

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

Function at 0x43b2f9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043b1cd
Function at 0x43bdf4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x467f40]
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 0x43be3f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043c294
test al, al
jne 0x43be39
sub edx, 2
cmp edx, edi
jne 0x43be1f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43be61
lea eax, [edi + 2]
cmp edx, eax
je 0x43be61
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043babb
add esp, 0x10
jmp 0x43bf5b
push esi
lea ecx, [ebp - 0x255]
call fcn.0043c294
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 0x43bea4
push dword [ebp - 0x25c]
jmp 0x43be51
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 0x43bee1
cmp word [ebp - 0x226], 0
je 0x43bf02
cmp word [ebp - 0x226], ax
jne 0x43bee1
cmp word [ebp - 0x224], 0
je 0x43bf02
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043babb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43bf4e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43bebb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43bf36
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43bf5b
push 0x43b50b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00447070
add esp, 0x10
jmp 0x43bf2b
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.0040f602
leave
ret
Function at 0x43d7db
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 0x43d878
push ebx
push esi
call fcn.0043d797
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.0043d6d4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43d825
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43d877
push edi
push eax
call fcn.0043ffde
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43d845
call fcn.0043b4b9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43d876
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043d6d4
add esp, 0x20
test eax, eax
jne 0x43d864
push edi
call fcn.0043b4b9
jmp 0x43d86c
push ebx
call fcn.0043b4b9
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 0x43d87b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43d88c
pop esi
ret
push ebx
push edi
push esi
call fcn.0043d797
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043ffde
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43d8b4
push ebx
push esi
push edi
call fcn.004180e0
add esp, 0xc
push 0
call fcn.0043b4b9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43e1a3
Capabilities:
Set environment variable

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

Function at 0x4422f6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043a813
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 0x442365
cmp esi, dword [ebp - 4]
je 0x442360
cmp dword [ebp + 0xc], 0
je 0x442360
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44233d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00441e48
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x442367
xor eax, eax
inc eax
jmp 0x442367
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4423cc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x467f40]
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.0043a813
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.0043a813
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 0x442443
cmp word [ecx], dx
je 0x442443
mov eax, dword [0x45f9d4]
push edi
dec eax
push eax
push 0x45f8c0
call fcn.0044236b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4424b6
cmp word [eax], dx
je 0x4424b6
mov eax, dword [edi]
test eax, eax
je 0x442467
cmp word [eax], dx
je 0x442467
lea eax, [ebp - 0x10]
push eax
call fcn.00441d4e
jmp 0x442470
lea eax, [ebp - 0x10]
push eax
call fcn.00441de9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4424e0
mov eax, dword [0x45f8bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x45f5b0
call fcn.0044236b
add esp, 0xc
test al, al
je 0x4424e0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4424ab
cmp word [eax], di
je 0x4424ab
lea eax, [ebp - 0x10]
push eax
call fcn.00441d4e
pop ecx
jmp 0x4424e2
lea eax, [ebp - 0x10]
push eax
call fcn.00441de9
jmp 0x4424a8
mov eax, dword [edi]
test eax, eax
je 0x4424cd
cmp word [eax], dx
je 0x4424cd
lea eax, [ebp - 0x10]
push eax
call fcn.00441ce5
pop ecx
jmp 0x4424e0
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 0x4425ab
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004421f0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4425ab
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4425ab
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4425ab
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x442538
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004432b9
test ebx, ebx
je 0x4425a6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004432b9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4425ab
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 0x4425ab
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00448533
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4425ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f602
leave
ret
Function at 0x442f2b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x460bfc
push 0x460bf4
push str.FlsAlloc
push 0x1f
call fcn.00442bf9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442f5f
push dword [ebp + 8]
mov ecx, esi
call dword [0x458150]
call esi
jmp 0x442f65
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x442fa9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x460c0c
push 0x460c04
push str.FlsGetValue
push 0x21
call fcn.00442bf9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442fe0
push dword [ebp + 8]
mov ecx, esi
call dword [0x458150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x442fe8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x460c14
push 0x460c0c
push str.FlsSetValue
push 0x22
call fcn.00442bf9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x443022
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x458150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44f69b
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 + 0x4698b8]
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 0x44f6db
cmp byte [ebx], 0xa
jne 0x44f6db
or byte [edi + eax + 0x28], 4
jmp 0x44f6e0
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 0x44f7df
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44f7c2
inc eax
cmp dl, 0xd
je 0x44f70c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44f732
cmp eax, ecx
jae 0x44f740
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 0x44f6f4
jmp 0x44f7df
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 0x44f7bd
cmp dword [ebp - 0x10], 0
je 0x44f7bd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4698b8]
test byte [eax + edi + 0x28], 0x48
je 0x44f797
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44f782
mov byte [esi], dl
jmp 0x44f793
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4698b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44f7df
cmp byte [ebp - 1], 0xa
jne 0x44f7a6
cmp esi, ebx
jne 0x44f7a6
mov byte [esi], 0xa
jmp 0x44f7de
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044f4ed
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44f7df
mov byte [esi], 0xd
jmp 0x44f7de
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4698b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44f7dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44f7df
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret