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

Disassembly:
push ecx
push esi
push 0
push 0
push 3
push 0
push 0
push 0x40000000
call fcn.004047a0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40402b
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [esp + 4]
xor eax, eax
cmp eax, edx
sbb eax, eax
neg eax
pop esi
pop ecx
ret 8

Function at 0x404260
Capabilities:
Copy file
Terminate process

Disassembly:
sub esp, 0xc
call fcn.00404200
test eax, eax
jne 0x40430f
lea eax, [esp + 8]
push eax
call fcn.00404f30
add esp, 4
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [esp + 8]
call fcn.00404880
lea ecx, [esp + 8]
call fcn.00404930
mov ecx, 0x408990
call fcn.004047a0
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00404ed0
add esp, 8
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [esp + 4]
call fcn.00404880
lea ecx, [esp + 8]
call fcn.00404930
push 0
lea ecx, [esp + 4]
call fcn.004047a0
push eax
lea ecx, [esp + 0xc]
call fcn.004047a0
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
lea ecx, [esp]
je 0x404301
call fcn.004047a0
push eax
call fcn.004052b0
add esp, 4
test eax, eax
jne 0x404315
lea ecx, [esp]
call fcn.00404930
lea ecx, [esp + 4]
call fcn.00404930
xor eax, eax
add esp, 0xc
ret
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x404d70
Capabilities:
Create thread
Delete file

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call edi
test eax, eax
je 0x404d8d
pop edi
mov eax, 1
pop esi
pop ecx
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x12c
call ebx
push esi
call edi
test eax, eax
je 0x404dac
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret
push 0x2bc
call ebx
push esi
call edi
test eax, eax
jne 0x404da2
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x404d20
push 0x2000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x404e40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
lea ecx, [esp + 4]
call fcn.004047b0
push 0x200
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
call fcn.00404b60
xor edx, edx
mov dl, byte [0x408640]
lea eax, [esp + 8]
push edx
push 0x4066cc
push eax
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [esp + 8]
call fcn.00404750
lea ecx, [esp + 8]
call fcn.00404930
mov esi, dword [esp + 0x210]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00404820
lea ecx, [esp + 4]
call fcn.00404930
mov eax, esi
pop esi
add esp, 0x208
ret
Function at 0x404f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004047b0
xor ecx, ecx
mov cl, byte [0x408640]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push 0x4066e8
push edx
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
lea ecx, [esp + 0x10]
setne bl
call fcn.00404930
test bl, bl
jne 0x405076
xor eax, eax
mov byte [esp + 0x20], bl
mov ecx, 0x7f
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push ecx
xor ecx, ecx
mov cl, byte [0x408640]
lea edx, [esp + 0x24]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
push 0
push ecx
lea edx, [esp + 0x24]
push 0x4066dc
push edx
mov dword [esp + 0x34], 0x200
mov dword [esp + 0x38], 1
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
call fcn.00404930
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.00404b60
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00404820
lea ecx, [esp + 0xc]
call fcn.00404930
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4051e0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x104
push esi
lea ecx, [esp + 4]
call fcn.004047b0
push 0xff
lea eax, [esp + 0xc]
push eax
push 0x1001
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.00404b60
mov esi, dword [esp + 0x10c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00404820
lea ecx, [esp + 4]
call fcn.00404930
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x4052b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov eax, 1
ret

Function at 0x4052e0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push ebx
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x4052f8
pop ebx
ret
push esi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x405311
pop esi
pop ebx
ret
push edi
mov edi, dword [esp + 0x14]
push 4
push esi
push edi
call fcn.00404390
mov ecx, dword [edi]
push ecx
call fcn.00404320
mov edx, dword [edi]
push edx
lea ecx, [esi + 4]
push ecx
push eax
mov dword [edi + 4], eax
call fcn.00404390
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x30056826
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 0x20]
push eax
xor esi, esi
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x1e
jbe 0x30056850
cmp eax, 0x55
ja 0x30056855
inc esi
jmp 0x3005686a
cmp eax, 0x55
jbe 0x3005686a
cmp eax, 0x64
jne 0x30056867
cmp dword [ebp - 0x14], 0x4000
jae 0x30056867
push 3
jmp 0x30056869
push 2
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x30057d3e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebp + 8]
cmp si, 0x80
mov word [ebp - 0x48], 0x80
mov word [ebp - 0x46], 0xa6
mov word [ebp - 0x44], 0xa9
mov word [ebp - 0x42], 0xaf
mov word [ebp - 0x40], 0xb2
mov word [ebp - 0x3e], 0xb3
mov word [ebp - 0x3c], 0xb5
mov word [ebp - 0x3a], 0xd6
mov word [ebp - 0x38], 0xd8
mov word [ebp - 0x36], 0xf6
mov word [ebp - 0x34], 0xf8
mov word [ebp - 0x32], 0xff
mov word [ebp - 0x30], 0x152
mov word [ebp - 0x2e], 0x153
mov word [ebp - 0x2c], 0x160
mov word [ebp - 0x2a], 0x161
mov word [ebp - 0x28], 0x178
mov word [ebp - 0x26], 0x178
mov word [ebp - 0x24], 0x192
mov word [ebp - 0x22], 0x192
mov word [ebp - 0x20], 0x2c6
mov word [ebp - 0x1e], 0x2c6
mov word [ebp - 0x1c], 0x2dc
mov word [ebp - 0x1a], 0x2dc
mov word [ebp - 0x18], 0x2013
mov word [ebp - 0x16], 0x2014
mov word [ebp - 0x14], 0x2020
mov word [ebp - 0x12], 0x2022
mov word [ebp - 0x10], 0x2026
mov word [ebp - 0xe], 0x2030
mov word [ebp - 0xc], 0x2038
mov word [ebp - 0xa], 0x203a
mov word [ebp - 8], 0x20ac
mov word [ebp - 6], 0x20ac
mov word [ebp - 4], 0x2122
mov word [ebp - 2], 0x2122
jb 0x30057e37
cmp byte [ebp + 0x14], 0
jne 0x30057e49
mov eax, esi
xor al, al
cmp ax, 0xf000
jne 0x30057e5a
cmp si, 0xd
je 0x30057e43
cmp si, 0xb
jne 0x30057e6f
cmp byte [ebp + 0x14], 0
je 0x30057e5a
mov eax, esi
xor al, al
cmp ax, 0xf000
jne 0x30057e5a
push 3
jmp 0x30057ee4
push esi
call fcn.3005784e
test al, al
jne 0x30057ee2
mov ecx, esi
call fcn.30057886
test al, al
je 0x30057e73
xor eax, eax
jmp 0x30057eea
push esi
call fcn.300579b4
test al, al
je 0x30057e88
xor eax, eax
cmp byte [ebp + 0x18], al
sete al
inc eax
jmp 0x30057eea
cmp si, 0xb6
jne 0x30057ea5
movzx eax, byte [0x3018d508]
sub eax, 0x86
je 0x30057ea1
dec eax
dec eax
jne 0x30057ee7
push 2
jmp 0x30057ee4
xor eax, eax
cmp word [ebp + eax*4 - 0x48], si
ja 0x30057eb5
cmp si, word [ebp + eax*4 - 0x46]
jbe 0x30057ea1
inc eax
cmp eax, 0x12
jb 0x30057ea7
mov al, byte [ebp + 0xc]
cmp al, byte [ebp + 0x10]
je 0x30057ece
neg al
sbb eax, eax
and al, 0xfd
add eax, 4
jmp 0x30057eea
push esi
call fcn.30057aed
test al, al
jne 0x30057ee7
push esi
call fcn.30057832
test al, al
je 0x30057ee7
push 4
pop eax
jmp 0x30057eea
xor eax, eax
inc eax
pop esi
leave
ret 0x14
Function at 0x300626ff
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [section..cdata]
push edi
push 0x26
mov dword [ebp + 0x74], eax
pop ecx
xor eax, eax
mov dword [ebp - 0x28], 0x9c
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x30062765
cmp dword [ebp - 0x18], 2
jne 0x30062742
cmp dword [ebp - 0x24], 5
sbb eax, eax
inc eax
jmp 0x30062767
xor eax, eax
inc eax
cmp dword [ebp - 0x18], eax
jne 0x30062765
cmp dword [ebp - 0x24], 4
jne 0x30062765
cmp dword [ebp - 0x20], 0x5a
je 0x30062767
cmp dword [ebp - 0x20], 0xa
jne 0x30062765
cmp dword [ebp - 0x1c], 0x8ae
jae 0x30062767
xor al, al
mov ecx, dword [ebp + 0x74]
call fcn.30118d85
add ebp, 0x78
leave
ret

Function at 0x300641db
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3016f0b2
call fcn.30118c00
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov dword [ebp - 0x10], esi
call dword [eax + 4]
push dword [eax + 0xc]
mov ecx, esi
call fcn.30063f0d
xor ebx, ebx
mov dword [esi], 0x300024a0
mov eax, dword [edi]
mov dword [edi], ebx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x24]
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
call fcn.300b39d3
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [0x3018d510]
mov dword [esi + 0x40], eax
mov eax, dword [0x30193974]
inc dword [0x3018d510]
mov dword [esi + 0x18], eax
mov dword [0x30193974], esi
push dword [esi + 8]
mov byte [ebp - 4], 2
call fcn.30063f9c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x30065745
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x30193acc], 0
push esi
je 0x30065856
push ebx
push edi
call dword [sym.imp.USER32.dll_GetCapture]
mov ebx, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
xor edi, edi
cmp ebx, edi
jne 0x30065781
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ebx, eax
cmp ebx, edi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
je 0x3006584e
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x3006584e
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jge 0x300657ba
push 4
pop edi
push 0x11
call esi
test ax, ax
jge 0x300657c6
or edi, 8
push 1
call esi
test ax, ax
jge 0x300657d2
or edi, 1
push 2
call esi
test ax, ax
jge 0x300657de
or edi, 2
push 4
call esi
test ax, ax
jge 0x300657ea
or edi, 0x10
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 0x10]
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x200
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
call fcn.30066d48
test eax, eax
je 0x3006581f
push 0x30002510
mov ecx, eax
call fcn.3006b062
test eax, eax
jne 0x30065854
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x84
push ebx
call esi
movzx eax, ax
or eax, 0x2000000
push eax
push ebx
push 0x20
push ebx
call esi
jmp 0x30065854
push edi
call fcn.30065710
pop edi
pop ebx
mov byte [0x30193acc], 0
pop esi
leave
ret

Function at 0x30065c4f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 0x10
je 0x30065c64
cmp eax, 0x11
je 0x30065c64
cmp eax, 0x12
jne 0x30065c7c
cmp dword [ebp + 8], 0x100
je 0x30065c76
cmp dword [ebp + 8], 0x104
jne 0x30065c83
test byte [ebp + 0x13], 0x40
je 0x30065c83
xor al, al
jmp 0x30065d13
push esi
mov esi, dword [ebp + 0x18]
push edi
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
push esi
push esi
call dword [eax + 0x10]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
and word [esi + 0xc], 0
push 0x10
call edi
shr eax, 8
test al, al
je 0x30065cb3
or byte [esi + 0xc], 4
push 0x11
call edi
shr eax, 8
test al, al
je 0x30065cc2
or byte [esi + 0xc], 8
push 0x12
call edi
shr eax, 8
test al, al
je 0x30065cd1
or byte [esi + 0xc], 0x20
call dword [sym.imp.USER32.dll_GetMessageTime]
and dword [esi + 8], 0
push 1
mov dword [esi + 0x10], eax
call edi
shr eax, 8
test al, al
je 0x30065ced
or dword [esi + 8], 1
push 2
call edi
shr eax, 8
test al, al
je 0x30065cfc
or dword [esi + 8], 4
push 4
call edi
shr eax, 8
test al, al
je 0x30065d0b
or dword [esi + 8], 2
and dword [esi + 0x14], 0
pop edi
mov al, 1
pop esi
pop ebp
ret 0x14
Function at 0x300666f6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
push edi
xor edi, edi
inc edi
test al, 4
mov dword [ebp - 4], 0x202
je 0x3006671e
mov dword [ebp - 4], 0x205
push 2
jmp 0x3006672b
test al, 2
je 0x3006672c
mov dword [ebp - 4], 0x208
push 4
pop edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push 0
push dword [ebp - 4]
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [0x30193364]
test eax, eax
jne 0x3006678e
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x30066767
cmp edi, 1
jne 0x3006675f
push 2
pop edi
jmp 0x30066767
cmp edi, 2
jne 0x30066767
xor edi, edi
inc edi
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x3006678e
movzx eax, word [esi + 4]
movzx ecx, word [esi]
shl eax, 0x10
or eax, ecx
push eax
push 0
push dword [ebp - 4]
push dword [ebx + 8]
call dword [0x30193368]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x30067031
Capabilities:
Check os version

Disassembly:
mov eax, 0x3016f238
call fcn.30118c00
sub esp, 0xc
mov eax, dword [0x30193ae0]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
jne 0x3006714c
lea eax, [ebp - 0x14]
push eax
push 0xabcd0002
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.300fca16
cmp eax, ebx
je 0x30067073
cmp dword [ebp - 0x14], ebx
jne 0x300670c4
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x300670a8
cmp al, 5
jb 0x300670a8
push 0x300027e4
call dword [0x301932c0]
cmp eax, ebx
je 0x300670a8
push 0x300027c8
push eax
call dword [0x3019329c]
cmp eax, ebx
je 0x300670a8
call eax
movzx eax, ax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x300670c4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x300670c4
mov dword [ebp - 0x14], 0x409
test byte [0x30193ba4], 1
jne 0x30067107
mov eax, dword [ebp - 0x14]
or dword [0x30193ba4], 1
push 0x30177899
mov dword [0x30193b94], ebx
mov byte [0x30193b98], bl
mov dword [0x30193b90], 0x300016cc
mov dword [0x30193b9c], 0xabcd0001
mov dword [0x30193ba0], eax
call fcn.30118ed9
pop ecx
mov ecx, 0x30193b90
call fcn.3006adc9
mov esi, eax
jmp 0x30067120
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
jne 0x3006712c
xor eax, eax
jmp 0x3006714c
push esi
call fcn.30066345
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [0x30193c14], esi
call fcn.30066ef0
push dword [ebp - 0x14]
call fcn.30066202
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x30067929
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x3016f280
call fcn.30118c00
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
cmp dword [0x30193b0c], ebx
push edi
mov dword [ebp - 0x10], esp
jl 0x30067ad3
dec dword [0x30193b0c]
cmp dword [0x30193b04], ebx
mov dword [ebp - 4], ebx
jne 0x30067976
push ebx
call fcn.300663fa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xea60
mov dword [0x30193bb8], eax
call fcn.30065745
mov eax, dword [0x30193af4]
mov dword [ebp - 0x18], 0x30193af4
mov dword [ebp - 0x14], eax
mov eax, dword [0x30193af8]
cmp eax, ebx
mov byte [ebp - 4], 1
jne 0x30067997
mov eax, dword [0x30193b5c]
mov dword [0x30193af4], eax
mov eax, dword [0x30193af4]
cmp eax, ebx
je 0x30067a3c
mov eax, dword [eax + 4]
mov dword [0x30193af8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x30193af4]
mov dword [0x30193b00], eax
mov eax, dword [0x30193afc]
cmp eax, ebx
je 0x300679d4
cmp ecx, eax
je 0x300679d4
cmp byte [ecx + 0xc], bl
je 0x30067a13
cmp dword [ecx + 8], 4
jg 0x30067a13
push dword [0x30193b04]
mov eax, dword [ecx]
mov byte [ebp - 4], 2
call dword [eax + 4]
jmp 0x30067a13
mov eax, dword [0x30193af8]
mov dword [ebp - 4], 1
mov dword [0x30193af4], eax
call fcn.30065b3c
test al, al
jne 0x3006799c
mov dword [0x30193af4], ebx
jmp 0x3006799c
cmp dword [0x30193af8], ebx
jne 0x30067a5e
cmp dword [0x30193b04], 0x7fffffff
jge 0x30067a58
inc dword [0x30193b04]
jmp 0x30067a5e
mov dword [0x30193b04], ebx
mov eax, dword [0x30193b04]
cmp eax, 0xa
jne 0x30067a87
call fcn.30065b6b
mov esi, dword [0x30193b5c]
jmp 0x30067a81
mov eax, dword [esi]
push 3
mov ecx, esi
call dword [eax + 8]
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x30067a75
jmp 0x30067a93
cmp eax, 0x32
jne 0x30067a93
push 4
call fcn.300663fa
call fcn.30067244
cmp dword [0x30193bb8], ebx
jbe 0x30067ac5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x30193bb8], eax
jae 0x30067ac5
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov dword [0x30193bb8], ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
inc dword [0x30193b0c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x30069690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebx]
and dword [ebx], 0
test edi, edi
jle 0x300696ff
mov esi, 0xfffe
cmp edi, esi
jbe 0x300696b5
sub edi, esi
mov dword [ebp + 0xc], edi
mov edi, esi
jmp 0x300696b9
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x300696db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x300696f2
mov eax, dword [ebp - 4]
add dword [ebx], eax
cmp eax, edi
jne 0x300696fb
cmp dword [ebp + 0xc], 0
jle 0x300696ff
add dword [ebp + 0x10], esi
mov edi, dword [ebp + 0xc]
jmp 0x300696a8
push 0
push 0xffffffffffffffff
call fcn.30069426
mov al, 1
jmp 0x30069701
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x3006974c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f4
call fcn.30118c20
mov eax, dword [section..cdata]
push ebx
push esi
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], eax
call fcn.30135342
push 4
push 0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x9c]
call fcn.301368d2
lea ecx, [ebp - 0x10f4]
call fcn.301352a4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, 0xfff
mov edi, eax
and edi, ebx
lea esi, [edi + 1]
and esi, ebx
cmp esi, edi
mov dword [ebp + 0x10], 4
je 0x3006984f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10f4]
call fcn.3013622b
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x10f4]
call fcn.30136bd7
xor eax, eax
push eax
push eax
push eax
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.30136cd6
push dword [ebp + 0x14]
lea ecx, [ebp - 0x50]
call fcn.30136ba1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x10f4]
call fcn.30136bd7
push 0
push 0x2000080
push 3
push 0
push 3
push SysReAllocString
push dword [ebp - 0x10f4]
call dword [0x30193268]
cmp eax, 0xffffffff
jne 0x30069835
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [ebp + 0x10], eax
je 0x30069842
cmp eax, 3
je 0x30069846
cmp eax, 0xf
je 0x30069846
cmp eax, 0x53
je 0x30069846
inc esi
and esi, ebx
cmp esi, edi
jne 0x300697ac
jmp 0x30069846
and dword [ebp + 0x10], 0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x3006985d
push dword [ebp - 0x10f4]
push dword [ebp + 0x10]
call fcn.30069426
push dword [ebp - 0x10f4]
mov ecx, dword [ebp + 8]
call fcn.3013622b
mov ecx, dword [ebp - 4]
call fcn.30118d85
leave
ret 0x10
Function at 0x30069a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x30069ac2
push esi
mov esi, 0xfffe
push edi
cmp ebx, esi
jbe 0x30069a7c
sub ebx, esi
mov edi, esi
jmp 0x30069a81
movzx edi, bx
xor ebx, ebx
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x30069aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x30069ab1
cmp dword [ebp + 0xc], edi
jb 0x30069ab7
test ebx, ebx
jle 0x30069ac0
add dword [ebp + 0x10], esi
jmp 0x30069a72
push 0
push 0xffffffffffffffff
jmp 0x30069abb
push 0
push 0x70
call fcn.30069426
pop edi
pop esi
pop ebx
pop ebp
ret 0xc