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

Disassembly:
push 0xffffffffffffffff
push 0x47f6a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00426ed0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x4293e9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00424270
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00424260
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00428a40
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4825a4]
push 0
lea ecx, [esp + 0x4c]
call fcn.00478e1f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0043f570
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.004268f0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x482110]
mov ecx, ebx
call fcn.004241e0
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x4294b4
push edi
mov ecx, esi
call fcn.00426a00
push eax
push ebp
mov ecx, esi
call fcn.00426bc0
cmp eax, dword [esp + 0x40]
jg 0x4294b0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x42948e
mov eax, ebx
jmp 0x4294ba
cmp edi, ebx
jl 0x4294b8
mov eax, ebx
jmp 0x4294ba
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x4294cb
mov dword [esp + 0x30], eax
jmp 0x4294d6
cmp edi, ebx
jl 0x4294d1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.004241a0
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x42951d
push edi
mov ecx, esi
call fcn.00426920
push eax
push ebx
mov ecx, esi
call fcn.00426cf0
cmp eax, dword [esp + 0x44]
jg 0x429515
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x4294ef
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x429527
cmp edi, ebp
jl 0x429521
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x429527
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x429530
mov ecx, eax
jmp 0x429539
cmp edi, ebp
jl 0x429536
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00426910
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00478e91
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x43fc10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4825a4]
push 0
lea ecx, [esp + 0x20]
call fcn.00478e1f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f570
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00478d4d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00475610
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00475610
push 1
push 0
push 0
mov ecx, esi
call fcn.004755b8
push 1
push 0
push 1
mov ecx, esi
call fcn.004755b8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478e91
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43fd90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00478e1f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f570
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00478d4d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4825a4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43fe54
cmp dword [esp + 0x40], 1
jne 0x43fe52
cmp ecx, eax
jge 0x43fe54
mov eax, ecx
cmp eax, 0xc8
jge 0x43fe60
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043fc10
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4825a0]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478e91
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440650
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480513
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00473a28
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4883a8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x4882f0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4820dc]
push eax
mov ecx, edi
call fcn.004790c7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047a5e3
test eax, eax
je 0x44076c
mov ecx, dword [esp + 0x3c]
call fcn.004790f4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x48241c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x440730
push edi
mov ecx, esi
call fcn.0047675e
mov ecx, esi
call fcn.00440910
cmp dword [esp + 0x38], 1
jne 0x440765
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00476899
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x30001a80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
call fcn.30001c6d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x11c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x11c], 0
jne 0x30001abe
xor eax, eax
jmp 0x30001c67
push str.fpOnStartDocA
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x120], 0
je 0x30001af1
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
push str.fpOnStartDocW
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x124], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x124], 0
je 0x30001b24
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push str.fpOnEndDocA
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x128], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x128], 0
je 0x30001b57
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push str.fpOnEndDocW
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x12c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x12c], 0
je 0x30001b8a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push str.fpPrePrintA
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x130], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x130], 0
je 0x30001bbd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push str.fpPrePrintW
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x134], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x134], 0
je 0x30001bf0
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push str.fpOnPrintA
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x138], 0
je 0x30001c23
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push str.fpOnPrintW
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x13c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x13c], 0
je 0x30001c56
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x30001c64
mov ecx, dword [ebp - 8]
call fcn.30001c6d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x30002851
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
cmp dword [ebp + 0xc], 0
jne 0x3000288c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
jmp 0x300028ac
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WINSPOOL.DRV_GetPrinterDataA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x300028b6
xor eax, eax
jmp 0x300028da
mov edx, dword [ebp + 0x18]
mov ax, word [ebp - 0xc]
mov word [edx], ax
cmp dword [ebp + 8], 0
je 0x300028d5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
or edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x300028de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jne 0x30002918
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
jmp 0x30002938
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.WINSPOOL.DRV_GetPrinterDataA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x30002942
xor eax, eax
jmp 0x3000295c
cmp dword [ebp + 8], 0
je 0x30002957
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
or ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x30002960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
cmp dword [ebp + 0xc], 0
jne 0x3000299b
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
jmp 0x300029bb
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WINSPOOL.DRV_GetPrinterDataA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x300029c5
xor eax, eax
jmp 0x300029ef
mov edx, dword [ebp + 0x18]
mov ax, word [ebp - 0xc]
mov word [edx], ax
cmp dword [ebp + 8], 0
je 0x300029ea
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xbe]
or edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [eax + 0xbe], edx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x30002f41
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push eax
call fcn.30019760
add esp, 4
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x30002f79
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x30002f90
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WINSPOOL.DRV_SetPrinterDataA
mov esp, ebp
pop ebp
ret
Function at 0x30004e7d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
call fcn.300291ac
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x30004eb0
xor eax, eax
jmp 0x30004f42
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x30004ed5
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
call fcn.3001a050
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x30004ef6
jmp 0x30004f40
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x30004f12
jmp 0x30004f3e
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.300291e8
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x30004f39
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
jmp 0x30004f42
jmp 0x30004f19
jmp 0x30004f19
mov esp, ebp
pop ebp
ret

Function at 0x30006fa4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0x104
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.30006ef3
add esp, 0xc
pop ebp
ret
Function at 0x3000740a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x30007424
mov eax, 1
jmp 0x30007448
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x30007438
mov eax, 1
jmp 0x30007448
mov ecx, dword [ebp + 8]
push ecx
push 0x13
call fcn.30006a18
add esp, 8
xor eax, eax
pop ebp
ret

Function at 0x300075c5
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push pe_nt_image_headers32
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
ret

Function at 0x30007616
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov byte [ebp - 0x104], 0
cmp dword [0x30041aa0], 0
je 0x3000765b
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x3003b3e8
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
jmp 0x300076d8
mov eax, dword [ebp + 8]
push eax
push str.TEMP
call fcn.30016a3b
add esp, 8
test eax, eax
je 0x300076a0
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x104]
push eax
call fcn.3000744a
add esp, 4
test eax, eax
jne 0x300076a0
mov byte [ebp - 0x104], 0
movsx ecx, byte [ebp - 0x104]
test ecx, ecx
jne 0x300076ba
lea edx, [ebp - 0x104]
push edx
call fcn.30008ef2
add esp, 4
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x3003b3f4
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esp, ebp
pop ebp
ret
Function at 0x30007e05
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x30007e44
call fcn.30006d2a
push eax
mov ecx, dword [ebp - 4]
call fcn.30007cd2
push eax
push 0x17
call fcn.30006a18
add esp, 0xc
xor eax, eax
jmp 0x30007e49
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x30007f68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x30007f7e
mov eax, 1
jmp 0x30007fbe
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x30007fb9
call fcn.30006d2a
push eax
mov ecx, dword [ebp - 8]
call fcn.30007cd2
push eax
push 0xd
call fcn.30006a18
add esp, 0xc
xor eax, eax
jmp 0x30007fbe
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x30007fc4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x30007fda
mov eax, 1
jmp 0x3000801a
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x30008015
call fcn.30006d2a
push eax
mov ecx, dword [ebp - 8]
call fcn.30007cd2
push eax
push 0x18
call fcn.30006a18
add esp, 0xc
xor eax, eax
jmp 0x3000801a
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x3000835b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x3000838c
jmp 0x300084e8
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x10]
jbe 0x30008399
jmp 0x300084e6
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jae 0x300083b2
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
jmp 0x300083b8
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x300083d0
mov dword [ebp - 0xc], 1
jmp 0x300084e4
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x300083ec
jmp 0x300084e2
cmp dword [ebp - 0x10], 0x7fff
jae 0x300083fd
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
jmp 0x30008404
mov dword [ebp - 0x28], 0x7fff
mov cx, word [ebp - 0x28]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
push edx
call fcn.300291ac
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x30008439
push str.could_not_allocate_file_copy_buffer
call fcn.30006aa5
add esp, 4
jmp 0x300084e0
cmp dword [ebp - 0x10], 0
je 0x300084be
mov eax, dword [ebp - 0x18]
and eax, 0xffff
cmp dword [ebp - 0x10], eax
jae 0x30008454
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
jmp 0x30008460
mov edx, dword [ebp - 0x18]
and edx, 0xffff
mov dword [ebp - 0x2c], edx
mov ax, word [ebp - 0x2c]
mov word [ebp - 0x14], ax
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
and edx, 0xffff
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x3000848c
jmp 0x300084de
mov edx, dword [ebp - 0x14]
and edx, 0xffff
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.30007f68
test eax, eax
jne 0x300084a8
jmp 0x300084dc
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
jmp 0x30008439
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.300291e8
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x300084ea
jmp 0x300084c5
jmp 0x300084c5
jmp 0x300084c5
jmp 0x300084c5
jmp 0x300084c5
jmp 0x300084c5
jmp 0x300084c5
mov esp, ebp
pop ebp
ret 0xc