joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042f7
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.00420db7
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x40446a
jg 0x404326
test esi, esi
jb 0x40446a
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.00417558
add esp, 0xc
test eax, eax
js 0x40446a
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x404388
push edi
call fcn.00404879
pop ecx
test eax, eax
je 0x40437f
push ebx
push esi
push edi
push ebp
call fcn.00420db7
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x40446f
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.00420db7
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x40446a
jg 0x4043b1
cmp ebp, ebx
jb 0x40446a
mov ecx, 0x10015
cmp eax, ebx
jg 0x4043c6
jl 0x4043c0
cmp ebp, ecx
jae 0x4043c6
mov esi, ebp
mov ecx, eax
jmp 0x4043ca
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.00420db7
add esp, 0x10
cmp edx, ebx
jl 0x40446a
jg 0x4043f0
cmp eax, ebx
jb 0x40446a
push 0x10015
call fcn.00420db7
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40446a
push esi
push ebx
push dword [esp + 0x24]
call fcn.00417558
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x404463
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x40445f
cmp byte [esi], 0x50
jne 0x40445e
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x40445e
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x404476
dec esi
cmp esi, ebx
jae 0x40441f
push ebx
call fcn.00420db7
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.0040a130
push ebx
call fcn.00420db7
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.00404879
add esp, 0x14
test eax, eax
je 0x4044b6
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.00420db7
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x40446f
Function at 0x420db7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x420dc6
pop dword [ebp - 0x10]
mov eax, 0x420dc6
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xd0148132
sub dword [ebp - 0x20], 0x81c23be7
mov dword [ebp - 0x1c], 0x964a956e
sub dword [ebp - 0x1c], 0x64174929
mov dword [ebp - 0x18], 0xa4bd24ab
sub dword [ebp - 0x18], 0x5870e07d
mov dword [ebp - 0x14], 0xf9b02bd
add dword [ebp - 0x14], 0xf064fd43
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xd0d35bac
add dword [ebp - 0x20], 0xa39f0daa
mov dword [ebp - 0x1c], 0x4ed66eb7
sub dword [ebp - 0x1c], 0xd6a0d42
mov dword [ebp - 0x18], 0xb935c03e
add dword [ebp - 0x18], 0xaa39ac2e
mov dword [ebp - 0x14], 0xa18d6bf7
add dword [ebp - 0x14], 0x5e729409
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x41232
push 0
call eax
mov ecx, 0x5ccb6842
add ecx, 0xa334ed3b
mov edi, eax
mov ebx, 0x707d7d4
add ebx, 0xf93c022c
add ebx, dword [ebp - 0x10]
mov esi, 0xda9e4583
mov dword [ebp - 4], 0x11afb828
mov edx, dword [ebx]
sub dword [ebp - 4], edx
sub edx, esi
xor dword [ebp - 8], 0x5c4db7b8
mov dword [edi], edx
add dword [ebp - 8], 0x599c7061
add edi, 4
add ebx, 0x3315a6f
add ebx, 0xfccea595
loop 0x420ed3
add eax, 0x148c7
mov ebx, eax
add eax, 5
mov ecx, 0x61100970
add ecx, 0x9f2ff690
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10018320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1001832f
pop dword [ebp - 0x50]
mov eax, 0x154b7a98
add eax, 0xfab60897
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x65f04fc8
sub dword [ebp - 0x60], 0x179e0a7d
mov dword [ebp - 0x5c], 0x35c767dc
add dword [ebp - 0x5c], 0xfc6be469
mov dword [ebp - 0x58], 0x4466a45f
sub dword [ebp - 0x58], 0xf81a6031
mov dword [ebp - 0x54], 0x7c70e7fd
sub dword [ebp - 0x54], 0x7c70e7fd
lea eax, [ebp - 0x60]
push eax
mov eax, 0x963c4394
sub eax, 0x86382360
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xac8413f4
sub dword [ebp - 0x60], 0x3811aa9e
mov dword [ebp - 0x5c], 0xa980e22
sub dword [ebp - 0x5c], 0xc92bacad
mov dword [ebp - 0x58], 0x3da07432
add dword [ebp - 0x58], 0x25cef83a
mov dword [ebp - 0x54], 0x2bf7f91d
add dword [ebp - 0x54], 0xd40806e3
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x44fd5
push 0
call eax
mov ecx, 0xff76a522
sub ecx, 0xff76684d
mov edx, eax
mov esi, 0x8d0eda3c
sub esi, 0x7d095c3c
add esi, dword [ebp - 0x50]
mov ebx, 0x6e9d275c
sub ebx, 0xd6531396
mov dword [ebp - 0x38], 0xaf11b749
mov edi, dword [esi]
mov dword [ebp - 0x38], 0xacf1c986
xor edi, ebx
xor dword [ebp - 0x1c], ebx
mov dword [edx], edi
mov dword [ebp - 4], 0x74f89a7b
add edx, 4
add esi, 0xf9592671
add esi, 0x6a6d993
loop 0x1001844c
add eax, 0x5c7e13aa
add eax, 0xa382d27d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xad2f2290
add ecx, 0x62d0dd70
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10018320
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.10018320
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10018320
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x1004b158
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100504e0
call fcn.1004ab88
push 8
call fcn.1002be50
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10056f34], esi
jne 0x1004b18c
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x10056f30], esi
mov al, byte [ebp + 0x10]
mov byte [0x10056f2c], al
cmp dword [ebp + 0xc], edi
jne 0x1004b1d6
cmp dword [0x100613e8], edi
je 0x1004b1c6
mov eax, dword [0x100613e4]
sub eax, 4
mov dword [0x100613e4], eax
cmp eax, dword [0x100613e8]
jb 0x1004b1c6
mov eax, dword [eax]
cmp eax, edi
je 0x1004b1a7
call eax
jmp 0x1004b1a7
push 0x10052020
mov eax, 0x1005201c
call fcn.1004b0d6
pop ecx
push 0x10052028
mov eax, 0x10052024
call fcn.1004b0d6
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1004b207
cmp dword [ebp + 0x10], edi
jne 0x1004b215
mov dword [0x10056f34], esi
push dword [ebp + 8]
call fcn.1004b094
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1004b214
push 8
call fcn.1002be50
pop ecx
ret
call fcn.1004abc3
ret

Function at 0x1004bc99
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100542d0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100546b0]
je 0x1004bcce
inc eax
cmp eax, 0x13
jb 0x1004bcbf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100546b0]
jne 0x1004bdf4
mov eax, dword [0x10056e74]
cmp eax, 1
je 0x1004bdcc
cmp eax, edx
jne 0x1004bcfe
cmp dword [0x10056e78], 1
je 0x1004bdcc
cmp ecx, 0xfc
je 0x1004bdf4
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004bd34
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1004c6e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1004ceb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004bd68
mov eax, edi
push eax
call fcn.1004ceb0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1004fde4
push edi
call fcn.1004c830
add esp, 0x10
push edi
call fcn.1004ceb0
push dword [esi + 0x100546b4]
mov ebx, eax
call fcn.1004ceb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100497b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1004c6e0
push edi
push ebx
call fcn.1004c6f0
push 0x1004fde0
push ebx
call fcn.1004c6f0
push dword [esi + 0x100546b4]
push ebx
call fcn.1004c6f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1002be50
add esp, 0x2c
jmp 0x1004bdf4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100546b4]
push dword [esi]
call fcn.1004ceb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10049461
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444030]
jne 0x40107a
repz ret
jmp fcn.00401b61

Function at 0x4086bb
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.0040255c
and dword [ebp - 4], 0
cmp dword [0x4467b4], 0
mov ebx, eax
jne 0x40876c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40881d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40881d
push eax
call fcn.004024ea
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4467b4], eax
call esi
push eax
call fcn.004024ea
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4467b8], eax
call esi
push eax
call fcn.004024ea
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4467bc], eax
call esi
push eax
call fcn.004024ea
pop ecx
mov dword [0x4467c4], eax
test eax, eax
je 0x40876c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024ea
pop ecx
mov dword [0x4467c0], eax
mov eax, dword [0x4467c0]
cmp eax, ebx
je 0x4087c4
cmp dword [0x4467c4], ebx
je 0x4087c4
push eax
call fcn.00402565
push dword [0x4467c4]
mov esi, eax
call fcn.00402565
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4087c4
test edi, edi
je 0x4087c4
call esi
test eax, eax
je 0x4087bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4087bb
test byte [ebp - 0xc], 1
jne 0x4087c4
or dword [ebp + 0x10], 0x200000
jmp 0x4087fd
mov eax, dword [0x4467b8]
cmp eax, ebx
je 0x4087fd
push eax
call fcn.00402565
pop ecx
test eax, eax
je 0x4087fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4087fd
mov eax, dword [0x4467bc]
cmp eax, ebx
je 0x4087fd
push eax
call fcn.00402565
pop ecx
test eax, eax
je 0x4087fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4467b4]
call fcn.00402565
pop ecx
test eax, eax
je 0x40881d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40881f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4097ac
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409860
jmp 0x409855
cmp dword [esi + 0x10], 0x1000
jne 0x409841
test byte [esi + 0x15], 1
jne 0x409841
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409800
cmp eax, 2
je 0x409800
cmp eax, 0x10
je 0x409800
cmp eax, 0x20
jne 0x409815
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409815
mov bl, 1
xor ebp, ebp
jmp 0x409826
mov eax, dword [esi]
add eax, ebp
call fcn.004097a4
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409819
test bl, bl
je 0x409841
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409860
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4097d8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1001655a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10016569
pop dword [ebp - 0x40]
mov eax, 0xc722a9de
sub eax, 0xb7214475
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x6645f7d7
sub dword [ebp - 0x50], 0x17f3b28c
mov dword [ebp - 0x4c], 0xb69a17fc
sub dword [ebp - 0x4c], 0x8466cbb7
mov dword [ebp - 0x48], 0x22b9ba05
sub dword [ebp - 0x48], 0xd66d75d7
mov dword [ebp - 0x44], 0xf5cb844
add dword [ebp - 0x44], 0xf0a347bc
lea eax, [ebp - 0x50]
push eax
mov eax, 0x3e8a44c9
add eax, 0xd17b4c43
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xf5c44014
sub dword [ebp - 0x50], 0x8151d6be
mov dword [ebp - 0x4c], 0xa8c5af5e
add dword [ebp - 0x4c], 0x98a6b217
mov dword [ebp - 0x48], 0x233dad56
sub dword [ebp - 0x48], 0xbfce40ea
mov dword [ebp - 0x44], 0xea573478
sub dword [ebp - 0x44], 0xea573478
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x5eabe
push 0
call eax
mov ecx, 0x9c587f6c
sub ecx, 0x9c5832ba
mov edx, eax
mov esi, 0x10069400
add esi, dword [ebp - 0x40]
mov ebx, 0x103f2eb3
add ebx, 0x8269cb47
sub dword [ebp - 0x2c], 0x4ee74ac9
mov edi, dword [esi]
sub dword [ebp - 0xc], esi
xor edi, ebx
mov dword [edx], edi
xor dword [ebp - 0x38], esi
add edx, 4
add esi, 0xf27a5016
sub esi, 0xf27a5012
loop 0x10016680
add eax, 0x2b7c15a
sub eax, 0x2b69bbf
xor ebx, ebx
add ebx, eax
add eax, 0x925c2b6e
add eax, 0x6da3d497
mov ecx, 0x75856697
sub ecx, 0x65856697
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x40bc8b
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x74]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0xc], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
and dword [esi + 8], eax
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push 0
jmp 0x40bd91
cmp dword [ebp - 0x20], 0x1000
jne 0x40bd82
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0x30]
push 7
pop ecx
lea edi, [ebp - 0x50]
add eax, 0xc
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
call main
mov esi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x40bd1d
cmp edi, dword [esi + 0x10]
jae 0x40bd5f
push 0x30
call main
mov edx, eax
xor eax, eax
pop ecx
mov ecx, dword [ebp - 4]
push 7
lea edi, [edx + 0x10]
mov dword [edi], ecx
add edi, 4
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0x10]
push edx
push eax
push esi
lea eax, [ebp - 0x14]
mov word [edx + 0xc], 0
push eax
call main
mov esi, dword [ebp - 0x14]
lea edi, [esi + 0x14]
push 7
pop ecx
lea esi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x1c], 0x70
je 0x40bd82
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x70]
mov edx, dword [ebp - 0xc]
add dword [edx + 8], eax
jmp 0x40bd85
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
add eax, ecx
lea ecx, [ebp - 0x30]
push 0x1c
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.kernel32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40bcd8
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4

Function at 0x40e291
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40e2a0
pop dword [ebp - 0x44]
mov eax, 0xb17fa67a
sub eax, 0xb13ec3da
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3fb17
push 0
mov eax, 0xd864d4ba
add eax, 0x27ddee3e
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x18bbc550
sub ecx, 0x18bb89be
xor esi, esi
add esi, eax
mov edi, 0x895ae1e5
add edi, 0x76e9b61b
add edi, dword [ebp - 0x44]
mov edx, 0x172670b1
sub edx, 0x9dad11f2
add dword [ebp - 0x10], ebx
mov ebx, dword [edi]
xor dword [ebp - 0x40], 0xae6726e5
add ebx, edx
xor dword [ebp - 0x14], 0x9d9942b5
mov dword [esi], ebx
xor dword [ebp - 0x28], edi
add esi, 4
add edi, 0x3f0836c9
add edi, 0xc0f7c93b
loop 0x40e301
add eax, 0x7e2afb5b
sub eax, 0x7e2a1a40
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x10007ec3
Capabilities:
Parse pe header

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