joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x98
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
push 0x68
mov dword [esp + 0x82], eax
mov dword [esp + 0x86], eax
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov dword [esp + 0x9a], eax
mov word [esp + 0x9e], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov edi, ecx
mov esi, edx
mov word [esp + 0x88], bx
call fcn.0040f550
push esi
lea ecx, [esp + 0x20]
push 0x20
push ecx
call fcn.0040ad4a
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
lea esi, [esp + 0x94]
mov dword [esp + 0x8c], edx
call fcn.00403720
mov eax, esi
push eax
lea ecx, [esp + 0x6e]
push 0x10
push ecx
call fcn.0040ad4a
add esp, 0x24
xor eax, eax
nop
mov dl, byte [esp + eax + 0x10]
not dl
mov byte [esp + eax + 0x10], dl
add eax, 1
cmp eax, 0x68
jb 0x402680
push 0x41dcc4
push edi
call fcn.0040aedb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4026dd
push esi
push 0x68
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0040b7e3
push esi
mov edi, 1
call fcn.0040b64d
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0040ac62
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040ac62
add esp, 0x98
ret

Function at 0x402700
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402733
mov eax, ebx
call fcn.00403920
cmp eax, edi
jne 0x402733
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.0040b29f
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00405f50
add esp, 8
test eax, eax
je 0x4027fe
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.0040ad1b
add esp, 4
call fcn.0040ad28
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x41ffb0]
fmul qword [0x41ffd0]
fadd qword [0x41ffc8]
call fcn.00417860
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.00403b50
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.0040abf0
mov esi, eax
cmp esi, 0xffffffff
je 0x4027fc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4027db
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, 1
jne 0x4027fc
push ebp
mov esi, ebx
call fcn.0040b870
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.0040b870
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4029b0
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x45c
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x56]
push edi
push eax
mov word [esp + 0x5c], di
call fcn.0040f550
add esp, 0xc
push 0x206
lea ecx, [esp + 0x25e]
push edi
push ecx
mov word [esp + 0x264], di
call fcn.0040f550
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
mov eax, 0x4250a0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0x104
mov word [esp + 0x28], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402a44
mov esi, dword [sym.imp.KERNEL32.DLL_OpenEventW]
sub eax, edx
sar eax, 1
je 0x402a70
push 0x4250a0
push edi
push 0x20000
call esi
test eax, eax
jne 0x402c73
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push edi
push 0x41dce8
push connect
call ebx
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x402adf
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push 0x41dd64
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402ad8
lea ecx, [esp + 0x28]
push ecx
push edi
push 0x20000
call esi
test eax, eax
je 0x402ad8
mov edx, dword [esp + 0x14]
push edx
call ebp
jmp 0x402c73
mov eax, dword [esp + 0x14]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea ecx, [esp + 0x258]
push ecx
push 0x104
call esi
push 0x41dd74
lea edx, [esp + 0x25c]
push 0x104
push edx
call fcn.0040aca1
mov eax, dword [0x424e0a]
mov ecx, dword [0x424e06]
add esp, 0xc
push eax
push ecx
mov edx, 0x424e0e
lea ecx, [esp + 0x260]
call fcn.004025d0
add esp, 8
lea edx, [esp + 0x50]
push edx
push 0x104
mov dword [esp + 0x20], edi
call esi
mov eax, 0x4250c0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402b47
sub eax, edx
sar eax, 1
jne 0x402b87
push 0x41dd88
lea eax, [esp + 0x54]
push 0x104
push eax
call fcn.0040aca1
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x41dd88]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, di
jne 0x402b71
jmp 0x402bb4
push 0x4250c0
lea ecx, [esp + 0x54]
push 0x104
push ecx
call fcn.0040aca1
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x4250c0]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, di
jne 0x402ba0
push 0x41dcb0
lea edx, [esp + 0x54]
push 0x104
push edx
call fcn.0040aca1
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.004031d0
mov esi, eax
add esp, 4
cmp esi, edi
je 0x402c73
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x50]
push esi
push ecx
jmp 0x524d88
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040ac62
add esp, 0x45c
ret
Function at 0x402d90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [esp + 0x438]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], ecx
call fcn.0040a310
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
jne 0x402fa6
push 0x206
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.0040f550
add esp, 0xc
push 0x206
lea edx, [esp + 0x236]
push 0
push edx
mov word [esp + 0x23c], 0
call fcn.0040f550
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.00402fe0
push 0x41dc40
mov eax, esi
push 0x104
push eax
call fcn.0040aca1
add esp, 0xc
xor eax, eax
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov ebp, 0x424788
cmp word [ebp], 0
je 0x402f26
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.0040ad4a
add esp, 0xc
push ebp
lea eax, [esp + 0x234]
push 0x104
push eax
call fcn.0040aca1
lea ecx, [esp + 0x23c]
add esp, 0xc
push ecx
lea edi, [esp + 0x18]
call fcn.00405540
add esp, 4
test eax, eax
je 0x402f26
mov eax, 0x14
lea ecx, [ebp + 0x104]
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x402ebf
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x402ea7
test eax, eax
je 0x402f1c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x402f0e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x402f1c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x402f0e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x402f1c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x402f0e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x402f1c
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x402f1c
test esi, esi
mov eax, 1
jg 0x402f1e
or eax, 0xffffffff
jmp 0x402f1e
xor eax, eax
test eax, eax
jne 0x402f26
mov word [ebp], ax
add ebp, 0x118
cmp ebp, 0x424d00
jl 0x402e43
mov edi, dword [esp + 0x444]
mov ebp, dword [esp + 0x10]
mov esi, 0x424788
cmp word [esi], 0
je 0x402f65
mov eax, dword [esi + 0x100]
push edi
push ebp
mov ecx, esi
mov dword [0x42477c], eax
call fcn.0040a520
add esp, 8
add esi, 0x118
cmp esi, 0x424d00
jl 0x402f48
push 0x4253c8
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.0040aca1
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402fa2
mov dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040ac62
add esp, 0x434
ret
Function at 0x403080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebx, 1
push esi
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call fcn.0040ad28
sub esi, dword [esp + 0x80]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
fmul qword [0x41ffb0]
fild dword [esp + 0x10]
fmulp st(1)
fiadd dword [esp + 0x80]
call fcn.00417860
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4031c0
jmp 0x403150
call fcn.0040ad28
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
fmul qword [0x41ffb0]
fmul qword [0x41ffc0]
fadd qword [0x41ffb8]
call fcn.00417860
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x4031a8
jmp 0x403190
add ecx, ebx
cmp ecx, 0x1a
jne 0x403199
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403190
add esi, dword [esp + ecx*4 + 0x14]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x403150
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret

Function at 0x4031d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x41dd94
mov edi, eax
push 0x83
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x403243
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebx
push edi
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.0040baf9
push esi
mov edi, eax
push 0
push edi
call fcn.0040f550
push esi
push ebp
push edi
call fcn.00410700
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4033d0
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], eax
xor eax, eax
mov edi, edx
xor ebx, ebx
push 0x288
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], 0xffffffff
mov word [esp + 0x30], bx
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
xor ebp, ebp
call fcn.0040b29f
add esp, 4
lea edx, [esp + 0x1c]
mov esi, eax
push edx
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x288
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40346c
push esi
call fcn.0040b870
mov eax, dword [esp + 0x20]
push eax
call fcn.0040b29f
add esp, 8
mov dword [esp + 0x18], eax
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x403552
cmp esi, ebx
mov eax, esi
mov dword [esp + 0x14], esi
je 0x403552
jmp 0x403498
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
add dword [esp + 0x10], 1
cmp edi, ebx
je 0x4034b4
mov edx, dword [eax + 0x194]
mov dword [edi], edx
mov cx, word [eax + 0x198]
mov word [edi + 4], cx
lea edi, [eax + 0x1ac]
cmp edi, ebx
je 0x403540
lea esi, [edi + 4]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4034d0
sub eax, edx
mov ecx, eax
cmp ecx, 0x10
jle 0x4034e7
mov ecx, 0x10
xor eax, eax
cmp ecx, ebx
jl 0x403507
cmp eax, ecx
jne 0x4034f6
mov word [esp + eax*2 + 0x2c], bx
movsx dx, byte [esi + eax]
mov word [esp + eax*2 + 0x2c], dx
add eax, 1
cmp eax, ecx
jle 0x4034ef
lea eax, [esp + 0x2c]
push eax
call fcn.00403620
add esp, 4
test eax, eax
je 0x40352f
mov edx, dword [esp + 0x28]
mov eax, dword [edx + ebp*4]
lea ecx, [esp + 0x2c]
push ecx
push 0x10
push eax
call fcn.0040ad4a
add esp, 0xc
mov edi, dword [edi]
add ebp, 1
cmp edi, ebx
jne 0x4034c2
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebp, ebx
jg 0x403552
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x403490
cmp esi, ebx
mov ecx, dword [esp + 0x24]
mov dword [ecx], ebp
je 0x403565
push esi
call fcn.0040b870
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ac62
add esp, 0x40
ret
Function at 0x403820
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040f550
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4038f9
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4038c5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40389e
cmp word [esp + 0x118], 4
jb 0x4038f9
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac62
add esp, 0x120
ret
cmp eax, 2
jae 0x4038a8
cmp eax, 1
jne 0x4038f9
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac62
add esp, 0x120
ret
cmp eax, 6
jne 0x4038f9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4038ef
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac62
add esp, 0x120
ret
cmp eax, 1
jne 0x4038f9
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040ac62
add esp, 0x120
ret

Function at 0x403920
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403954
or eax, eax
or edx, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
cmp eax, 1
jne 0x40396d
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x403ab0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.0040f550
add esp, 0xc
cmp dword [0x4230b0], 3
jne 0x403b11
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x41dc40
lea edx, [esp + 4]
push 0x104
push edx
call fcn.0040aca1
add esp, 0xc
jmp 0x403b20
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
lea ecx, [esp + 4]
push ecx
push 0x41dc44
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040ac62
add esp, 0x20c
ret
Function at 0x403be0
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 [0x422044]
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 0x41ddfc
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040c309
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.0040befb
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.0040c2c0
add esp, 0x14
test eax, eax
je 0x403c6b
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 0x403d6e
mov eax, 0x423660
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403ca0
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403cc0
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403cd4
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040baf9
push edi
mov esi, eax
push 0
push esi
call fcn.0040f550
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x423660
push edi
push esi
call fcn.0040c2ed
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403d25
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 0x41de08
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x403d6c
push esi
call fcn.0040b8fe
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040ac62
add esp, 0x314
ret

Function at 0x403d90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
cmp esi, 0xffffffff
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
je 0x403de1
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 0x403fb0
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 0x4040ce
push 0xc00
call fcn.0040baf9
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4040c1
mov eax, dword [esi + 0x3c]
test eax, eax
mov ecx, dword [esi + 0x38]
jl 0x404029
jg 0x40401d
test ecx, ecx
jbe 0x404029
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x40402d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x404057
jg 0x404043
cmp ecx, edx
jbe 0x404057
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x404081
jg 0x40406d
cmp ecx, edx
jbe 0x404081
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x4040ab
jg 0x404097
cmp ecx, edx
jbe 0x4040ab
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
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.00417730
mov dword [esp + 0x10], eax
test esi, esi
je 0x4040ce
push esi
call fcn.0040b8fe
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 0x404110
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, 0xffffffff
push edi
mov dword [esp + 0x14], ebp
je 0x404332
push 0x400
call fcn.0040baf9
add esp, 4
push 0x400
mov ebx, eax
push ebp
push ebx
mov dword [esp + 0x24], ebx
call fcn.0040f550
add esp, 0xc
push esi
call fcn.00403fb0
add esp, 4
push ebx
push eax
call fcn.00403d90
add esp, 8
test eax, eax
je 0x404325
lea edi, [ebx + 4]
mov eax, 4
mov ecx, 0x41de4c
mov edx, edi
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x40418c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404174
test eax, eax
je 0x4041f5
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x4041db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4041f1
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x4041db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4041f1
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x4041db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4041f1
movzx eax, byte [ecx]
movzx ebx, byte [edx]
sub ebx, eax
je 0x4041f1
mov ebp, dword [esp + 0x14]
test ebx, ebx
mov ebx, dword [esp + 0x18]
mov eax, 1
jg 0x4041fb
or eax, 0xffffffff
jmp 0x4041fb
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor eax, eax
test eax, eax
jne 0x404225
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
jmp 0x404210
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404210
sub eax, edx
sar eax, 1
jne 0x404311
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x400
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x3c00
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x404325
mov eax, 4
mov ecx, 0x41de4c
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x40428e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404276
test eax, eax
je 0x4042eb
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4042dd
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4042eb
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4042dd
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4042eb
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4042dd
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4042eb
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x4042eb
test esi, esi
mov eax, 1
jg 0x4042ed
or eax, 0xffffffff
jmp 0x4042ed
xor eax, eax
test eax, eax
jne 0x404325
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404300
sub eax, edx
sar eax, 1
je 0x404325
mov edi, dword [esp + 0x34]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebp, 1
test ebx, ebx
je 0x404332
push ebx
call fcn.0040b8fe
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret