joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30013789
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.30057527
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], esi
add esp, 0xc
mov esi, 0x30082330
push 0x30002680
mov ecx, esi
mov dword [ebp - 0x3c], 0x100
mov dword [ebp - 0x34], 0x30002678
mov dword [ebp - 0x30], edi
call fcn.30024cf1
push edi
mov ecx, esi
call fcn.30024cf1
push 0x30002676
mov ecx, esi
call fcn.30024cf1
push 0x300021d4
mov ecx, esi
call fcn.30024cf1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
pop esi
jne 0x3001381d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x30072a3c
lea eax, [ebp + 8]
push eax
call fcn.3005658e
cmp dword [ebp - 8], 0
je 0x3001382c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 4

Function at 0x30014789
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x300147c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x30072a3c
lea eax, [ebp + 0xc]
push eax
call fcn.3005658e
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x300147f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
jmp 0x300147ac
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x3001481b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x300147e7
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x30014808
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
leave
ret 0xc
Function at 0x30014851
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push edi
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x30014899
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x30072a3c
lea eax, [ebp + 8]
push eax
call fcn.3005658e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x300148bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
jmp 0x3001487e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret 8

Function at 0x300149ac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x30083fbc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.30057527
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x104
push eax
call fcn.30014728
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x130], 3
mov word [ebp - 0x124], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
pop edi
je 0x30014a53
push 0x3e3
lea ecx, [ebp - 0x114]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0x110], eax
push 0x30072a3c
lea eax, [ebp - 0x110]
push eax
call fcn.3005658e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30057132
leave
ret 4

Function at 0x30014b9f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x50], 0
je 0x30014bd6
cmp dword [ecx + 0x54], 0x10
jb 0x30014bb4
mov ecx, dword [ecx + 0x40]
jmp 0x30014bb7
add ecx, 0x40
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x30014bd6
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
push 0x30072cdc
lea eax, [ebp - 1]
push eax
call fcn.3005658e
leave
ret
Function at 0x30014dc9
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x20
mov eax, 0x30066a51
call fcn.30057173
mov dword [ebp - 0x2c], ecx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push esi
push 0x8000000
push 3
push esi
push esi
push SysReAllocString
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x30014e28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0x30072a3c
lea eax, [ebp - 0x18]
push eax
call fcn.3005658e
push esi
push esi
push esi
push 2
push esi
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x30014e5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0x30072a3c
lea eax, [ebp - 0x20]
jmp 0x30014e22
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
mov dword [ebp + 8], edi
jne 0x30014e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
push 0x30072a3c
lea eax, [ebp - 0x24]
jmp 0x30014e22
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x30014ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
lea ecx, [ebp + 8]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
push 0x30072a3c
lea eax, [ebp - 0x28]
jmp 0x30014e22
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
push eax
push edi
mov byte [ebp - 4], 2
call fcn.30014789
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp ebx, esi
je 0x30014ef1
push ebx
call edi
call fcn.30057218
ret 8
Function at 0x30015303
Capabilities:
Copy file

Disassembly:
push 0x320
mov eax, 0x30066b29
call fcn.300571a9
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.30014af9
push 1
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x30015368
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
lea ecx, [ebp - 0x124]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0x120], eax
push 0x30072a3c
lea eax, [ebp - 0x120]
push eax
call fcn.3005658e
push esi
lea ecx, [ebp - 0x228]
call fcn.30014bd8
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 0x300153ab
push dword [ebp - 0x228]
call fcn.30056928
pop ecx
test bl, bl
je 0x300153c8
mov al, byte [ebp - 0x119]
mov byte [ebp - 0x11a], al
push 0x30072e44
lea eax, [ebp - 0x11a]
jmp 0x30015362
push esi
lea ecx, [ebp - 0x32c]
call fcn.30014bd8
mov esi, eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 1
call fcn.30014bd8
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 0x30015423
push dword [ebp - 0x228]
call fcn.30056928
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x328]
cmp dword [ebp - 0x32c], eax
je 0x30015441
push dword [ebp - 0x32c]
call fcn.30056928
pop ecx
test bl, bl
je 0x30015461
mov al, byte [ebp - 0x119]
mov byte [ebp - 0x119], al
push 0x30072e44
lea eax, [ebp - 0x119]
jmp 0x30015362
call fcn.3005722c
ret 8

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

Disassembly:
push 0x90
mov eax, 0x30067707
call fcn.30057140
xor esi, esi
mov dword [ebp - 0x18], esi
push dword [ebp + 8]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], esi
call fcn.30011df2
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 0x3001aa1c
push dword [ebp - 0x9c]
call fcn.30056928
pop ecx
cmp edi, 0xffffffff
jne 0x3001aa43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x14]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x30072a3c
lea eax, [ebp + 8]
push eax
call fcn.3005658e
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.300566c7
mov dword [ebp + 8], eax
lea eax, [ebx + 2]
push eax
push esi
push dword [ebp + 8]
call fcn.30057527
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 0x3001aa21
cmp edi, esi
je 0x3001aa8e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
call fcn.30057218
ret 4
Function at 0x3001c05a
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 0x3001c087
lea ecx, [ebp + 0x13]
call fcn.3001bfa6
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x30073fa4
lea eax, [ebp + 0xf]
push eax
call fcn.3005658e
mov eax, dword [ebp + 0x10]
sub eax, ecx
je 0x3001c0d3
dec eax
je 0x3001c0bc
dec eax
je 0x3001c0a8
lea ecx, [ebp + 0x13]
call fcn.300145e1
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x300730ac
jmp 0x3001c07e
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 0x3001c0b3
jmp 0x3001c0ce
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 0x3001c0c7
sub eax, ecx
inc eax
jmp 0x3001c0e7
push dword [ebp + 0xc]
call fcn.30057973
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 0x3001c119
push eax
lea ecx, [ebp + 0x10]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x30072a3c
lea eax, [ebp + 0xc]
jmp 0x3001c081
leave
ret 0xc
Function at 0x3001cf5a
Capabilities:
Hide graphical window

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

Function at 0x3001d235
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 0x3001d261
lea ecx, [ebp - 1]
call fcn.3001bfcc
mov al, byte [eax]
mov byte [ebp + 0xb], al
push 0x30074074
lea eax, [ebp + 0xb]
push eax
call fcn.3005658e
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x3001d291
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x30072a3c
lea eax, [ebp + 8]
jmp 0x3001d25b
mov al, byte [ebp + 8]
mov byte [esi + 0x10], al
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x3001d1cb
push edi
push edi
mov dword [ebp - 8], edi
call fcn.30057b6e
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 0x30021f98
Capabilities:
Get common file path

Disassembly:
push 0x250
mov eax, 0x300684de
call fcn.300571df
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.30057527
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 0x30022018
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x158]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0x154], eax
push 0x30072a3c
lea eax, [ebp - 0x154]
push eax
call fcn.3005658e
push 0x30007168
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.3001fd53
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.3001fd53
mov esi, 0x30082330
push 0x30007134
mov ecx, esi
call fcn.30024cf1
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.30024cf1
push 0x30002274
mov ecx, esi
call fcn.30024cf1
push 0x300021d4
mov ecx, esi
call fcn.30024cf1
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.300254c5
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 1
jae 0x3002209d
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x25c]
call fcn.30014bd8
push dword [eax]
mov ecx, dword [ebp - 0x148]
push edi
mov byte [ebp - 4], 2
call fcn.30021b33
lea eax, [ebp - 0x258]
cmp dword [ebp - 0x25c], eax
je 0x300220d5
push dword [ebp - 0x25c]
call fcn.30056928
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.30011e15
call fcn.30057238
ret 8
Function at 0x30022159
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.30057527
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 0x300221f0
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x94
call esi
test eax, eax
jne 0x300221e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc4]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
push 0x30072a3c
lea eax, [ebp - 0xc0]
push eax
call fcn.3005658e
mov byte [ebp - 0xb9], 0
mov eax, dword [ebp - 0xb4]
imul eax, eax, 0x64
add eax, dword [ebp - 0xb0]
mov esi, 0x30002988
push eax
push esi
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.30013648
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x300072d4
mov ecx, edi
call fcn.30021b33
mov eax, dword [ebp - 0xa8]
dec eax
mov ecx, edi
je 0x30022240
dec eax
je 0x30022239
push 0x300072c4
jmp 0x30022245
push 0x300072b8
jmp 0x30022245
push 0x300072ac
push 0x30007288
call fcn.30021b33
cmp byte [ebp - 0xb9], 0
je 0x3002227b
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.30013648
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
jmp 0x30022280
push 0x30006e44
push 0x30007268
mov ecx, edi
call fcn.30021b33
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
push esi
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.30013648
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x30007240
mov ecx, edi
call fcn.30021b33
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push esi
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.30013648
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x3000721c
mov ecx, edi
call fcn.30021b33
call dword [0x300825a0]
test al, al
mov eax, 0x30002580
jne 0x300222f2
mov eax, 0x300033dc
push eax
push 0x300071f8
mov ecx, edi
call fcn.30021b33
call dword [0x300825a8]
test eax, eax
je 0x3002232f
cmp eax, 6
je 0x30022328
cmp eax, 9
je 0x30022321
cmp eax, 0xffff
jne 0x30022340
push 0x300072c4
jmp 0x30022334
push 0x300071f0
jmp 0x30022334
push 0x300071e4
jmp 0x30022334
push 0x300071dc
push 0x300071b0
mov ecx, edi
call fcn.30021b33
push 0x300071a8
push 0x30007190
mov ecx, edi
call fcn.30021f98
push 0x300031cc
push 0x3000716c
mov ecx, edi
call fcn.30021f98
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.30057132
leave
ret
Function at 0x30022cb2
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 0x30022cff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 8]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x30072a3c
lea eax, [ebp + 8]
push eax
call fcn.3005658e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x30022cdd
lea eax, [esi + 1]
push eax
call fcn.300566c7
cmp eax, ebx
pop ecx
mov dword [edi], eax
jne 0x30022d2e
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push 0x300751d4
lea eax, [ebp + 0xb]
jmp 0x30022cf9
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 0x30022cdd
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 0x30024dd1
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 0x30024e33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x110]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x30072a3c
lea eax, [ebp - 0x10c]
push eax
call fcn.3005658e
inc dword [ebp - 0x10c]
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
push 0x30008690
push esi
push edi
call fcn.30014542
add esp, 0x14
test eax, eax
jl 0x30024e7d
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 0x30024e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x30024e33
jmp 0x30024e9c
push 0x30008650
mov ecx, 0x30082330
call fcn.30024cf1
jmp 0x30024e9c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.30024d2a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30057132
leave
ret
Function at 0x30028a78
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 0x30028b41
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x30028b3f
cmp eax, 3
je 0x30028ae9
push eax
lea ecx, [ebp - 0x110]
call fcn.300136a1
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x30072a3c
lea eax, [ebp - 0x10c]
push eax
call fcn.3005658e
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.30014728
test eax, eax
jge 0x30028b08
push 0x7b
jmp 0x30028ac5
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.30057984
test eax, eax
pop ecx
pop ecx
je 0x30028b04
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.30028a78
push 0
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x30028b3f
call edi
cmp eax, ebx
jne 0x30028ac4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30057132
leave
ret 4

Function at 0x3002ccac
Capabilities:
Write file on windows

Disassembly:
push 0x10c
mov eax, 0x3006991b
call fcn.300571a9
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc0], eax
call fcn.3002cbaa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
push dword [0x300828ec]
lea ecx, [ebp - 0x118]
mov esi, eax
call fcn.3002def4
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.30018ece
lea ecx, [ebp - 0xb8]
call fcn.3002dc56
test al, al
je 0x3002cd2f
cmp dword [ebp - 0xc0], edi
je 0x3002cdcd
lea eax, [ebp - 0xb9]
push eax
lea ecx, [ebp - 0x64]
call fcn.3002dd1a
push ebx
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.30037bce
lea ecx, [ebp - 0xb8]
call fcn.3002dc56
test al, al
jne 0x3002cdb2
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
lea ecx, [ebp - 0xb8]
call fcn.3002dcac
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x3002cdb2
push edi
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xc4], edi
call fcn.3003d5ba
push eax
lea ecx, [ebp - 0x64]
call fcn.3002dcac
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 0x3002cdc5
lea eax, [ebp - 0x64]
push eax
call fcn.3002e073
lea ecx, [ebp - 0x64]
call fcn.30018ece
lea ecx, [ebp - 0xb8]
call fcn.30018ece
call fcn.3005722c
ret 8