joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54b958
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x54b970
add esp, 0xfffffff0
call fcn.0040580c
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x54ba8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.0040425c
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x54ba74
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00545c88
xor eax, eax
push ebp
push 0x54ba61
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00545c88
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.0040725c
jmp 0x54ba32
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407804
mov eax, dword [ebx + 4]
call fcn.00407364
dec eax
jle 0x54ba46
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x54ba20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ba68
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ba91
lea eax, [ebp - 4]
call fcn.00406c74
ret

Function at 0x552004
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebx
add esp, 0xffffff9c
mov ebx, eax
mov dword [esp + 0x58], 0xc
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0xffffffff
lea eax, [esp + 0x14]
xor ecx, ecx
mov edx, 0x44
call fcn.00404b40
mov dword [esp + 0x14], 0x44
mov dword [esp + 0x40], 0x101
mov word [esp + 0x44], 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x28
push 0xffffffffffffffff
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x74]
push eax
push ebx
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x55208c
mov dword [esp], 0x103
push esp
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x55208c
push 0xa
call sub.kernel32.dll_Sleep_2
add esp, 0x64
pop ebx
ret
Function at 0x552094
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcbc
xor eax, eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x330], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5522c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x330]
mov eax, dword [0x561054]
mov eax, dword [eax]
call fcn.00496060
mov eax, dword [ebp - 0x330]
lea edx, [ebp - 0x32c]
call fcn.0041429c
mov edx, dword [ebp - 0x32c]
lea eax, [ebp - 4]
mov ecx, 0x5522d8
call fcn.004074c8
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2d4]
call fcn.00404998
lea eax, [ebp - 0x2d4]
call fcn.00404730
call fcn.004043dc
mov edx, 0x5522f8
lea eax, [ebp - 0x2d4]
call fcn.004079a4
call fcn.00404df4
call fcn.004043dc
push 0x552310
lea edx, [ebp - 0x338]
mov eax, dword [0x561054]
mov eax, dword [eax]
call fcn.00496060
push dword [ebp - 0x338]
push 0x552328
lea eax, [ebp - 0x334]
mov edx, 3
call fcn.004075ac
mov edx, dword [ebp - 0x334]
lea eax, [ebp - 0x2d4]
call fcn.004079a4
call fcn.00404df4
call fcn.004043dc
push 0x552338
lea edx, [ebp - 0x340]
mov eax, dword [0x561054]
mov eax, dword [eax]
call fcn.00496060
push dword [ebp - 0x340]
push 0x552328
push 0x55235c
lea eax, [ebp - 0x33c]
mov edx, 4
call fcn.004075ac
mov edx, dword [ebp - 0x33c]
lea eax, [ebp - 0x2d4]
call fcn.004079a4
call fcn.00404df4
call fcn.004043dc
push 0x552310
push dword [ebp - 4]
push 0x552328
lea eax, [ebp - 0x344]
mov edx, 3
call fcn.004075ac
mov edx, dword [ebp - 0x344]
lea eax, [ebp - 0x2d4]
call fcn.004079a4
call fcn.00404df4
call fcn.004043dc
lea eax, [ebp - 0x2d4]
call fcn.00404a5c
call fcn.004043dc
lea eax, [ebp - 0x328]
xor ecx, ecx
mov edx, 0x44
call fcn.00404b40
mov dword [ebp - 0x2fc], 1
mov word [ebp - 0x2f8], 0
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x328]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407088
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x55229a
mov eax, dword [ebp - 0x2e0]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x2e4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5522c7
lea eax, [ebp - 0x344]
mov edx, 7
call fcn.00406ff4
lea eax, [ebp - 4]
call fcn.00406fec
ret
Function at 0x41285b
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 0x41293d
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x4128d8
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x412928
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 0x412947
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 0x412928
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00412843
test eax, eax
je 0x412947
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 0x412947
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 0x412888
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x412940
Function at 0x4138da
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 [0x4276d4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401688
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 0x4139c6
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 0x4139ba
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 0x413969
xor edi, edi
jmp 0x4139b1
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 0x413965
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x413991
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x413965
push dword [ebp - 0x38]
mov ecx, esi
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.004164d2
leave
ret 8
Function at 0x41489a
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x403d30
push 1
xor ebx, ebx
push ebx
push 0x403dd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x41494d
mov eax, dword [ebp - 8]
push ebx
lea edx, [ebp - 4]
push edx
push 0x401c34
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x41494d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp + 0xc]
jmp 0x414948
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0xc]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x41494c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push 0x403d20
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jl 0x414948
push dword [ebp + 8]
push dword [esi]
call fcn.00414828
mov edi, eax
cmp edi, ebx
jge 0x41494c
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
cmp dword [esi], ebx
je 0x4148f8
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8

Function at 0x4164d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4276d4]
jne 0x4164db
ret
jmp 0x4164e0
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4276d4]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x429964]
test eax, eax
je 0x416504
call eax
cmp dword [0x429968], 0
je 0x41654b
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 [0x429968]
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.004164d2
add ebp, 0x2a8
leave
ret
Function at 0x41839e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x404b8c
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, 0x404b74
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x404b60
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
movsw word es:[edi], word [esi]
mov esi, 0x404b4c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
push 0x404b2c
movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [ebp - 0xc4]
push 0x64
push eax
mov dword [0x4298cc], esi
mov dword [0x4298d0], esi
mov dword [0x4298d4], esi
call fcn.00418346
add esp, 0x10
test eax, eax
jl 0x418542
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xc4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41854b
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push 0x4298cc
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 4
call edi
test eax, eax
je 0x41846c
mov dword [0x4298cc], esi
lea eax, [ebp - 4]
push eax
push 0x4298d0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x41848d
mov dword [0x4298d0], esi
lea eax, [ebp - 4]
push eax
push 0x4298d4
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x4184ae
mov dword [0x4298d4], esi
lea eax, [ebp - 4]
push eax
push 0x4298d8
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x4184d3
mov dword [0x4298d8], 0xffff0000
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4298cc], esi
jne 0x4184fc
cmp dword [0x4298d0], esi
jne 0x41850c
cmp dword [0x4298d4], esi
jne 0x41850c
xor eax, eax
inc eax
jmp 0x418580
cmp dword [0x4298d0], esi
jne 0x41850c
cmp dword [0x4298d4], esi
je 0x418531
push ebx
push 0x404b28
push 0x64
push 0x429868
call fcn.00418346
add esp, 0x10
test eax, eax
jl 0x418542
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov dword [0x427e40], eax
cmp dword [0x4298cc], esi
jne 0x418546
cmp dword [0x427e40], 0xffffffff
jne 0x418546
xor eax, eax
jmp 0x418580
xor eax, eax
inc eax
jmp 0x41857b
push ebx
push 0x404b28
push 0x64
push 0x429868
call fcn.00418346
add esp, 0x10
test eax, eax
jl 0x418542
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, 0xffffffff
mov dword [0x427e40], ecx
je 0x418580
mov dword [0x4298dc], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418587
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor esi, esi
cmp dword [0x4298cc], esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x201
jbe 0x4186ae
test dword [0x4298d8], edi
je 0x4186ae
cmp edi, 0x10002
je 0x4185f3
cmp edi, 0x20002
je 0x4185f0
cmp edi, 0x40002
je 0x4185ec
cmp edi, 0x80002
je 0x4185e7
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
mov esi, eax
jmp 0x4185f3
push 3
pop esi
jmp 0x4185f3
push 2
jmp 0x4185e9
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [esi*4 + 0x427e44]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push 0x429868
push 0x404bec
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00418346
add esp, 0x28
test eax, eax
jl 0x418746
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.004182c6
test eax, eax
jl 0x418746
mov eax, dword [ebp - 4]
cmp eax, ebx
jae 0x418746
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.0041832b
test eax, eax
jge 0x41868f
cmp eax, 0x7a
jne 0x418746
push 0x404be8
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0041836d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x427e40], 0xffffffff
je 0x418746
xor eax, eax
cmp dword [0x4298d0], eax
ja 0x4186cd
cmp dword [0x4298d4], eax
jbe 0x418746
cmp edi, 0x10002
je 0x418709
cmp edi, 0x20002
je 0x418706
cmp edi, 0x40002
je 0x418702
cmp edi, 0x80002
je 0x4186fd
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
jmp 0x418709
push 3
pop eax
jmp 0x418709
push 2
jmp 0x4186ff
xor eax, eax
inc eax
push dword [ebp + 0xc]
push dword [eax*4 + 0x427e44]
lea eax, [ebp - 0x218]
push 0x404be0
push ebx
push eax
call fcn.00418346
add esp, 0x14
test eax, eax
jl 0x418746
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
or edi, 4
push edi
push dword [0x427e40]
call sub.rtutils.dll_TraceVprintfExA
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420b2a
Capabilities:
Create thread

Disassembly:
mov eax, 0x42524d
call fcn.004167e0
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4298dc], edi
mov esi, ecx
mov ebx, 0x80002
je 0x420b57
push 0x40bec8
push ebx
call fcn.00418587
pop ecx
pop ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
jne 0x420bd7
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x420b9a
cmp dword [0x4298dc], edi
je 0x420b93
push 0x40bea8
push 0x10002
call fcn.00418587
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x420bef
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x420b1e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x420bd7
cmp dword [0x4298dc], edi
je 0x420b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40be8c
push 0x10002
call fcn.00418587
add esp, 0xc
jmp 0x420b93
inc dword [esi + 0x30]
cmp dword [0x4298dc], edi
je 0x420bef
push 0x40be6c
push ebx
call fcn.00418587
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401500
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
call dbg.__main
mov dword [esp], str.color_0a
call sym._system
mov dword [esp + 4], str._n_n_n_t_t_t_tLOADING...PLEASE_WAIT__n_n
mov dword [esp], 0x487140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov byte [esp + 0x13], 0xb1
mov byte [esp + 0x12], 0xdb
mov dword [esp + 4], str._t_t_t_t
mov dword [esp], 0x487140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 0x1c], 0
jmp 0x401570
movsx eax, byte [esp + 0x13]
mov dword [esp + 4], eax
mov dword [esp], 0x487140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
add dword [esp + 0x1c], 1
cmp dword [esp + 0x1c], 0xf
jle 0x401556
mov dword [esp + 4], 0x488031
mov dword [esp], 0x487140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], str._t_t_t_t
mov dword [esp], 0x487140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 0x18], 0
jmp 0x4015e2
movsx eax, byte [esp + 0x12]
mov dword [esp + 4], eax
mov dword [esp], 0x487140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov dword [esp + 0x14], 0
jmp 0x4015cd
add dword [esp + 0x14], 1
fild dword [esp + 0x14]
fld qword [0x488068]
fucompi st(1)
fstp st(0)
jae 0x4015c8
add dword [esp + 0x18], 1
cmp dword [esp + 0x18], 0xf
jle 0x4015a9
mov dword [esp], 0x488033
call sym._system
mov dword [esp + 4], str._n_n_n_t_t_tHELLO_WORLD_n_n_t_t_tShashka_made_by_Ivan_:P
mov dword [esp], 0x487140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
call sym._getch
mov eax, 0
leave
ret

Function at 0x40d0f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable
Function at 0x40d150
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x491054]
test esi, esi
jle 0x40d23d
mov edi, dword [0x491058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d184
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d236
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d170
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d27a
lea ebx, [esi + esi*2]
mov esi, dword [0x491058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x491058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d25a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d22f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d22f
mov eax, dword [esp + 0x20]
add ebx, dword [0x491058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40d244
add dword [0x491054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d18e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x491058]
mov eax, dword [eax + ebx + 4]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]

Function at 0x40d740
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x491408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x491400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40d795
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 0x40d78e
test esi, esi
je 0x40d78e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d770
mov dword [esp], 0x491408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d9b0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40d9e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40d9de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40d9ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40d9d0
xor eax, eax
pop ebx
pop esi
ret