joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b29e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418a08], 1
push ebx
push esi
push edi
jne 0x40b2c1
or dword [0x418a08], 1
call fcn.0040b24a
mov dword [0x418a04], eax
push 4
pop eax
call fcn.00414500
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b356
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188bc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x40b356
cmp eax, 1
je 0x40b377
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b356
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b323
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b352
xor eax, eax
inc eax
jmp 0x40b396
cmp edi, eax
jae 0x40b35a
xor eax, eax
jmp 0x40b396
cmp eax, esi
jae 0x40b361
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188bc]
jmp 0x40b37a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b534
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x40b885
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
cmp word [ecx], 0
mov eax, dword [esp + 4]
push ebx
mov ebx, eax
je 0x40b913
cmp word [eax], 0
push ebp
push esi
push edi
je 0x40b90e
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x40b8fd
mov ax, word [edi]
test ax, ax
je 0x40b917
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x40b8fd
push esi
call ebp
push edi
mov dword [esp + 0x18], eax
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, eax
sub ecx, edi
sub edx, esi
xor ecx, edx
test ecx, 0xfffffffe
jne 0x40b8fd
jmp 0x40b8f3
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x40b8f7
cmp esi, eax
jb 0x40b8e5
cmp word [esi], 0
jne 0x40b8b1
cmp word [edi], 0
je 0x40b917
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x40b8a5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x40b910
Function at 0x40bac7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.00414500
mov eax, dword [0x418890]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp + 0x1f88], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40bb3b
cmp dword [ebp - 0x7c], 1
jne 0x40bb3f
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40bb3b
cmp word [ebp - 0x78], si
je 0x40bb3b
inc eax
jmp 0x40bb48
xor eax, eax
jmp 0x40bb48
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.00414114
add ebp, 0x1f8c
leave
ret 4

Function at 0x40c0e2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x41477d
call fcn.00414470
sub esp, 0x214
mov eax, dword [0x418890]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.0040b4e5
cmp eax, esi
jne 0x40c181
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40c13b
lea eax, [ebp - 0x210]
push eax
call fcn.0040c0e2
cmp eax, esi
jne 0x40c180
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x40c12b
call fcn.0040b480
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0040b480
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00414114
leave
ret 4
Function at 0x40df48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4148a9
call fcn.00414470
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
call fcn.0040cc9c
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x40dfa4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40df8f
call esi
mov esi, eax
jmp 0x40e0bd
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e0bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x40dfc5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x40dfed
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40dfd8
call esi
jmp 0x40e0b2
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e0b4
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x40e05b
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x40e028
push edi
call fcn.0040b39e
test al, al
je 0x40e028
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00414500
mov dword [ebp + 8], esp
jmp 0x40e034
push edi
lea ecx, [ebp - 0x10]
call fcn.0040cc79
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40e042
mov esi, 0x8007000e
jmp 0x40e0b4
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x40e063
xor eax, eax
jmp 0x40e0a6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x40e093
push ebx
call fcn.0040b39e
test al, al
je 0x40e093
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.00414500
mov eax, esp
jmp 0x40e09c
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040cc79
push 0
push esi
push edi
push eax
call fcn.0040b3f9
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040d8c2
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.0040bf47
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x412154
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x412236
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x4121d1
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x412221
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x412240
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x412221
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.0041213c
test eax, eax
je 0x412240
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x412240
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x412181
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x412239
Function at 0x412e20
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x418890]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x402828
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x412f0d
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x412f01
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x412eaf
xor edi, edi
jmp 0x412ef8
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x412eab
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x412eab
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00414114
leave
ret 8
Function at 0x414114
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418890]
jne 0x41411d
ret
jmp 0x414122
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x418890]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x418a30]
test eax, eax
je 0x414146
call eax
cmp dword [0x418a34], 0
je 0x41418d
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x418a34]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.00414114
add ebp, 0x2a8
leave
ret
Function at 0x100023ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101ebd40]
jne 0x100023f6
repz ret
jmp fcn.1000269d

Function at 0x100038d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.100038d0]
mov dword [ebp - 8], eax
mov dword [0x101ebd14], 0x1189
jmp 0x100038fe
mov dword [ebp - 4], 0
jmp 0x100038f6
jmp 0x1000392c
mov eax, dword [ebp - 4]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x1000392c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
jne 0x100038f4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x100038f6
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
jmp 0x1000393e
mov al, 1
test al, 1
jne 0x100038fe
jmp 0x100038eb
Function at 0x10003c00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x101ebd14], 0x2433
mov dword [ebp - 0x10], 0
mov dword [0x101ebd18], 0xb4
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x10003c95
mov eax, dword [0x101ebd14]
add eax, 0x1a27
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [0x101ebd14], eax
mov dword [ebp - 0xc], 0
jmp 0x10003dac
jmp 0x10003ccb
jmp 0x10003da1
mov dword [0x101ebd14], 0x46e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
je 0x10003d84
jmp 0x10003d9c
cmp dword [ebp - 4], 0x104
jge 0x10003ccb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x10003c69
mov eax, dword [0x101ebd14]
sub eax, 0x2d4
mov dword [0x101ebd18], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x10003c95
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x10003c48
mov dword [0x101ebd14], 0x1dcf
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x10003da7
mov dword [0x101ebd18], 0x1819
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x10003da5
mov eax, dword [0x101ebd14]
add eax, 0x11ea
mov dword [0x101ebd14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x10003da3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
shl ecx, 1
add eax, ecx
add eax, 0xffffffee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x64
jne 0x10003da1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx + eax*2 - 0x10]
cmp eax, 0x6c
je 0x10003c70
jmp 0x10003c6b
mov eax, dword [0x101ebd18]
sub eax, 0x20b3
mov dword [0x101ebd14], eax
mov dword [ebp - 0xc], 1
jmp 0x10003dac
jmp 0x10003c6b
jmp 0x10003da3
jmp 0x10003da5
jmp 0x10003da7
jmp 0x10003c48
mov eax, dword [ebp - 0xc]
add esp, 0x20
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..data
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x573e11f7
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x37122611
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4018a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407880
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407880
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401900
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40b068]
test esi, esi
jle 0x401a20
mov eax, dword [0x40b06c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401934
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019b7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401920
mov dword [esp], ebx
call fcn.00402290
mov edi, eax
test eax, eax
je 0x401a47
mov eax, dword [0x40b06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004023a0
mov edx, dword [0x40b06c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a27
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019b0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4019c0
add dword [0x40b068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40b06c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004018a0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40193e
mov eax, dword [0x40b06c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004018a0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004018a0
lea esi, [esi]
nop
Function at 0x401f00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b07c]
sub esp, 4
test ebx, ebx
je 0x401f55
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f4e
test esi, esi
je 0x401f4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f30
mov dword [esp], 0x40b084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10003940
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100039bd
lea ecx, [ebp - 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100039bd
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 2
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100039b6
mov dword [ebp - 0x20], 0
jmp 0x100039bd
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x100095d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100170b8]
jne 0x100095dd
repz ret
jmp fcn.1000d30c

Function at 0x10012104
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.1000cc92
and dword [ebp - 4], 0
cmp dword [0x10019738], 0
mov ebx, eax
jne 0x100121b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10012266
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10012266
push eax
call fcn.1000cc20
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10019738], eax
call esi
push eax
call fcn.1000cc20
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001973c], eax
call esi
push eax
call fcn.1000cc20
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10019740], eax
call esi
push eax
call fcn.1000cc20
pop ecx
mov dword [0x10019748], eax
test eax, eax
je 0x100121b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000cc20
pop ecx
mov dword [0x10019744], eax
mov eax, dword [0x10019744]
cmp eax, ebx
je 0x1001220d
cmp dword [0x10019748], ebx
je 0x1001220d
push eax
call fcn.1000cc9b
push dword [0x10019748]
mov esi, eax
call fcn.1000cc9b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001220d
test edi, edi
je 0x1001220d
call esi
test eax, eax
je 0x10012204
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10012204
test byte [ebp - 0xc], 1
jne 0x1001220d
or dword [ebp + 0x10], 0x200000
jmp 0x10012246
mov eax, dword [0x1001973c]
cmp eax, ebx
je 0x10012246
push eax
call fcn.1000cc9b
pop ecx
test eax, eax
je 0x10012246
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10012246
mov eax, dword [0x10019740]
cmp eax, ebx
je 0x10012246
push eax
call fcn.1000cc9b
pop ecx
test eax, eax
je 0x10012246
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10019738]
call fcn.1000cc9b
pop ecx
test eax, eax
je 0x10012266
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10012268
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret