joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44df70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4930f8
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 [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0048b1a5
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044d8d0
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.0048b0d3
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.00487991
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.00487991
push 1
push 0
push 0
mov ecx, esi
call fcn.00487939
push 1
push 0
push 1
mov ecx, esi
call fcn.00487939
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048b217
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44e0f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x493118
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.0048b1a5
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044d8d0
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.0048b0d3
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
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 0x44e1b4
cmp dword [esp + 0x40], 1
jne 0x44e1b2
cmp ecx, eax
jge 0x44e1b4
mov eax, ecx
cmp eax, 0xc8
jge 0x44e1c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044df70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048b217
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44e9c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4931c3
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.00485daf
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
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], method.CEdit.virtual_0
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 [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048b44d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048c969
test eax, eax
je 0x44eadc
mov ecx, dword [esp + 0x3c]
call fcn.0048b47a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44eaa0
push edi
mov ecx, esi
call fcn.00488adf
mov ecx, esi
call fcn.0044ec80
cmp dword [esp + 0x38], 1
jne 0x44ead5
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.00488c1a
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 0x450cf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x450d23
push esi
call fcn.0045f0b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x450d1c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x450da9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x450d92
mov eax, dword [esi + 8]
test eax, eax
je 0x450d47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x450d8e
cmp eax, 2
je 0x450d92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x450d3a
cmp eax, 3
je 0x450d6d
cmp eax, 1
jne 0x450d3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x450d3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x450d3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00450dd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x450db8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00450dd0
add esp, 4
pop esi
ret

Function at 0x451640
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x451661
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x451661
mov eax, dword [eax + 0x44]
test eax, eax
je 0x451661
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46d320
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46d3c3
test eax, eax
jbe 0x46d3c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46d3c3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46d36e
xor esi, esi
jmp 0x46d374
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46d39f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004095a0
add esi, eax
push esi
mov ebx, esi
call fcn.004095a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46d380
pop ebp
test edi, edi
pop edi
jne 0x46d3c3
test ebx, ebx
je 0x46d3c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00474900
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x46d4e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46d5fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46d5fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00486201
mov esi, eax
test esi, esi
je 0x46d5fd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46d5fd
mov ecx, esi
call fcn.0046d470
cmp edi, eax
jge 0x46d5fd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46d583
mov dword [esp + 0x34], 1
jmp 0x46d5de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46d5fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046bd00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x470030
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x470079
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4704f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004700a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00470120
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00470120
lea ecx, [esi + 0xc]
call fcn.00484761
lea ecx, [esi + 0x10]
call fcn.00484761
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004716b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004716b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004716b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004847d6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004847d6
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4718a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x471906
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x471906
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4718e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x486ba4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x486bdc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00484c31
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00484c09
jmp 0x486be8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x488299
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4882db
call fcn.0048de0e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4882db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4882d2
xor eax, eax
jmp 0x4882e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004882e9
pop edi
pop esi
pop ebx
ret 4

Function at 0x48e33e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48e36c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48e38a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048e2a4
jmp 0x48e38a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48e38a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048e2a4
test edi, edi
mov eax, edi
jne 0x48e374
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x3001136d
Capabilities:
Query environment variable

Disassembly:
push 0x234
mov eax, 0x3003e6b1
call fcn.3001eda5
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.3001094d
and dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x28]
call fcn.3001417d
mov ecx, eax
call fcn.3001085c
lea ecx, [ebp - 0x28]
call fcn.3001417d
mov esi, dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.3000c9c7
mov eax, dword [eax + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
push dword [edi + 8]
call esi
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.3001417d
cmp ebx, dword [eax + 0xc]
jbe 0x300113ff
push ebx
lea ecx, [ebp - 0x28]
call fcn.3001417d
mov ecx, eax
call fcn.3001085c
lea ecx, [ebp - 0x28]
call fcn.3001417d
mov ebx, dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.3000c9c7
mov eax, dword [eax + 8]
push ebx
push eax
push dword [edi + 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x3001143c
push 0x30003694
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.3001028f
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x134]
lea edi, [ebp - 0x134]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
lea ecx, [ebp - 0x28]
call fcn.3000c9c7
push eax
mov ecx, edi
call fcn.300112a1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.3000c6c3
call fcn.3001ee7d
ret

Function at 0x300125bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0xffffffff
push edi
jne 0x30012604
push 0x30003924
lea eax, [ebp - 0x21c]
push 0x15
push eax
call fcn.3000c862
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
call fcn.300103f8
mov edi, eax
push 0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x30012648
push 0x3000390c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.3001028f
jmp 0x300125e3
pop edi
pop esi
leave
ret 4

Function at 0x300126aa
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push dword [ebp + 0xc]
call fcn.300102f3
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x3001270e
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
push 0x30003950
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.3001028f
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
leave
ret 8
Function at 0x30012712
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push edi
call fcn.300102f3
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x300127a4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
cmp ebx, 5
jne 0x30012762
push 0x80
push dword [ebp + 8]
call fcn.300126aa
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
call edi
test eax, eax
jne 0x300127a2
call esi
mov ebx, eax
test ebx, ebx
je 0x300127a2
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
push 0x30003988
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.3001028f
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
pop esi
pop ebx
pop edi
leave
ret 4

Function at 0x30012835
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
xor eax, eax
cmp byte [ebp + 0x10], al
push ebx
mov ebx, dword [ebp + 0xc]
sete al
push esi
mov ecx, ebx
push eax
mov dword [ebp + 0x10], eax
call fcn.300102f3
mov ecx, dword [ebp + 8]
push eax
call fcn.300102f3
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call esi
test eax, eax
jne 0x300128e6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
jne 0x3001289f
push 0x80
push ebx
call fcn.300126aa
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.300102f3
mov ecx, dword [ebp + 8]
push eax
call fcn.300102f3
push eax
call esi
test eax, eax
jne 0x300128e5
mov ecx, ebx
call fcn.300102f3
mov ecx, dword [ebp + 8]
push eax
call fcn.300102f3
push eax
push 0x300039a4
call edi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.3001028f
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x3001311e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push 0x104
call fcn.3001085c
mov ecx, dword [ebp + 8]
call fcn.300102f3
mov ecx, dword [ebp + 8]
push eax
call fcn.3001032a
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x30013189
push 0x30003ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.3001028f
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x30013587
xor al, al
jmp 0x3001358c
shr al, 4
and al, 1
pop ebp
ret 4
Function at 0x30013590
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push esi
push 0
call fcn.300102f3
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x300135fc
cmp esi, 0x50
je 0x300135fc
cmp esi, 0xb7
je 0x300135fc
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
push 0x30003ad0
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.3001028f
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
pop esi
leave
ret 4

Function at 0x30013601
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
call fcn.300102f3
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x30013656
push 0x30003b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.3001028f
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
leave
ret 4
Function at 0x3001365a
Capabilities:
Enumerate files on windows

Disassembly:
push 0x4ec
mov eax, 0x3003ec89
call fcn.3001ee0e
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], eax
call fcn.3001356c
test al, al
jne 0x300136bc
push 0x30003b3c
lea eax, [ebp - 0x4f8]
push 0x22
push eax
call fcn.3000c862
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x3ec]
lea edi, [ebp - 0x3ec]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
mov ecx, esi
call fcn.3000d0d0
lea ecx, [ebp - 0x2b8]
call fcn.30010485
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x2b8]
call fcn.300112a1
mov esi, 0x30002cbc
push esi
lea ecx, [ebp - 0x290]
call fcn.300112b3
push 1
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.30011919
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 0
call fcn.300104cf
test bl, bl
je 0x30013743
push esi
lea ecx, [ebp - 0x290]
call fcn.300112b3
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.30010fc9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0
call fcn.300104cf
push dword [ebp - 0x264]
lea ecx, [ebp - 0x2b8]
call fcn.30010fc9
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.300102f3
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x264], eax
jne 0x300137a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x300138e3
cmp eax, 2
je 0x300138e3
push 0x30003b24
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.3001028f
jmp 0x3001369b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x30003804
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x300138bc
push 0x30003b1c
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x300138bc
mov ecx, edi
call fcn.300102f3
push eax
lea ecx, [ebp - 0x2e0]
call fcn.300112b3
push esi
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.300112b3
push 1
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 4
call fcn.30011919
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 3
call fcn.300104cf
test bl, bl
je 0x30013854
push esi
lea ecx, [ebp - 0x290]
call fcn.300112b3
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 5
call fcn.30010fc9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.300104cf
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x290]
call fcn.300112b3
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 6
call fcn.30010fc9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.300104cf
lea eax, [ebp - 0x2e0]
push eax
call fcn.3001356c
test al, al
je 0x300138ad
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x2e0]
push eax
call fcn.3000d83c
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0
call fcn.300104cf
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x300137a7
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.300104cf
call fcn.3001ee91
ret 0xc