joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003eb0
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1001a48
call fcn.01004068
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1003eeb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003eeb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003f03
cmp eax, 0x20b
je 0x1003ef0
mov dword [ebp - 0x1c], edi
jmp 0x1003f17
cmp dword [ecx + 0x84], 0xe
jbe 0x1003eeb
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1003f11
cmp dword [ecx + 0x74], 0xe
jbe 0x1003eeb
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100565c], 0xffffffff
or dword [0x1005660], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100562c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1005628]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005664], eax
call fcn.0100405e
cmp dword [0x10055b8], edi
jne 0x1003f72
push fcn.0100405e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01004047
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1005624]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1005620]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002ada
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1003fe9
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100401e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010040a3
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 0x407c29
Capabilities:
Shutdown system

Disassembly:
call fcn.00462120
push 2
mov eax, str.SeShutdownPrivilege
push eax
call fcn.0041021a
movsx eax, byte [esp + 4]
push eax
push 0
push 5
push 0
push 0
call sub.ADVAPI32.dll_InitiateSystemShutdownW
xor eax, eax
ret 4

Function at 0x4123ac
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
call fcn.00462120
push dword [esp + 0x10]
call fcn.004264a0
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
push 0x104
call fcn.004603b0
call fcn.00462100
lea eax, [esp + 8]
push eax
call fcn.00462020
lea eax, [esp]
push eax
push 0
push 0
push dword [esp + 0x18]
push 0
call sub.SHELL32.dll_SHGetFolderLocation
mov eax, dword [esp + 4]
push eax
push dword [esp + 4]
call sub.SHELL32.dll_SHGetPathFromIDListW
mov edx, dword [esp + 4]
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fd0
pop eax
push eax
call fcn.00426470
pop edx
add eax, edx
jmp 0x412439
push dword [esp + 4]
call fcn.00462190
add esp, 8
ret 4

Function at 0x416d5e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x416d64
call fcn.00462120
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00426060
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00426060
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x416e05
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x18], eax
push dword [esp + 8]
call sub.ADVAPI32.dll_RegCloseKey
push dword [esp + 0x18]
call sub.KERNEL32.dll_SetLastError
mov eax, dword [esp + 0x10]
jmp 0x416e16
push dword [esp]
call fcn.00462190
push dword [esp + 4]
call fcn.00462190
add esp, 0x1c
pop ebx
ret 0xc
Function at 0x416ee4
Capabilities:
Get disk information

Disassembly:
mov edx, 0x83
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x416ee9
call fcn.00462120
push dword [esp + 0x214]
call fcn.004264a0
mov edx, dword [esp + 0x210]
lea ecx, [esp]
call fcn.00426060
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
push 0x104
call fcn.004603b0
lea eax, [esp + 8]
push 0x104
push eax
call fcn.00462090
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
mov eax, 0x49460e
push eax
mov eax, 0x497c64
push eax
push dword [esp + 0x10]
call fcn.0045fda0
lea eax, [esp + 4]
push eax
call fcn.00462020
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
mov eax, 0x494c2c
push eax
mov eax, 0x4987e0
push eax
push dword [esp + 0x10]
call fcn.0045fda0
lea eax, [esp + 4]
push eax
call fcn.00462020
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
mov eax, 0x494038
push eax
mov eax, str.__
push eax
push dword [esp + 0x10]
call fcn.0045fda0
lea eax, [esp + 4]
push eax
call fcn.00462020
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
mov eax, 0x494038
push eax
mov eax, str.._
push eax
push dword [esp + 0x10]
call fcn.0045fda0
lea eax, [esp + 4]
push eax
call fcn.00462020
push 0x104
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_QueryDosDeviceW
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00461fa0
pop edx
push eax
push 0x104
push edx
call fcn.004621c0
call fcn.00426482
add dword [esp], edx
call fcn.004604e0
pop eax
push eax
call fcn.00426470
pop edx
add eax, edx
jmp 0x417058
push dword [esp]
call fcn.00462190
add esp, 0x20c
ret 4

Function at 0x41747d
Capabilities:
Query environment variable

Disassembly:
xor eax, eax
push eax
push eax
push eax
call fcn.00462120
push dword [esp + 0x14]
call fcn.004264a0
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00426060
mov edx, 0x494038
lea ecx, [esp + 4]
call fcn.00426068
push 0
push 0
push dword [esp + 8]
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4174fd
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
push dword [esp + 0x10]
call fcn.004603b0
lea eax, [esp + 8]
push eax
call fcn.00462020
push dword [esp + 8]
mov eax, dword [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
push dword [esp + 0xc]
call fcn.004604e0
pop eax
push eax
call fcn.00426470
pop edx
add eax, edx
jmp 0x41752c
push dword [esp]
call fcn.00462190
push dword [esp + 4]
call fcn.00462190
add esp, 0xc
ret 4
Function at 0x419384
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00462120
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00426060
mov byte [esp + 0xc], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00405e70
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
cmp ebx, 0xffffffff
je 0x4193fe
push 0
lea eax, [esp + 8]
push eax
push 0xc
push dword [esp + 0x28]
push 0
push 0
push 0x2d1080
push dword [esp + 0x24]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0xc], al
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0xc]
movsx eax, al
jmp 0x41940a
push dword [esp]
call fcn.00462190
add esp, 0x10
pop ebx
ret 8
Function at 0x41ae24
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41ae2b
call fcn.00462120
push dword [esp + 0x2c]
call fcn.004264a0
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00426060
mov dword [esp + 8], 0
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
push 0x104
call fcn.004603b0
lea eax, [esp + 0x10]
push eax
call fcn.00462020
lea eax, [esp + 0x10]
mov edx, 0x494038
push edx
push 3
push eax
call fcn.004620d0
mov edx, 0x494038
lea ecx, [esp + 0x18]
call fcn.00426068
mov eax, dword [esp + 0xc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 8], eax
mov dword [esp + 4], 0
jmp 0x41aebe
mov ebx, dword [esp + 8]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 4]
jl 0x41af7a
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
mov eax, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [esp + 0xc]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.004610d0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.00462090
push dword [esp]
push edx
call fcn.00461fa0
pop edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00461fa0
pop edx
push eax
push 3
push edx
call fcn.004621c0
call fcn.00426482
add dword [esp], edx
call fcn.00416ee4
call fcn.004264f0
mov edx, eax
pop ecx
call fcn.004264b0
je 0x41af70
lea edx, [esp + 0x10]
push edx
call fcn.00461fa0
pop edx
push eax
push 3
push edx
call fcn.004621c0
lea eax, [esp + 0x1c]
push eax
call fcn.00462020
jmp 0x41af7a
inc dword [esp + 4]
jno 0x41aebe
mov edx, dword [esp + 0x18]
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fd0
pop eax
push eax
call fcn.00426470
pop edx
add eax, edx
jmp 0x41afa2
push dword [esp + 0x18]
call fcn.00462190
push dword [esp]
call fcn.00462190
push dword [esp + 0xc]
call fcn.00462190
add esp, 0x1c
pop edi
pop ebx
ret 4
Function at 0x41f98d
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41f993
call fcn.00462120
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00426060
mov byte [esp + 0x18], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00405e70
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x41fa13
push 0
lea eax, [esp + 0x14]
push eax
push 0x428
push dword [esp + 0x34]
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push dword [esp + 0x30]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0x18], al
push dword [esp + 0x14]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0x18]
movsx eax, al
jmp 0x41fa1f
push dword [esp]
call fcn.00462190
add esp, 0x1c
pop ebx
ret 8
Function at 0x4202e4
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4202eb
call fcn.00462120
push dword [esp + 0x30]
call fcn.004264a0
mov edx, dword [esp + 0x2c]
lea ecx, [esp]
call fcn.00426060
mov dword [esp + 4], 0
mov edx, 0x494038
lea ecx, [esp + 8]
call fcn.00426068
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
push 0x104
call fcn.004603b0
lea eax, [esp + 0x10]
push eax
call fcn.00462020
mov edx, 0x494038
lea ecx, [esp + 0x10]
call fcn.00426068
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push 0
call sub.KERNEL32.dll_SetLastError
add dword [esp + 0x1c], 0x6400
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
push dword [esp + 0x24]
call fcn.004603b0
lea eax, [esp + 0x14]
push eax
call fcn.00462020
push dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
push 0
call sub.KERNEL32.dll_QueryDosDeviceW
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0x7a
je 0x420372
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x18]
add edi, edi
cmp ebx, edi
jge 0x4204b6
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
mov eax, dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 0xc]
push ebx
call fcn.004610d0
lea eax, [esp + 0x10]
push eax
call fcn.00462020
push 1
push dword [esp + 4]
push dword [esp + 0x14]
call fcn.0045fdc0
and eax, eax
je 0x420499
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
push 1
mov eax, 0x494038
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.0045fa50
call fcn.00426482
add dword [esp], edx
call fcn.0041e0a7
call fcn.004264a0
and eax, eax
je 0x420499
mov edx, dword [esp + 8]
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fd0
mov edx, 0x498b52
push edx
call fcn.00461fd0
mov edx, dword [esp + 0x10]
push edx
call fcn.00461fd0
lea eax, [esp + 0xc]
push eax
call fcn.00462020
mov ebx, dword [esp + 4]
push dword [esp + 0xc]
call fcn.0045fa20
mov edi, eax
inc edi
add edi, edi
add ebx, edi
mov dword [esp + 4], ebx
jmp 0x4203d0
push dword [esp + 8]
call fcn.0045fa20
mov ebx, eax
cmp ebx, 2
jle 0x420518
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
mov eax, 0x494080
push eax
push dword [esp + 0x14]
call fcn.00460150
lea eax, [esp + 0xc]
push eax
call fcn.00462020
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fa0
pop edx
push eax
mov eax, 0x49406a
push eax
push dword [esp + 0x14]
call fcn.00460150
lea eax, [esp + 0xc]
push eax
call fcn.00462020
mov edx, dword [esp + 8]
push edx
call fcn.00461fa0
pop edx
push eax
push edx
call fcn.00461fd0
pop eax
push eax
call fcn.00426470
pop edx
add eax, edx
jmp 0x420540
push dword [esp + 8]
call fcn.00462190
push dword [esp]
call fcn.00462190
push dword [esp + 0x10]
call fcn.00462190
push dword [esp + 0xc]
call fcn.00462190
add esp, 0x20
pop edi
pop ebx
ret 4
Function at 0x42068a
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
mov edx, 0xc
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x420691
call fcn.00462120
mov edx, dword [esp + 0x40]
lea ecx, [esp]
call fcn.00426060
mov edx, dword [esp + 0x44]
lea ecx, [esp + 4]
call fcn.00426060
mov edx, dword [esp + 0x48]
lea ecx, [esp + 8]
call fcn.00426060
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 4]
push dword [esp + 0x44]
call sub.ADVAPI32.dll_RegCreateKeyW
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x20]
and ebx, ebx
jne 0x4208a9
push dword [esp + 0x4c]
mov ebx, 4
cmp ebx, dword [esp]
jne 0x420745
push dword [esp + 0xc]
call fcn.0045f4b0
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 4
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x58]
push 0
push dword [esp + 0x18]
push dword [esp + 0x24]
call sub.ADVAPI32.dll_RegSetValueExW
mov dword [esp + 0x24], eax
jmp 0x42089f
mov ebx, 0xb
cmp ebx, dword [esp]
jne 0x420792
push dword [esp + 0xc]
call fcn.0045f4b0
push edx
push eax
pop dword [esp + 0x1c]
pop dword [esp + 0x1c]
mov dword [esp + 0x20], 8
push dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x58]
push 0
push dword [esp + 0x18]
push dword [esp + 0x24]
call sub.ADVAPI32.dll_RegSetValueExW
mov dword [esp + 0x24], eax
jmp 0x42089f
mov ebx, 1
cmp ebx, dword [esp]
jne 0x4207d1
push dword [esp + 0xc]
call fcn.00460d80
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
push dword [esp + 0x58]
push 0
push dword [esp + 0x18]
push dword [esp + 0x24]
call sub.ADVAPI32.dll_RegSetValueExW
mov dword [esp + 0x24], eax
jmp 0x42089f
mov ebx, 7
cmp ebx, dword [esp]
jne 0x42089f
mov eax, dword [esp + 0xc]
push eax
call fcn.00461430
mov ebx, eax
add ebx, 2
add ebx, ebx
mov dword [esp + 0x20], ebx
push dword [esp + 0x20]
call fcn.004611b0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
push dword [esp + 0xc]
push dword [esp + 0x2c]
call fcn.00461120
mov dword [esp + 0x2c], 1
jmp 0x420820
mov eax, 0x49406a
push eax
push dword [esp + 0x10]
call fcn.0045f400
cmp eax, dword [esp + 0x2c]
jl 0x42086e
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
mov eax, 0x49406a
push eax
push dword [esp + 0x14]
call fcn.0045fdc0
mov dword [esp + 0x30], eax
push 0
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
add edi, edi
add ebx, edi
add ebx, 0xfffffffe
push ebx
call fcn.00461160
inc dword [esp + 0x2c]
jno 0x420820
push dword [esp + 0x28]
call fcn.00461460
push eax
push dword [esp + 0x2c]
push dword [esp + 0x58]
push 0
push dword [esp + 0x18]
push dword [esp + 0x24]
call sub.ADVAPI32.dll_RegSetValueExW
mov dword [esp + 0x24], eax
push dword [esp + 0x28]
call fcn.004611e0
pop eax
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [esp + 0x20]
jmp 0x4208b1
push dword [esp + 8]
call fcn.00462190
push dword [esp + 4]
call fcn.00462190
push dword [esp]
call fcn.00462190
add esp, 0x30
pop edi
pop ebx
ret 0x14
Function at 0x423682
Capabilities:
Manipulate boot configuration

Disassembly:
xor eax, eax
push eax
push eax
push eax
call fcn.00462120
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00426060
mov edx, str.bcdedit.exe
lea ecx, [esp + 4]
call fcn.00426068
mov dword [esp + 8], 0
push 0
push dword [esp + 4]
push dword [0x49cc80]
push dword [esp + 0x10]
call fcn.00411ea6
mov dword [esp + 8], eax
xor eax, eax
push dword [esp]
call fcn.00462190
push dword [esp + 4]
call fcn.00462190
add esp, 0xc
ret 4

Function at 0x42a9ca
Capabilities:
Parse pe header

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

Function at 0x42d490
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x485ca0
push str.FlsAlloc
push 0x1f
call fcn.0042d162
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d4c4
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x42d4ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42d50e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x485cc4
push str.FlsGetValue
push 0x21
call fcn.0042d162
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d545
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 0x42d54d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x485cd8
push str.FlsSetValue
push 0x22
call fcn.0042d162
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d587
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 0x42f9f3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x499bf8]
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 0x42fa3e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042fc4f
test al, al
jne 0x42fa38
sub edx, 2
cmp edx, edi
jne 0x42fa1e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42fa60
lea eax, [edi + 2]
cmp edx, eax
je 0x42fa60
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042f6ba
add esp, 0x10
jmp 0x42fb5a
push esi
lea ecx, [ebp - 0x255]
call fcn.0042fc4f
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 0x42faa3
push dword [ebp - 0x25c]
jmp 0x42fa50
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 0x42fae0
cmp word [ebp - 0x226], 0
je 0x42fb01
cmp word [ebp - 0x226], ax
jne 0x42fae0
cmp word [ebp - 0x224], 0
je 0x42fb01
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042f6ba
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42fb4d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42faba
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42fb35
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42fb5a
push 0x42f10a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004370a0
add esp, 0x10
jmp 0x42fb2a
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.0042748f
leave
ret

Function at 0x43285d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042bd3e
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 0x4328cc
cmp esi, dword [ebp - 4]
je 0x4328c7
cmp dword [ebp + 0xc], 0
je 0x4328c7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4328a4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004323af
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4328ce
xor eax, eax
inc eax
jmp 0x4328ce
xor eax, eax
pop edi
pop esi
leave
ret