joyce8/EMBER2024-capa huggingface dataset:
Function at 0x71b7b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x308
cmp dword [esp + 0x310], 0
jne 0x71b7cb
mov dword [esp + 0x310], 0x7ee39c
push ebp
mov ebp, dword [esp + 0x318]
test ebp, ebp
jne 0x71b7dc
mov ebp, 0x7ee39c
mov eax, dword [esp + 0x314]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x71b7e6
sub eax, edx
cmp eax, 0x100
ja 0x71b812
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x71b800
sub eax, edx
cmp eax, 0x100
jbe 0x71b81f
mov eax, 6
pop ebp
add esp, 0x308
ret
push edi
mov edi, dword [esp + 0x314]
call fcn.0071a4a0
test eax, eax
jne 0x71b982
push ebx
push esi
mov esi, dword [esp + 0x328]
push edi
mov dword [edi + 0x5c0], esi
call fcn.0071a5f0
mov eax, dword [edi + 0x4b4]
mov dword [esp + 0x21], eax
lea ecx, [esp + 0x25]
add esp, 4
lea eax, [edi + 0xc]
lea ebx, [esp + 0x10]
lea edx, [esp + 0x14]
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 1
mov byte [esp + 0x1c], 3
mov dword [esp + 0x10], 9
mov dword [esp + 0x14], ecx
call fcn.0071a5b0
lea eax, [edi + 0x2c]
call fcn.0071a5b0
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 8
lea edx, [edi + 0x6c]
mov ebx, dword [edx]
mov ecx, eax
mov dword [ecx], ebx
mov edx, dword [edx + 4]
add eax, 8
mov dword [ecx + 4], edx
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x10]
mov eax, ebp
lea edx, [esp + 0x14]
call fcn.0071a5b0
mov eax, dword [esp + 0x320]
call fcn.0071a5b0
push esi
call sub.WS2_32.dll_htonl
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [ecx], eax
add esi, 4
add ecx, 4
test byte [edi + 0x5c0], 8
je 0x71b8f4
mov eax, dword [edi + 0x49c]
mov dword [ecx], eax
add esi, 4
add ecx, 4
test byte [edi + 0x5c0], 0x80
je 0x71b909
mov edx, dword [esp + 0x32c]
mov dword [ecx], edx
add esi, 4
push esi
call sub.WS2_32.dll_htons
mov ecx, dword [edi + 0x4ac]
xor ebx, ebx
push ebx
mov word [esp + 0x1c], ax
push esi
lea eax, [esp + 0x20]
push eax
push ecx
call sub.WS2_32.dll_send
test eax, eax
jg 0x71b946
push edi
call fcn.0071a7a0
add esp, 4
pop esi
pop ebx
pop edi
mov eax, 3
pop ebp
add esp, 0x308
ret
cmp dword [edi + 0x74], ebx
mov dword [edi], 3
mov dword [edi + 0x5c4], ebx
jne 0x71b97e
push 0x1000
call fcn.0071ed42
add esp, 4
cmp eax, ebx
mov dword [edi + 0x74], eax
jne 0x71b97b
pop esi
pop ebx
pop edi
mov eax, 5
pop ebp
add esp, 0x308
ret
mov dword [edi + 0x78], ebx
pop esi
xor eax, eax
pop ebx
pop edi
pop ebp
add esp, 0x308
ret
Function at 0x71bb90
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x78], 3
push edi
jl 0x71bab0
mov eax, dword [esi + 0x74]
mov ax, word [eax]
push eax
call sub.WS2_32.dll_ntohs
cmp ax, 0x1000
ja 0x71baa6
movzx edi, ax
cmp dword [esi + 0x78], edi
jl 0x71bab6
mov ecx, dword [esi + 0x74]
movsx eax, byte [ecx + 2]
add eax, 0xffffffff
cmp eax, 5
ja case.default.0x71b9d6
jmp dword [eax*4 + 0x71babc]
lea edx, [edi - 3]
lea eax, [ecx + 3]
push edx
mov ecx, esi
call fcn.0071b0f0
jmp 0x71ba71
lea eax, [edi - 3]
push eax
add ecx, 3
push ecx
call fcn.0071b3d0
add esp, 8
jmp 0x71ba74
push 0
push edi
push ecx
mov ecx, dword [esi + 0x4ac]
push ecx
call sub.WS2_32.dll_send
test eax, eax
jg case.default.0x71b9d6
pop edi
pop esi
mov eax, 3
pop ebx
ret
lea edx, [edi - 3]
cmp edx, 6
jge 0x71ba2e
mov ebx, 4
jmp case.default.0x71b9d6
mov eax, dword [ecx + 3]
mov cx, word [ecx + 7]
push ecx
push eax
push esi
call fcn.0071a170
add esp, 0xc
cmp eax, 0xffffffff
jne 0x71ba49
xor ebx, ebx
jmp case.default.0x71b9d6
push eax
push esi
call fcn.0071a1e0
add esp, 8
xor ebx, ebx
jmp case.default.0x71b9d6
lea eax, [edi - 3]
add ecx, 3
push esi
call fcn.0071b2f0
jmp 0x71ba71
lea eax, [edi - 3]
add ecx, 3
push esi
call fcn.0071b1c0
add esp, 4
mov ebx, eax
sub dword [esi + 0x78], edi
mov ecx, dword [esi + 0x78]
je 0x71ba92
mov eax, dword [esi + 0x74]
test eax, eax
je 0x71ba92
push ecx
add edi, eax
push edi
push eax
call fcn.0071f7e0
add esp, 0xc
test ebx, ebx
jne 0x71baab
cmp dword [esi + 0x78], 3
jge 0x71b9a1
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov ebx, 4
call fcn.0071b700
pop edi
pop esi
mov eax, ebx
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
push esi
mov esi, eax
mov eax, dword [esi + 0x4ac]
push eax
call fcn.007167d0
add esp, 4
test eax, eax
jne 0x71baf8
pop esi
ret
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x4ac]
push edi
mov edi, dword [esi + 0x78]
push 0
mov ecx, 0x1000
sub ecx, edi
push ecx
add edx, edi
push edx
push eax
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x71bb74
test eax, eax
je 0x71bb74
add dword [esi + 0x78], eax
cmp dword [esi], 2
mov eax, dword [esi + 0x78]
je 0x71bb35
cmp dword [esi + 0x5c4], 0
jle 0x71bb4d
mov ecx, dword [esi + 0x74]
sub eax, edi
push eax
add ecx, edi
push ecx
lea edx, [esi + 0x4b8]
push edx
call fcn.00718d10
add esp, 0xc
cmp dword [esi], 3
jne 0x71bb5b
call fcn.0071ad80
test eax, eax
jne 0x71bb7e
cmp dword [esi], 2
jne 0x71bb6f
cmp dword [esi + 0x78], 0
jle 0x71bb6f
pop edi
mov eax, esi
pop esi
jmp 0x71b990
pop edi
xor eax, eax
pop esi
ret
call fcn.0071b700
mov eax, 3
pop edi
pop esi
ret
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0071a280
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x71bbba
cmp eax, 1
jle 0x71bbb6
cmp eax, 3
jg 0x71bbb6
mov eax, esi
pop esi
jmp 0x71bae0
xor eax, eax
pop esi
ret
call fcn.0071b4a0
pop esi
ret
Function at 0x71f6d1
Capabilities:
Terminate process

Disassembly:
push 8
push 0x80ab70
call fcn.00721a90
push 8
call fcn.00721a5e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x9aa970], esi
jne 0x71f705
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x9aa96c], esi
mov al, byte [ebp + 0x10]
mov byte [0x9aa968], al
cmp dword [ebp + 0xc], edi
jne 0x71f74f
cmp dword [0x9ac2cc], edi
je 0x71f73f
mov eax, dword [0x9ac2c8]
sub eax, 4
mov dword [0x9ac2c8], eax
cmp eax, dword [0x9ac2cc]
jb 0x71f73f
mov eax, dword [eax]
cmp eax, edi
je 0x71f720
call eax
jmp 0x71f720
push 0x85a21c
mov eax, 0x85a214
call fcn.0071f64f
pop ecx
push 0x85a228
mov eax, 0x85a220
call fcn.0071f64f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x71f780
cmp dword [ebp + 0x10], edi
jne 0x71f78e
mov dword [0x9aa970], esi
push dword [ebp + 8]
call fcn.0071f60d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x71f78d
push 8
call fcn.007219a9
pop ecx
ret
call fcn.00721acb
ret
Function at 0x721736
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x80ac98
call fcn.00721a90
mov edi, 0x94
mov eax, edi
call fcn.0071f5d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x9aa930], ecx
mov eax, dword [esi + 4]
mov dword [0x9aa93c], eax
mov edx, dword [esi + 8]
mov dword [0x9aa940], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x9aa934], esi
cmp ecx, 2
je 0x721796
or esi, 0x8000
mov dword [0x9aa934], esi
shl eax, 8
add eax, edx
mov dword [0x9aa938], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x7217d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x7217d1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x7217e9
cmp eax, 0x20b
je 0x7217d6
mov dword [ebp - 0x1c], esi
jmp 0x7217fd
cmp dword [ecx + 0x84], 0xe
jbe 0x7217d1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x7217f7
cmp dword [ecx + 0x74], 0xe
jbe 0x7217d1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00b34000
pop ecx
test eax, eax
jne 0x721811
push 0x1c
call fcn.00721712
pop ecx
call fcn.00722f7c
test eax, eax
jne 0x721822
push 0x10
call fcn.00721712
pop ecx
call fcn.00725714
mov dword [ebp - 4], esi
call fcn.0072c6e7
test eax, eax
jge 0x72183b
push 0x1b
call fcn.007216ed
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x9ab2ac], eax
call fcn.0072f73b
mov dword [0x9aa984], eax
call fcn.0072f699
test eax, eax
jge 0x721861
push 8
call fcn.007216ed
pop ecx
call fcn.0072f466
test eax, eax
jge 0x721872
push 9
call fcn.007216ed
pop ecx
push 1
call fcn.0071f667
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x721888
push eax
call fcn.007216ed
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0072f409
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x7218a9
movzx eax, word [ebp - 0x40]
jmp 0x7218ac
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00411380
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x7218ca
push edi
call fcn.0071f794
call fcn.0071f7b6
jmp 0x7218fc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00721acb
ret
Function at 0x724091
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0071f5d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x72412c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x9aa930]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x72412c
cmp eax, 1
je 0x72414d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x72412c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x7240f9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x724128
xor eax, eax
inc eax
jmp 0x72416c
cmp edi, eax
jae 0x724130
xor eax, eax
jmp 0x72416c
cmp eax, esi
jae 0x724137
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x9aa930]
jmp 0x724150
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x725812
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x725840
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x725847
cmp ebx, dword [eax + 4]
jae 0x725847
xor eax, eax
jmp 0x725a37
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x725858
xor eax, eax
inc eax
jmp 0x725a36
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x72586e
cmp ecx, edx
jae 0x7259b3
cmp dword [eax + 4], 0
je 0x725877
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x72585f
cmp dword [ebp + 8], 0
je 0x725899
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x7259b3
cmp eax, esi
jae 0x7259b3
mov eax, dword [0x9aaaf8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x7258be
cmp dword [esi*4 + 0x9aab00], edi
je 0x7259b7
inc esi
cmp esi, eax
jl 0x7258ac
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x725a33
cmp dword [ebp - 8], 0x1000000
jne 0x725a33
test byte [ebp - 0xc], 0xcc
je 0x72593c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x725a33
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x725a33
cmp word [eax + 0x18], 0x10b
jne 0x725a33
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x725a33
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x72593c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x72593c
test byte [ecx + 0x27], 0x80
jne 0x7259b3
push 1
push 0x9aab40
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x725850
mov ecx, dword [0x9aaaf8]
test ecx, ecx
mov edx, ecx
jle 0x725970
lea eax, [ecx*4 + 0x9aaafc]
cmp dword [eax], edi
je 0x725970
dec edx
sub eax, 4
test edx, edx
jg 0x725964
test edx, edx
jne 0x7259a1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x72597d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x725995
lea eax, [edx*4 + 0x9aab00]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x725983
cmp ecx, 0x10
jge 0x7259a1
inc ecx
mov dword [0x9aaaf8], ecx
push 0
push 0x9aab40
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x725850
xor eax, eax
jmp 0x725a36
test esi, esi
jle 0x725850
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x9aab40
call ebx
test eax, eax
jne 0x725850
cmp dword [esi*4 + 0x9aab00], edi
je 0x725a0d
mov eax, dword [0x9aaaf8]
lea esi, [eax - 1]
test esi, esi
jl 0x7259fb
cmp dword [esi*4 + 0x9aab00], edi
je 0x7259f7
dec esi
jns 0x7259eb
test esi, esi
jge 0x725a0b
cmp eax, 0x10
jge 0x725a06
inc eax
mov dword [0x9aaaf8], eax
lea esi, [eax - 1]
jmp 0x725a0d
je 0x725a25
xor ecx, ecx
test esi, esi
jl 0x725a25
lea eax, [ecx*4 + 0x9aab00]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x725a13
push 0
push 0x9aab40
call ebx
jmp 0x725850
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x72cefd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x869b64]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x72cf39
xor eax, eax
jmp 0x72d0a3
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x9ab180]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x72cf77
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00732af4
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x72d011
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x72d074
jmp 0x72cf9b
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x72cfd6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x72cfc7
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x72cfa7
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x72d035
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x72d03e
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x72cf99
jmp 0x72d03e
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x72d035
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x72d03e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x72d09e
cmp dword [ebp - 0x68], eax
je 0x72d071
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x72d066
call fcn.0072400c
mov dword [eax], 9
call fcn.00724015
mov dword [eax], esi
jmp 0x72d099
push dword [ebp - 0x68]
call fcn.0072401e
pop ecx
jmp 0x72d099
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x72d086
cmp byte [edi], 0x1a
jne 0x72d086
xor eax, eax
jmp 0x72d0a1
call fcn.0072400c
mov dword [eax], 0x1c
call fcn.00724015
and dword [eax], 0
or eax, 0xffffffff
jmp 0x72d0a1
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0072d689
add ebp, 0x3a4
leave
ret
Function at 0x72d245
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x72d41b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x9ab180]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x72d41b
test cl, 0x48
je 0x72d2b0
cmp byte [eax + 5], 0xa
je 0x72d2b0
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x72d302
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x72d2ea
call fcn.0072400c
mov dword [eax], 9
call fcn.00724015
mov dword [eax], esi
jmp 0x72d2fa
cmp eax, 0x6d
je 0x72d41b
push eax
call fcn.0072401e
pop ecx
or eax, 0xffffffff
jmp 0x72d41d
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x72d416
test eax, eax
je 0x72d329
cmp byte [ebx], 0xa
jne 0x72d329
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x72d332
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x72d410
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x72d400
cmp al, 0xd
je 0x72d364
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x72d3f2
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x72d37e
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x72d379
add dword [ebp + 0x10], 2
jmp 0x72d3d2
mov dword [ebp + 0x10], eax
jmp 0x72d3ee
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x72d3a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x72d3ee
cmp dword [ebp - 0xc], 0
je 0x72d3ee
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x72d3c7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x72d3d2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x72d3f1
cmp ebx, dword [ebp + 0xc]
jne 0x72d3d7
cmp byte [ebp - 1], 0xa
jne 0x72d3d7
mov byte [ebx], 0xa
jmp 0x72d3f1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00732af4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x72d3f2
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x72d348
jmp 0x72d410
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x72d410
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x72d41d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x72f0f4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x869b64]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x869f70]
je 0x72f12b
inc eax
cmp eax, 0x13
jb 0x72f11c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x869f70]
jne 0x72f24e
mov eax, dword [0x9aa98c]
cmp eax, 1
je 0x72f229
cmp eax, edx
jne 0x72f15b
cmp dword [0x869a34], 1
je 0x72f229
cmp ecx, 0xfc
je 0x72f24e
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x72f191
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00726e40
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00726f40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x72f1c5
mov eax, edi
push eax
call fcn.00726f40
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x80eebc
push edi
call fcn.0071ff70
add esp, 0x10
push edi
call fcn.00726f40
push dword [esi + 0x869f74]
mov ebx, eax
call fcn.00726f40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0071f5d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00726e40
push edi
push ebx
call fcn.00726e50
push 0x80f880
push ebx
call fcn.00726e50
push dword [esi + 0x869f74]
push ebx
call fcn.00726e50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00733e0f
add esp, 0x2c
jmp 0x72f24e
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x869f74]
push dword [esi]
call fcn.00726f40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0072d689
add ebp, 0x90
leave
ret
Function at 0x733e0f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x9aad3c], ebx
push esi
push edi
jne 0x733e8f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x733eca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x81026c
push edi
call esi
test eax, eax
mov dword [0x9aad3c], eax
je 0x733eca
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x9aad40], eax
call esi
cmp dword [0x9aa930], 2
mov dword [0x9aad44], eax
jne 0x733e8f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x9aad4c], eax
je 0x733e8f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x9aad48], eax
mov eax, dword [0x9aad48]
test eax, eax
je 0x733ed4
call eax
test eax, eax
je 0x733ebb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x9aad4c]
test eax, eax
je 0x733ebb
test byte [ebp - 8], 1
jne 0x733ed4
cmp dword [0x9aa93c], 4
jb 0x733ece
or byte [ebp + 0x12], 0x20
jmp 0x733ef3
xor eax, eax
jmp 0x733f03
or byte [ebp + 0x12], 4
jmp 0x733ef3
mov eax, dword [0x9aad40]
test eax, eax
je 0x733ef3
call eax
mov ebx, eax
test ebx, ebx
je 0x733ef3
mov eax, dword [0x9aad44]
test eax, eax
je 0x733ef3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x9aad3c]
pop edi
pop esi
pop ebx
leave
ret