joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40b720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40b72f
pop dword [ebp - 0x34]
mov eax, 0xf5e72bf
add eax, 0xf0e24470
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x371ca
push 0
mov eax, 0xae50f57
add eax, 0xf55bd1c9
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x2fef0750
add ecx, 0xd01137cc
mov esi, eax
mov edi, 0xdd4fc553
sub edi, 0xdd0e4d53
add edi, dword [ebp - 0x34]
mov edx, 0x3678a8be
sub edx, 0xe8e87f4d
xor dword [ebp - 8], ebx
mov ebx, dword [edi]
add dword [ebp - 0xc], 0x539098a2
add ebx, edx
sub dword [ebp - 0x1c], ebx
mov dword [esi], ebx
add dword [ebp - 0x28], eax
add esi, 0xb6593011
add esi, 0x49a6cff3
add edi, 0x3a92c6c8
add edi, 0xc56d393c
loop 0x40b78e
add eax, 0xef43
mov ebx, eax
add eax, 0x41948a64
sub eax, 0x41948a5f
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
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 0x10004a93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006d878]
jne 0x10004a9d
repz ret
jmp fcn.10006869

Function at 0x10006b14
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000366c
and dword [ebp - 4], 0
cmp dword [0x1006f45c], 0
mov ebx, eax
jne 0x10006bc5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10006c76
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10006c76
push eax
call fcn.100035fa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1006f45c], eax
call esi
push eax
call fcn.100035fa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1006f460], eax
call esi
push eax
call fcn.100035fa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1006f464], eax
call esi
push eax
call fcn.100035fa
pop ecx
mov dword [0x1006f46c], eax
test eax, eax
je 0x10006bc5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100035fa
pop ecx
mov dword [0x1006f468], eax
mov eax, dword [0x1006f468]
cmp eax, ebx
je 0x10006c1d
cmp dword [0x1006f46c], ebx
je 0x10006c1d
push eax
call fcn.10003675
push dword [0x1006f46c]
mov esi, eax
call fcn.10003675
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10006c1d
test edi, edi
je 0x10006c1d
call esi
test eax, eax
je 0x10006c14
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10006c14
test byte [ebp - 0xc], 1
jne 0x10006c1d
or dword [ebp + 0x10], 0x200000
jmp 0x10006c56
mov eax, dword [0x1006f460]
cmp eax, ebx
je 0x10006c56
push eax
call fcn.10003675
pop ecx
test eax, eax
je 0x10006c56
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10006c56
mov eax, dword [0x1006f464]
cmp eax, ebx
je 0x10006c56
push eax
call fcn.10003675
pop ecx
test eax, eax
je 0x10006c56
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1006f45c]
call fcn.10003675
pop ecx
test eax, eax
je 0x10006c76
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10006c78
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007ef0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x1006cf98], 0
mov byte [0x1006cf9c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x1006cf8c], 0x160e
mov dword [0x1006cf94], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1006cf94]
add eax, 1
mov dword [0x1006cf94], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10007f35
jmp 0x1000800b
mov eax, 0x100
mov dword [0x1006cfa0], 0
mov ecx, dword [0x1006cf98]
mov edx, dword [0x1006cf94]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x1006cfa0], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x1006cf98], edx
mov ecx, dword [0x1006cf94]
mov cl, byte [esi + ecx]
mov byte [0x1006cf9c], cl
mov dword [0x1006cf8c], 0x1516
mov cl, byte [esi + edx]
mov edx, dword [0x1006cf94]
mov byte [esi + edx], cl
mov cl, byte [0x1006cf9c]
mov edx, dword [0x1006cf98]
mov byte [esi + edx], cl
mov dword [0x1006cf90], 0x19c
mov edx, dword [0x1006cf94]
add edx, 1
mov dword [0x1006cf94], edx
cmp edx, 0x100
jl 0x10007f60
jmp 0x1000801a
mov dword [0x1006cf94], 0
jmp 0x10007f60
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10008040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
jmp 0x100080e7
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea edx, section..data
imul esi, eax, 0xe4
mov edi, edx
add edi, esi
add edi, 0xe0
mov esi, dword [edi]
imul edi, eax, 0xe4
mov ebx, edx
add ebx, edi
add ebx, 0x88
mov edi, dword [ebx]
imul ebx, eax, 0xe4
add edx, ebx
add edx, 0xdc
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x44]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
call fcn.10008cc0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add eax, ecx
mov edx, dword [ebp - 0x48]
add edx, 1
cmp edx, 0x6ce
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
je 0x1000819e
jmp 0x1000805e
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0xe4
mov edi, edx
add edi, esi
add edi, 0xe0
mov esi, dword [edi]
imul edi, eax, 0xe4
add edx, edi
add edx, 0xdc
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x6ce
mov ecx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x100080e7
lea eax, [0x1000a445]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], ecx
call fcn.10008ed0
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.10007ca0
mov ecx, eax
mov dword [0x1006cfac], eax
mov eax, esp
mov edx, dword [ebp - 0x54]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
jmp 0x1000805e
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], ecx
call fcn.10008690
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x122393
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x135000
mov ecx, dword [ebp - 0x44]
add ecx, 0x667ac
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2030
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10008640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10008640]
mov dword [ebp - 4], eax
jmp 0x10008651
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x10008675
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10008675
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x10008651
Function at 0x100087e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1006cf94], 0
mov dword [0x1006cf98], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x1006cfa4], 0
mov dword [0x1006cf8c], 0x1331
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov dword [ebp - 0x20], eax
je 0x10008932
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1006cf8c], 0xb9f
mov edx, dword [0x1006cf94]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x1006cf94], edx
mov esi, dword [0x1006cf98]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x1006cf98], edx
mov dword [0x1006cf90], 0x2630
mov ecx, dword [0x1006cf94]
mov bl, byte [edi + ecx]
mov byte [0x1006cf9c], bl
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov bl, byte [0x1006cf9c]
mov ecx, dword [0x1006cf98]
mov byte [edi + ecx], bl
mov dword [0x1006cf90], 0x12a3
mov ecx, dword [0x1006cf94]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x1006cf98]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x1006cfa4], edx
mov dword [0x1006cf8c], 0x1447
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [0x1006cf8c]
add esi, 0xfffff28d
mov dword [0x1006cf8c], esi
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x20], edx
jne 0x1000883d
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10008d40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [0x1006cf90]
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
add edx, 0x1e10
mov dword [0x1006cf8c], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
jmp 0x10008dd1
xor eax, eax
mov ecx, dword [0x1006cf90]
mov edx, ecx
add edx, 0xfffffa91
mov dword [0x1006cf8c], edx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0x16], 0x61
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
je 0x10008e43
jmp 0x10008dc8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
je 0x10008e87
mov eax, dword [ebp - 0x20]
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x10008dfe
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
jl 0x10008dd1
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
jne 0x10008dc8
mov dword [0x1006cf8c], 0x224c
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
cmp word [ecx + edx*2], 0x6f
mov dword [ebp - 0x20], eax
je 0x10008d7f
jmp 0x10008dc8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x10008dc8
xor eax, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffba8
mov dword [0x1006cf8c], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
je 0x10008db0
jmp 0x10008dc8
xor eax, eax
mov dword [0x1006cf8c], 0x23e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x10008dc8
mov eax, 1
mov ecx, dword [0x1006cf90]
add ecx, 0xffffde44
mov dword [0x1006cf8c], ecx
mov dword [ebp - 0x20], eax
jmp 0x10008dc8
Function at 0x10001020
Capabilities:
Contain obfuscated stackstrings
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10029380]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
jne 0x100010fb
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1000da70
add esp, 0xc
mov dword [ebp - 0x10], 0x37323031
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], 0x37333636
mov word [ebp - 8], 0x3036
mov byte [ebp - 6], 0
push 0x100
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x120], 0xe7b8e8c1
push eax
mov dword [ebp - 0x11c], 0xb3e0b145
mov dword [ebp - 0x118], 0xbfa3c4cc
mov word [ebp - 0x114], 0xe9
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x110]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100010d4
test dl, dl
je 0x100010d0
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100010d4
add ecx, 2
add eax, 2
test dl, dl
jne 0x100010b4
xor eax, eax
jmp 0x100010d9
sbb eax, eax
or eax, 1
test eax, eax
je 0x100010ef
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000be69
mov esp, ebp
pop ebp
ret 0xc
push 0x64
push 0xf
call fcn.10003010
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1000be69
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10006750
Capabilities:
Encode data using xor

Disassembly:
call fcn.10008800
xor eax, fcn.10006750
xor eax, dword [esp + 4]
mov edx, eax
shr edx, 0x11
xor edx, eax
and edx, 0xf
add edx, 1
je 0x1000679f
push esi
mov esi, 0x11
test eax, eax
cmove eax, esi
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
imul ecx, ecx, 0x7feb352d
mov eax, ecx
shr eax, 0xf
xor eax, ecx
imul ecx, eax, 0x846ca68b
mov eax, ecx
shr eax, 0x10
xor eax, ecx
sub edx, 1
jne 0x10006773
pop esi
ret
Function at 0x10006cb0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x78
push 0
lea eax, [esi + 0x10]
push eax
call fcn.1000da70
mov edx, dword [esp + 0x18]
add esp, 0xc
mov dword [esi], 0x61707865
mov dword [esi + 4], 0x3320646e
mov dword [esi + 8], 0x79622d32
mov dword [esi + 0xc], 0x6b206574
movzx ecx, byte [edx + 3]
shl ecx, 8
movzx eax, byte [edx + 2]
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x10], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x14], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x18], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x1c], ecx
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x20], ecx
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x24], ecx
movzx ecx, byte [edx + 0x1b]
shl ecx, 8
movzx eax, byte [edx + 0x1a]
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x28], ecx
movzx ecx, byte [edx + 0x1f]
movzx eax, byte [edx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], eax
pop esi
ret

Function at 0x10008990
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
mov eax, dword [esp + 0xc]
push eax
push dword [esp + 0xc]
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x100089b3
cmp eax, dword [esp + 0xc]
jae 0x100089b3
mov al, 1
ret
xor al, al
ret
Function at 0x100089c0
Capabilities:
Get system information on windows
Link many functions at runtime

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
lea eax, [esp + 4]
push eax
mov word [esi + 0xc], 0x100
mov byte [esi + 0xe], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 8]
test eax, eax
je 0x100089e7
mov dword [esi], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100089f2
mov dword [esi + 8], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.kernelbase.dll
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x10008a33
push str.VirtualAlloc2FromApp
push ebx
call edi
mov dword [0x1003338c], eax
test eax, eax
jne 0x10008a2c
push str.VirtualAlloc2
push ebx
call edi
mov dword [0x1003338c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.ntdll.dll
call ebp
mov ebx, eax
test ebx, ebx
je 0x10008a54
push str.NtAllocateVirtualMemoryEx
push ebx
call edi
push ebx
mov dword [0x10033390], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1001fe00
call ebp
mov ebx, eax
test ebx, ebx
je 0x10008a9c
push str.GetCurrentProcessorNumberEx
push ebx
call edi
push str.GetNumaProcessorNodeEx
push ebx
mov dword [0x10033394], eax
call edi
push str.GetNumaNodeProcessorMaskEx
push ebx
mov dword [0x10033398], eax
call edi
push str.GetNumaProcessorNode
push ebx
mov dword [0x1003339c], eax
call edi
push ebx
mov dword [0x100333a0], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
call fcn.10002fd0
add esp, 4
pop edi
pop ebp
pop ebx
test al, al
jne 0x10008abb
push 7
call fcn.10002fd0
add esp, 4
test al, al
je 0x10008ac7
lea eax, [esi + 4]
push eax
call fcn.10008f80
add esp, 4
pop esi
add esp, 0x24
ret

Function at 0x10008c00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x10029380]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, dword [esp + 0x28]
call fcn.10006250
test al, al
jne 0x10008cd9
cmp dword [0x10029330], 0xffffffff
jne 0x10008c56
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10029330], eax
cmp eax, 0xffffffff
je 0x10008c4f
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x10008c4f
mov al, 1
jmp 0x10008c51
xor al, al
mov byte [0x100333c0], al
push esi
call fcn.10002800
add esp, 4
lea ecx, [eax - 1]
cmp ecx, 0xfffffffd
ja 0x10008cd9
cmp byte [0x100333c0], 0
mov dword [esp + 4], 0
je 0x10008c9d
push 0
lea ecx, [esp + 8]
push ecx
push eax
push esi
push dword [0x10029330]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1000be69
add esp, 0x20
ret
mov ecx, dword [0x10029330]
cmp ecx, 0xffffffff
je 0x10008cc8
push 0
lea edx, [esp + 8]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1000be69
add esp, 0x20
ret
push 2
call fcn.1000fc2d
push eax
push esi
call fcn.10011912
add esp, 0xc
mov ecx, dword [esp + 0x20]
pop esi
xor ecx, esp
call fcn.1000be69
add esp, 0x20
ret
Function at 0x10011eb9
Capabilities:
Parse pe header

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

Function at 0x10014081
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022538
push 0x10022530
push 0x10020f04
push 0x1f
call fcn.10013f9d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100140b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f168]
call esi
jmp 0x100140bb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100140ff
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022548
push 0x10022540
push str.FlsGetValue
push 0x21
call fcn.10013f9d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014136
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001413e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022550
push 0x10022548
push 0x10020f3c
push 0x22
call fcn.10013f9d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014178
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001f168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001769c
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 0x10017739
push ebx
push esi
call fcn.10017665
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.100175f9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100176e6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017738
push edi
push eax
call fcn.10014830
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017706
call fcn.10013e4a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017737
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100175f9
add esp, 0x20
test eax, eax
jne 0x10017725
push edi
call fcn.10013e4a
jmp 0x1001772d
push ebx
call fcn.10013e4a
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 0x1001e140
Capabilities:
Parse pe header

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