joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479fa0
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 0x47a043
test eax, eax
jbe 0x47a043
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47a043
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 0x479fee
xor esi, esi
jmp 0x479ff4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47a01f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004153a0
add esi, eax
push esi
mov ebx, esi
call fcn.004153a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47a000
pop ebp
test edi, edi
pop edi
jne 0x47a043
test ebx, ebx
je 0x47a043
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00485b60
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x47a165
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 0x47a27d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47a27d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004975db
mov esi, eax
test esi, esi
je 0x47a27d
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 0x47a27d
mov ecx, esi
call fcn.0047a0f0
cmp edi, eax
jge 0x47a27d
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 0x47a203
mov dword [esp + 0x34], 1
jmp 0x47a25e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47a27d
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.004796f0
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 0x47d030
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 0x47d096
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 0x47d096
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47d077
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47d420
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47d458
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x47e0d0
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 0x47e119
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 0x47e590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a4e20
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.0047e140
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047e1c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047e1c0
lea ecx, [esi + 0xc]
call fcn.00495b3b
lea ecx, [esi + 0x10]
call fcn.00495b3b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047f750
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047f750
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047f750
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00495bb0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00495bb0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x497f7e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x497fb6
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.0049600b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00495fe3
jmp 0x497fc2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49966c
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 0x4996ae
call fcn.0049f3e4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4996ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4996a5
xor eax, eax
jmp 0x4996b6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004996bc
pop edi
pop esi
pop ebx
ret 4

Function at 0x49f914
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 0x49f942
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49f960
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f87a
jmp 0x49f960
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49f960
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f87a
test edi, edi
mov eax, edi
jne 0x49f94a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405f8e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x405fa8
push dword [ebp + 8]
push 0x405f20
call sub.USER32.dll_EnumWindows
jmp 0x405fdf
mov edi, dword [0x456800]
jmp 0x405fdb
mov esi, dword [edi]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x405fd9
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x456800
call fcn.0042d300
add esp, 8
mov edi, esi
or edi, edi
jne 0x405fb0
pop edi
pop esi
pop ebp
ret 4
Function at 0x411627
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
or esi, esi
jne 0x411641
xor eax, eax
jmp 0x411797
xor edi, 0xffffffff
jmp 0x41175c
mov eax, esi
inc esi
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x457500]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
mov eax, esi
inc esi
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x457500]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
mov eax, esi
inc esi
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x457500]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
mov eax, esi
inc esi
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x457500]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
mov eax, esi
inc esi
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x457500]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
mov eax, esi
inc esi
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x457500]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
mov eax, esi
inc esi
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x457500]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
mov eax, esi
inc esi
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x457500]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
sub ebx, 8
cmp ebx, 8
jae 0x411649
or ebx, ebx
je 0x411792
mov eax, esi
inc esi
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x457500]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
mov eax, ebx
dec eax
mov ebx, eax
jne 0x411769
mov eax, edi
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x4197e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xca
jne 0x419816
push edi
call fcn.00419214
pop ecx
cmp byte [edi + 0x40], 0
je 0x41980f
mov dword [edi + 0x14], 0xcf
xor eax, eax
inc eax
jmp 0x4198cb
mov dword [edi + 0x14], 0xcb
cmp dword [edi + 0x14], 0xcb
jne 0x41989a
mov eax, dword [edi + 0x190]
cmp byte [eax + 0x10], 0
je 0x41988f
cmp dword [edi + 8], 0
je 0x41983d
push edi
mov ebx, dword [edi + 8]
call dword [ebx]
pop ecx
push edi
mov esi, dword [edi + 0x190]
call dword [esi]
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x4198cb
cmp dword [ebp - 4], 2
je 0x41988f
cmp dword [edi + 8], 0
je 0x41982b
mov eax, dword [ebp - 4]
cmp eax, 3
je 0x41986c
cmp eax, 1
jne 0x41982b
mov eax, dword [edi + 8]
add eax, 4
mov edx, dword [eax]
inc edx
mov dword [eax], edx
mov eax, dword [edi + 8]
cmp edx, dword [eax + 8]
jl 0x41982b
mov eax, dword [edi + 8]
add eax, 8
mov edx, dword [edi + 0x11c]
add dword [eax], edx
jmp 0x41982b
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x84], eax
jmp 0x4198bf
cmp dword [edi + 0x14], 0xcc
je 0x4198bf
mov eax, dword [edi]
mov dword [eax + 0x14], 0x14
mov eax, dword [edi]
mov edx, dword [edi + 0x14]
mov dword [eax + 0x18], edx
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
push edi
call fcn.004198d0
pop ecx
and eax, 0xff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4198d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xcc
je 0x419912
push edi
mov ebx, dword [edi + 0x180]
call dword [ebx]
pop ecx
and dword [edi + 0x78], 0
mov dword [edi + 0x14], 0xcc
jmp 0x419912
mov eax, dword [edi]
mov dword [eax + 0x14], 0x30
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
mov eax, dword [edi + 0x180]
cmp byte [eax + 8], 0
jne 0x4198fe
xor eax, eax
cmp byte [edi + 0x41], 0
sete al
dec eax
and eax, 1
add eax, 0xcd
mov dword [edi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41f2da
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebx + 4], 0
mov edi, 0x3b9aca00
cmp edi, 0x3b9aca00
je 0x41f30b
mov eax, dword [ebx]
mov dword [eax + 0x14], 3
push ebx
mov eax, dword [ebx]
call dword [eax]
pop ecx
push ebx
call fcn.0042269d
mov dword [ebp - 4], eax
push 0x54
push ebx
call fcn.00422640
add esp, 0xc
mov esi, eax
or esi, esi
jne 0x41f347
push ebx
call fcn.004226a0
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x36
mov eax, dword [ebx]
and dword [eax + 0x18], 0
push ebx
mov eax, dword [ebx]
call dword [eax]
add esp, 8
lea eax, [fcn.0041e6b8]
mov dword [esi], eax
lea eax, [fcn.0041e7f7]
mov dword [esi + 4], eax
lea eax, [fcn.0041e8a6]
mov dword [esi + 8], eax
lea eax, [fcn.0041e97a]
mov dword [esi + 0xc], eax
lea eax, [0x41ea5b]
mov dword [esi + 0x10], eax
lea eax, [0x41eac8]
mov dword [esi + 0x14], eax
lea eax, [0x41eb35]
mov dword [esi + 0x18], eax
lea eax, [0x41eed3]
mov dword [esi + 0x1c], eax
lea eax, [0x41f023]
mov dword [esi + 0x20], eax
lea eax, [fcn.0041f17a]
mov dword [esi + 0x24], eax
lea eax, [0x41f2a6]
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
xor edi, edi
inc edi
and dword [esi + edi*4 + 0x34], 0
and dword [esi + edi*4 + 0x3c], 0
dec edi
jge 0x41f3b9
and dword [esi + 0x44], 0
and dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
mov dword [ebx + 4], esi
push str.JPEGMEM
call sub.MSVCRT.dll_getenv
pop ecx
mov dword [ebp - 8], eax
or eax, eax
je 0x41f429
mov byte [ebp - 9], 0x78
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 4]
push eax
push str._ld_c
push dword [ebp - 8]
call sub.MSVCRT.dll_sscanf
add esp, 0x10
or eax, eax
jle 0x41f429
mov al, byte [ebp - 9]
cmp al, 0x6d
je 0x41f415
cmp al, 0x4d
jne 0x41f41f
imul eax, dword [ebp - 4], 0x3e8
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427774
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
push 0
push edi
call sub.USER32.dll_ShowWindow
push 0
push edi
call sub.USER32.dll_EnableWindow
pop edi
pop ebp
ret

Function at 0x429190
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
push dword [ebp + 8]
push dword [0x45dfa4]
call fcn.0042d112
mov edi, eax
or eax, eax
je 0x429209
cmp dword [ebp + 0xc], 0
je 0x4291d9
push 4
push dword [edi]
call sub.USER32.dll_GetWindow
mov dword [ebp - 8], eax
or eax, eax
je 0x4291ce
cmp dword [edi + 0x1c], 0
jne 0x4291ce
push eax
call sub.USER32.dll_SetActiveWindow
push 0
push dword [edi]
call sub.USER32.dll_ShowWindow
jmp 0x429209
push dword [edi]
call sub.USER32.dll_IsZoomed
or eax, eax
je 0x4291ed
mov dword [ebp - 4], 3
jmp 0x4291ff
push dword [edi]
call sub.USER32.dll_IsIconic
xor ebx, ebx
cmp eax, ebx
setne bl
inc ebx
mov dword [ebp - 4], ebx
push dword [ebp - 4]
push dword [edi]
call sub.USER32.dll_ShowWindow
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42aaba
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 9
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
je 0x42ab53
push 0x11
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x42ab53
push 0x10
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x42ab53
push 0x12
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x42ab53
call sub.USER32.dll_GetFocus
push 5
lea edi, [ebp - 0xd]
push edi
push eax
call sub.USER32.dll_GetClassNameA
push 4
push str.Rich
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x42ab53
call sub.USER32.dll_GetFocus
push 0
push 0
push 0x44e
push eax
call sub.USER32.dll_SendMessageA
test ax, 0x800
jne 0x42ab53
xor eax, eax
jmp 0x42ab7e
push str.PB_WindowID
push dword [ebp + 8]
call sub.USER32.dll_GetPropA
mov dword [ebp - 4], eax
or eax, eax
je 0x42ab7c
dec eax
push eax
push dword [0x45dfa4]
call fcn.0042d112
mov dword [ebp - 8], eax
mov eax, dword [eax + 0xc]
jmp 0x42ab7e
xor eax, eax
pop edi
leave
ret 4
Function at 0x42ad80
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push edi
mov eax, dword [0x45bb1c]
mov edx, dword [0x45bb20]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 8]
or eax, eax
je 0x42af22
cmp byte [eax], 0
je 0x42af22
push 0x104
push eax
lea eax, [ebp - 0x109]
push eax
call sub.MSVCRT.dll_strncpy
mov byte [ebp - 5], 0
lea eax, [ebp - 0x109]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
mov dword [ebp - 0x11c], eax
lea eax, [ebp + eax - 0x10a]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x11c]
cmp eax, 2
je 0x42adfa
cmp eax, 3
jne 0x42ae5a
cmp byte [ebp - 0x108], 0x3a
jne 0x42ae5a
cmp dword [ebp - 0x11c], 2
jne 0x42ae20
push 0x45bb18
lea eax, [ebp - 0x109]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x109]
push eax
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 1
jbe 0x42af22
mov eax, dword [0x45bb10]
mov edx, dword [0x45bb14]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], eax
jmp 0x42af22
mov eax, dword [ebp - 4]
mov byte [eax], 0
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
je 0x42ae51
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x109]
push eax
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x120], eax
cmp eax, 0xffffffff
je 0x42aed9
test byte [ebp - 0x260], 0x10
je 0x42aea2
mov eax, dword [0x45bb10]
mov edx, dword [0x45bb14]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], eax
jmp 0x42aecc
push 0
push dword [ebp - 0x240]
mov eax, dword [ebp - 0x244]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
pop eax
pop edx
pop ecx
or eax, ecx
pop ecx
or edx, ecx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], eax
push dword [ebp - 0x120]
call sub.KERNEL32.dll_FindClose
jmp 0x42af22
cmp byte [ebp - 0x109], 0x5c
jne 0x42af22
cmp byte [ebp - 0x108], 0x5c
jne 0x42af22
lea eax, [ebp - 0x109]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x42af22
test byte [ebp - 0x264], 0x10
je 0x42af22
mov eax, dword [0x45bb10]
mov edx, dword [0x45bb14]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x118]
pop edi
leave
ret 4

Function at 0x42af40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
cmp dword [ebp + 8], 0
je 0x42afad
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x105]
push eax
call sub.MSVCRT.dll_strncpy
mov byte [ebp - 1], 0
lea eax, [ebp - 0x105]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea edi, [ebp + eax - 0x105]
jmp 0x42af81
dec edi
lea eax, [ebp - 0x105]
cmp edi, eax
jbe 0x42af9a
mov al, byte [edi - 1]
cmp al, 0x20
je 0x42af80
cmp al, 0x5c
je 0x42af80
cmp al, 0x2f
je 0x42af80
mov byte [edi], 0
push 0
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.dll_CreateDirectoryA
jmp 0x42afaf
xor eax, eax
pop edi
leave
ret 4
Function at 0x42b010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x42b03f
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
push eax
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
pop edi
leave
ret 4

Function at 0x42b370
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov eax, dword [0x45bb30]
mov edx, dword [0x45bb34]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
push dword [ebp + 8]
push dword [0x45dfb8]
call fcn.0042d112
mov dword [ebp - 0xc], eax
or eax, eax
je 0x42b3ea
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
call sub.KERNEL32.dll_GetFileSize
push 0
push eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
pop eax
pop edx
pop ecx
or eax, ecx
pop ecx
or edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
je 0x42b3ea
cmp dword [ecx + 0x14], 0
jne 0x42b3ea
mov edi, ecx
mov esi, dword [edi + 8]
sub esi, dword [edi + 0xc]
add eax, esi
adc edx, 0
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x42b460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x42b485
push edi
call fcn.0042b010
mov dword [edi + 0x14], 1
and dword [edi + 0xc], 0
cmp dword [edi + 0xc], esi
jl 0x42b4dd
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, eax
add ebx, dword [edi + 4]
mov eax, esi
cmp eax, 1
je 0x42b4a8
cmp eax, 2
je 0x42b4b1
cmp eax, 4
je 0x42b4bc
jmp 0x42b4c5
mov eax, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [eax], dl
jmp 0x42b4d2
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x42b4d2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x42b4d2
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x42b55f
mov ebx, dword [edi + 0xc]
push ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
sub esi, ebx
cmp esi, dword [edi + 8]
jl 0x42b51f
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
and dword [edi + 0xc], 0
add dword [ebp - 4], ebx
jmp 0x42b55f
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp esi, dword [edi + 0xc]
jle 0x42b546
mov esi, dword [edi + 0xc]
push esi
push dword [edi + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov eax, ebx
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42b570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 1
jne 0x42b593
and dword [edi + 0x14], 0
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], esi
jle 0x42b5f4
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, esi
cmp eax, 1
je 0x42b5b7
cmp eax, 2
je 0x42b5c3
cmp eax, 4
je 0x42b5d1
jmp 0x42b5dd
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x42b5ec
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dx, word [edx]
mov word [eax], dx
jmp 0x42b5ec
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov dword [eax], edx
jmp 0x42b5ec
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x42b62e
push edi
call fcn.0042b010
cmp esi, dword [edi + 8]
jl 0x42b612
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
jmp 0x42b62e
push esi
push dword [ebp + 0xc]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc