joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4166ac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x416749
push ebx
push esi
call fcn.00416668
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004168de
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4166f6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416748
push edi
push eax
call fcn.0040f45b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416716
call fcn.0040e490
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416747
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004168de
add esp, 0x20
test eax, eax
jne 0x416735
push edi
call fcn.0040e490
jmp 0x41673d
push ebx
call fcn.0040e490
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41674c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41675d
pop esi
ret
push ebx
push edi
push esi
call fcn.00416668
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040f45b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x416785
push ebx
push esi
push edi
call fcn.00423200
add esp, 0xc
push 0
call fcn.0040e490
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4170b3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416baa
Function at 0x41e26a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x33002d0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e2aa
cmp byte [ebx], 0xa
jne 0x41e2aa
or byte [edi + eax + 0x28], 4
jmp 0x41e2af
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41e3ae
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41e391
inc eax
cmp dl, 0xd
je 0x41e2db
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41e301
cmp eax, ecx
jae 0x41e30f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41e2c3
jmp 0x41e3ae
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e38c
cmp dword [ebp - 0x10], 0
je 0x41e38c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x33002d0]
test byte [eax + edi + 0x28], 0x48
je 0x41e366
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e351
mov byte [esi], dl
jmp 0x41e362
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x33002d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e3ae
cmp byte [ebp - 1], 0xa
jne 0x41e375
cmp esi, ebx
jne 0x41e375
mov byte [esi], 0xa
jmp 0x41e3ad
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041f363
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e3ae
mov byte [esi], 0xd
jmp 0x41e3ad
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x33002d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e3ab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e3ae
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e3b7
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 + 0x33002d0]
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 0x41e3fd
cmp word [ebx], dx
jne 0x41e3fd
or byte [eax + edi + 0x28], 4
jmp 0x41e402
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 0x41e565
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 0x41e545
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41e443
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e479
cmp eax, edx
jae 0x41e487
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 0x41e41e
jmp 0x41e565
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 0x41e540
cmp dword [ebp - 0x18], 0
je 0x41e540
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x33002d0]
test byte [eax + edi + 0x28], 0x48
je 0x41e516
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 0x41e4da
mov word [esi], cx
jmp 0x41e511
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x33002d0]
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 + 0x33002d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x33002d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41e565
pop eax
cmp word [ebp - 4], ax
jne 0x41e526
cmp esi, ebx
jne 0x41e526
mov word [esi], ax
jmp 0x41e562
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041f363
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41e565
push 0xd
pop eax
jmp 0x41e521
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x33002d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41e55f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41e565
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 0x42c378
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 0x42c413
push edi
push 0x33013e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x3300634]
test edi, edi
je 0x42c3e6
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42c3df
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x3300634
call fcn.00440045
pop ecx
pop ecx
jmp 0x42c3e1
mov edi, dword [edi]
test edi, edi
jne 0x42c3b4
pop ebp
mov esi, dword [0x32fbf00]
push 0x10
push 0x3300634
lea eax, [esi + 1]
mov dword [0x32fbf00], eax
call fcn.00440085
pop ecx
pop ecx
push 0x33013e8
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 0x42c749
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x42c79e
push dword [esp + 0x10]
push 0x42c6c8
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x330063c]
test edi, edi
je 0x42c7f7
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x42c796
cmp byte [edi + 0x10], 0
je 0x42c796
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 0x42c772
jmp 0x42c7f7
mov edi, dword [0x330063c]
test edi, edi
je 0x42c7f7
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x42c7f0
cmp byte [edi + 0x11], 0
je 0x42c7c9
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x42c7e0
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 0x330063c
call fcn.00440045
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x42c7ab
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42db14
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x42da67
push 0x10
push 0x2c
call fcn.0043f969
push 0
push 0
push 8
mov dword [0x3300660], eax
call fcn.0043f790
cmp word [0x3300658], 0
mov dword [0x3301438], eax
jne 0x42dbf4
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 [0x3300658], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x3300664], eax
test eax, eax
je 0x42dbf4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x3300664]
mov dword [0x3300648], eax
call esi
push str.getnameinfo
push dword [0x3300664]
mov dword [0x330064c], eax
call esi
push str.WSAStringToAddressA
push dword [0x3300664]
mov dword [0x3300650], eax
call esi
cmp dword [0x3300648], 0
mov ecx, eax
mov dword [0x3300654], ecx
pop esi
je 0x42dbf4
cmp dword [0x330064c], 0
je 0x42dbf4
cmp dword [0x3300650], 0
je 0x42dbf4
mov eax, dword [0x330065c]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x330065c], eax
add esp, 0x190
ret
Function at 0x431ab7
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x431c20
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x431c03
sub eax, 1
jne 0x431c20
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00431a70
pop ecx
test eax, eax
je 0x431b2e
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x431b64
inc edi
jmp 0x431b64
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x431c20
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x431bff
sub ecx, 1
je 0x431bfb
sub ecx, 1
je 0x431bdd
sub ecx, 1
je 0x431ba1
sub ecx, 4
jne 0x431c20
test eax, eax
jne 0x431c20
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x431c20
sub eax, 0
je 0x431bd0
sub eax, 1
je 0x431bc3
sub eax, 1
je 0x431bbc
sub eax, 1
jne 0x431c20
push 0x69
pop esi
push 0x64
jmp 0x431bd5
push 0x5a
pop esi
push 0x5f
jmp 0x431bc8
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x431c20
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x431c20
sub eax, 0
je 0x431bf7
sub eax, 1
je 0x431bf3
sub eax, 1
jne 0x431c20
push 0x41
pop esi
push 0x3c
jmp 0x431bd5
push 0x3c
jmp 0x431c1f
push 0x32
jmp 0x431c1f
push 0x14
jmp 0x431c1f
push 5
jmp 0x431c1f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x431c1d
cmp eax, 0xa
je 0x431c19
cmp eax, 0x5a
jne 0x431c20
push 0x28
jmp 0x431c1f
push 0x1e
jmp 0x431c1f
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x432fee
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 0x433084
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x433081
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x433081
lea eax, [esi - 1]
push eax
push dword [0x3301478]
call fcn.0043f897
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x433083
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x433071
mov edx, 0xfa01
cmp word [ecx], dx
je 0x43307c
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x433061
jmp 0x433081
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x43312a
push eax
call esi
test al, al
jns 0x43312a
push 0x11
call esi
test al, al
js 0x43312a
push 0x10
call esi
test al, al
js 0x43312a
push 0x12
call esi
test al, al
js 0x43312a
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x43312a
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004163c3
add esp, 0xc
test eax, eax
je 0x4330fe
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004163c3
add esp, 0xc
test eax, eax
jne 0x433115
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x43316b
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.0048f576
pop ecx
pop ecx
test eax, eax
je 0x43316b
test ebp, ebp
je 0x43314e
push 0x11
call esi
test al, al
js 0x433146
push 0x10
call esi
test al, al
js 0x433146
push 0x12
call esi
test al, al
jns 0x43314e
push 1
push ebp
call fcn.00433177
test ebx, ebx
je 0x433162
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x43316b
test edi, edi
je 0x43316b
mov eax, dword [edi + 8]
jmp 0x43316d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x43369c
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4337e4
xor ecx, ecx
cmp word [eax], cx
je 0x4337e4
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0048f536
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00414cbf
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4336f5
cmp eax, 3
jne 0x43372f
cmp word [esp + 0xa], 0x3a
jne 0x43372f
cmp eax, 2
jne 0x433713
lea eax, [esp + 8]
push 0x4b9398
push eax
call fcn.0048f5d8
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4337e4
push 0xfffffffffffffffe
pop edi
jmp 0x4337e4
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x433744
cmp ax, bx
jne 0x43374e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x433737
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x43378d
test byte [esp + 0x21c], 0x10
je 0x433774
push 0xfffffffffffffffe
pop edi
jmp 0x433784
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4337e2
cmp word [esp + 0x10], bp
jne 0x43379b
cmp word [esp + 0x12], bp
je 0x4337ba
cmp word [esp + 0x10], bx
jne 0x4337a9
cmp word [esp + 0x12], bx
je 0x4337ba
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4337e2
cmp word [esp + 0x12], ax
jne 0x4337e2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4337cf
test al, 0x10
je 0x4337e2
jmp 0x4337df
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4337e2
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4339cc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x433a44
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0048f536
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00414cbf
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x433a25
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x433a22
cmp ecx, 0x5c
je 0x433a22
cmp ecx, 0x2f
jne 0x433a2f
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x433a0f
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x433a46
xor eax, eax
leave
ret 4
Function at 0x4340d0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4340e9
push dword [0x33014b4]
call fcn.0043fa11
pop edi
ret 4
push esi
push edi
push dword [0x33014b4]
call fcn.0043f897
mov esi, eax
test esi, esi
je 0x434153
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43413f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x43412e
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 [0x32fee44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x33014b4]
call fcn.0043f848
pop esi
pop edi
ret 4

Function at 0x434160
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 0x43419c
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 0x434670
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x33014b4]
call fcn.0043f897
mov esi, eax
test esi, esi
je 0x4346ef
cmp dword [esi + 4], 0
je 0x4346c0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00434c10
test eax, eax
je 0x4346b4
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 0x4346fa
cmp dword [esp + 8], 0
je 0x4346fa
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 0x434ad0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x434bce
cmp word [edx], 0
je 0x434bce
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x434afe
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x434b54
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434b10
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x434b36
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00435220
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call fcn.00435340
mov edi, eax
test edi, edi
je 0x434b4a
cmp dword [esi + 4], 0
je 0x434ba1
push dword [esp + 0x14]
push edi
push esi
call fcn.00435220
push edi
push 0
push dword [0x32fee44]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x32fee44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x434c10
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x434c33
push ebx
call fcn.00434160
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x434cb7
mov ecx, ebp
sub ecx, 1
je 0x434ca2
sub ecx, 1
je 0x434c8b
sub ecx, 2
je 0x434c76
push ebp
push eax
push dword [esp + 0x24]
call fcn.00423200
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00423200
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x434d00
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.00423200
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc