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

Disassembly:
push 0x2c
mov eax, 0x49bd48
call fcn.00496159
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 4], ebx
call fcn.00461490
test al, al
je 0x4919ad
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0045fe4f
mov eax, esi
call fcn.00496231
ret 0x10
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
je 0x491b20
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00464854
push ebx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp edi, ebx
jne 0x491b20
push 1
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.Send_error
call fcn.0045ffe5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
call fcn.00461a7e
jmp 0x491997
push edi
lea ecx, [ebp + 0x10]
call fcn.0045f965
push 1
push ebx
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 1
call fcn.0045e829
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
call fcn.00461a7e
cmp edi, ebx
je 0x491b15
push edi
lea ecx, [ebp - 0x14]
call fcn.0045f965
mov eax, dword [eax]
push 0x49da50
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.004613d5
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0045ddba
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub eax, ecx
sar eax, 2
lea eax, [ecx + eax*4 - 4]
push eax
lea ecx, [ebp + 0xc]
call fcn.0045e829
mov esi, dword [ebp + 0xc]
cmp dword [esi - 8], 4
jle 0x491af9
movzx eax, word [esi]
push eax
call dword [sym.imp.MSVCR100.dll_isdigit]
pop ecx
test eax, eax
je 0x491af9
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.MSVCR100.dll_isdigit]
pop ecx
test eax, eax
je 0x491af9
movzx eax, word [esi + 4]
push eax
call dword [sym.imp.MSVCR100.dll_isdigit]
pop ecx
test eax, eax
je 0x491af9
movzx eax, word [esi + 6]
cmp eax, 0x20
jne 0x491ade
push edi
call dword [sym.imp.MSVCR100.dll_atoi]
pop ecx
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.0045ddba
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0046113b
jmp 0x491b10
cmp eax, 0x2d
jne 0x491af9
lea ecx, [ebp + 0xc]
call fcn.0045ddba
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0046113b
jmp 0x491b15
lea ecx, [ebp + 0xc]
call fcn.0045ddba
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0046113b
push 0xfffffffffffffffe
pop esi
cmp esi, 0xffffffff
jne 0x491b59
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.0045ddba
push dword [ebp + 0x14]
push ebx
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x491a06
push 1
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.Receive_error
jmp 0x4919f4
lea ecx, [ebp + 0x10]
call fcn.0045ddba
cmp esi, 0xfffffffe
je 0x491994
jmp 0x491997
Function at 0x4939a2
Capabilities:
Resolve dns

Disassembly:
push 0x14
mov eax, 0x49c09c
call fcn.00496159
mov edi, ecx
push dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.0045ffe5
mov eax, dword [0x4c8014]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
push esi
push 0x40
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0045f1f0
inc eax
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004600c5
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0045f9b8
lea ecx, [ebp + 8]
call fcn.0045ddba
mov eax, dword [0x4c8014]
mov dword [ebp + 8], eax
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push str.Quering_MX_record_of_domain__s
push eax
mov byte [ebp - 4], 3
call fcn.00460165
add esp, 0xc
push 1
push 2
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0045e829
mov ecx, dword [edi + 0x14]
call fcn.00461a7e
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0xf
push dword [ebp - 0x14]
call sub.DNSAPI.dll_DnsQuery_W
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
cmp eax, esi
je 0x493ac7
push eax
lea eax, [ebp + 8]
push str.DNS_query_failed_with_code__d
push eax
call fcn.00460165
add esp, 0xc
push 1
push 2
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.0045e829
mov ecx, dword [edi + 0x14]
call fcn.00461a7e
inc esi
jmp 0x493ad5
cmp word [ecx + 8], 0xf
jne 0x493ac2
push dword [ecx + 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0045ffe5
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
mov byte [ebp - 4], 4
call fcn.00493922
mov ecx, eax
call fcn.0045f9b8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0045ddba
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
cmp ecx, esi
jne 0x493a83
push 1
push dword [ebp - 0x20]
call sub.DNSAPI.dll_DnsFree
lea ecx, [ebp + 8]
call fcn.0045ddba
lea ecx, [ebp - 0x14]
call fcn.0045ddba
lea ecx, [ebp - 0x18]
call fcn.0045ddba
mov eax, esi
call fcn.00496231
ret 8

Function at 0x493d5a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], eax
xor eax, eax
push eax
push eax
push ecx
push 0x493d39
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8
Function at 0x495f51
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c94c0], 0
push esi
push edi
jne 0x495ec2
call fcn.00495e1c
test eax, eax
je 0x495f07
mov eax, dword [0x4c94c0]
cmp eax, 1
jne 0x495ee3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x495f07
jmp 0x495f49
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x495f49
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x495f0b
xor eax, eax
jmp 0x495f49
mov eax, dword [esi]
push dword [0x4c94c0]
call edi
mov edi, eax
test edi, edi
je 0x495f2d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x495f49
lea edi, [esi + 0xff0]
push esi
push dword [0x4c94c0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x495f33
mov eax, esi
pop edi
pop esi
ret
jmp 0x495eae

Function at 0x49614a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c8e6c]
jne 0x496154
repz ret
jmp fcn.00496b40
Function at 0x4da880
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x49b015
lea edi, [esi - 0x9a015]
push edi
or ebp, 0xffffffff
jmp 0x4da8a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4da8a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4da898
mov eax, 1
add ebx, ebx
jne 0x4da8bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4da8cc
jne 0x4da8eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4da8eb
dec eax
add ebx, ebx
jne 0x4da8d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4da8b0
add ebx, ebx
jne 0x4da8e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4da93d
xor ecx, ecx
sub eax, 3
jb 0x4da903
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4da972
sar eax, 1
mov ebp, eax
jmp 0x4da90e
add ebx, ebx
jne 0x4da90e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4da8dc
inc ecx
add ebx, ebx
jne 0x4da91c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4da8dc
add ebx, ebx
jne 0x4da929
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4da91e
jne 0x4da93a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4da91e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4da95c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4da94e
jmp 0x4da89e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4da95c
add edi, ecx
jmp 0x4da89e
pop esi
mov edi, esi
mov ecx, 0x3028
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4da97a
cmp byte [edi], 0x17
jne 0x4da97a
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 0x4da97f
lea edi, [esi + 0xd8000]
mov eax, dword [edi]
or eax, eax
je 0x4da9ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xda000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xda03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4da9ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xda044]
or eax, eax
je 0x4da9e8
mov dword [ebx], eax
add ebx, 4
jmp 0x4da9c9
call dword [esi + 0xda040]
mov ebp, dword [esi + 0xda048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0xdaa49]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4daa3a
sub esp, 0xffffff80
jmp 0x4014e0
Function at 0x40b0a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e8044]
sub esp, 4
test ebx, ebx
je 0x40b0eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b0e4
test esi, esi
je 0x40b0e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b0c0
mov dword [esp], 0x4e804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b3f8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b35e
cmp eax, 4
jne 0x40b380
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b36e
cmp edx, 4
je 0x40b36e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b2d0

Function at 0x40b970
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b9a0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40b9c4
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d370
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3abc], 0
jne 0x41d444
mov byte [0x4a3abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d4de
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d43a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a5189
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d471
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d40b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d435
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d4d9
Function at 0x402886
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40fe6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.00407980
xor edi, edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], edi
call fcn.00407980
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 1
call fcn.00407d00
lea ecx, [esi + 0x94]
mov byte [esp + 0x14], 2
call fcn.00407d00
or eax, 0xffffffff
mov byte [esp + 0x14], 3
mov dword [esi], 0x410038
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x402d50
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x510
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x118]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x320]
push ecx
mov ecx, dword [edi + 0xfc]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
mov esi, 1
mov byte [esp + 0x28], 0
call fcn.0040a750
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x14
lea edx, [esp + 0x18]
push 0x411090
push edx
call ebp
lea eax, [esp + 0x118]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x320]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x224]
push eax
push ecx
call fcn.0040a6b0
add esp, 0x14
lea edx, [esp + 0x118]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x31c]
push edx
push eax
mov eax, dword [edi + 0xf8]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0040a750
add esp, 0x14
lea ecx, [esp + 0x18]
push 0x411090
push ecx
call ebp
lea edx, [esp + 0x118]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x320]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x428]
push edx
push eax
call fcn.0040a6b0
mov ebx, dword [esp + 0x540]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x14
cmp esi, 5
je 0x402f90
mov ecx, dword [esp + 0x528]
mov edx, dword [esp + 0x14]
push ebx
push ecx
push edx
mov ecx, edi
call fcn.00402fc0
test al, al
je 0x402e60
xor esi, esi
jmp case.0x402e6c.5
lea eax, [esi - 1]
cmp eax, 4
ja case.0x402e6c.4
jmp dword [eax*4 + 0x402fa0]
mov eax, dword [edi + 0xfc]
push 0x180
push eax
call fcn.0040a920
mov ecx, dword [edi + 0xf8]
add esp, 8
push 0x180
push ecx
call fcn.0040a920
add esp, 8
mov esi, 2
jmp case.0x402e6c.5
lea edx, [esp + 0x218]
test edx, edx
je 0x402f0b
lea eax, [esp + 0x218]
push 0
push eax
call fcn.0040a8d0
add esp, 8
test eax, eax
jne 0x402f0b
lea ecx, [esp + 0x41c]
test ecx, ecx
je 0x402f0b
lea edx, [esp + 0x41c]
push eax
push edx
call fcn.0040a8d0
add esp, 8
test eax, eax
jne 0x402f0b
push eax
mov eax, dword [edi + 0xfc]
lea ecx, [esp + 0x21c]
push eax
push ecx
call ebp
mov edx, dword [edi + 0xf8]
push 0
lea eax, [esp + 0x420]
push edx
push eax
call ebp
mov esi, 3
jmp case.0x402e6c.5
cmp byte [esp + 0x524], 1
jne 0x402f79
mov ecx, dword [edi + 0xfc]
push 0
push ecx
mov byte [esp + 0x1c], 1
call fcn.0040a8d0
add esp, 8
test eax, eax
jne 0x402f4d
mov edx, dword [edi + 0xfc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi + 0xf8]
push 0
push eax
call fcn.0040a8d0
add esp, 8
test eax, eax
jne 0x402f79
mov ecx, dword [edi + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 4
jmp case.0x402e6c.5
mov esi, 5
test esi, esi
jne 0x402e37
cmp esi, 5
pop edi
pop esi
pop ebp
pop ebx
setne al
add esp, 0x510
ret 0xc
Function at 0x403130
Capabilities:
Copy file

Disassembly:
sub esp, 0x50c
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0xf8], ebp
je 0x403389
call fcn.00404670
lea ecx, [esi + 0x94]
call fcn.00408040
lea ecx, [esi + 0x34]
call fcn.00408040
lea ecx, [esi + 4]
call fcn.00407b70
lea ecx, [esi + 0x14]
call fcn.00407b70
lea eax, [esp + 0x318]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x41c]
push ecx
mov ecx, dword [esi + 0xf8]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call fcn.0040a750
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x14
lea edx, [esp + 0x10]
push 0x411090
push edx
call edi
lea eax, [esp + 0x318]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x41c]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x220]
push eax
push ecx
call fcn.0040a6b0
add esp, 0x14
lea edx, [esp + 0x318]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x418]
push edx
push eax
mov eax, dword [esi + 0xfc]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.0040a750
add esp, 0x14
lea ecx, [esp + 0x10]
push 0x411090
push ecx
call edi
lea edx, [esp + 0x318]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x41c]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x11c]
push edx
push eax
call fcn.0040a6b0
add esp, 0x14
lea ecx, [esp + 0x214]
push ebp
push ecx
call fcn.0040a8d0
add esp, 8
test eax, eax
jne 0x403275
lea edx, [esp + 0x214]
push 6
push edx
call fcn.0040a8d0
add esp, 8
test eax, eax
je 0x403275
lea eax, [esp + 0x214]
push 0x180
push eax
call fcn.0040a920
add esp, 8
mov ecx, dword [esi + 0xf8]
push ebp
push ecx
call fcn.0040a8d0
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 8
test eax, eax
jne 0x4032a1
mov eax, dword [esi + 0xf8]
lea edx, [esp + 0x214]
push ebp
push edx
push eax
call edi
lea ecx, [esp + 0x110]
push ebp
push ecx
call fcn.0040a8d0
add esp, 8
test eax, eax
jne 0x4032e1
lea edx, [esp + 0x110]
push 6
push edx
call fcn.0040a8d0
add esp, 8
test eax, eax
je 0x4032e1
lea eax, [esp + 0x110]
push 0x180
push eax
call fcn.0040a920
add esp, 8
mov ecx, dword [esi + 0xfc]
push ebp
push ecx
call fcn.0040a8d0
add esp, 8
test eax, eax
jne 0x403307
mov eax, dword [esi + 0xfc]
lea edx, [esp + 0x110]
push ebp
push edx
push eax
call edi
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40331f
push eax
call edi
mov dword [esi + 0x28], 0xffffffff
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x403331
push eax
call edi
mov dword [esi + 0x2c], 0xffffffff
mov eax, dword [esi + 0x24]
cmp eax, ebp
je 0x40333e
push eax
call edi
mov dword [esi + 0x24], ebp
mov eax, dword [esi + 0xf4]
cmp eax, ebp
je 0x403357
push eax
call fcn.0040a130
add esp, 4
mov dword [esi + 0xf4], ebp
mov eax, dword [esi + 0xf8]
cmp eax, ebp
je 0x403370
push eax
call fcn.0040a130
add esp, 4
mov dword [esi + 0xf8], ebp
mov eax, dword [esi + 0xfc]
cmp eax, ebp
je 0x403389
push eax
call fcn.0040a130
add esp, 4
mov dword [esi + 0xfc], ebp
pop edi
pop esi
pop ebp
add esp, 0x50c
ret
Function at 0x403aa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0
mov dword [esp + 0x24], ebp
mov byte [esp + 0x16], 1
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0xffffffff
call fcn.00403450
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x403c27
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push eax
call esi
cmp eax, 0xffffffff
je 0x403c27
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403c27
cmp dword [esp + 0x18], 4
jb 0x403c27
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 1
push 0
push eax
push ecx
call esi
cmp eax, 0xffffffff
je 0x403c27
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x2c]
push 0x18
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403c27
cmp dword [esp + 0x18], 0x18
jb 0x403c27
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x403c19
test eax, eax
je 0x403c14
mov eax, dword [esp + 0x2c]
mov edx, eax
and edx, 1
cmp dl, 1
jne 0x403b98
and al, 0xfd
mov ecx, ebp
or al, 4
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
call fcn.00405730
jmp 0x403c19
add ebp, 0x94
push 1
mov ecx, ebp
call fcn.004080f0
push 0
push 0xc
mov ecx, ebp
call fcn.004080a0
push eax
mov ecx, ebp
call fcn.00408250
mov ecx, dword [0x410084]
mov ebx, eax
push 0
push 0x18
mov dword [ebx + 4], ecx
mov ecx, ebp
call fcn.004080a0
push eax
mov ecx, ebp
mov dword [ebx], eax
call fcn.00408250
mov ecx, 6
lea esi, [esp + 0x24]
mov edi, eax
push 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
call fcn.00408140
push 2
push ebx
mov ecx, ebp
mov dword [ebx + 8], eax
call fcn.00408230
push eax
mov ecx, ebp
call fcn.00408160
push 1
mov ecx, ebp
call fcn.00408120
mov ebp, dword [esp + 0x20]
jmp 0x403c19
mov byte [esp + 0x13], 1
mov al, byte [esp + 0x13]
test al, al
je 0x403b30
jmp 0x403c2c
mov byte [esp + 0x12], 0
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push 0
call fcn.004034b0
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret