joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401410
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xddc
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0xdd8], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00402500
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0xa34], 0xffffffff
mov dword [esp + 0xa38], ebx
mov dword [esp + 0xabc], ebx
mov dword [esp + 0xb40], ebx
mov dword [esp + 0xb44], ebx
mov dword [esp + 0xb48], ebx
mov dword [esp + 0xb4c], ebx
mov dword [esp + 0xbd0], ebx
mov dword [esp + 0xa2c], 5
mov dword [esp + 0xa30], 1
call fcn.004025b0
push 0x206
lea ecx, [esp + 0xbde]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xbe4], ax
call fcn.00415af0
add esp, 0xc
call fcn.004026e0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401a50
test eax, eax
je 0x4014e7
call fcn.00403570
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x436c10
push 0x67
push edi
call esi
push 0x64
push 0x436b48
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00401650
push ebx
push edi
push ebx
push ebx
push ebx
push closesocket
push ebx
push closesocket
push 0xcf0000
push 0x436c10
push 0x436b48
push ebx
mov dword [0x436cd8], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x401545
call fcn.004016e0
cmp eax, ebx
jne 0x40155e
mov ecx, dword [esp + 0xde4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00413553
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov eax, dword [0x437358]
cmp eax, ebx
jbe 0x401595
cmp word [0x43735c], bx
jbe 0x401595
push eax
mov esi, 0x433f9c
call fcn.00403cc0
mov dx, word [0x43735c]
add esp, 4
mov word [0x433fac], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x42d668
mov edx, 0x4378d0
call fcn.004024e0
call fcn.00403da0
lea esi, [esp + 0xbe0]
call fcn.00403d40
push 0x42d680
mov edx, esi
push 0x104
push edx
call fcn.00413562
add esp, 0x14
push 0x4378d0
mov eax, esi
push 0x104
push eax
call fcn.00413562
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401629
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push 0x42d684
mov edx, esi
push edx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401180
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4016e0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3e8
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x3e0], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.00415af0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x4374d0
call fcn.004027f0
add esp, 4
test eax, eax
jne 0x401829
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.00415af0
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.00403710
xor eax, eax
jmp 0x401770
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x437678], cx
add eax, 2
test cx, cx
jne 0x401770
push 0x42d688
push 0x40
push 0x4374d4
call fcn.004135df
add esp, 0xc
push 0x42d6a4
push 0x10
push 0x437556
call fcn.004135df
add esp, 0xc
push 0x42d6b0
push 0x40
push 0x437576
call fcn.004135df
mov eax, 0x2b70
mov edx, 0x51
add esp, 0xc
mov word [0x4375f6], ax
mov word [0x437554], dx
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x437658], cx
add eax, 2
test cx, cx
jne 0x4017e0
mov eax, 0x437658
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401800
mov ecx, dword [0x42d6cc]
mov dx, word [0x42d6d0]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x437698], 5
call fcn.004037b0
lea edi, [esp + 0x1d8]
call fcn.00403710
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x437490], cx
add eax, 2
test cx, cx
jne 0x401840
push 0x437490
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x40188c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00413553
add esp, 0x3e8
ret
push 0x437490
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401874
mov edi, 0x4376d0
call fcn.00401000
mov eax, dword [0x43769c]
push 0
push 0
push 0
push 0x403c00
push 0
push 0
mov dword [0x4376d8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
xor ecx, esp
mov eax, 1
call fcn.00413553
add esp, 0x3e8
ret
Function at 0x402500
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, 0x42d664
mov dword [esp], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402512
sub eax, edx
sar eax, 1
jne 0x402529
xor eax, eax
add esp, 0x18
ret
push 0x42d51c
lea eax, [esp + 4]
push 0x42d664
push eax
call fcn.00413a8f
add esp, 0xc
test eax, eax
jne 0x402523
mov edx, dword [esi + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov word [esp + 0x14], ax
mov eax, dword [esp]
push eax
mov ecx, 0x4d42
push 1
mov word [esp + 0x10], cx
lea ecx, [esp + 0x10]
add edx, 0xe
push 0xe
push ecx
mov dword [esp + 0x1a], edx
mov dword [esp + 0x22], 0x36
call fcn.00413c44
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push 1
push eax
push ecx
call fcn.00413c44
mov edx, dword [esp + 0x20]
push edx
call fcn.00413d3d
add esp, 0x24
mov eax, 1
add esp, 0x18
ret

Function at 0x4025b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x230], eax
push ebp
push esi
push edi
xor edi, edi
push edi
push 2
mov esi, ecx
mov dword [esp + 0x14], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4025ef
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40266c
push 0x22c
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00415af0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
je 0x402623
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402665
push ebx
xor edi, edi
cmp dword [esi], edi
jle 0x40264a
lea ebx, [esi + 4]
lea ecx, [ecx]
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.00413f51
add esp, 8
test eax, eax
je 0x402686
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x402630
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x402624
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x10]
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00413553
add esp, 0x234
ret
lea ecx, [esp + 0x38]
push ecx
lea edx, [esi + 0xa14]
push 0x40
push edx
mov dword [esp + 0x1c], 1
mov dword [esi + 0xa0c], edi
call fcn.004135df
mov ecx, dword [esi + 0xa0c]
mov eax, dword [esp + 0x28]
shl ecx, 7
lea edx, [ecx + esi + 0x504]
push edx
mov dword [esi + 0xa10], eax
push 0x40
add esi, 0xa98
push esi
call fcn.004135df
add esp, 0x18
jmp 0x402660
Function at 0x4026e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
mov dword [0x433f90], 0
call fcn.00415af0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4027cf
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402794
mov eax, dword [esp + 8]
test eax, eax
jne 0x40276b
cmp word [esp + 0x114], 4
jb 0x4027cf
mov dword [0x433f90], 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413553
add esp, 0x120
ret
cmp eax, 2
jae 0x402775
cmp eax, 1
jne 0x4027cf
mov dword [0x433f90], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413553
add esp, 0x120
ret
cmp eax, 6
jne 0x4027cf
mov eax, dword [esp + 8]
test eax, eax
jne 0x4027c0
mov dword [0x433f90], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413553
add esp, 0x120
ret
cmp eax, 1
jne 0x4027cf
mov dword [0x433f90], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413553
add esp, 0x120
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00415af0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x40296f
mov eax, 0x42d860
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4028e5
sub eax, edx
sar eax, 1
je 0x40296f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42d860
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00413562
push 0x42d894
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00413a8f
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40296f
push eax
push 1
push 0x200
push esi
call fcn.00414a5d
mov eax, dword [esp + 0x14]
push eax
call fcn.00413d3d
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413553
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00413553
add esp, 0x214
ret
Function at 0x402990
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00415af0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402a95
mov eax, 0x42d87c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4029d5
sub eax, edx
sar eax, 1
je 0x402a95
cmp dword [0x433f90], 3
jne 0x402a1c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42d89c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00413562
add esp, 0xc
jmp 0x402a2c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42d87c
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00413562
push 0x42d894
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00413a8f
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402a95
push eax
push 1
push 0x200
push esi
call fcn.00414a5d
mov edx, dword [esp + 0x14]
push edx
call fcn.00413d3d
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413553
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00413553
add esp, 0x214
ret

Function at 0x402ab0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00415af0
add esp, 0xc
cmp dword [0x433f90], 3
jne 0x402b10
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42d89c
lea eax, [esp + 4]
push 0x104
push eax
call fcn.00413562
add esp, 0xc
jmp 0x402b1f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x42d8a0
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00413553
add esp, 0x20c
ret

Function at 0x402cf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00415af0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402f40
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00403050
cmp eax, 0xffffffff
jne 0x402d72
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413553
add esp, 0x218
ret
push esi
call fcn.00402c20
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00413553
add esp, 0x218
ret
Function at 0x402da0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x402ebe
push 0xb69
call fcn.004090f4
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xb69
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402eb1
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test eax, eax
jl 0x402e19
jg 0x402e0d
test ecx, ecx
jbe 0x402e19
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
mov edx, ecx
mov edi, eax
jmp 0x402e1d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbd]
cmp eax, edi
mov ecx, dword [esi + 0xb9]
jl 0x402e47
jg 0x402e33
cmp ecx, edx
jbe 0x402e47
mov ebx, dword [esi + 0xc1]
mov ebp, dword [esi + 0xc5]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x146]
cmp eax, edi
mov ecx, dword [esi + 0x142]
jl 0x402e71
jg 0x402e5d
cmp ecx, edx
jbe 0x402e71
mov ebx, dword [esi + 0x14a]
mov ebp, dword [esi + 0x14e]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1cf]
cmp eax, edi
mov ecx, dword [esi + 0x1cb]
jl 0x402e9b
jg 0x402e87
cmp ecx, edx
jbe 0x402e9b
mov ebx, dword [esi + 0x1d3]
mov ebp, dword [esi + 0x1d7]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00417900
mov dword [esp + 0x10], eax
test esi, esi
je 0x402ebe
push esi
call fcn.00409123
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402ee0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x402f31
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x403190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.00413660
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42dc28]
fadd qword [0x42dc40]
call fcn.00417810
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4032b0
call fcn.00413660
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42dc28]
fmul qword [0x42dc38]
fadd qword [0x42dc30]
call fcn.00417810
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403298
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x403289
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403280
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x403247
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00415af0
add esp, 0xc
cmp edi, esi
je 0x403438
mov eax, 0x42d914
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403395
sub eax, edx
sar eax, 1
je 0x4033bf
push 0x42d918
lea edx, [esp + 8]
push 0x42d914
push edx
call fcn.00413a8f
add esp, 0xc
jmp 0x4033fa
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42d860
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00413562
push 0x42d918
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00413a8f
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40341d
push eax
push 1
push 0x200
push edi
call fcn.00413c44
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00413d3d
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413553
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00413553
add esp, 0x214
ret
Function at 0x403450
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x42d894
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00413a8f
add esp, 0xc
test eax, eax
je 0x403474
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.00414fc6
mov eax, dword [esp + 0x1c]
push eax
call fcn.00414e5a
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00414fc6
lea ebp, [esi + 0x32]
push ebp
call fcn.004138ff
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.00414a5d
mov eax, dword [esp + 0x40]
push eax
call fcn.00413d3d
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00403520
mov ecx, dword [esp + 0x4c]
push 0x42d918
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00413a8f
add esp, 0x40
test eax, eax
je 0x4034f2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00413c44
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00413d3d
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x403570
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x42d920
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.00414ec8
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.00414a7a
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.00414c90
add esp, 0x14
test eax, eax
je 0x4035fb
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4036f7
mov eax, 0x434038
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403630
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403647
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403660
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.004090f4
push edi
mov esi, eax
push 0
push esi
call fcn.00415af0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x434038
push edi
push esi
call fcn.004141e5
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4036b0
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x42d92c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4036f5
push esi
call fcn.00409123
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.00413553
add esp, 0x314
ret