joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x9367f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0xa
lea ecx, [esp + 0x10]
call fcn.1001c238
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp ecx, ebx
mov dword [esp + 0x30], 0
je 0x1000e209
mov eax, dword [edi + 0x90]
test eax, eax
je 0x1000e209
test ecx, ecx
jne 0x1000e119
imul eax, ebx
xor esi, esi
test eax, eax
jle 0x1000e209
push 8
call fcn.1001f2e5
add esp, 4
mov dword [eax], 0
lea ecx, [edi + 0xd4]
mov dword [eax + 4], 0
push eax
call fcn.1001c2f8
mov eax, dword [edi + 0x90]
inc esi
imul eax, ebx
cmp esi, eax
jl 0x1000e0e3
jmp 0x1000e209
mov esi, dword [edi + 0xd8]
test ebx, ebx
jne 0x1000e14a
test esi, esi
je 0x1000e13f
mov eax, esi
mov esi, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
je 0x1000e13b
push eax
call fcn.1001f30e
add esp, 4
test esi, esi
jne 0x1000e127
lea ecx, [edi + 0xd4]
jmp 0x1000e204
test esi, esi
je 0x1000e163
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.1001c2f8
test esi, esi
jne 0x1000e14e
lea ecx, [edi + 0xd4]
call fcn.1001c6d2
mov ecx, dword [edi + 0x90]
xor esi, esi
imul ecx, ebx
test ecx, ecx
jle 0x1000e1e0
push 8
call fcn.1001f2e5
mov edx, dword [edi + 0x90]
add esp, 4
imul edx, dword [ebp + 8]
cmp esi, edx
mov ebx, eax
jge 0x1000e1b8
push esi
lea ecx, [esp + 0x10]
call fcn.1001c321
test eax, eax
je 0x1000e233
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
jmp 0x1000e1c5
mov dword [ebx], 0
mov dword [ebx + 4], 0
push ebx
lea ecx, [edi + 0xd4]
call fcn.1001c2f8
mov eax, dword [edi + 0x90]
inc esi
imul eax, dword [ebp + 0xc]
cmp esi, eax
jl 0x1000e17d
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1000e200
mov eax, esi
mov esi, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
je 0x1000e1fc
push eax
call fcn.1001f30e
add esp, 4
test esi, esi
jne 0x1000e1e8
lea ecx, [esp + 0xc]
call fcn.1001c6d2
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.1001c277
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.1001c277
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x9369a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [0x9417b8]
mov dword [esp + 0x14], 0
mov dword [esi + 0x14], eax
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
mov byte [esp + 0x1c], 1
mov dword [esi], 0x9388e0
call fcn.1001f92c
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.1000f500
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0xffffffff
call fcn.1001fbb7
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 0x14

Function at 0x424bfc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004248ad

Function at 0x424c07
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424a37
Function at 0x40107e
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, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4246b0
push 0x67
push edi
call esi
push 0x64
push 0x4245e8
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00401209
push ebx
push 0x4251b8
call fcn.00408d14
pop ecx
pop ecx
call fcn.00402e73
push 0x7d0
mov dword [0x4230a0], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004014c5
test eax, eax
je 0x4010fe
call fcn.00403139
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.00401da2
test eax, eax
pop ecx
jne 0x401120
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408c2e
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor esi, esi
push 0x206
lea eax, [esp + 0x16]
push esi
push eax
mov word [esp + 0x1c], si
call fcn.00408c40
mov ecx, dword [0x424e00]
add esp, 0xc
cmp ecx, esi
jbe 0x40116c
cmp word [0x424e04], si
jbe 0x40116c
mov esi, 0x423648
call fcn.00402e0f
mov ax, word [0x424e04]
mov word [0x423658], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x4253c8
div ecx
push edx
push 0x41dc00
push ebx
call fcn.00402848
add esp, 0xc
call fcn.004024c9
lea edi, [esp + 0x10]
call fcn.00402863
push 0x41dc18
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00408d30
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00408d30
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011f4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x41dd90
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004022ab
jmp 0x4010f6

Function at 0x401414
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x41dc34
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004092a6
add esp, 0xc
test eax, eax
je 0x401441
xor eax, eax
jmp 0x4014c1
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040937d
push dword [ebp - 4]
call fcn.0040959a
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040937d
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00409657
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00409977
push dword [ebp - 4]
call fcn.00409a05
push ebx
lea ebx, [edi + esi]
call fcn.004030c7
push 0x41dc3c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004092a6
add esp, 0x44
test eax, eax
pop esi
jne 0x40143a
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00409b9b
push dword [ebp - 4]
call fcn.00409a05
xor eax, eax
add esp, 0x14
inc eax
pop edi
pop ebx
leave
ret
Function at 0x401da2
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push eax
push esi
push esi
push esi
mov dword [0x424778], eax
mov eax, closesocket
push eax
push esi
push eax
push 0xcf0000
push 0x4246b0
push 0x4245e8
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401df0
xor eax, eax
jmp 0x401f4a
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call fcn.00408c40
add esp, 0xc
lea eax, [ebp - 0x3dc]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x424f38
call fcn.00408a72
test eax, eax
pop ecx
jne 0x401ecf
push 0x3a
lea eax, [ebp - 0x42]
push esi
push eax
mov word [ebp - 0x44], si
call fcn.00408c40
add esp, 0xc
lea ebx, [ebp - 0x44]
call fcn.00401000
mov eax, ebx
push eax
push 0x4250e0
call fcn.00408d14
push 0x41dc90
push 0x40
push 0x424f3c
call fcn.00409115
add esp, 0x14
push 0x41dcac
push 0x10
push 0x424fbe
mov word [0x424fbc], 0x51
call fcn.00409115
add esp, 0xc
push 0x41dc5c
push 0x40
push 0x424fde
call fcn.00409115
add esp, 0xc
mov eax, ebx
push eax
mov edi, 0x4250c0
push edi
mov word [0x42505e], 0x2b66
call fcn.00408d14
push 0x41dd2c
push edi
call fcn.00408cea
add esp, 0x10
mov dword [0x425100], 5
call fcn.00401303
lea ebx, [ebp - 0x24c]
call fcn.00401000
mov eax, ebx
push eax
mov edi, 0x425138
push edi
call fcn.00408d14
pop ecx
pop ecx
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, esi
je 0x401f0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401de9
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401de9
mov ecx, 0x4255d0
call fcn.00402190
mov eax, dword [0x425104]
push esi
push esi
push esi
push 0x40127a
push esi
push esi
mov dword [0x4255d8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x423640], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
leave
ret
Function at 0x4020f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402119
push dword [ebp + 8]
call fcn.00402f0f
cmp eax, dword [ebp + 0x10]
pop ecx
jne 0x402119
inc ebx
jmp 0x402189
mov edi, 0x200000
push edi
call fcn.00409657
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.00404f74
add esp, 0xc
test eax, eax
je 0x402182
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00409c3e
pop ecx
push 0x32
mov eax, 0xc8
call fcn.004028bc
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.004030c7
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00408b67
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.00409c6d
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4022ab
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x236]
push esi
push eax
mov word [ebp - 0x238], si
call fcn.00408c40
add esp, 0xc
push 9
mov word [ebp - 0x2c], si
pop ecx
xor eax, eax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x4250a0
mov ebx, 0x104
push edi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ebx
call fcn.00409c28
test eax, eax
pop ecx
je 0x402325
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x4024b8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push esi
push 0x41dcb8
push closesocket
call edi
test eax, eax
jne 0x4023a1
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
push 0x41dd3c
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402395
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402395
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4024b8
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
push ebx
mov dword [ebp - 0x240], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4250c0
call fcn.00409c28
test eax, eax
pop ecx
lea eax, [ebp - 0x238]
jne 0x4023e0
push 0x41dd4c
push ebx
push eax
call fcn.00408d30
add esp, 0xc
push 0x41dd4c
jmp 0x4023f4
push 0x4250c0
push ebx
push eax
call fcn.00408d30
add esp, 0xc
push 0x4250c0
lea eax, [ebp - 0x2c]
push eax
call fcn.00408d14
pop ecx
pop ecx
push 0x41dc28
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00408d30
lea eax, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00402971
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x4024b8
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.004020f0
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push 0x41dd90
lea eax, [ebp - 0x238]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x23c]
push eax
push 3
push esi
push 0x41dcb8
push closesocket
call edi
test eax, eax
jne 0x4024b1
lea eax, [ebp - 0x2c]
push eax
call fcn.00409c28
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
push 0x41dd3c
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4024b1
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00409cfb
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408c2e
leave
ret
Function at 0x40258d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
push eax
call fcn.004083a5
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
jne 0x402708
mov esi, 0x206
push esi
lea eax, [ebp - 0x21e]
push edi
push eax
mov word [ebp - 0x220], di
call fcn.00408c40
add esp, 0xc
push esi
lea eax, [ebp - 0x426]
push edi
push eax
mov word [ebp - 0x428], di
call fcn.00408c40
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.00402863
push 0x41dc18
mov ebx, 0x104
mov eax, edi
push ebx
push eax
call fcn.00408d30
mov byte [ebp - 0x18], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x424788
stosb byte es:[edi], al
mov edi, esi
cmp word [edi], 0
je 0x402692
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00409115
add esp, 0xc
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00408d30
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.004046ef
test eax, eax
pop ecx
je 0x402692
push 0x14
lea eax, [edi + 0x104]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409d00
add esp, 0xc
test eax, eax
jne 0x402692
and word [edi], ax
add edi, 0x118
cmp edi, 0x424d00
jl 0x402634
cmp word [esi], 0
je 0x4026c3
push dword [ebp + 0xc]
mov eax, dword [esi + 0x100]
push dword [ebp - 0x430]
mov ecx, esi
mov dword [0x42477c], eax
call fcn.004085cf
pop ecx
pop ecx
add esi, 0x118
cmp esi, 0x424d00
jl 0x4026a0
push 0x4253c8
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00408d30
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402702
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
leave
ret

Function at 0x402971
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41dd58
mov ebx, eax
push 0x83
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x4029de
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040b581
push esi
mov edi, eax
push 0
push edi
call fcn.00408c40
push esi
push ebp
push edi
call fcn.00408db0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret
Function at 0x402b03
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
push 7
xor ebx, ebx
mov word [ebp - 0x24], bx
pop ecx
xor eax, eax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
call fcn.00409657
pop ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402b74
push dword [ebp - 0x28]
call fcn.00409c6d
push dword [ebp - 0x30]
call fcn.00409657
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x402c2e
cmp edi, ebx
mov dword [ebp - 0x34], edi
je 0x402c2e
jmp 0x402b99
mov edi, dword [ebp - 0x34]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x38], 0
je 0x402bb6
push 6
lea eax, [edi + 0x194]
push eax
push dword [ebp - 0x38]
call fcn.00408db0
add esp, 0xc
lea esi, [edi + 0x1ac]
test esi, esi
je 0x402c1d
lea edi, [esi + 4]
push edi
call fcn.0040b5f0
cmp eax, 0x10
pop ecx
jle 0x402bd2
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402bf1
cmp ecx, eax
jne 0x402be2
and word [ebp + ecx*2 - 0x24], 0
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402bda
lea eax, [ebp - 0x24]
push eax
call fcn.00402ced
test eax, eax
pop ecx
je 0x402c13
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push 0x10
push dword [eax + ebx*4]
call fcn.00409115
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402bc0
mov edi, dword [ebp - 0x34]
test ebx, ebx
jg 0x402c2e
mov edi, dword [edi]
test edi, edi
mov dword [ebp - 0x34], edi
jne 0x402b96
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402c45
push dword [ebp - 0x28]
call fcn.00409c6d
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00408c2e
leave
ret

Function at 0x402e73
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00408c40
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402ef7
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x402ee1
test eax, eax
jne 0x402ed0
cmp word [ebp + 0x94], 4
jb 0x402ef7
inc esi
cmp eax, 2
jne 0x402ed7
push eax
pop esi
jae 0x402ede
cmp eax, 1
jne 0x402ef7
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x402ef7
test eax, eax
jne 0x402eef
push 4
jmp 0x402ef6
cmp eax, 1
jne 0x402ef7
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408c2e
add ebp, 0xa0
leave
ret
Function at 0x402f0f
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 closesocket
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x402f3e
mov edx, esi
jmp 0x402f5d
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x402f54
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 0x403032
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00408c40
add esp, 0xc
cmp dword [0x4230a0], 3
lea eax, [ebp - 0x20c]
jne 0x403098
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc18
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408d30
add esp, 0xc
pop esi
jmp 0x4030a4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41ddbc
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00408c2e
leave
ret
Function at 0x403139
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x298], eax
push ebx
push esi
lea eax, [ebp + 0x194]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41ddd0
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.0040be29
add esp, 0xc
push esi
lea eax, [ebp + 0x90]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.0040ba13
lea eax, [ebp - 0x74]
push 0x5c
push eax
call fcn.0040bde0
add esp, 0x14
cmp eax, ebx
je 0x4031b7
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x403285
lea eax, [ebp + 0x90]
push edi
push eax
call fcn.0040b5f0
mov esi, eax
mov edi, 0x423660
imul esi, esi, 3
push edi
call fcn.0040b5f0
add esi, eax
lea eax, [ebp + 0x194]
push eax
call fcn.0040b5f0
lea eax, [eax + esi + 0x32]
push eax
mov dword [ebp - 0x78], eax
call fcn.0040b581
push dword [ebp - 0x78]
mov esi, eax
push ebx
push esi
call fcn.00408c40
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x90]
push eax
push eax
push edi
push dword [ebp - 0x78]
push esi
call fcn.0040be0d
add esp, 0x38
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.0040b5f0
pop ecx
push eax
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x194]
push eax
push 0x41dddc
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp esi, ebx
pop edi
je 0x403285
push esi
call fcn.00409cfb
pop ecx
mov ecx, dword [ebp + 0x298]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0x29c
leave
ret

Function at 0x40329c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
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], ecx
je 0x4032e5
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret