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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4d2034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406000
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496281
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4963dd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040615e
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d5ea8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040330f
mov ecx, dword [esi*4 + 0x4d5ea8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4963d6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4963d6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4963d6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040330f
add esp, 0x14
test edx, edx
jl 0x4963d6
jg 0x49634c
test eax, eax
jb 0x4963d6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4963d6
jl 0x496366
cmp dword [ebp - 0x1008], eax
ja 0x4963d6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496384
test ebx, ebx
je 0x4963bd
cmp ecx, edi
jae 0x4963bd
mov al, byte [ecx]
cmp al, 0xd
jne 0x49639e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4963aa
cmp byte [ecx + 1], 0xa
jne 0x4963aa
inc ecx
jmp 0x4963aa
movzx eax, al
movsx eax, byte [eax + 0x4d2370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496384
cmp edx, ebx
jne 0x496384
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4963db
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030ee
leave
ret
Function at 0x496b1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d5ea8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496b5c
cmp byte [ebx], 0xa
jne 0x496b5c
or byte [eax + edi + 0x28], 4
jmp 0x496b61
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x496c5f
mov al, byte [edx]
cmp al, 0x1a
je 0x496c41
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x496b90
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x496bb5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x496bbf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x496b72
jmp 0x496c5f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496c3c
cmp dword [ebp - 0xc], 0
je 0x496c3c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d5ea8]
test byte [eax + edi + 0x28], 0x48
je 0x496c16
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x496c01
mov byte [esi], dl
jmp 0x496c12
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d5ea8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x496c5f
cmp byte [ebp - 1], 0xa
jne 0x496c25
cmp esi, ebx
jne 0x496c25
mov byte [esi], 0xa
jmp 0x496c5e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x496c5f
mov byte [esi], 0xd
jmp 0x496c5e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d5ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496c5b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496c5f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x496cbb
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 + 0x4d5ea8]
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 0x496cfe
cmp word [esi], dx
jne 0x496cfe
or byte [edi + eax + 0x28], 4
jmp 0x496d03
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 0x496e56
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 0x496e36
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x496d45
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x496d7b
cmp eax, edx
jae 0x496d87
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 0x496d1d
jmp 0x496e56
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 0x496e32
cmp dword [ebp - 0x14], 0
je 0x496e32
mov eax, dword [ebx*4 + 0x4d5ea8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x496e0a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x496dd3
mov word [esi], cx
jmp 0x496e06
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d5ea8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d5ea8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d5ea8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x496e56
pop ebx
cmp word [ebp - 4], bx
jne 0x496e1b
cmp esi, dword [ebp + 0xc]
jne 0x496e1b
mov word [esi], bx
jmp 0x496e53
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x496e56
push 0xd
jmp 0x496e4f
mov ecx, dword [ebx*4 + 0x4d5ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496e4d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496e56
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 0x49cd01
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49cd4c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049d1c3
test al, al
jne 0x49cd46
sub edx, 2
cmp edx, edi
jne 0x49cd2c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49cd6e
lea eax, [edi + 2]
cmp edx, eax
je 0x49cd6e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049c8fa
add esp, 0x10
jmp 0x49ce68
push esi
lea ecx, [ebp - 0x255]
call fcn.0049d1c3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49cdb1
push dword [ebp - 0x25c]
jmp 0x49cd5e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49cdee
cmp word [ebp - 0x226], 0
je 0x49ce0f
cmp word [ebp - 0x226], ax
jne 0x49cdee
cmp word [ebp - 0x224], 0
je 0x49ce0f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049c8fa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ce5b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49cdc8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ce43
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ce68
push 0x49c2e2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040569b
add esp, 0x10
jmp 0x49ce38
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030ee
leave
ret
Function at 0x4014f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
push edi
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x118], 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
push eax
push 0x102d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
push 0x40c27c
lea eax, [ebp - 0x104]
push eax
call fcn.00406170
add esp, 0xc
mov dword [ebp - 0x14c], 1
mov dword [ebp - 0x13c], 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x154]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
push eax
push 0x102d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x170], 2
mov dword [ebp - 0x160], 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
push eax
push 0x102d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
push 0x40c280
lea eax, [ebp - 0x104]
push eax
call fcn.00406170
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push eax
push 1
call dword [0x40b450]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0xffffffff
jne 0x401648
push 0
push 0x40b268
push str.The_currently_selected_process_no_longer_exists.__Select_the_Update_menu_to_refresh_the_list.
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401681
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
push 0x40205e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402673
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x114], 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
push eax
push 0x102d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
push 0x40c454
lea eax, [ebp - 0x104]
push eax
call fcn.00406170
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
push 0x402e22
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402770
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x2000
jne case.0x402915.6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
jmp 0x4028fc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
cmp dword [eax], ecx
jne 0x402829
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x4027cd
mov dword [ebp - 0xc], 1
jmp 0x4027d4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], eax
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x14], eax
push 0x4050ad
lea eax, [ebp - 0x10]
push eax
push 0x1030
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x14], 0
je 0x402829
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
jmp 0x4029ad
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
cmp dword [eax], ecx
jne 0x402855
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004025df
add esp, 0xc
jmp case.0x402915.6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
cmp dword [eax], ecx
jne 0x402877
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402673
add esp, 4
xor eax, eax
jmp 0x4029ad
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
cmp dword [eax], ecx
jne 0x40289b
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402708
add esp, 4
xor eax, eax
jmp 0x4029ad
mov eax, dword [ebp + 0xc]
add eax, 0x48
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00401463
add esp, 8
test eax, eax
je 0x4028e9
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x2c], 3
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x48]
push eax
push 0x102b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
jmp 0x4029ad
xor eax, eax
jmp 0x4029ad
add dword [ebp - 0x3c], 0x6c
cmp dword [ebp - 0x3c], 0x6a
ja case.0x402915.6
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax + 0x402938]
jmp dword [ecx*4 + 0x40291c]
mov eax, 1
jmp 0x4029ad
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e93
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
cmp dword [ebp + 0x18], 1
je 0x402eb3
cmp dword [ebp + 0x18], 4
jne 0x402fa9
mov eax, dword [ebp + 0xc]
sub eax, 0x10
mov dword [ebp - 0x118], eax
cmp dword [ebp + 0x18], 4
jne 0x402ed0
sub dword [ebp - 0x118], 4
lea eax, [ebp - 0x14]
push eax
push 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x118]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x40bd74]
test eax, eax
je 0x402fa9
test byte [ebp - 0xd], 0xa0
je 0x402fa9
xor eax, eax
mov ax, word [ebp - 6]
cmp eax, 0x4842
jne 0x402fa9
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
and eax, 0xffff
push eax
mov eax, 0x40c4b4
mov ecx, 0x40c4bc
xor edx, edx
cmp dword [ebp + 0x14], 0
setne dl
dec edx
sub ecx, eax
and edx, ecx
add edx, eax
push edx
push 0x40c4c0
push str.__s___s__Allocator_TID:_x_EIP:_08x_Addr:_x_Size:_d_r_n
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
and eax, 0xffff
push eax
mov eax, str.Leak
mov ecx, 0x40c508
xor edx, edx
cmp dword [ebp + 0x14], 0
setne dl
dec edx
sub ecx, eax
and edx, ecx
add edx, eax
push edx
push str._1_s___TID:__2_x__EIP:__3_x__Addr:__4_x__Size:__5_d__r_n
push 0x40b140
push 1
call fcn.00405db6
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406640
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a020
push 0x4087c0
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40cc48], eax
xor eax, eax
mov al, byte [0x40cc49]
mov dword [0x40cc54], eax
mov eax, dword [0x40cc48]
shr dword [0x40cc48], 0x10
and eax, 0xff
mov dword [0x40cc50], eax
shl eax, 8
add eax, dword [0x40cc54]
mov dword [0x40cc4c], eax
call fcn.004087a0
mov dword [ebp - 4], 0
call fcn.004085c0
call fcn.004085b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ed8c], eax
call fcn.00408150
mov dword [0x40cc1c], eax
test eax, eax
je 0x4066d9
cmp dword [0x40ed8c], 0
jne 0x4066e3
push 0xffffffffffffffff
call fcn.00407590
add esp, 4
call fcn.00407ed0
call fcn.00407df0
call fcn.00407560
mov esi, dword [0x40ed8c]
mov al, byte [esi]
cmp al, 0x22
je 0x40670a
cmp al, 0x20
jbe 0x406737
inc esi
cmp byte [esi], 0x20
ja 0x406702
jmp 0x406737
inc esi
cmp byte [esi], 0x22
je 0x406736
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x406731
xor eax, eax
mov al, bl
push eax
call fcn.00407d90
add esp, 4
test eax, eax
je 0x40672b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x406713
cmp byte [esi], 0x22
jne 0x406737
inc esi
cmp byte [esi], 0
je 0x406747
cmp byte [esi], 0x20
ja 0x406747
inc esi
cmp byte [esi], 0
jne 0x40673c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40676b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00407590
jmp 0x4067ac
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4075d0
Capabilities:
Terminate process

Disassembly:
mov dword [0x40cc80], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x40cc7c], bl
jne 0x40762c
cmp dword [0x40ed88], 0
je 0x40761a
mov esi, dword [0x40ed80]
sub esi, 4
cmp esi, dword [0x40ed88]
jb 0x40761a
mov eax, dword [esi]
test eax, eax
je 0x40760f
call eax
sub esi, 4
cmp esi, dword [0x40ed88]
jae 0x407607
push 0x40b01c
push 0x40b014
call fcn.00407650
add esp, 8
push 0x40b024
push 0x40b020
call fcn.00407650
add esp, 8
test ebx, ebx
jne 0x40764d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x407880
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x40cf00
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x4078a8
add ecx, 8
inc eax
cmp ecx, 0x40cf88
jb 0x407898
cmp dword [eax*8 + 0x40cf00], edx
lea ebx, [eax*8]
jne 0x407a63
cmp dword [0x40cc28], 1
je 0x407a28
cmp dword [0x40cc28], 0
jne 0x4078df
cmp dword [0x40cc2c], 1
je 0x407a28
cmp edx, 0xfc
je 0x407a63
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40791c
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x407960
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x40cfd4
push ebp
call fcn.00408c40
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40cfb4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x40cf04]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00408ba0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40ec80]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x407a3f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x40cf04]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret