joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4269fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1813bf0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x426a41
cmp word [ebx], dx
jne 0x426a41
or byte [eax + edi + 0x28], 4
jmp 0x426a46
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x426ba9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x426b89
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x426a87
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x426abd
cmp eax, edx
jae 0x426acb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x426a62
jmp 0x426ba9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426b84
cmp dword [ebp - 0x18], 0
je 0x426b84
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1813bf0]
test byte [eax + edi + 0x28], 0x48
je 0x426b5a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x426b1e
mov word [esi], cx
jmp 0x426b55
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1813bf0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1813bf0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1813bf0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x426ba9
pop eax
cmp word [ebp - 4], ax
jne 0x426b6a
cmp esi, ebx
jne 0x426b6a
mov word [esi], ax
jmp 0x426ba6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004279a7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x426ba9
push 0xd
pop eax
jmp 0x426b65
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1813bf0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x426ba3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x426ba9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434a1c
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x434ab7
push edi
push 0x18151b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x1813f54]
test edi, edi
je 0x434a8a
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x434a83
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x1813f54
call fcn.00470b06
pop ecx
pop ecx
jmp 0x434a85
mov edi, dword [edi]
test edi, edi
jne 0x434a58
pop ebp
mov esi, dword [0x180e65c]
push 0x10
push 0x1813f54
lea eax, [esi + 1]
mov dword [0x180e65c], eax
call fcn.00470b46
pop ecx
pop ecx
push 0x18151b0
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x435852
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4358a7
push dword [esp + 0x10]
push 0x4357d1
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x1814348]
test edi, edi
je 0x435900
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x43589f
cmp byte [edi + 0x10], 0
je 0x43589f
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x43587b
jmp 0x435900
mov edi, dword [0x1814348]
test edi, edi
je 0x435900
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4358f9
cmp byte [edi + 0x11], 0
je 0x4358d2
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x4358e9
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x1814348
call fcn.00470b06
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x4358b4
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x450fa6
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x1815380]
call fcn.004701d5
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x4510e3
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x45100c
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x451001
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x451046
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x4510a0
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x4510a0
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x45102d
jmp 0x4510a0
test ax, ax
je 0x4510b3
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x45109c
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x451091
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x451091
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x451091
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x45107a
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x451053
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x4510ba
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x4510c4
test ebp, ebp
jne 0x4510eb
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x450ff1
test ebp, ebp
jne 0x451100
mov eax, ebx
jmp 0x451106
test edi, edi
je 0x451100
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x451106
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4518c3
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x451982
cmp dword [esp + 0x24], 2
je 0x451982
push 0x2000
push ebp
push dword [0x1812534]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x451951
cmp dword [esp + 0x18], 2
jne 0x45196d
cmp dword [esp + 0x28], 0xffffffff
je 0x451915
cmp ebp, dword [esp + 0x28]
jae 0x45196d
add ebp, 2
test ebx, ebx
jne 0x45193a
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x1812534]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x45196d
cmp ax, 0xd
je 0x451951
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x451901
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004e2420
jmp 0x451a14
push eax
push 0
push dword [0x1812534]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x4519a0
cmp ebp, dword [esp + 0x28]
jae 0x4519f8
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4519f8
cmp dword [esp + 0x18], 1
jne 0x4519f8
inc ebp
test ebx, ebx
jne 0x4519e5
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x1812534]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x4519f8
cmp al, 0xd
je 0x451993
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x451993
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x451a0f
call fcn.004e2470
jmp 0x451a14
call fcn.004e23b0
push esi
push 0
push dword [0x1812534]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4528af
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x452802
push 0x10
push 0x2c
call fcn.00470447
push 0
push 0
push 8
mov dword [0x1814374], eax
call fcn.00470240
cmp word [0x181436c], 0
mov dword [0x18153a8], eax
jne 0x45298f
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x181436c], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1814378], eax
test eax, eax
je 0x45298f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x1814378]
mov dword [0x181435c], eax
call esi
push str.getnameinfo
push dword [0x1814378]
mov dword [0x1814360], eax
call esi
push str.WSAStringToAddressA
push dword [0x1814378]
mov dword [0x1814364], eax
call esi
cmp dword [0x181435c], 0
mov ecx, eax
mov dword [0x1814368], ecx
pop esi
je 0x45298f
cmp dword [0x1814360], 0
je 0x45298f
cmp dword [0x1814364], 0
je 0x45298f
mov eax, dword [0x1814370]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x1814370], eax
add esp, 0x190
ret
Function at 0x455295
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.004583a1
push eax
call fcn.00458b9f
push dword [0x18143e4]
mov dword [esp + 0x24], eax
call fcn.0047058c
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x12
shr esi, 0xf
call edi
mov ebx, esi
or ebx, 2
bt ax, 0xf
push 0x11
cmovae ebx, esi
call edi
mov ecx, 0x8000
and ax, cx
movzx esi, ax
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00454b5f
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0xc], eax
mov eax, ebx
push 0x455380
push ebp
push dword [esp + 0x2c]
or eax, 4
test si, si
push dword [esp + 0x2c]
cmove eax, ebx
push dword [esp + 0x20]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x14], eax
movzx eax, word [esp + 0x44]
push 0x332c
mov dword [ebp + 0x18], eax
call fcn.0045e240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x458eed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x18153f0]
call fcn.00470375
mov esi, eax
test esi, esi
je 0x458fc9
cmp dword [ebp + 0xc], 0
je 0x458f39
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x458f2a
cmp dword [esi + 0x1c], 0
jne 0x458f2a
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x458fc9
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x458f57
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0045a0ac
cmp dword [esi + 0x3c], 0xffffffff
je 0x458f7b
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x458f93
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x458fae
test eax, eax
je 0x458fa4
push 8
jmp 0x458fb4
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x458fbf
test eax, eax
je 0x458fb7
push 3
pop ebx
jmp 0x458fbf
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x45a22c
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x45a2c2
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x45a2bf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x45a2bf
lea eax, [esi - 1]
push eax
push dword [0x18153f0]
call fcn.00470375
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x45a2c1
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x45a2af
mov edx, 0xfa01
cmp word [ecx], dx
je 0x45a2ba
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x45a29f
jmp 0x45a2bf
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x45a368
push eax
call esi
test al, al
jns 0x45a368
push 0x11
call esi
test al, al
js 0x45a368
push 0x10
call esi
test al, al
js 0x45a368
push 0x12
call esi
test al, al
js 0x45a368
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x45a368
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0041e9ee
add esp, 0xc
test eax, eax
je 0x45a33c
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0041e9ee
add esp, 0xc
test eax, eax
jne 0x45a353
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x45a3a9
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004f8d14
pop ecx
pop ecx
test eax, eax
je 0x45a3a9
test ebp, ebp
je 0x45a38c
push 0x11
call esi
test al, al
js 0x45a384
push 0x10
call esi
test al, al
js 0x45a384
push 0x12
call esi
test al, al
jns 0x45a38c
push 1
push ebp
call fcn.0045a3b5
test ebx, ebx
je 0x45a3a0
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x45a3a9
test edi, edi
je 0x45a3a9
mov eax, dword [edi + 8]
jmp 0x45a3ab
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x45c4b4
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x1814a70]
push esi
push edi
test eax, eax
jne 0x45c4da
push fcn.0045c5e3
push 0x10
push 0x258
call fcn.00470447
mov dword [0x1814a70], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.004703b3
mov esi, eax
test esi, esi
je 0x45c5db
cmp dword [esp + 0x14], ebx
mov eax, 0x51f268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x45c512
xor ecx, ecx
cmp word [ebp], cx
jne 0x45c51b
mov ebp, 0x53624c
mov dword [esp + 0x1c], ebp
push eax
call fcn.0041d2ea
push ebp
mov dword [esp + 0x20], eax
call fcn.0041d2ea
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x1812534]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x45c5c8
push dword [esp + 0x14]
push ebp
call fcn.004f8d54
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x45c57b
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x45c57b
push 0x51c398
push ebp
call fcn.004f8d76
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.004f8d76
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x45c5a0
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x45c5b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x45c5b6
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x1812534]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x45c5da
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x1814a70]
call fcn.00470326
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x45c672
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x45c6ea
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.005053b0
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041d2ea
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x45c6cb
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x45c6c8
cmp ecx, 0x5c
je 0x45c6c8
cmp ecx, 0x2f
jne 0x45c6d5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x45c6b5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x45c6ec
xor eax, eax
leave
ret 4
Function at 0x45cc40
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x45cc59
push dword [0x1815434]
call fcn.004702f8
pop edi
ret 4
push esi
push edi
push dword [0x1815434]
call fcn.00470375
mov esi, eax
test esi, esi
je 0x45ccc3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45ccaf
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x45cc9e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x1812534]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x1815434]
call fcn.00470326
pop esi
pop edi
ret 4

Function at 0x45ccd0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x45cd0c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x45d190
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x45d1f5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x45d1ed
push dword [esp + 0x10]
push dword [0x1815434]
call fcn.00470375
test eax, eax
je 0x45d1e3
cmp dword [eax + 4], 0
je 0x45d1d2
push edi
push esi
push eax
call fcn.0045d730
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x45d200
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x1815434]
call fcn.00470375
mov esi, eax
test esi, esi
je 0x45d27f
cmp dword [esi + 4], 0
je 0x45d250
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0045d850
test eax, eax
je 0x45d244
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d28a
cmp dword [esp + 8], 0
je 0x45d28a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x45d4e0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x1815434]
call fcn.00470375
test eax, eax
je 0x45d4fc
mov dword [esp + 4], eax
jmp fcn.0045d3d0
xor eax, eax
ret 0xc
Function at 0x45d990
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x1812534]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x45db20
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x45d9de
test ebp, ebp
je 0x45da86
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x45d9fa
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0045d850
mov dword [esp + 0x10], eax
jmp 0x45da14
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x45da89
test cl, cl
je 0x45da28
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x45da63
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x1812534]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x45da86
cmp dword [esp + 0x28], 0
jne 0x45d9d0
cmp cl, 0xd
je 0x45da92
cmp cl, 0xa
jne 0x45d9d0
dec esi
jmp 0x45db03
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x45db03
jmp 0x45da95
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x45da9d
dec esi
jmp 0x45db03
cmp cl, 0xd
jne 0x45db03
dec esi
cmp dword [edi], 0
je 0x45dabb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0045d850
mov dword [esp + 0x10], eax
jmp 0x45dad1
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x45db03
cmp dword [edi], 0
je 0x45dae2
inc dword [ebx + 0xc]
jmp 0x45db03
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10