joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a2250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [str.W__a]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.005989b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.0058b8e0
lea ecx, [ebp - 0x144]
call fcn.0056da50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x5a2328
xor ecx, ecx
je 0x5a22fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.00574170
mov ecx, eax
call fcn.0056f550
push eax
call fcn.004016a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00574580
jmp 0x5a22b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.005a2400
lea ecx, [ebp - 0x144]
call fcn.005a24d0
lea ecx, [ebp - 0x140]
call fcn.0058f370
mov eax, dword [ebp + 8]
jmp 0x5a23e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x5a2338
jmp 0x5a2388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00547a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.0056da10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x5a228b
lea ecx, [ebp - 0x144]
call fcn.0056da50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0059a380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.00598f80
lea ecx, [ebp - 0xe4]
call fcn.004c0ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.005a2400
lea ecx, [ebp - 0x144]
call fcn.005a24d0
lea ecx, [ebp - 0x140]
call fcn.0058f370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 4

Function at 0x5a3a45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5a3a6c
call fcn.0054aeef
mov dword [eax], esi
call fcn.0054aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.00548cab
mov eax, esi
jmp 0x5a3ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x5a3a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5a3a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054af02
pop ecx
call fcn.0054aedc
mov eax, dword [eax]
jmp 0x5a3ac1
test al, 0x10
jne 0x5a3abf
test al, 1
je 0x5a3abf
test byte [ebp + 0xc], 2
je 0x5a3abf
call fcn.0054aeef
mov dword [eax], 5
call fcn.0054aedc
mov dword [eax], 0xd
jmp 0x5a3a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401081
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 0x424628
push 0x67
push edi
call esi
push 0x64
push 0x424560
push 0x6d
push edi
call esi
mov eax, edi
call fcn.0040121a
push ebx
mov esi, 0x425130
push esi
call fcn.00408da4
call fcn.00402e79
push 0x41dc68
push esi
mov dword [0x423040], eax
call fcn.00408dc3
add esp, 0x10
test eax, eax
je 0x401107
call fcn.00401955
test eax, eax
je 0x401107
call fcn.00403141
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
push edi
call fcn.0040128b
pop ecx
test eax, eax
jne 0x401129
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408cba
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00408cd0
mov ecx, dword [0x424d78]
add esp, 0xc
test ecx, ecx
jbe 0x401176
cmp word [0x424d7c], 0
jbe 0x401176
mov esi, 0x4235dc
call fcn.00402e15
mov ax, word [0x424d7c]
mov word [0x4235ec], ax
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov esi, 0x3e8
mov ecx, esi
div ecx
xor edx, edx
mov ebx, 0x425340
div ecx
push edx
push 0x41dc70
push ebx
call fcn.004028a3
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_Sleep]
call fcn.00402655
lea edi, [esp + 0x10]
call fcn.004083c4
push 0x41dc88
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00408dfa
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00408dfa
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401205
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x41de30
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.00402432
jmp 0x4010fa
Function at 0x4018a4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x41dd14
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004093ab
add esp, 0xc
test eax, eax
je 0x4018d1
xor eax, eax
jmp 0x401951
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00409488
push dword [ebp - 4]
call fcn.004096aa
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00409488
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00409767
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00409ad1
push dword [ebp - 4]
call fcn.00409b65
push ebx
lea ebx, [edi + esi]
call fcn.004030cf
push 0x41dd1c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004093ab
add esp, 0x44
pop esi
test eax, eax
jne 0x4018ca
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00409d43
push dword [ebp - 4]
call fcn.00409b65
xor eax, eax
add esp, 0x14
inc eax
pop edi
pop ebx
leave
ret
Function at 0x402278
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 0x4022a1
push dword [ebp + 8]
call fcn.00402f15
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x4022a1
inc ebx
jmp 0x402311
mov edi, 0x200000
push edi
call fcn.00409767
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.00404f8b
add esp, 0xc
test eax, eax
je 0x40230a
call dword [sym.imp.kernel32.dll_GetTickCount]
push eax
call fcn.00408e77
pop ecx
push 0x32
mov eax, 0xc8
call fcn.004028be
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.004030cf
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00408bfe
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.0040b4eb
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x402432
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 eax, eax
push 0x206
mov word [ebp - 0x238], ax
xor esi, esi
lea eax, [ebp - 0x236]
push esi
push eax
call fcn.00408cd0
add esp, 0xc
xor eax, eax
push 9
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x425018
mov ebx, 0x104
push edi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ebx
call fcn.00409dc5
pop ecx
test eax, eax
je 0x4024ae
push edi
push esi
push 0x20000
call dword [sym.imp.kernel32.dll_OpenEventW]
test eax, eax
jne 0x402644
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push esi
push 0x41dd60
push 0x80000001
call edi
test eax, eax
jne 0x40252a
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
push 0x41dddc
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40251e
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x20000
call dword [sym.imp.kernel32.dll_OpenEventW]
test eax, eax
je 0x40251e
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402644
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 0x425038
call fcn.00409dc5
test eax, eax
pop ecx
lea eax, [ebp - 0x238]
jne 0x402569
push 0x41ddec
push ebx
push eax
call fcn.00408dfa
add esp, 0xc
push 0x41ddec
jmp 0x40257d
push 0x425038
push ebx
push eax
call fcn.00408dfa
add esp, 0xc
push 0x425038
lea eax, [ebp - 0x2c]
push eax
call fcn.00408da4
pop ecx
pop ecx
push 0x41dd08
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00408dfa
lea eax, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00402974
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x402644
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00402278
add esp, 0xc
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
push 1
push esi
push 0x41de30
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 0x41dd60
push 0x80000001
call edi
test eax, eax
jne 0x40263d
lea eax, [ebp - 0x2c]
push eax
call fcn.00409dc5
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
push 0x41dddc
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40263d
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0040b579
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408cba
leave
ret
Function at 0x402719
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.0040841e
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x402894
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00408cd0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.00408cd0
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.004083c4
push 0x41dc88
mov ebx, 0x104
mov eax, edi
push ebx
push eax
call fcn.00408dfa
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, 0x424700
stosb byte es:[edi], al
mov edi, esi
cmp word [edi], 0
je 0x40281e
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00409215
add esp, 0xc
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00408dfa
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.004046f8
pop ecx
test eax, eax
je 0x40281e
push 0x14
lea eax, [edi + 0x104]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409e6b
add esp, 0xc
test eax, eax
jne 0x40281e
mov word [edi], ax
add edi, 0x118
cmp edi, 0x424c78
jl 0x4027c0
cmp word [esi], 0
je 0x40284f
push dword [ebp + 0xc]
mov eax, dword [esi + 0x100]
push dword [ebp - 0x430]
mov ecx, esi
mov dword [0x4246f4], eax
call fcn.00408656
pop ecx
pop ecx
add esi, 0x118
cmp esi, 0x424c78
jl 0x40282c
push 0x425340
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00408dfa
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40288e
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.00408cba
leave
ret

Function at 0x402974
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 0x41ddf8
mov ebx, eax
push 0x83
push ebx
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x4029e1
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_SetHandleCount]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040b79e
push esi
mov edi, eax
push 0
push edi
call fcn.00408cd0
push esi
push ebp
push edi
call fcn.00408eb0
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 0x402b08
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
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.00409767
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 0x402b79
push dword [ebp - 0x28]
call fcn.0040b4eb
push dword [ebp - 0x30]
call fcn.00409767
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 0x402c34
mov dword [ebp - 0x34], edi
cmp edi, ebx
je 0x402c34
jmp 0x402b9e
mov edi, dword [ebp - 0x34]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x38], 0
je 0x402bbb
push 6
lea eax, [edi + 0x194]
push eax
push dword [ebp - 0x38]
call fcn.00408eb0
add esp, 0xc
lea esi, [edi + 0x1ac]
test esi, esi
je 0x402c23
lea edi, [esi + 4]
push edi
call fcn.00409de0
cmp eax, 0x10
pop ecx
jle 0x402bd7
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402bf7
cmp ecx, eax
jne 0x402be8
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402bdf
lea eax, [ebp - 0x24]
push eax
call fcn.00402cf4
pop ecx
test eax, eax
je 0x402c19
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push 0x10
push dword [eax + ebx*4]
call fcn.00409215
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402bc5
mov edi, dword [ebp - 0x34]
test ebx, ebx
jg 0x402c34
mov edi, dword [edi]
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x402b9b
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402c4b
push dword [ebp - 0x28]
call fcn.0040b4eb
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00408cba
leave
ret

Function at 0x402e79
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.00408cd0
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 0x402efd
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x402ee7
test eax, eax
jne 0x402ed6
cmp word [ebp + 0x94], 4
jb 0x402efd
inc esi
cmp eax, 2
jne 0x402edd
push eax
pop esi
jae 0x402ee4
cmp eax, 1
jne 0x402efd
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x402efd
test eax, eax
jne 0x402ef5
push 4
jmp 0x402efc
cmp eax, 1
jne 0x402efd
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408cba
add ebp, 0xa0
leave
ret
Function at 0x402f15
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 0x80000000
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x402f44
mov edx, esi
jmp 0x402f63
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x402f5a
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 0x40303a
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
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408cd0
add esp, 0xc
cmp dword [0x423040], 3
lea eax, [ebp - 0x20c]
jne 0x4030a0
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push 0x41dc88
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408dfa
add esp, 0xc
pop esi
jmp 0x4030ac
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41dca8
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00408cba
leave
ret
Function at 0x403141
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 0x41de60
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.0040be3b
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.0040bbb3
lea eax, [ebp - 0x74]
push 0x5c
push eax
call fcn.0040bdf0
add esp, 0x14
cmp eax, ebx
je 0x4031bf
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]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x40328d
lea eax, [ebp + 0x90]
push edi
push eax
call fcn.00409de0
mov esi, eax
mov edi, 0x4235f0
imul esi, esi, 3
push edi
call fcn.00409de0
add esi, eax
lea eax, [ebp + 0x194]
push eax
call fcn.00409de0
lea eax, [eax + esi + 0x32]
push eax
mov dword [ebp - 0x78], eax
call fcn.0040b79e
push dword [ebp - 0x78]
mov esi, eax
push ebx
push esi
call fcn.00408cd0
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.0040be1d
add esp, 0x38
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.00409de0
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 0x41de6c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
cmp esi, ebx
je 0x40328d
push esi
call fcn.0040b579
pop ecx
mov ecx, dword [ebp + 0x298]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408cba
add ebp, 0x29c
leave
ret

Function at 0x4032a4
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 0x4032ed
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
Function at 0x403471
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 0x40351a
mov ebx, 0xc00
push ebx
call fcn.0040b79e
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 0x40350b
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 0x4034ed
jg 0x4034e1
cmp ecx, dword [ebp - 0x18]
jbe 0x4034ed
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 0x4034d0
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.004172e0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x40351a
push dword [ebp - 4]
call fcn.0040b579
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 0x403612
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
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408cd0
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.00403384
push dword [ebp - 0x214]
call fcn.004032f2
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40368a
xor eax, eax
jmp 0x403693
push esi
push eax
call fcn.00403542
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408cba
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00415570
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x41dd14
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.004093ab
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x404756
push 0x14
push edi
push esi
call fcn.00408cd0
add esp, 0xc
xor eax, eax
jmp 0x4047f1
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.00409488
push dword [ebp - 0x18]
call fcn.004096aa
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.00409488
lea eax, [ebp - 0x80]
call fcn.00404564
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409ad1
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x4047c5
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.0040458f
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409ad1
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x40479c
xor edi, edi
push dword [ebp - 0x20]
lea esi, [ebp - 0x80]
call fcn.00404628
push dword [ebp - 0x18]
call fcn.00409b65
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
pop ebx
cmp dword [ebp - 0x1c], eax
jae 0x4047ee
push 0x14
push edi
push dword [ebp - 0x20]
jmp 0x404747
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00408cba
add ebp, 0xff0
leave
ret