joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67fd5c
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00404ed8
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x69795c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov eax, dword [eax + 0x1b0]
cmp dword [eax + 0xc], 0
je 0x697a38
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x697a0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x46fb3c]
call fcn.004791fc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov eax, dword [eax + 0x1b0]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov eax, dword [eax + 0x1b0]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x738]
mov eax, dword [eax + 0x1b0]
mov edx, dword [ebp - 8]
call fcn.00476b18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x697a16
mov eax, dword [ebp - 8]
call fcn.00405670
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x738]
mov eax, dword [eax + 0x1b0]
xor edx, edx
call fcn.00476b18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x738]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x738]
xor edx, edx
call fcn.00490954
xor eax, eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x41160f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebx
movzx esi, ax
shr esi, 1
push 0x11
and esi, 0x4000
call ebx
movzx edi, ax
and edi, 0x8000
or edi, esi
push 0x12
shr edi, 2
call ebx
and eax, 0x8000
or eax, edi
pop edi
pop esi
shr eax, 0xa
pop ebx
ret

Function at 0x441d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x441d4f
pop dword [ebp - 0x4c]
mov eax, 0x1519b46b
add eax, 0xeb2a68e4
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x471bcd60
add dword [ebp - 0x5c], 0x73677eb
mov dword [ebp - 0x58], 0x1271ee65
add dword [ebp - 0x58], 0x1fc15de0
mov dword [ebp - 0x54], 0xb3844e44
add dword [ebp - 0x54], 0x98c7f5ea
mov dword [ebp - 0x50], 0x23751b5d
add dword [ebp - 0x50], 0xdc8ae4a3
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x3f89b458
add eax, 0xc0b65cbc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xab83d68d
add dword [ebp - 0x5c], 0xc8ee92c9
mov dword [ebp - 0x58], 0x43351ae3
add dword [ebp - 0x58], 0xfe374692
mov dword [ebp - 0x54], 0x13fe1c9
sub dword [ebp - 0x54], 0x9dd0755d
mov dword [ebp - 0x50], 0x547be62d
add dword [ebp - 0x50], 0xab8419d3
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xebcb4c06
add eax, 0x1474c512
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x60f94
push 0
call eax
mov ecx, 0xb33423da
add ecx, 0x4ccc1760
xor ebx, ebx
add ebx, eax
mov edi, 0xa9ebd5a
add edi, 0xf5ac62a6
add edi, dword [ebp - 0x4c]
mov edx, 0x39a31c74
sub edx, 0x7417978
sub dword [ebp - 0x14], edi
mov esi, dword [edi]
xor dword [ebp - 0x44], edi
add esi, edx
xor dword [ebp - 0x44], ecx
mov dword [ebx], esi
xor dword [ebp - 0x30], 0x9d782eff
add ebx, 0x97e603f9
sub ebx, 0x97e603f5
add edi, 0x71906b79
sub edi, 0x71906b75
loop 0x441e73
add eax, 0x64a3ece6
sub eax, 0x64a30d2b
mov ebx, eax
add eax, 0xc836608d
sub eax, 0xc8366088
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x458367
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp - 0x14]
push ebx
push esi
push edi
xor esi, esi
push 5
xor ebx, ebx
mov ecx, 0x4a06c8
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 0x18
pop eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
jmp 0x458475
push dword [esi*4 + 0x4a0724]
add eax, 0x18
mov dword [ebp - 0x14], eax
call main
pop ecx
push 2
push eax
push dword [0x4a4148]
call dword [sym.imp.kernel32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x45842b
push ebx
push dword [0x4a4148]
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45842b
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x45842b
push ebx
push dword [0x4a4148]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x45842b
push eax
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x45842b
push ebx
push eax
push dword [ebp - 0xc]
call main
mov ebx, dword [ebp - 4]
add esp, 0xc
push ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
jmp 0x458439
push 0x50000
call main
mov ebx, dword [ebp - 4]
pop ecx
cmp esi, 5
je 0x458451
cmp esi, 6
je 0x458451
cmp esi, 0xd
je 0x458451
cmp esi, 0xe
je 0x458451
xor ecx, ecx
jmp 0x458454
xor ecx, ecx
inc ecx
xor eax, eax
cmp esi, 3
sete al
push eax
push ecx
push esi
push ebx
lea eax, [ebp - 0x1c]
call main
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add esp, 0x10
lea eax, [edx - 1]
inc esi
mov dword [ebp - 0x1c], eax
cmp esi, dword [ecx]
jl 0x458398
add ecx, 4
add eax, 0xa
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ecx
cmp ecx, 0x4a06e8
jl 0x458478
mov eax, dword [0x4a3edc]
pop edi
pop esi
mov dword [eax], edx
pop ebx
leave
ret

Function at 0x48840d
Capabilities:
Link many functions at runtime
Log keystrokes via polling

Disassembly:
cmp byte [0x4a3818], 0
jne 0x488509
push esi
push 4
push 0x2a
xor eax, eax
push eax
push dword [0x4a42a4]
push eax
push eax
push 0x47f1bf
push 0xa
call main
mov esi, dword [sym.imp.USER32.dll_VkKeyScanA]
add esp, 0x20
push 0x3a
call esi
movsx edx, ax
mov eax, dword [0x4a4144]
movzx ecx, dl
push edx
mov dword [eax + 0xce], ecx
call main
pop ecx
mov ecx, dword [0x4a4144]
push 0x3b
mov dword [ecx + 0xd2], eax
call esi
movsx edx, ax
mov eax, dword [0x4a4144]
movzx ecx, dl
push edx
mov dword [eax + 0xd6], ecx
call main
pop ecx
mov ecx, dword [0x4a4144]
mov dword [ecx + 0xda], eax
cmp dword [0x4a4140], 0
je 0x488501
call fcn.0045f11f
mov dword [0x4a381c], eax
test eax, eax
je 0x488501
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x4034c0
push eax
call esi
push 0x4034d0
push dword [0x4a381c]
mov dword [0x4a3820], eax
call esi
push 0x4034e4
push dword [0x4a381c]
mov dword [0x4a3824], eax
call esi
push 0x4034f8
push dword [0x4a381c]
mov dword [0x4a3828], eax
call esi
push 0x403514
push dword [0x4a381c]
mov dword [0x4a382c], eax
call esi
mov dword [0x4a3830], eax
mov byte [0x4a3818], 1
pop esi
ret
Function at 0x490f3f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403560]
jne fcn.00491a5e
ret

Function at 0x491a54
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x493060
call fcn.00491e69
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x4a431c], ebx
jne 0x4917ef
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x4a4310
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x491829
cmp eax, esi
jne 0x49181c
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x49182c
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x491803
xor esi, esi
inc esi
mov eax, dword [0x4a430c]
cmp eax, esi
jne 0x49183f
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x49187a
mov eax, dword [0x4a430c]
test eax, eax
jne 0x491874
mov dword [0x4a430c], esi
push 0x401474
push 0x401468
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x49187a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x491994
mov dword [0x4a3884], esi
mov eax, dword [0x4a430c]
cmp eax, esi
jne 0x49189e
push 0x401464
push 0x40145c
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x4a430c], 2
cmp dword [ebp - 0x24], ebx
jne 0x4918ab
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x4a4320], ebx
je 0x4918cc
push 0x4a4320
call main
pop ecx
test eax, eax
je 0x4918cc
push ebx
push 2
push ebx
call dword [0x4a4320]
mov eax, dword [sym.imp.msvcr100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x491925
cmp al, bl
je 0x4918e5
cmp dword [ebp - 0x1c], ebx
jne 0x491925
mov al, byte [esi]
cmp al, bl
je 0x4918f5
cmp al, 0x20
ja 0x4918f5
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4918e5
test byte [ebp - 0x40], 1
je 0x491901
movzx eax, word [ebp - 0x3c]
jmp 0x491904
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4a3880], eax
cmp dword [0x4a3874], ebx
jne 0x49197a
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp al, 0x22
jne 0x491934
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr100.dll__ismbblead]
pop ecx
test eax, eax
je 0x491947
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4918d3
cmp dword [0x4a3884], ebx
jne 0x491988
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4a3880]
call fcn.00491eae
ret
call main
jmp 0x4917c1
Function at 0x491a5e
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4a3990], eax
mov dword [0x4a398c], ecx
mov dword [0x4a3988], edx
mov dword [0x4a3984], ebx
mov dword [0x4a3980], esi
mov dword [0x4a397c], edi
mov word [0x4a39a8], ss
mov word [0x4a399c], cs
mov word [0x4a3978], ds
mov word [0x4a3974], es
mov word [0x4a3970], fs
mov word [0x4a396c], gs
pushfd
pop dword [0x4a39a0]
mov eax, dword [ebp]
mov dword [0x4a3994], eax
mov eax, dword [ebp + 4]
mov dword [0x4a3998], eax
lea eax, [ebp + 8]
mov dword [0x4a39a4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4a38e0], 0x10001
mov eax, dword [0x4a3998]
mov dword [0x4a3894], eax
mov dword [0x4a3888], 0xc0000409
mov dword [0x4a388c], 1
mov eax, dword [0x403560]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4a25e8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x4a38d8], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x403788
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x4a38d8], 0
jne 0x491b4a
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x1004dc90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004dcbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004dcbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x475f00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x69000]
push edi
jmp 0x475f1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x475f21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x475f10
mov eax, 1
add ebx, ebx
jne 0x475f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x475f44
jne 0x475f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x475f63
dec eax
add ebx, ebx
jne 0x475f50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x475f28
add ebx, ebx
jne 0x475f5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x475fb5
xor ecx, ecx
sub eax, 3
jb 0x475f7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x475fea
sar eax, 1
mov ebp, eax
jmp 0x475f86
add ebx, ebx
jne 0x475f86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x475f54
inc ecx
add ebx, ebx
jne 0x475f94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x475f54
add ebx, ebx
jne 0x475fa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x475f96
jne 0x475fb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x475f96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x475fd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x475fc6
jmp 0x475f16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x475fd4
add edi, ecx
jmp 0x475f16
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x475ff2
cmp byte [edi], 9
jne 0x475ff2
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 0x475ff7
lea edi, [esi + 0x73000]
mov eax, dword [edi]
or eax, eax
je 0x47606f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcd800]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcd8e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x476024
mov ecx, edi
jns 0x476053
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 + 0xcd8e8]
or eax, eax
je 0x476069
mov dword [ebx], eax
add ebx, 4
jmp 0x476041
call dword [esi + 0xcd8e4]
mov ebp, dword [esi + 0xcd8ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x4760a3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442008]
jne 0x401010
repz ret
jmp fcn.0040189a

Function at 0x40923e
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.004053ae
and dword [ebp - 4], 0
cmp dword [0x444774], 0
mov ebx, eax
jne 0x4092ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a0
push eax
call fcn.0040533c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x444774], eax
call esi
push eax
call fcn.0040533c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x444778], eax
call esi
push eax
call fcn.0040533c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44477c], eax
call esi
push eax
call fcn.0040533c
pop ecx
mov dword [0x444784], eax
test eax, eax
je 0x4092ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040533c
pop ecx
mov dword [0x444780], eax
mov eax, dword [0x444780]
cmp eax, ebx
je 0x409347
cmp dword [0x444784], ebx
je 0x409347
push eax
call fcn.004053b7
push dword [0x444784]
mov esi, eax
call fcn.004053b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409347
test edi, edi
je 0x409347
call esi
test eax, eax
je 0x40933e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40933e
test byte [ebp - 0xc], 1
jne 0x409347
or dword [ebp + 0x10], 0x200000
jmp 0x409380
mov eax, dword [0x444778]
cmp eax, ebx
je 0x409380
push eax
call fcn.004053b7
pop ecx
test eax, eax
je 0x409380
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409380
mov eax, dword [0x44477c]
cmp eax, ebx
je 0x409380
push eax
call fcn.004053b7
pop ecx
test eax, eax
je 0x409380
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444774]
call fcn.004053b7
pop ecx
test eax, eax
je 0x4093a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b760
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x272c8b4], 0x930
jne 0x40b77d
push str.sacixinojepaluletejowesoyayeyige
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x272c8b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x272c5d0], eax
jne 0x40b7a3
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret
Function at 0x4021ac
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x4021da
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x4021e2
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x402211
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x402237
mov eax, 0x4031c8
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x402260
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x402260
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x402260
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.00401e64
leave
ret
Function at 0x402fc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427c47
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4306e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x42c41c
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00407050
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00405a70
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x403053
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00408020
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00404b10
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x432c9c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
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 0x403f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427b58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4306e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x404091
cmp byte [edi + 0x49], bl
je 0x404091
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x404085
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 0x403fe5
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 0x403ffd
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 0x404026
dec eax
je 0x40402a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x404080
jmp 0x40408c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40403a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x404063
cmp ebx, 0x10
jae 0x404049
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004126d9
add esp, 0x10
cmp esi, eax
jne 0x40407d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x404089
test esi, esi
jne 0x403ff1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00403b30
jmp 0x403feb
lea ecx, [ebp - 0x2c]
call fcn.00407770
xor al, al
jmp 0x404093
lea ecx, [ebp - 0x2c]
call fcn.00407770
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411949
mov esp, ebp
pop ebp
ret
Function at 0x404b10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42737b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4306e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00410e5b
push 4
mov dword [ebp - 4], 0
call fcn.00411eea
mov edi, eax
add esp, 4
test edi, edi
je 0x404b90
call fcn.004114e4
mov dword [edi], eax
call fcn.004112a3
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00411106
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404b86
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041112e
jmp 0x404b92
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