joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3001532d
Capabilities:
Copy file

Disassembly:
push 0x320
mov eax, 0x30066c89
call fcn.3005730d
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.30014b23
push 1
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x30015392
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
lea ecx, [ebp - 0x124]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp - 0x120], eax
push 0x30072b9c
lea eax, [ebp - 0x120]
push eax
call fcn.300566f2
push esi
lea ecx, [ebp - 0x228]
call fcn.30014c02
mov eax, dword [eax]
and dword [ebp - 4], 0
push 4
push 0
push eax
call dword [0x30082570]
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x224]
inc bl
cmp dword [ebp - 0x228], eax
je 0x300153d5
push dword [ebp - 0x228]
call fcn.30056a8c
pop ecx
test bl, bl
je 0x300153f2
mov al, byte [ebp - 0x119]
mov byte [ebp - 0x11a], al
push 0x30072fa4
lea eax, [ebp - 0x11a]
jmp 0x3001538c
push esi
lea ecx, [ebp - 0x32c]
call fcn.30014c02
mov esi, eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 1
call fcn.30014c02
mov esi, dword [esi]
mov eax, dword [eax]
push 4
push esi
push eax
mov byte [ebp - 4], 2
call dword [0x30082570]
mov ebx, eax
neg ebx
sbb bl, bl
lea eax, [ebp - 0x224]
inc bl
cmp dword [ebp - 0x228], eax
je 0x3001544d
push dword [ebp - 0x228]
call fcn.30056a8c
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x328]
cmp dword [ebp - 0x32c], eax
je 0x3001546b
push dword [ebp - 0x32c]
call fcn.30056a8c
pop ecx
test bl, bl
je 0x3001548b
mov al, byte [ebp - 0x119]
mov byte [ebp - 0x119], al
push 0x30072fa4
lea eax, [ebp - 0x119]
jmp 0x3001538c
call fcn.30057390
ret 8

Function at 0x3001aa3a
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x90
mov eax, 0x30067867
call fcn.300572a4
xor esi, esi
mov dword [ebp - 0x18], esi
push dword [ebp + 8]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], esi
call fcn.30011e07
mov eax, dword [eax]
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x3001aa90
push dword [ebp - 0x9c]
call fcn.30056a8c
pop ecx
cmp edi, 0xffffffff
jne 0x3001aab7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x14]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x30072b9c
lea eax, [ebp + 8]
push eax
call fcn.300566f2
push esi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 2]
push eax
call fcn.3005682b
mov dword [ebp + 8], eax
lea eax, [ebx + 2]
push eax
push esi
push dword [ebp + 8]
call fcn.3005768b
add esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3001aa95
cmp edi, esi
je 0x3001ab02
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
call fcn.3005737c
ret 4
Function at 0x3001c0ce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
xor ecx, ecx
cmp dword [ebx], ecx
push esi
push edi
mov dword [ebp - 4], ecx
jne 0x3001c0fb
lea ecx, [ebp + 0x13]
call fcn.3001c01a
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x30074104
lea eax, [ebp + 0xf]
push eax
call fcn.300566f2
mov eax, dword [ebp + 0x10]
sub eax, ecx
je 0x3001c147
dec eax
je 0x3001c130
dec eax
je 0x3001c11c
lea ecx, [ebp + 0x13]
call fcn.300145f6
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x3007320c
jmp 0x3001c0f2
mov esi, dword [ebp + 0xc]
push 2
mov eax, esi
pop edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x3001c127
jmp 0x3001c142
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, esi
inc edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x3001c13b
sub eax, ecx
inc eax
jmp 0x3001c15b
push dword [ebp + 0xc]
call fcn.30057ad7
pop ecx
push 4
mov dword [ebp - 4], eax
pop eax
lea esi, [ebp - 4]
mov edi, eax
push eax
push esi
push edi
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
pop esi
pop ebx
je 0x3001c18d
push eax
lea ecx, [ebp + 0x10]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x30072b9c
lea eax, [ebp + 0xc]
jmp 0x3001c0f5
leave
ret 0xc
Function at 0x3001cfce
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x3001d2f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x3001d324
lea ecx, [ebp - 1]
call fcn.3001c040
mov al, byte [eax]
mov byte [ebp + 0xb], al
push 0x300741d4
lea eax, [ebp + 0xb]
push eax
call fcn.300566f2
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x3001d354
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x30072b9c
lea eax, [ebp + 8]
jmp 0x3001d31e
mov al, byte [ebp + 8]
mov byte [esi + 0x10], al
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x3001d28e
push edi
push edi
mov dword [ebp - 8], edi
call fcn.30057cd2
add esp, 0x18
push 0xffffffffffffffff
push dword [esi + 0xc]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
pop edi
pop esi
leave
ret 4

Function at 0x30021fe3
Capabilities:
Get common file path

Disassembly:
push 0x250
mov eax, 0x3006863e
call fcn.30057343
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], edi
mov byte [ebp - 0x118], bl
call fcn.3005768b
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x30022063
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x158]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp - 0x154], eax
push 0x30072b9c
lea eax, [ebp - 0x154]
push eax
call fcn.300566f2
push 0x30007180
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.3001fdb5
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.3001fdb5
mov esi, 0x30082330
push 0x3000714c
mov ecx, esi
call fcn.30024d1c
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.30024d1c
push 0x30002284
mov ecx, esi
call fcn.30024d1c
push 0x300021e4
mov ecx, esi
call fcn.30024d1c
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.300254f0
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 1
jae 0x300220e8
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x25c]
call fcn.30014c02
push dword [eax]
mov ecx, dword [ebp - 0x148]
push edi
mov byte [ebp - 4], 2
call fcn.30021b7e
lea eax, [ebp - 0x258]
cmp dword [ebp - 0x25c], eax
je 0x30022120
push dword [ebp - 0x25c]
call fcn.30056a8c
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.30011e2a
call fcn.3005739c
ret 8
Function at 0x300221a4
Capabilities:
Check os version
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x30083fbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xb8]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0xb9], 1
call fcn.3005768b
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x3002223b
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x94
call esi
test eax, eax
jne 0x30022234
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc4]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
push 0x30072b9c
lea eax, [ebp - 0xc0]
push eax
call fcn.300566f2
mov byte [ebp - 0xb9], 0
mov eax, dword [ebp - 0xb4]
imul eax, eax, 0x64
add eax, dword [ebp - 0xb0]
mov esi, 0x30002998
push eax
push esi
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.3001365d
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x300072ec
mov ecx, edi
call fcn.30021b7e
mov eax, dword [ebp - 0xa8]
dec eax
mov ecx, edi
je 0x3002228b
dec eax
je 0x30022284
push 0x300072dc
jmp 0x30022290
push 0x300072d0
jmp 0x30022290
push 0x300072c4
push 0x300072a0
call fcn.30021b7e
cmp byte [ebp - 0xb9], 0
je 0x300222c6
movzx eax, word [ebp - 0x24]
movzx ecx, word [ebp - 0x22]
imul eax, eax, 0x64
add eax, ecx
push eax
push esi
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.3001365d
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
jmp 0x300222cb
push 0x30006e5c
push 0x30007280
mov ecx, edi
call fcn.30021b7e
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
push esi
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.3001365d
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x30007258
mov ecx, edi
call fcn.30021b7e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push esi
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.3001365d
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x30007234
mov ecx, edi
call fcn.30021b7e
call dword [0x300825a0]
test al, al
mov eax, 0x30002590
jne 0x3002233d
mov eax, 0x300033ec
push eax
push 0x30007210
mov ecx, edi
call fcn.30021b7e
call dword [0x300825a8]
test eax, eax
je 0x3002237a
cmp eax, 6
je 0x30022373
cmp eax, 9
je 0x3002236c
cmp eax, 0xffff
jne 0x3002238b
push 0x300072dc
jmp 0x3002237f
push 0x30007208
jmp 0x3002237f
push 0x300071fc
jmp 0x3002237f
push 0x300071f4
push 0x300071c8
mov ecx, edi
call fcn.30021b7e
push 0x300071c0
push 0x300071a8
mov ecx, edi
call fcn.30021fe3
push 0x300031dc
push 0x30007184
mov ecx, edi
call fcn.30021fe3
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.30057296
leave
ret
Function at 0x30022cfd
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x30022d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 8]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x30072b9c
lea eax, [ebp + 8]
push eax
call fcn.300566f2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x30022d28
lea eax, [esi + 1]
push eax
call fcn.3005682b
cmp eax, ebx
pop ecx
mov dword [edi], eax
jne 0x30022d79
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push 0x30075334
lea eax, [ebp + 0xb]
jmp 0x30022d44
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x30022d28
mov eax, dword [edi]
push dword [ebp + 8]
mov byte [esi + eax], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x30024dfc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x30083fbc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push eax
mov esi, 0x103
xor ebx, ebx
push esi
mov edi, ecx
mov dword [ebp - 0x10c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x30024e5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x110]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x30072b9c
lea eax, [ebp - 0x10c]
push eax
call fcn.300566f2
inc dword [ebp - 0x10c]
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
push 0x300086a8
push esi
push edi
call fcn.30014557
add esp, 0x14
test eax, eax
jl 0x30024ea8
push ebx
push ebx
push 1
push ebx
push ebx
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x30024eb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x30024e5e
jmp 0x30024ec7
push 0x30008668
mov ecx, 0x30082330
call fcn.30024d1c
jmp 0x30024ec7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.30024d55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30057296
leave
ret
Function at 0x300254f0
Capabilities:
Get file version info

Disassembly:
push 0xa8
mov eax, 0x30068bd5
call fcn.3005730d
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edi
call fcn.30016eac
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x4c]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x50], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, edi
mov dword [ebp - 0x40], eax
jne 0x30025556
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
push 0x30072b9c
lea eax, [ebp - 0x44]
push eax
call fcn.300566f2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebp - 0x44], eax
jne 0x3002557d
lea ecx, [ebp - 0x45]
call fcn.30013542
mov al, byte [eax]
mov byte [ebp - 0x39], al
push 0x30072d1c
lea eax, [ebp - 0x39]
jmp 0x30025550
push eax
push dword [ebp - 0x40]
push edi
push dword [ebp - 0x4c]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x30007180
push dword [ebp - 0x44]
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x54]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
movzx ecx, word [eax + 8]
mov dword [esi + 4], ecx
movzx ecx, word [eax + 0xe]
mov dword [esi + 8], ecx
movzx eax, word [eax + 0xc]
push edi
lea ecx, [ebp - 0x38]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x20], 0xf
call fcn.30011d16
push dword [esi]
mov dword [ebp - 4], ebx
mov ebx, 0x30002624
push ebx
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.30013606
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x70]
call fcn.30012a59
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.30013aa0
push edi
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.30011e2a
push dword [esi + 4]
lea eax, [ebp - 0x1c]
push ebx
push 0xb
push eax
call fcn.30013606
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xb4]
call fcn.30012a59
mov dword [ebp - 0x40], eax
push 0x300087d4
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.30012a59
push dword [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.300253ea
add esp, 0xc
push 0xffffffffffffffff
push edi
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x38]
call fcn.30013aa0
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.30011e2a
push edi
push 1
lea ecx, [ebp - 0x98]
call fcn.30011e2a
push edi
push 1
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.30011e2a
push dword [esi + 8]
lea eax, [ebp - 0x1c]
push ebx
push 0xb
push eax
call fcn.30013606
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x70]
call fcn.30012a59
mov dword [ebp - 0x40], eax
push 0x300087d4
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
call fcn.30012a59
push dword [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
invalid
invalid
dec esp
invalid
Function at 0x30028be2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x30083fbc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
mov dword [ebp - 0x10c], eax
call esi
test eax, eax
jne 0x30028cab
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x30028ca9
cmp eax, 3
je 0x30028c53
push eax
lea ecx, [ebp - 0x110]
call fcn.300136b6
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x30072b9c
lea eax, [ebp - 0x10c]
push eax
call fcn.300566f2
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.30014752
test eax, eax
jge 0x30028c72
push 0x7b
jmp 0x30028c2f
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.30057ae8
test eax, eax
pop ecx
pop ecx
je 0x30028c6e
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.30028be2
push 0
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x30028ca9
call edi
cmp eax, ebx
jne 0x30028c2e
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30057296
leave
ret 4

Function at 0x3002cde7
Capabilities:
Write file on windows

Disassembly:
push 0x10c
mov eax, 0x30069a7b
call fcn.3005730d
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc0], eax
call fcn.3002cce5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
push dword [0x300828ec]
lea ecx, [ebp - 0x118]
mov esi, eax
call fcn.3002e043
mov eax, dword [esi]
push 1
push 1
xor edi, edi
push edi
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, esi
mov dword [ebp - 4], edi
call dword [eax + 0x24]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.30018ef6
lea ecx, [ebp - 0xb8]
call fcn.3002dd6c
test al, al
je 0x3002ce6a
cmp dword [ebp - 0xc0], edi
je 0x3002cf08
lea eax, [ebp - 0xb9]
push eax
lea ecx, [ebp - 0x64]
call fcn.3002de30
push ebx
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.30037d1b
lea ecx, [ebp - 0xb8]
call fcn.3002dd6c
test al, al
jne 0x3002ceed
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
lea ecx, [ebp - 0xb8]
call fcn.3002ddc2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x3002ceed
push edi
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xc4], edi
call fcn.3003d804
push eax
lea ecx, [ebp - 0x64]
call fcn.3002ddc2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc0]
cmp ecx, edi
je 0x3002cf00
lea eax, [ebp - 0x64]
push eax
call fcn.3002e1c2
lea ecx, [ebp - 0x64]
call fcn.30018ef6
lea ecx, [ebp - 0xb8]
call fcn.30018ef6
call fcn.30057390
ret 8
Function at 0x3003fc66
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 4
mov eax, 0x3006d481
call fcn.300572a4
mov ecx, dword [ebp + 8]
call fcn.3003d804
test eax, eax
jne 0x3003fc85
xor al, al
jmp 0x3003fd2e
mov ecx, dword [ebp + 8]
call fcn.3003d804
cmp eax, 0x104
jbe 0x3003fccc
push 0x5c
call fcn.3005682b
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x3003fcb5
push 0x80004005
call fcn.3002e62a
jmp 0x3003fcb7
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
push 0x30075f08
lea eax, [ebp + 8]
push eax
call fcn.300566f2
mov ecx, dword [ebp + 8]
call fcn.3002ddc2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x3003fd27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x3003fc7e
cmp eax, 3
je 0x3003fc7e
push 0x5c
call fcn.3005682b
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
mov dword [ebp - 4], 1
je 0x3003fd14
push 0x80004005
call fcn.3002e62a
jmp 0x3003fd16
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x30075f08
lea eax, [ebp - 0x10]
jmp 0x3003fcc6
shr eax, 4
not al
and al, 1
call fcn.3005737c
ret 4

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

Disassembly:
push 4
mov eax, 0x3006d4b0
call fcn.300572a4
mov ecx, dword [ebp + 8]
call fcn.3003d804
test eax, eax
jne 0x3003fd55
xor al, al
jmp 0x3003fdf7
mov ecx, dword [ebp + 8]
call fcn.3003d804
cmp eax, 0x104
jbe 0x3003fd9c
push 0x5c
call fcn.3005682b
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x3003fd85
push 0x80004005
call fcn.3002e62a
jmp 0x3003fd87
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
push 0x30075f08
lea eax, [ebp + 8]
push eax
call fcn.300566f2
mov ecx, dword [ebp + 8]
call fcn.3002ddc2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x3003fdf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x3003fd4e
push 0x5c
call fcn.3005682b
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
mov dword [ebp - 4], 1
je 0x3003fddf
push 0x80004005
call fcn.3002e62a
jmp 0x3003fde1
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x30075f08
lea eax, [ebp - 0x10]
jmp 0x3003fd96
shr eax, 4
and al, 1
call fcn.3005737c
ret 4
Function at 0x3003ff81
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x114
mov eax, 0x3006d516
call fcn.3005730d
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
test byte [0x30085e0c], bl
mov dword [ebp - 0x120], eax
mov edi, 0x30085db8
jne 0x3003ffce
or dword [0x30085e0c], ebx
and dword [ebp - 4], 0
push 0x3000a790
mov ecx, edi
call fcn.3002e043
push 0x3007220c
call fcn.300574c0
or dword [ebp - 4], 0xffffffff
pop ecx
test byte [0x30085e0c], 2
mov esi, 0x30085d60
jne 0x30040001
or dword [0x30085e0c], 2
push 0x3000a780
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.3002e043
push 0x30072202
call fcn.300574c0
or dword [ebp - 4], 0xffffffff
pop ecx
lea eax, [ebp - 0x118]
push eax
push ebx
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.3002ddc2
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3004007b
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
mov ecx, esi
mov dword [ebp - 0x11c], 0x104
call fcn.3002ddc2
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 0x118]
je 0x30040063
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3004007b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x114]
push eax
call fcn.3002dfc5
call fcn.30057390
ret 4
Function at 0x3004040d
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x1bc
mov eax, 0x3006d620
call fcn.3005730d
test byte [0x30085e64], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov esi, 0x30085e10
jne 0x3004045b
or dword [0x30085e64], 1
and dword [ebp - 4], 0
lea eax, [ebp - 0x11d]
push eax
mov ecx, esi
call fcn.3002de30
push 0x30072216
call fcn.300574c0
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.3002dd6c
test al, al
je 0x300405bc
lea eax, [ebp - 0x114]
push eax
mov edi, 0x104
push edi
mov byte [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x300405a2
cmp eax, edi
ja 0x300405a2
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
call fcn.3002dfc5
push esi
call fcn.3003fd36
test al, al
jne 0x300404f0
push 0x5c
call fcn.3005682b
pop ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x300404d3
push 0x80004005
mov ecx, eax
call fcn.3002e62a
jmp 0x300404d5
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x11c], eax
push 0x30075f08
lea eax, [ebp - 0x11c]
push eax
call fcn.300566f2
push 0x3000a7bc
lea ecx, [ebp - 0x174]
call fcn.3002e043
lea eax, [ebp - 0x174]
push eax
push esi
lea eax, [ebp - 0x1c8]
push eax
mov dword [ebp - 4], 3
call fcn.300402ec
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.3002e1c2
lea ecx, [ebp - 0x1c8]
call fcn.30018ef6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x174]
call fcn.30018ef6
push esi
call fcn.3003fd36
test al, al
jne 0x300405bc
push 0
mov ecx, esi
call fcn.3002ddc2
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x300405bc
push 0x5c
call fcn.3005682b
pop ecx
mov dword [ebp - 0x11c], eax
test eax, eax
mov dword [ebp - 4], 5
je 0x30040586
push 0x80004005
mov ecx, eax
call fcn.3002e62a
jmp 0x30040588
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x118], eax
push 0x30075f08
lea eax, [ebp - 0x118]
jmp 0x300404ea
push 0x5c
call fcn.3005682b
pop ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 1
jmp 0x300404c1
mov ecx, dword [ebp - 0x118]
push esi
call fcn.3002e1c2
call fcn.30057390
ret 4