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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x434a88]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c860
cmp word [esi], dx
jne 0x41c860
or byte [edi + eax + 0x28], 4
jmp 0x41c865
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c9b8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c998
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c8a7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c8dd
cmp eax, edx
jae 0x41c8e9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c87f
jmp 0x41c9b8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c994
cmp dword [ebp - 0x14], 0
je 0x41c994
mov eax, dword [ebx*4 + 0x434a88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c96c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c935
mov word [esi], cx
jmp 0x41c968
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x434a88]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x434a88]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x434a88]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c9b8
pop ebx
cmp word [ebp - 4], bx
jne 0x41c97d
cmp esi, dword [ebp + 0xc]
jne 0x41c97d
mov word [esi], bx
jmp 0x41c9b5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d11f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c9b8
push 0xd
jmp 0x41c9b1
mov ecx, dword [ebx*4 + 0x434a88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c9af
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c9b8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e4d0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c2b8
push 0x42c2b0
push str.FlsAlloc
push 0x1e
call fcn.0041e36e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e504
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
jmp 0x41e50a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e54e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c2c8
push 0x42c2c0
push str.FlsGetValue
push 0x20
call fcn.0041e36e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e585
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41f884
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f921
push ebx
push esi
call fcn.0041f84d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e16a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f8ce
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f920
push edi
push eax
call fcn.0041a73d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f8ee
call fcn.0041a703
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f91f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e16a
add esp, 0x20
test eax, eax
jne 0x41f90d
push edi
call fcn.0041a703
jmp 0x41f915
push ebx
call fcn.0041a703
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x424725
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004246a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42489d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42489d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42484c
jg 0x42477e
test eax, eax
je 0x424842
push 1
push 0x1000
call fcn.0041e887
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4247a4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x424839
push 0x8000
push ebx
call fcn.00417e08
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4247d0
jg 0x4247cb
cmp ecx, 0x1000
jb 0x4247d0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041da6a
add esp, 0x10
cmp eax, 0xffffffff
je 0x424815
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4247cb
jl 0x4247fc
test ecx, ecx
jne 0x4247bd
push dword [ebp - 0xc]
push ebx
call fcn.00417e08
push esi
call fcn.0041a703
add esp, 0xc
xor edi, edi
jmp 0x4248ae
cmp byte [edi + 0x24], 0
je 0x42482c
cmp dword [edi + 0x20], 5
jne 0x42482c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424837
mov edi, dword [edi + 0x18]
jmp 0x424839
xor edi, edi
push esi
call fcn.0041a703
pop ecx
jmp 0x4248ae
test ecx, ecx
jg 0x42480e
jl 0x42484c
test eax, eax
jae 0x42480e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d11f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42486f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42480e
jmp 0x4248a6
push ebx
call fcn.0041fcee
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42480e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4248ae
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4248ab
mov edi, dword [edi + 0x18]
jmp 0x4248ae
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041d11f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425c70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425c9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425c9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x14582c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1000000]
push edi
jmp 0x14582da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x14582e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x14582d0
mov eax, 1
add ebx, ebx
jne 0x14582f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1458304
jne 0x1458323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1458323
dec eax
add ebx, ebx
jne 0x1458310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x14582e8
add ebx, ebx
jne 0x145831f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1458375
xor ecx, ecx
sub eax, 3
jb 0x145833b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x14583aa
sar eax, 1
mov ebp, eax
jmp 0x1458346
add ebx, ebx
jne 0x1458346
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1458314
inc ecx
add ebx, ebx
jne 0x1458354
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1458314
add ebx, ebx
jne 0x1458361
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1458356
jne 0x1458372
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1458356
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1458394
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1458386
jmp 0x14582d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1458394
add edi, ecx
jmp 0x14582d6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x14583b2
cmp byte [edi], 0x11
jne 0x14583b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x14583b7
lea edi, [esi + 0x1051000]
mov eax, dword [edi]
or eax, eax
je 0x145842f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1fd81b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1fd8330]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x14583e4
mov ecx, edi
jns 0x1458413
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1fd8334]
or eax, eax
je 0x1458429
mov dword [ebx], eax
add ebx, 4
jmp 0x1458401
call dword [esi + 0x1fd8344]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1458460
cmp al, 0xef
ja 0x1458453
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1458435
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1458442
mov ebp, dword [esi + 0x1fd8338]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1458494
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x4028e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x402974
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x23d]
call fcn.00402ad0
mov ecx, eax
call fcn.004040b0
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x250]
push eax
call fcn.00407ad0
add esp, 8
mov dword [ebp - 0x254], eax
push 0x407e70
mov ecx, dword [ebp - 0x254]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
xor eax, eax
jmp 0x402a6b
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402a5c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
mov ax, word [edx]
mov word [ebp - 0x240], ax
mov ecx, dword [ebp - 0x23c]
cmp ax, word [ecx]
jne 0x402a0b
cmp word [ebp - 0x240], 0
je 0x4029ff
mov edx, dword [ebp - 0x238]
mov ax, word [edx + 2]
mov word [ebp - 0x242], ax
mov ecx, dword [ebp - 0x23c]
cmp ax, word [ecx + 2]
jne 0x402a0b
add dword [ebp - 0x238], 4
add dword [ebp - 0x23c], 4
cmp word [ebp - 0x242], 0
jne 0x4029a5
mov dword [ebp - 0x248], 0
jmp 0x402a16
sbb edx, edx
or edx, 1
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jne 0x402a40
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x402a6b
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402990
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409b65
mov esp, ebp
pop ebp
ret
Function at 0x402b00
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x402b4f
xor al, al
jmp 0x402be8
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x402bc4
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x402ba9
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x2c], eax
movzx edx, byte [ebp + 0xc]
test edx, edx
jne 0x402b95
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x402b9f
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x402b68
mov dword [ebp - 0x30], 1
jmp 0x402bcb
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
je 0x402be1
mov byte [ebp - 0x21], 1
jmp 0x402be5
mov byte [ebp - 0x21], 0
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409b65
mov esp, ebp
pop ebp
ret
Function at 0x402d00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x258], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x402e09
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x402e09
lea ecx, [ebp - 0x280]
push ecx
lea ecx, [ebp - 0x259]
call fcn.00402e80
mov ecx, eax
call fcn.00404050
push eax
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402e04
mov eax, dword [ebp - 0x250]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
jne 0x402dc1
jmp 0x402d54
push 0x28
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
test eax, eax
je 0x402df7
cmp dword [ebp - 0x20], 0x2cb41780
jbe 0x402df7
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
jmp 0x402e16
mov ecx, dword [ebp - 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402d54
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409b65
mov esp, ebp
pop ebp
ret

Function at 0x402ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40f580]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 8]
push edx
push 0x40
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409b65
mov esp, ebp
pop ebp
ret
Function at 0x404500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x40452c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x404612
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x4045c3
jg 0x404555
cmp dword [ebp + 0xc], 0
jbe 0x4045c3
cmp dword [ebp - 8], 0
jl 0x4045c3
jg 0x404563
cmp dword [ebp - 0xc], 0
jbe 0x4045c3
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x404581
jl 0x404575
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x404581
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.00406df0
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x404606
jg 0x4045d1
cmp dword [ebp + 0xc], 0
jbe 0x404606
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x404606
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x405ec7
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x405ece
mov al, 1
jmp 0x405fbb
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x44], edx
call fcn.00406d10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.00406d10
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00406d70
add esp, 8
movzx eax, al
test eax, eax
je 0x405f14
xor al, al
jmp 0x405fbb
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x50]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x405f57
cmp dword [ebp - 0x34], 1
je 0x405f5e
cmp dword [ebp - 0x34], 3
je 0x405fae
jmp 0x405fb9
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x405f8e
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x405f8e
xor al, al
jmp 0x405fbb
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x405fa2
mov dword [ebp - 0x3c], 1
jmp 0x405fa9
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x405fbb
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x405fbb
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409b65
mov esp, ebp
pop ebp
ret
Function at 0x4091e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ae6d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.00401f00
mov eax, dword [ebp + 8]
push eax
call fcn.00406d00
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00409770
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x4097e0
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.004095e0
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
je 0x409276
lea ecx, [ebp - 0x14]
call fcn.00408a30
jmp 0x409288
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004095f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409b65
mov esp, ebp
pop ebp
ret 4