joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c8d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
sub esp, 8
push ebx
mov ebx, 8
push esi
push edi
cmp dword [ebp + 0x38], ebx
jae 0x42c8e9
lea eax, [ebp + 0x24]
push eax
push 0x40
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x42c936
cmp dword [ebp + 0x1c], ebx
jb 0x42c90c
mov eax, dword [ebp + 8]
push eax
call fcn.0044e60d
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], ebx
jb 0x42c92d
mov edx, dword [ebp + 0x24]
push edx
call fcn.0044e60d
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x42c8fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x42c8fb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, edi
jne 0x42c97a
lea ecx, [ebp + 8]
call fcn.00401500
lea ecx, [ebp + 0x24]
call fcn.00401500
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0x42c985
lea eax, [ebp + 8]
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push esi
push edi
push 4
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, edi
je 0x42c961
push edi
push edi
push edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 8]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
push ecx
push edi
call fcn.004540f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
lea ecx, [ebp + 8]
call fcn.00401500
lea ecx, [ebp + 0x24]
call fcn.00401500
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cc40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x42cc88
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x42cc99
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, dword [ebp - 0x228]
cmp ecx, dword [ebx + 0x348]
je 0x42ccd5
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x42cca0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
xor ecx, ebp
pop esi
call fcn.0044e488
mov esp, ebp
pop ebp
ret
Function at 0x42d3d0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 1
push edi
push edi
mov esi, ecx
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0x42d416
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
push 0x24
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x42d431
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42d501
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
cmp dword [ebp - 0x1c], 4
jne 0x42d4f7
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42d46a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x42d4fa
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x20]
push edx
push edi
call esi
test eax, eax
je 0x42d4e8
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0x42d4e4
cmp dword [ebp - 0x2c], 0
je 0x42d4af
mov esi, dword [ebp - 0xc]
mov ebx, ecx
mov dword [ebp - 0x2c], 0
jmp 0x42d4c3
cmp ebx, ecx
je 0x42d4ba
mov esi, dword [ebp - 0xc]
mov ebx, ecx
jmp 0x42d4c3
mov eax, dword [ebp - 0xc]
cmp eax, esi
jbe 0x42d4e8
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x20]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42d493
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42d4f7
test eax, eax
jne 0x42d4f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42d4f7
mov dword [ebp - 0x24], 1
mov ebx, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e488
mov esp, ebp
pop ebp
ret

Function at 0x42d520
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x42d534
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42d556
cmp dword [ebp + 0x1c], esi
jb 0x42d551
mov eax, dword [ebp + 8]
push eax
call fcn.0044e60d
add esp, 4
xor eax, eax
pop esi
pop ebp
ret
test al, 4
jne 0x42d570
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x42d565
lea ecx, [ebp + 8]
and eax, 0xfffffffd
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x1c], esi
jb 0x42d581
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044e60d
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x42fac0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bd12
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x496d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x48d370
mov dword [edi + 0x10], 0x48d380
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.004310e0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.00431b50
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x49df00]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x42fb98
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00431190
test eax, eax
jne 0x42fbc1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x42fbba
or eax, 4
push ebx
push eax
call fcn.00402d10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x431360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ae08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x431480
cmp byte [edi + 0x49], bl
je 0x431480
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x431474
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4313d4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4313ec
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x431415
dec eax
je 0x431419
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x43146f
jmp 0x43147b
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x431429
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x431452
cmp ebx, 0x10
jae 0x431438
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004509aa
add esp, 0x10
cmp esi, eax
jne 0x43146c
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x431478
test esi, esi
jne 0x4313e0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004102f0
jmp 0x4313da
lea ecx, [ebp - 0x2c]
call fcn.0040e0d0
xor al, al
jmp 0x431482
lea ecx, [ebp - 0x2c]
call fcn.0040e0d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
Function at 0x431b50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aa9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x496d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043df02
push 4
mov dword [ebp - 4], 0
call fcn.0044e9d2
mov edi, eax
add esp, 4
test edi, edi
je 0x431bcc
call fcn.0043a1b1
mov dword [edi], eax
call fcn.0043a06b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00439fa0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x431bc2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00439fc8
jmp 0x431bce
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44e488
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x496d50]
jne 0x44e492
repz ret
jmp fcn.0045882e

Function at 0x450170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x450197
call fcn.00454c03
mov dword [eax], esi
call fcn.00454bf0
push 0x16
pop esi
mov dword [eax], esi
call fcn.00458cf5
mov eax, esi
jmp 0x4501ec
test dword [ebp + 0xc], 0xfffffff9
jne 0x45017d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4501c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00454c16
pop ecx
call fcn.00454bf0
mov eax, dword [eax]
jmp 0x4501ec
test al, 0x10
jne 0x4501ea
test al, 1
je 0x4501ea
test byte [ebp + 0xc], 2
je 0x4501ea
call fcn.00454c03
mov dword [eax], 5
call fcn.00454bf0
mov dword [eax], 0xd
jmp 0x4501bb
xor eax, eax
pop esi
pop ebp
ret

Function at 0x460225
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x46024c
call fcn.00454c03
mov dword [eax], esi
call fcn.00454bf0
push 0x16
pop esi
mov dword [eax], esi
call fcn.00458cf5
mov eax, esi
jmp 0x4602a1
test dword [ebp + 0xc], 0xfffffff9
jne 0x460232
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x460279
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00454c16
pop ecx
call fcn.00454bf0
mov eax, dword [eax]
jmp 0x4602a1
test al, 0x10
jne 0x46029f
test al, 1
je 0x46029f
test byte [ebp + 0xc], 2
je 0x46029f
call fcn.00454c03
mov dword [eax], 5
call fcn.00454bf0
mov dword [eax], 0xd
jmp 0x460270
xor eax, eax
pop esi
pop ebp
ret
Function at 0x465b57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045903e
and dword [ebp - 0x14], 0
cmp dword [0x49beb4], 0
mov dword [ebp - 0x18], eax
jne 0x465c0a
push 0x472b30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x465cb2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x472b24
push ebx
call edi
test eax, eax
je 0x465cb2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x472b14
push ebx
mov dword [0x49beb4], eax
call edi
push eax
call esi
push 0x472b00
push ebx
mov dword [0x49beb8], eax
call edi
push eax
call esi
push 0x472ae4
push ebx
mov dword [0x49bebc], eax
call edi
push eax
call esi
mov dword [0x49bec4], eax
test eax, eax
je 0x465c0a
push 0x472acc
push ebx
call edi
push eax
call esi
mov dword [0x49bec0], eax
mov eax, dword [0x49bec0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x465c63
cmp dword [0x49bec4], ecx
je 0x465c63
push eax
call esi
push dword [0x49bec4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x465c63
test ebx, ebx
je 0x465c63
call edi
test eax, eax
je 0x465c5a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x465c5a
test byte [ebp - 8], 1
jne 0x465c63
or dword [ebp + 0x10], 0x200000
jmp 0x465c96
mov eax, dword [0x49beb8]
cmp eax, dword [ebp - 0x18]
je 0x465c96
push eax
call esi
test eax, eax
je 0x465c96
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x465c96
mov eax, dword [0x49bebc]
cmp eax, dword [ebp - 0x18]
je 0x465c96
push eax
call esi
test eax, eax
je 0x465c96
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49beb4]
call esi
test eax, eax
je 0x465cb2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x465cb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e488
leave
ret
Function at 0x401090
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
xor edi, edi
nop
xorps xmm0, xmm0
mov dword [esp + 0x28], 0x44
movlpd qword [esp + 0x2c], xmm0
lea eax, [esp + 0x70]
movlpd qword [esp + 0x34], xmm0
lea edx, [eax + 1]
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movaps xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [str.._Hungryphilosopher.exe]
movups xmmword [esp + 0x70], xmm0
movq xmm0, qword [0x402128]
movq qword [esp + 0x80], xmm0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401114
sub eax, edx
add eax, 6
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4011b8
push edi
lea eax, [esp + 0x74]
push eax
push str._s__d
push dword [esp + 0x18]
push esi
call fcn.00401050
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc edi
add esp, 4
cmp edi, 5
jl 0x4010b0
push 0x186a0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004011ce
mov esp, ebp
pop ebp
ret
push str.memroy_fail
call fcn.00401010
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x4019ce
Capabilities:
Parse pe header

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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov cl, 0x6c
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov al, 0x65
mov byte [esp + 0x21], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], cl
mov cl, 0x74
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0xe], al
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x16], cl
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x20]
mov dl, 0x6e
xor ebx, ebx
push eax
push ecx
mov dword [esi], 0x10015320
mov byte [esp + 0x28], 0x6b
mov byte [esp + 0x2a], 0x72
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x34], bl
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x1f], 0x76
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], 0x41
mov byte [esp + 0x24], bl
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WINMM.dll
mov edi, eax
call ebp
push ebx
push ebx
push ebx
push ebx
mov dword [0x1001a538], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x3e8
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], bl
lea edi, [esi + 0x30]
mov ebp, 2
mov edx, dword [esi + 4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x20
mov dword [edi - 0x28], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi], eax
mov eax, dword [esi + 4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x20
mov dword [edi - 0x20], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi + 8], eax
add esp, 0x10
add edi, 4
dec ebp
jne 0x100010e4
lea eax, [esi + 0x46]
xor ecx, ecx
mov edx, eax
pop edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov word [eax], 0x31
mov word [esi + 0x48], 1
mov dword [esi + 0x4a], 0x1f40
mov dword [esi + 0x4e], 0x659
mov word [esi + 0x52], 0x41
mov word [esi + 0x54], bx
mov word [esi + 0x56], 2
mov word [esi + 0x58], 0x140
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10001190
Capabilities:
Link many functions at runtime
Terminate thread

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_puts]
push 0x100180d0
mov dword [esi], 0x10015320
call edi
mov eax, dword [0x1001a538]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
push str.waveInReset
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov dword [esp + 0x18], eax
call ebp
push 0x100180d0
call edi
mov ecx, dword [0x1001a538]
add esp, 4
push str.waveInStop
push ecx
call ebx
push 0
mov dword [esp + 0x14], eax
call ebp
push 0x100180d0
call edi
mov edx, dword [0x1001a538]
add esp, 4
push str.waveInClose
push edx
call ebx
push 0
mov dword [esp + 0x20], eax
call ebp
push 0x100180d0
call edi
mov eax, dword [0x1001a538]
add esp, 4
push str.waveInUnprepareHeader
push eax
call ebx
push 0
mov dword [esp + 0x1c], eax
call ebp
push 0x100180d0
call edi
mov ecx, dword [0x1001a538]
add esp, 4
push str.waveOutReset
push ecx
call ebx
push 0
mov dword [esp + 0x24], eax
call ebp
push 0x100180d0
call edi
mov edx, dword [0x1001a538]
add esp, 4
push str.waveOutClose
push edx
call ebx
push 0
mov dword [esp + 0x28], eax
call ebp
push 0x100180d0
call edi
mov eax, dword [0x1001a538]
add esp, 4
push str.waveOutUnprepareHeader
push eax
call ebx
push 0
mov ebx, eax
call ebp
mov al, byte [esi + 0x44]
test al, al
je 0x100012d2
mov ecx, dword [esi + 0x18]
push ecx
call dword [esp + 0x14]
mov edx, dword [esi + 0x18]
push edx
call dword [esp + 0x18]
lea edi, [esi + 0x30]
mov ebp, 2
mov eax, dword [edi]
mov ecx, dword [esi + 0x18]
push 0x20
push eax
push ecx
call dword [esp + 0x24]
add edi, 4
dec ebp
jne 0x100012ab
mov edx, dword [esi + 0x18]
push edx
call dword [esp + 0x20]
mov eax, dword [esi + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x10001302
mov ecx, dword [esi + 0x40]
push ecx
call dword [esp + 0x24]
lea edi, [esi + 0x30]
mov ebp, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x40]
push 0x20
push edx
push eax
call ebx
add edi, 4
dec ebp
jne 0x100012e9
mov ecx, dword [esi + 0x40]
push ecx
call dword [esp + 0x28]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi - 0x28]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [edi - 0x20]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [edi + 8]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x1000130a
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x28]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
mov eax, dword [0x1001a538]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret