joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403469
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x403513
mov ebx, 0xc00
push ebx
call fcn.0040b581
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403504
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x4034e5
jg 0x4034d9
cmp ecx, dword [ebp - 0x18]
jbe 0x4034e5
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x90
dec ebx
jne 0x4034c8
add esi, dword [ebp - 0x18]
push 0
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00416eb0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x403513
push dword [ebp - 4]
call fcn.00409cfb
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40360b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push 0x206
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00408c40
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.0040337c
push dword [ebp - 0x214]
call fcn.004032ea
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403683
xor eax, eax
jmp 0x40368c
push edi
push eax
call fcn.0040353b
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408c2e
leave
ret

Function at 0x40455d
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x4046ef
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00416330
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x41dc34
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.004092a6
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x40474d
push 0x14
push edi
push esi
call fcn.00408c40
add esp, 0xc
xor eax, eax
jmp 0x4047e8
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.0040937d
push dword [ebp - 0x18]
call fcn.0040959a
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.0040937d
lea eax, [ebp - 0x80]
call fcn.0040455d
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409977
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x4047bc
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.00404588
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409977
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x404793
xor edi, edi
push dword [ebp - 0x20]
lea esi, [ebp - 0x80]
call fcn.00404621
push dword [ebp - 0x18]
call fcn.00409a05
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], eax
pop ecx
pop ecx
pop ebx
jae 0x4047e5
push 0x14
push edi
push dword [ebp - 0x20]
jmp 0x40473e
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00408c2e
add ebp, 0xff0
leave
ret
Function at 0x4047ff
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9b8
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x9b4], eax
mov eax, dword [ebp + 8]
and word [esp + 0x1b0], 0
push esi
push edi
push 0x7fe
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1be]
push 0
push eax
mov esi, ecx
call fcn.00408c40
xor eax, eax
add esp, 0xc
cmp esi, eax
lea edi, [esp + 0x1b8]
je 0x404853
mov edi, esi
mov word [edi], ax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x28]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4048a5
push 0x41de28
mov esi, 0x3ff
push esi
push edi
call fcn.00409115
push 0x41de48
push esi
push edi
call fcn.00408d30
push 0x41de4c
push esi
push edi
call fcn.00408d30
add esp, 0x24
xor eax, eax
jmp 0x404929
push 6
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x404872
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40493d
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 0x14], eax
push 4
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x40493d
push 0x41de28
mov esi, 0x3ff
push esi
push edi
call fcn.00409115
push 0x41de48
push esi
push edi
call fcn.00408d30
push 0x41de4c
push esi
push edi
call fcn.00408d30
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x404925
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [ebx], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x9bc]
pop edi
pop esi
xor ecx, esp
call fcn.00408c2e
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
push 0x10
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40497a
push 0x41de8c
jmp 0x4048ee
mov dword [esp + 0xc], esi
jmp 0x404925

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax], ecx
push ebx
push esi
mov dword [ebp - 4], ecx
je 0x404a0f
cmp edi, ecx
jle 0x4049bd
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, edi
jl 0x4049b1
lea ebx, [edi + 7]
push ebx
call fcn.0040b581
mov esi, eax
lea eax, [edi + 5]
push 5
mov word [esi], ax
lea eax, [esi + 2]
push 0x423120
push eax
call fcn.00408db0
push edi
push dword [ebp + 0xc]
lea eax, [esi + 7]
push eax
call fcn.00408db0
mov eax, dword [ebp + 8]
add esp, 0x1c
push 0
push ebx
push esi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404a12
cmp eax, ebx
jne 0x404a12
mov dword [ebp - 4], 1
jmp 0x404a12
mov esi, dword [ebp + 8]
test esi, esi
je 0x404a1d
push esi
call fcn.00409cfb
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x404b51
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e4
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
and word [ebp - 0x85c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x864], eax
mov eax, dword [ebp + 0x7c]
push 0x7fe
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x85a]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x870], ebx
mov edi, edx
call fcn.00408c40
add esp, 0xc
test edi, edi
lea esi, [ebp - 0x85c]
mov dword [ebp - 0x860], esi
je 0x404bbb
mov dword [ebp - 0x860], edi
mov esi, edi
and word [esi], 0
mov ebx, dword [ebx]
xor eax, eax
xor edi, edi
cmp ebx, eax
mov dword [ebp - 0x86c], eax
je 0x404d20
cmp dword [ebp - 0x864], eax
je 0x404d20
push 0xc7
push eax
mov byte [ebp - 0x5c], al
lea eax, [ebp - 0x5b]
push eax
call fcn.00408c40
add esp, 0xc
push edi
push 2
lea eax, [ebp - 0x5c]
push eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
call ebx
cmp eax, 0xffffffff
je 0x404d02
test eax, eax
je 0x404d02
movzx eax, word [ebp - 0x5c]
mov dword [ebp - 0x868], eax
add eax, 2
push eax
xor esi, esi
call fcn.0040b581
cmp dword [ebp - 0x868], esi
pop ecx
mov edi, eax
jle 0x404d15
mov eax, dword [ebp - 0x868]
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x870]
push dword [eax]
call ebx
cmp eax, 0xffffffff
je 0x404c97
test eax, eax
je 0x404c97
add esi, eax
cmp dword [ebp - 0x868], esi
jg 0x404c39
cmp esi, 5
jl 0x404d15
push 5
push edi
push 0x423120
sub esi, 5
call fcn.00409d00
add esp, 0xc
test eax, eax
je 0x404cb7
push 0x41deb0
push 0x3ff
push dword [ebp - 0x860]
jmp 0x404d0d
push 0x41deb0
push 0x3ff
push dword [ebp - 0x860]
call fcn.00409115
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404d15
test esi, esi
jle 0x404cc6
lea eax, [edi + 5]
mov ecx, esi
not byte [eax]
inc eax
dec ecx
jne 0x404cc0
mov ebx, dword [ebp - 0x874]
mov eax, dword [ebx]
cmp eax, esi
jl 0x404ce6
push esi
lea eax, [edi + 5]
push eax
push dword [ebp - 0x864]
call fcn.00408db0
mov dword [ebx], esi
jmp 0x404cf6
push eax
lea eax, [edi + 5]
push eax
push dword [ebp - 0x864]
call fcn.00408db0
mov dword [ebp - 0x86c], 1
jmp 0x404d12
push 0x41deb0
push 0x3ff
push esi
call fcn.00409115
add esp, 0xc
test edi, edi
je 0x404d20
push edi
call fcn.00409cfb
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x86c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0x70
leave
ret
Function at 0x404ec9
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00416330
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x404f0f
xor eax, eax
jmp 0x404f5d
cmp dword [ebp - 0x78], ebx
jbe 0x404f4c
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
test eax, eax
mov dword [ebp - 0x80], eax
je 0x404f4c
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00409b9b
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
mov dword [0x424784], ebx
jb 0x404f14
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00409a05
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0xf90
leave
ret

Function at 0x40676e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x406779
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x40682b
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
sub eax, 8
dec edi
jne 0x406790
pop edi
test eax, eax
je 0x406844
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
dec eax
jne 0x40682f
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x40684b
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x41f910]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x406ebd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x406eed
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406ee8
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x406f15
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x406efe
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00408db0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x407b50
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push edi
jne 0x407bd7
cmp dword [esi + 4], 0xffffffff
jne 0x407bd7
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00409c28
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x407b99
cmp ax, 0x2f
je 0x407b99
push 0x41dc18
push edi
call fcn.00408cea
pop ecx
pop ecx
push 0x20
call fcn.0040b581
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], bl
mov byte [eax + 1], 1
mov byte [eax + 0x10], bl
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.00407136
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x407bdc
mov eax, 0x1000000
pop edi
pop ebx
pop ecx
ret 8

Function at 0x4087ed
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
xor esi, esi
and word [ebp - 0x7c], si
push 0x206
lea eax, [ebp - 0x7a]
push esi
push eax
call fcn.00408c40
add esp, 0xc
test ebx, ebx
je 0x4088a3
and dword [ebp - 0x80], esi
mov esi, 0x41dd90
push esi
call fcn.00409c28
test eax, eax
pop ecx
jbe 0x40884c
push 0x41dc3c
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004092a6
add esp, 0xc
jmp 0x408880
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ff6c
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00408d30
push 0x41dc3c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004092a6
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x80], 0
je 0x4088a3
push dword [ebp - 0x80]
push esi
push 0x200
push ebx
call fcn.00409b9b
push dword [ebp - 0x80]
call fcn.00409a05
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408c2e
add ebp, 0x190
leave
ret
Function at 0x4088bb
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x72]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x74], bx
call fcn.00408c40
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x78], ebx
je 0x408991
push edi
mov edi, 0x41dc78
push edi
call fcn.00409c28
test eax, eax
pop ecx
je 0x408990
cmp dword [0x4230a0], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x408941
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc18
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408d30
add esp, 0xc
jmp 0x408949
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408d30
push 0x41dc34
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004092a6
add esp, 0x18
cmp dword [ebp - 0x78], ebx
je 0x408990
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push dword [ebp - 0x80]
call fcn.00409977
push dword [ebp - 0x78]
call fcn.00409a05
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0x198
leave
ret

Function at 0x4089ab
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x72]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x74], bx
call fcn.00408c40
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x78], ebx
je 0x408a58
push edi
mov edi, 0x41ff6c
push edi
call fcn.00409c28
test eax, eax
pop ecx
je 0x408a57
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408d30
push 0x41dc34
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004092a6
add esp, 0x18
cmp dword [ebp - 0x78], ebx
je 0x408a57
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push dword [ebp - 0x80]
call fcn.00409977
push dword [ebp - 0x78]
call fcn.00409a05
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0x198
leave
ret
Function at 0x408b67
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408b87
mov eax, dword [ebp + 8]
call fcn.00408bd2
test eax, eax
je 0x408bcd
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408bcc
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x408bc5
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x408bd2
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408be5
xor eax, eax
pop esi
ret
test al, 1
je 0x408bec
xor eax, 1
test al, 4
je 0x408bf3
xor eax, 4
test al, 2
je 0x408bfa
xor eax, 2
test al, 0x20
je 0x408c01
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret

Function at 0x408c2e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422044]
jne 0x408c38
repz ret
jmp fcn.0040c9f3
Function at 0x414779
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004100b5
xor ebx, ebx
cmp dword [0x4244a8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41484e
push 0x41cb64
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4147b9
xor eax, eax
jmp 0x414912
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cb58
push edi
call esi
cmp eax, ebx
je 0x4147b2
push eax
call fcn.00410052
mov dword [esp], 0x41cb48
push edi
mov dword [0x4244a8], eax
call esi
push eax
call fcn.00410052
mov dword [esp], 0x41cb34
push edi
mov dword [0x4244ac], eax
call esi
push eax
call fcn.00410052
mov dword [0x4244b0], eax
lea eax, [ebp - 8]
push eax
call fcn.0040eac1
test eax, eax
pop ecx
pop ecx
je 0x41481c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cbfb
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41484e
push 0x41cb18
push edi
call esi
push eax
call fcn.00410052
cmp eax, ebx
pop ecx
mov dword [0x4244b8], eax
je 0x41484e
push 0x41cb00
push edi
call esi
push eax
call fcn.00410052
pop ecx
mov dword [0x4244b4], eax
mov eax, dword [0x4244b4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4148c7
cmp dword [0x4244b8], esi
je 0x4148c7
push eax
call fcn.004100be
pop ecx
call eax
cmp eax, ebx
je 0x414894
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4244b8]
call fcn.004100be
pop ecx
call eax
test eax, eax
je 0x414894
test byte [ebp - 0x18], 1
jne 0x4148c7
lea eax, [ebp - 0xc]
push eax
call fcn.0040eaf8
test eax, eax
pop ecx
je 0x4148af
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cbfb
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4148be
or dword [ebp + 0x10], 0x200000
jmp 0x4148f8
or dword [ebp + 0x10], 0x40000
jmp 0x4148f8
mov eax, dword [0x4244ac]
cmp eax, esi
je 0x4148f8
push eax
call fcn.004100be
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4148f8
mov eax, dword [0x4244b0]
cmp eax, esi
je 0x4148f8
push dword [ebp - 4]
push eax
call fcn.004100be
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4244a8]
call fcn.004100be
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bf90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40bff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4da39c]
test esi, esi
jle 0x40c0f0
mov eax, dword [0x4da3a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40c020
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40c09f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40c010
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40c117
mov eax, dword [0x4da3a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4da3a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
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 0x40c0f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40c098
sub eax, 4
and eax, 0xfffffffb
jne 0x40c0a6
add dword [0x4da39c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4da3a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40c098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x40c02a
mov eax, dword [0x4da3a0]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop