joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009309c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10093215
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x10093215
mov eax, dword [0x10429018]
cmp dword [eax + 0x174], 0xffffffff
je 0x10093215
mov eax, dword [0x1042d044]
xor ebx, ebx
add eax, 0xffffff8f
xor eax, 0x8987fdfd
cmp dword [eax + edi], ebx
mov eax, dword [0x1042d00c]
setle cl
add eax, 0xffffff9d
xor eax, 0x8987fdef
mov byte [eax + edi], cl
mov eax, dword [0x1042d000]
add eax, 0xffffffa0
xor eax, 0x8987fdec
mov dword [eax + edi + 0xc], ebx
mov eax, dword [0x1042d004]
add eax, 0xffffff9f
xor eax, 0x8987fded
mov dword [eax + edi + 0xc], ebx
mov ecx, dword [0x1042d008]
lea eax, [ecx - 0x62]
xor eax, 0x8987fdee
mov edx, dword [eax + edi + 0xc]
mov dword [ebp + 8], edx
test edx, edx
je 0x1009317c
lea eax, [ecx - 0x62]
xor eax, 0x8987fdee
mov eax, dword [eax + edi]
mov dword [ebp - 4], eax
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x10093177
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1009316a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test al, al
je 0x10093167
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
and dword [eax + ebx*4], 0
mov ecx, dword [0x1042d008]
inc ebx
cmp ebx, edx
jb 0x10093135
lea eax, [ecx - 0x62]
xor eax, 0x8987fdee
lea esi, [edi + 8]
push 0
mov ecx, esi
and dword [eax + edi + 0xc], 0
mov eax, dword [esi]
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x14]
mov eax, dword [0x1042902c]
xor esi, esi
mov dword [ebp + 8], eax
mov ecx, dword [eax + 0x28]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x10093208
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov dword [ebp - 4], eax
mov ebx, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [eax + ecx], 0
jne 0x100931c9
xor edx, edx
test ecx, ecx
je 0x100931f2
movsx eax, byte [eax + edx]
xor eax, ebx
imul ebx, eax, 0x1000193
inc edx
mov eax, dword [ebp - 4]
cmp edx, ecx
jb 0x100931d6
cmp ebx, 0x79705c5e
je 0x100931fd
inc esi
cmp esi, dword [ebp - 8]
jae 0x10093208
mov eax, dword [ebp + 8]
jmp 0x100931b2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + esi*4]
jmp 0x1009320a
xor ecx, ecx
push 0
push edi
push 0
call dword [0x10429188]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10098f30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x24
mov eax, 0x100aba58
call fcn.100a845f
mov eax, dword [0x10429018]
mov edx, dword [eax + 0x174]
test edx, edx
mov esi, dword [eax + 0x4cb0]
mov edi, dword [eax + 0x4cb4]
setg byte [ebp - 0x14]
add esi, dword [eax + 0x4cac]
test edx, edx
jle 0x10098f76
mov ecx, dword [0x10428fbc]
push esi
push edi
push dword [ebp - 0x14]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0xc]
call eax
cmp byte [0x1042d1f4], 0
jne 0x10098fdb
push str.B8_________3B_F0_0F_4F_F0_89_5D_FC
lea ecx, [ebp - 0x30]
call fcn.1002d003
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
mov edx, 0x10428f64
lea ecx, [ebp - 0x18]
call fcn.1004b974
pop ecx
lea ecx, [ebp - 0x30]
mov edi, dword [eax]
inc edi
call fcn.1002d1e8
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0x14]
mov dword [edi], 0x3e
push eax
push dword [ebp - 0x14]
push 4
push edi
call esi
mov byte [0x1042d1f4], 1
call fcn.100a841d
ret
Function at 0x1009f219
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100cb040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1042d4d8]
push ebx
xor ebx, ebx
inc ebx
push esi
push edi
test bl, al
jne 0x1009f28b
or eax, ebx
mov dword [0x1042d4d8], eax
mov eax, dword [0x10428fa0]
mov edx, dword [eax + 0x30]
jmp 0x1009f27f
mov eax, dword [edx + 0xc]
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [eax + ecx], 0
jne 0x1009f253
xor esi, esi
test ecx, ecx
je 0x1009f27c
movsx eax, byte [eax + esi]
xor eax, edi
imul edi, eax, 0x1000193
inc esi
mov eax, dword [edx + 0xc]
cmp esi, ecx
jb 0x1009f260
cmp edi, 0x90f473ab
je 0x1009f283
mov edx, dword [edx + 4]
test edx, edx
jne 0x1009f249
mov dword [0x1042d4fc], edx
jmp 0x1009f291
mov edx, dword [0x1042d4fc]
cmp byte [0x100d32c0], 0
je 0x1009f2b9
mov ecx, dword [0x1042cf9c]
mov eax, dword [0x10312054]
add ecx, 0xffffffb9
xor ecx, 0x8987fdd3
cmp byte [ecx + eax], 0
jne 0x1009f2b9
push 3
pop ecx
jmp 0x1009f2bb
xor ecx, ecx
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 0x40]
mov eax, dword [0x100e3f64]
mov edx, eax
mov ecx, dword [0x100e3f68]
cmp eax, ecx
je 0x1009f2e0
cmp dword [edx], 2
je 0x1009f2e0
add edx, 8
cmp edx, ecx
jne 0x1009f2d4
cmp edx, ecx
je 0x1009f2fa
mov edx, eax
cmp eax, ecx
je 0x1009f2f6
cmp dword [edx], 0
je 0x1009f2f6
add edx, 8
cmp edx, ecx
jne 0x1009f2ea
cmp edx, ecx
jne 0x1009f306
xor bl, bl
jmp 0x1009f306
cmp dword [eax], 0
je 0x1009f30a
add eax, 8
cmp eax, ecx
jne 0x1009f2fe
cmp eax, ecx
je 0x1009f411
mov eax, dword [0x10429004]
vmovss xmm2, dword [eax + 0x10]
vcomiss xmm2, dword [0x1042ce1c]
ja 0x1009f411
vmovss xmm1, dword [0x1042ce20]
vxorps xmm0, xmm0, xmm0
vcomiss xmm0, xmm1
jae 0x1009f411
vsubss xmm0, xmm2, dword [0x1042ce18]
vdivss xmm1, xmm0, xmm1
vmovss xmm0, dword [0x100bf4ec]
vsubss xmm0, xmm0, xmm1
vmulss xmm0, xmm0, dword [0x100bf678]
vcvttss2si ecx, xmm0
mov byte [ebp - 5], cl
test bl, bl
je 0x1009f385
mov al, byte [0x1042ce24]
mov byte [ebp - 8], al
mov al, byte [0x1042ce25]
mov byte [ebp - 7], al
mov al, byte [0x1042ce26]
mov byte [ebp - 6], al
jmp 0x1009f38f
mov word [ebp - 8], 0xc8c8
mov byte [ebp - 6], 0xc8
mov eax, dword [0x10313f64]
mov esi, dword [ebp - 8]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push esi
mov dword [ebp - 0xc], ebx
lea eax, [ebx - 4]
mov dword [ebp - 0x10], eax
lea ecx, [ebx - 8]
mov eax, dword [0x10313f60]
cdq
sub eax, edx
mov dword [ebp - 0x14], ecx
sar eax, 1
lea edx, [ebx - 4]
push edx
mov edx, ecx
mov dword [ebp - 8], eax
lea edi, [eax - 4]
push edi
lea ecx, [eax - 8]
call fcn.1009b1b0
mov ecx, dword [ebp - 8]
add ebx, 4
mov edx, dword [ebp - 0xc]
push esi
push ebx
add edx, 8
lea ecx, [ecx - 8]
push edi
call fcn.1009b1b0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push esi
push ebx
lea edi, [eax + 4]
push edi
lea edx, [edx + 8]
lea ecx, [eax + 8]
call fcn.1009b1b0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
push esi
push dword [ebp - 0x10]
lea ecx, [ecx + 8]
push edi
call fcn.1009b1b0
add esp, 0x30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a7229
leave
ret
Function at 0x100a6c8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100a6cb5
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100a6cb8
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100a6c6a
pop esi
leave
ret 8
Function at 0x4021c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x41a798
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x422060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00401ba0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402214
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00401c60
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00401ba0
cmp dword [esp + 0x24], 8
jb 0x40225a
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b5a3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x402a90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x140
mov eax, dword [0x422060]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
push 0x12b
lea eax, [esp + 0x19]
push 0
push eax
mov dword [edi], vtable.core_log::log_device_file.0
mov byte [esp + 0x20], 0
call fcn.0040d560
mov edx, dword [0x42332c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x42332c
call eax
lea ecx, [esp + 4]
mov esi, eax
push ecx
add esi, 0x10
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x41d0d4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402af8
test al, 0x10
jne 0x402b05
push 0
push 0x41d0d4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx edx, word [esp + 0xa]
movzx eax, word [esp + 6]
movzx ecx, word [esp + 4]
push edx
push eax
push ecx
push 0x41d0e8
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push 0x12c
push edx
call fcn.0040c09e
push 0x41d108
lea eax, [esp + 0x34]
push eax
lea ecx, [edi + 4]
push ecx
call fcn.0040c544
lea eax, [esi - 0x10]
add esp, 0x28
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x402b60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x13c]
xor ecx, esp
mov eax, edi
call fcn.0040b949
add esp, 0x140
ret

Function at 0x402bc0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x402bfa
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
push 1
push ecx
call fcn.0040bf4a
mov edx, dword [esi + 4]
push edx
push 2
push 1
push 0x41d10c
call fcn.0040bf4a
mov eax, dword [esi + 4]
push eax
call fcn.0040c23b
add esp, 0x24
pop esi
ret 8
Function at 0x403010
Capabilities:
Read file via mapping

Disassembly:
push 0x41d180
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi], eax
je 0x40304a
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 4], eax
jne 0x40304d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
ret
mov dword [esi + 8], eax
mov eax, 1
ret

Function at 0x403130
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 8]
push eax
xor ebx, ebx
push 0x20119
push ebx
push 0x41d1dc
push 0x80000002
mov dword [esp + 0x1c], ebx
mov byte [0x423ff4], bl
mov byte [0x423ff5], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4031d8
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push 0x41d204
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], 4
call esi
test eax, eax
jne 0x4031a2
cmp dword [esp + 8], 1
jne 0x4031a2
mov byte [0x423ff4], 1
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push 0x41d224
push eax
call esi
test eax, eax
pop esi
jne 0x4031cd
cmp dword [esp + 4], 1
jne 0x4031cd
mov byte [0x423ff5], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0xc
ret

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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x403f14
cmp word [ebp], 0
je 0x403f14
cmp word [ebp + 2], 0x3a
push ebx
jne 0x403f0f
mov ebx, 0x5c
cmp word [ebp + 4], bx
jne 0x403f0f
mov eax, ebp
lea edx, [eax + 2]
jmp 0x403e30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403e30
sub eax, edx
sar eax, 1
push esi
push edi
mov edi, eax
xor ecx, ecx
lea eax, [edi + 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b59e
add esp, 4
mov esi, eax
lea eax, [edi + 1]
push eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call ebp
cmp word [esi + edi*2 - 2], bx
lea eax, [esi + edi*2]
je 0x403e83
push 2
push 0x41d2a8
push eax
call ebp
lea ecx, [esi + 6]
push ebx
push ecx
mov dword [esp + 0x1c], 1
call fcn.0040ce7b
mov edi, eax
add esp, 8
test edi, edi
je 0x403efd
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ebx, [ebx]
push esi
mov word [edi], 0
call ebp
cmp eax, 0xffffffff
je 0x403ec1
test al, 0x10
jne 0x403eca
push 0
push esi
call ebx
test eax, eax
je 0x403ef5
mov word [edi], 0x5c
push 0x5c
add edi, 2
push edi
call fcn.0040ce7b
mov edi, eax
add esp, 8
test edi, edi
jne 0x403eb0
push esi
call fcn.0040b9bc
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], 0
push esi
call fcn.0040b9bc
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
pop ebx
xor eax, eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404620
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41a9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x422060]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push edi
mov eax, dword [0x422060]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
mov edi, ecx
push esi
push edi
call ebp
mov ebx, eax
push ebx
push esi
push edi
push 0x41d350
push 0xc8
push 0x41d328
call fcn.004035b0
add esp, 0x18
test ebx, ebx
jne 0x40474e
lea ecx, [esp + 0x10]
call fcn.00404800
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
mov ebx, 8
cmp dword [esp + 0x28], ebx
jae 0x4046a3
lea eax, [esp + 0x14]
push 0
push eax
push edi
call ebp
cmp dword [esp + 0x28], ebx
mov edi, eax
mov eax, dword [esp + 0x14]
jae 0x4046b9
lea eax, [esp + 0x14]
push edi
push eax
push 0x41d3d8
push 0xc8
push 0x41d328
call fcn.004035b0
add esp, 0x14
test edi, edi
je 0x404737
cmp dword [esp + 0x28], ebx
mov eax, dword [esp + 0x14]
jae 0x4046e4
lea eax, [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x14]
jae 0x4046fe
lea ebx, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push esi
push ebx
call ebp
mov edi, eax
push edi
push esi
push ebx
push 0x41d2b0
push 0xc8
push 0x41d328
call fcn.004035b0
add esp, 0x18
test edi, edi
jne 0x404732
push 5
push esi
push ebx
call ebp
mov edi, eax
mov ebx, 8
cmp dword [esp + 0x28], ebx
jb 0x40474a
mov eax, dword [esp + 0x14]
push eax
call fcn.0040b5a3
add esp, 4
mov eax, edi
jmp 0x404750
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040b949
add esp, 0x2c
ret

Function at 0x404770
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
push edi
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 1
push 0x80000000
push eax
mov dword [esp + 0x28], ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4047f5
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4047ad
xor ebp, ebp
jmp 0x4047b2
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4047ee
mov edx, dword [esp + 0xc]
mov edi, 1
push edi
push 0
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
push eax
mov ecx, edx
push ecx
call fcn.00419a10
xor ecx, ecx
add eax, ebp
mov dword [esi], eax
mov eax, edi
pop edi
adc edx, ecx
pop ebp
mov dword [esi + 4], edx
pop ebx
pop ecx
ret
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x404800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x422060]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x21a]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x14], edi
mov word [esp + 0x220], di
call fcn.0040d560
add esp, 0xc
lea ecx, [esp + 0x214]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x206
lea edx, [esp + 0x12]
push edi
push edx
mov word [esp + 0x18], di
call fcn.0040d560
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push edi
push 0x41d3c8
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404895
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00405150
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b949
add esp, 0x418
ret

Function at 0x404dd0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41a6bb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x422060]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x422060]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor edi, edi
mov eax, 1
test byte [0x424020], al
mov dword [esp + 0xc], edi
jne 0x404e46
or dword [0x424020], eax
push 0x41abf0
mov dword [0x42401c], 7
mov dword [0x424018], edi
mov word [0x424008], di
call fcn.0040c3bb
add esp, 4
cmp dword [0x424018], edi
jne 0x404eec
push 0x206
lea eax, [esp + 0x32]
push edi
push eax
mov word [esp + 0x38], di
call fcn.0040d560
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404e81
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
mov esi, 0x424004
call fcn.00405150
mov edx, esi
lea ecx, [esp + 0x10]
call fcn.00404930
push 0xffffffffffffffff
push edi
mov ecx, esi
mov dword [esp + 0x248], edi
call fcn.00401ba0
mov dword [esp + 0x240], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x404edb
mov eax, dword [esp + 0x14]
push eax
call fcn.0040b5a3
add esp, 4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], di
push 0xffffffffffffffff
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], edi
push edi
mov eax, 0x424004
mov ecx, ebx
mov word [ebx + 4], di
call fcn.00401ba0
mov eax, ebx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0040b949
add esp, 0x238
ret
Function at 0x4055f0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get file attributes
Move file
Set file attributes
Write file on windows

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403de6
test al, 0x10
jne 0x403de6
mov eax, 1
ret
xor eax, eax
ret
push ebx
push ebp
push edi
mov edi, eax
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405620
push 0x41d4c8
push 0xc8
push 0x41d4b0
call fcn.004035b0
add esp, 0xc
xor eax, eax
pop edi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40561a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x405642
push 0x41d530
jmp 0x405608
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
je 0x405670
push 0x80
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405670
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x80
push esi
call edi
push 0x41d598
push esi
call fcn.0040d246
mov edi, eax
add esp, 8
test edi, edi
je 0x40561a
push edi
push ebx
push 1
push ebp
call fcn.0040bf4a
add esp, 0x10
cmp eax, ebx
je 0x4056c3
push 0x41d5a0
push 0xc8
push 0x41d4b0
call fcn.004035b0
add esp, 0xc
push edi
call fcn.0040cabf
add esp, 4
xor eax, eax
pop edi
pop ebp
pop ebx
ret
push edi
call fcn.0040cabf
add esp, 4
pop edi
pop ebp
mov eax, esi
pop ebx
jmp 0x403dd0
Function at 0x4067d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41a988
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebp
push esi
push edi
mov eax, dword [0x422060]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0040d560
mov edx, dword [0x42332c]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x42332c
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
push edx
push 0x41f280
lea edi, [esp + 0x1c]
mov dword [esp + 0x84], 0
call fcn.00405430
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
push 0x41f290
push 0xc8
push 0x41f2bc
call fcn.004035b0
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
mov word [esp + 0x7c], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
push esi
push 0x41f2d0
push 0xc8
push 0x41f2bc
call fcn.004035b0
add esp, 0x10
test esi, esi
jne 0x406909
lea eax, [edi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4068f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x6c
ret
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40691e
push eax
call ebp
test esi, esi
je 0x406925
push esi
call ebp
lea eax, [edi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406949
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x6c
ret