joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a3c0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
mov eax, dword fs:[0x24]
cmp dword [0x4e7b18], 1
push ebp
push esi
mov byte [esp + 0xb], dl
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x41a538
xor al, al
mov ebp, 1
cmp dword [0x4e4bb4], 0
push ebx
movzx ebx, al
cmovne ebx, ebp
cmp dword [0x4e4bb0], 0
mov dword [esp + 0x10], ebx
je 0x41a40b
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x41a420
mov cl, byte [0x4e7b14]
mov dl, 1
not cl
and cl, bl
call fcn.004126b0
mov eax, dword [0x4e7b00]
xor edx, edx
mov ecx, dword [0x4e56f0]
push edi
xor edi, edi
test eax, eax
je 0x41a4d7
xor esi, esi
xor ebx, ebx
nop dword [eax]
cmp dword [esi + ecx], ebp
jne 0x41a4b5
cmp word [esi + ecx + 4], 0
jne 0x41a4b5
cmp word [esi + ecx + 6], 0
jne 0x41a4b5
push 0x1c
lea eax, [ebx + ecx]
push eax
mov eax, edi
sub eax, edx
push eax
call dword [0x4e7a2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4e56f0]
mov dword [0x4e2114], 0
cmp dword [0x4e6ce0], eax
je 0x41a493
mov eax, dword [esi + ecx + 0x10]
test eax, eax
js 0x41a493
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41a49e
mov ecx, dword [esi + ecx + 0x10]
mov edx, ebp
call fcn.00401a30
mov eax, dword [0x4e7b00]
lea edx, [edi + 1]
mov ecx, dword [0x4e56f0]
lea ebx, [esi + 0x1c]
mov dword [0x4e2114], ebp
inc edi
add esi, 0x1c
cmp edi, eax
jb 0x41a440
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x41a4d7
lea eax, [edx*8]
sub eax, edx
push 0x1c
lea eax, [ecx + eax*4]
push eax
push edx
jmp 0x41a4db
push 0x1c
push ecx
push eax
call dword [0x4e7a2c]
pop edi
test bl, bl
je 0x41a5bb
mov al, byte [0x4e7b14]
and al, bl
test al, 1
je 0x41a529
mov cl, 1
call fcn.0041af60
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x4e4c3f]
or dl, bl
mov byte [0x4e4c3f], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x4e4d60], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
pop ebp
add esp, 0xc
jmp fcn.004126b0
push 0
push 0
mov dword [0x4e7b08], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x418780
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4e4b7c], eax
test eax, eax
je 0x41a5bc
mov byte [0x4e4c3e], 1
mov ebp, 1
nop
mov edx, ebp
mov dword [0x4e2114], 0
mov ecx, 0x8000012f
call fcn.00401a30
cmp dword [0x4e4b7c], 0
mov dword [0x4e2114], ebp
jne 0x41a570
mov eax, dword [0x4e3ae4]
mov byte [0x4e4c3e], 0
mov ecx, dword [eax]
mov eax, dword [0x4e7b00]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41a5bc
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
pop ebp
add esp, 0xc
ret
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x41a6e0
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4e4bac]
test edi, edi
je 0x41a7f2
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4e4c18], 0xd4
mov byte [esi + edi + 6], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov eax, 0x69
mov word [esi + edi + 4], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x4e4bac]
mov ecx, edx
mov dword [0x4e4c14], edx
sub ecx, dword [0x4e7a1c]
mov dword [0x4e7a1c], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4dba70]
imul ecx, dword [0x4e4c18], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4db954]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x41a7b5
mov eax, dword [0x4e4bac]
cmp edi, dword [0x4e4c10]
je 0x41a7a0
imul edx, dword [0x4e4c18], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x4e4c18]
jmp 0x41a7d9
mov esi, dword [0x4e4c18]
imul ecx, esi, 0xd4
xor edx, edx
mov word [ecx + eax + 0xc], dx
jmp 0x41a7d9
mov esi, dword [0x4e4c18]
mov ecx, dword [0x4e4bac]
mov eax, dword [0x4ce694]
imul edx, esi, 0xd4
mov dword [edx + ecx + 0xc], eax
mov eax, dword [0x4ce698]
mov dword [edx + ecx + 0x10], eax
inc esi
mov dword [0x4e4c10], edi
xor eax, eax
cmp esi, dword [0x4e2120]
cmovge esi, eax
mov dword [0x4e4c18], esi
pop esi
pop edi
ret

Function at 0x41a800
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov bl, cl
push edi
movzx ebp, bl
mov edi, edx
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
xor esi, 0xffffffff
and esi, 1
inc esi
cmp edi, 1
je 0x41a82a
cmp edi, 2
jne 0x41a901
cmp esi, edi
je 0x41a901
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x41a85d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.004189d0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.004189d0
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4e6ce0]
sete bh
jne 0x41a8b2
mov edx, 1
mov dword [0x4e2114], 0
or ecx, 0xffffffff
call fcn.00401a30
mov dword [0x4e2114], 1
cmp bl, 0x14
jne 0x41a901
cmp edi, 2
jne 0x41a901
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x41a901
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.004189d0
add esp, 0x10
test bh, bh
je 0x41a901
lea edx, [edi - 1]
mov dword [0x4e2114], 0
or ecx, 0xffffffff
call fcn.00401a30
mov dword [0x4e2114], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x41af60
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4e4bb4], 0
je 0x41af75
test cl, cl
jne 0x41af75
mov al, byte [0x4e4c43]
pop ecx
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0xa0
call esi
mov bx, ax
shr bx, 0xb
push 0xa1
and bl, 0x10
call esi
mov cl, bl
mov edi, 0x8000
or cl, 0x20
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa2
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 1
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa3
cmove ebx, ecx
call esi
mov cl, bl
or cl, 2
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa4
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 4
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa5
cmove ebx, ecx
call esi
mov cl, bl
or cl, 8
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0x5b
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 0x40
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0x5c
cmove ebx, ecx
call esi
mov cl, bl
or cl, 0x80
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dword [0x4e4bb4], 0
mov dword [esp + 0xc], edx
je 0x41b095
mov bl, byte [0x4e4c43]
mov cl, dl
not cl
and cl, bl
je 0x41b095
mov dl, byte [0x4e4c3f]
not cl
and byte [0x4e4c42], cl
and dl, cl
and bl, cl
mov byte [0x4e4c3f], dl
mov ecx, 0x4e5568
mov byte [0x4e4c43], bl
call fcn.0041b0a0
mov edx, dword [esp + 0xc]
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret

Function at 0x41b560
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
push esi
xor esi, esi
test ecx, ecx
je 0x41b59f
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [esp + 8], 0x30
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x41b59f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41b59f
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop esi
add esp, 0x38
ret
Function at 0x41b5b0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x288
xor eax, eax
push ebx
push esi
mov ebx, ecx
nop dword [eax]
mov esi, dword [eax*8 + 0x4e7aa8]
test esi, esi
je 0x41b5d5
cmp esi, ebx
je 0x41b601
inc eax
cmp eax, 0xa
jl 0x41b5c0
cmp eax, 0xa
mov ecx, 9
cmovl ecx, eax
mov dword [esp + 0xc], ecx
test edx, edx
je 0x41b626
pop esi
mov dword [ecx*8 + 0x4e7aa8], ebx
mov eax, edx
mov dword [ecx*8 + 0x4e7aac], edx
pop ebx
add esp, 0x288
ret
test edx, edx
je 0x41b616
cmp dword [eax*8 + 0x4e7aac], 0
jne 0x41b616
mov dword [eax*8 + 0x4e7aac], edx
mov eax, dword [eax*8 + 0x4e7aac]
pop esi
pop ebx
add esp, 0x288
ret
push ebp
xor ebp, ebp
push ebp
push ebx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41b6cc
push edi
mov ecx, 0x19
lea edi, [esp + 0x18]
mov esi, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea eax, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
pop edi
test eax, eax
je 0x41b691
push ebp
push ecx
lea eax, [esp + 0x94]
push eax
push str.Layout_File
lea edx, [esp + 0x24]
call fcn.0049d620
add esp, 0x10
test eax, eax
je 0x41b691
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x41b693
xor esi, esi
mov eax, dword [esp + 0xc]
cmp ebx, eax
je 0x41b6a4
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test esi, esi
je 0x41b6cc
push str.KbdLayerDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b6c5
call eax
mov ebp, dword [eax + 0x28]
not ebp
and ebp, 1
add ebp, 3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
mov dword [eax*8 + 0x4e7aac], ebp
mov dword [eax*8 + 0x4e7aa8], ebx
mov eax, ebp
pop ebp
pop esi
pop ebx
add esp, 0x288
ret
Function at 0x41b760
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov bl, cl
xor edi, edi
cmp byte [edi*8 + 0x4e2194], bl
je 0x41b8df
inc edi
cmp edi, 0x6d
jl 0x41b770
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebx - 0x41]
mov esi, eax
cmp cl, 0x19
ja 0x41b86f
push 0x100
lea eax, [esp + 0x2c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esp + 0x14], eax
push esi
push eax
push 2
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 2
jne 0x41b7d9
movzx eax, word [esp + 0x18]
mov dword [esp + 0x14], eax
push esi
push 0
push 2
lea eax, [esp + 0x24]
movzx edi, bl
push eax
lea eax, [esp + 0x38]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [esp + 0x24], eax
test eax, eax
jns 0x41b815
push esi
push 0
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov eax, dword [esp + 0x14]
test ax, ax
je 0x41b85d
push 1
push esi
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.0041bad0
mov bh, al
add esp, 8
test bh, bh
je 0x41b85d
mov dl, byte [esp + 0x13]
lea ecx, [esp + 0x28]
call fcn.0041b0a0
push esi
push 0
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
movzx eax, bh
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp dword [esp + 0x24], 0
je 0x41b86b
movzx eax, word [esp + 0x18]
jmp 0x41b87f
xor eax, eax
jmp 0x41b87f
push esi
push 2
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
movzx eax, ax
mov word [ebp], ax
test ax, ax
je 0x41b89b
pop edi
xor eax, eax
mov word [ebp + 2], ax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
cmp byte [esp + 0x130], 0
je 0x41b8cc
test bl, bl
je 0x41b8cc
push edi
push str.vk_02X
push dword [esp + 0x134]
push ebp
call fcn.0049c210
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
pop edi
xor eax, eax
mov word [ebp], ax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov esi, dword [esp + 0x12c]
dec esi
push esi
push dword [edi*8 + 0x4e2190]
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x41ba00
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
movzx ecx, word [edi]
test cx, cx
je 0x41bac4
cmp word [edi + 2], 0
jne 0x41ba2c
push 1
push dword [esp + 0x20]
call fcn.0041bad0
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
call fcn.00413070
cmp ax, 0x56
jne 0x41ba70
mov cx, word [edi + 2]
call fcn.00413070
cmp ax, 0x4b
jne 0x41ba70
push 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor ebx, ebx
movzx edx, al
cmp word [ecx], bx
pop edi
cmove ebx, edx
pop esi
mov al, bl
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor esi, esi
nop dword [eax + eax]
push edi
push dword [esi*8 + 0x4e2190]
call ebx
add esp, 8
test eax, eax
je 0x41bab8
inc esi
cmp esi, 0x6d
jl 0x41ba80
cmp byte [esp + 0x14], 0
jne 0x41bac4
mov ecx, edi
call fcn.0041b910
movzx ecx, ax
test cx, cx
je 0x41bac4
pop edi
pop esi
pop ebx
add esp, 4
jmp fcn.0041c390
mov al, byte [esi*8 + 0x4e2194]
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x41bad0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
cmp di, 0xa
jne 0x41bae1
pop edi
mov al, 0xd
pop esi
ret
push ebx
push dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ebx, ax
mov ecx, ebx
shr ecx, 8
cmp cl, 0xff
jne 0x41bb3d
cmp bl, 0xff
jne 0x41bb3d
cmp byte [esp + 0x14], 0
je 0x41bb42
movzx eax, di
test eax, 0xffffff80
jne 0x41bb42
push 0x103
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x41bb42
mov ecx, edi
call fcn.00413070
mov edx, 1
mov ecx, edi
mov bl, al
call fcn.00406440
test eax, eax
setne cl
test cl, 0x38
je 0x41bb48
pop ebx
pop edi
xor al, al
pop esi
ret
test esi, esi
je 0x41bb86
mov al, cl
and al, 6
cmp al, 6
jne 0x41bb59
or byte [esi], 8
jmp 0x41bb77
test cl, 2
je 0x41bb68
mov al, byte [esi]
test al, 3
jne 0x41bb68
or al, 1
mov byte [esi], al
test cl, 4
je 0x41bb77
mov al, byte [esi]
test al, 0xc
jne 0x41bb77
or al, 4
mov byte [esi], al
test cl, 1
je 0x41bb86
mov al, byte [esi]
test al, 0x30
jne 0x41bb86
or al, 0x10
mov byte [esi], al
mov al, bl
pop ebx
pop edi
pop esi
ret
Function at 0x41c390
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx edx, bx
mov eax, edx
cmp edx, 0x11c
ja 0x41c408
je 0x41c404
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41c419.286
movzx eax, byte [eax + 0x41c4bc]
jmp dword [eax*4 + 0x41c470]
mov al, 0xa0
pop ebx
ret
mov al, 0xa2
pop ebx
ret
mov al, 0xa4
pop ebx
ret
mov al, 0x6a
pop ebx
ret
mov al, 0x6d
pop ebx
ret
mov al, 0x6b
pop ebx
ret
mov al, 0x2e
pop ebx
ret
mov al, 0xc
pop ebx
ret
mov al, 0x2d
pop ebx
ret
mov al, 0x26
pop ebx
ret
mov al, 0x28
pop ebx
ret
mov al, 0x25
pop ebx
ret
mov al, 0x27
pop ebx
ret
mov al, 0x24
pop ebx
ret
mov al, 0x23
pop ebx
ret
mov al, 0x21
pop ebx
ret
mov al, 0x22
pop ebx
ret
mov al, 0x13
pop ebx
ret
mov al, 0xd
pop ebx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x41c419.286
movzx eax, byte [eax + 0x41c51c]
jmp dword [eax*4 + 0x41c4f4]
mov al, 0xa1
pop ebx
ret
mov al, 0xa3
pop ebx
ret
mov al, 0xa5
pop ebx
ret
mov al, 0x5b
pop ebx
ret
mov al, 0x5c
pop ebx
ret
mov al, 0x90
pop ebx
ret
mov al, 0x6f
pop ebx
ret
mov al, 0x5d
pop ebx
ret
mov al, 0x2c
pop ebx
ret
test ebx, 0x100
je 0x41c461
movzx eax, dl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x41c46d
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
pop ebx
ret
Function at 0x41e240
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x41e2fd
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
sub edi, 1
jne 0x41e256
pop edi
test esi, esi
je 0x41e31b
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
sub esi, 1
jne 0x41e301
not ecx
mov eax, ecx
pop esi
ret

Function at 0x41e720
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
test byte [esi], 1
jne 0x41e753
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0x14]
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e74c
mov dword [esi + 8], 7
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x10]
xor eax, eax
push ebx
mov ebx, dword [esi + 0x18]
push ebp
push edi
mov edi, dword [esp + 0x18]
mov ebp, edi
add ebp, ebx
adc eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jb 0x41e778
ja 0x41e774
cmp ebp, ecx
jbe 0x41e778
mov edi, ecx
sub edi, ebx
mov ecx, dword [esi + 4]
push edi
add ecx, ebx
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, edi
add dword [esi + 0x18], edi
adc dword [esi + 0x1c], 0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x41fb50
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
mov al, byte [ecx]
mov dword [esp + 4], 0xc
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp], ecx
push ebx
mov ebx, edx
push ebp
push esi
push edi
test al, al
je 0x41fb86
cmp byte [ecx + 1], 0x3a
jne 0x41fb86
mov al, byte [ecx + 2]
add ecx, 2
mov dl, al
cmp al, 0x5c
jne 0x41fb8f
mov dl, byte [ecx + 1]
lea esi, [ecx + 1]
cmovne esi, ecx
test dl, dl
je 0x41fbe8
mov al, byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x41fbbc
nop dword [eax + eax]
cmp al, 0x5c
je 0x41fbf5
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41fbb0
xor esi, esi
test ebx, ebx
je 0x41fbe8
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x41fbda
call edi
cmp eax, 0xb7
jne 0x41fbfa
test esi, esi
je 0x41fbe8
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x41fbb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov byte [esi], 0
jmp 0x41fbc2
test esi, esi
je 0x41fc01
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x41fc10
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
movzx esi, word [ecx]
mov ebx, edx
mov dword [esp + 0x10], 0xc
mov eax, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], ecx
push edi
test si, si
je 0x41fc4d
cmp word [ecx + 2], 0x3a
jne 0x41fc4d
movzx eax, word [ecx + 4]
add ecx, 4
movzx edi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x41fc5d
movzx edx, word [ecx + 2]
cmp edi, 0x5c
lea esi, [ecx + 2]
cmovne esi, ecx
test dx, dx
je 0x41fcd1
movzx ecx, word [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
movzx eax, cx
test ax, ax
je 0x41fc9a
cmp ax, 0x5c
je 0x41fcde
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x41fc88
xor esi, esi
test ebx, ebx
je 0x41fcd1
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x41fcb8
call edi
cmp eax, 0xb7
jne 0x41fce5
test esi, esi
je 0x41fcd1
mov eax, 0x5c
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x41fc80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
xor eax, eax
mov word [esi], ax
jmp 0x41fca0
test esi, esi
je 0x41fcf1
mov eax, 0x5c
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x41fd00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41ff11
mov eax, dword [esi + 0x30]
and eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x41ff11
mov ebx, dword [ebp + 0xc]
mov dword [esi + 8], 0
test bl, 1
je 0x41fdb2
cmp word [esi + 0x70], 0
mov ebx, dword [ebp + 8]
jne 0x41fd63
mov edx, ebx
mov ecx, esi
call fcn.0041eef0
cmp dword [esi + 8], 0
jne 0x41ff00
mov eax, 1
mov word [esi + 0x70], ax
push dword [ebx + 0x2c]
mov edx, edi
mov ecx, esi
push dword [ebx + 0x28]
call fcn.0041f1f0
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp dword [esi + 8], 0
jne 0x41fd9b
mov eax, dword [esi + 0xe8]
or eax, dword [esi + 0xec]
je 0x41fd9b
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi + 0x70], ax
call fcn.0041ed80
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 8], 0x10
je 0x41fde8
test bl, 2
je 0x41fddf
mov edx, 1
mov ecx, edi
test ebx, ebx
jns 0x41fdd2
call fcn.0041fc10
jmp 0x41fdd7
call fcn.0041fb50
test eax, eax
je 0x41fef9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
je 0x41fe35
xor edx, edx
mov ecx, edi
test ebx, ebx
jns 0x41fdfc
call fcn.0041fc10
jmp 0x41fe01
call fcn.0041fb50
test eax, eax
je 0x41fef9
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax + 8]
push eax
push 2
push 0
push 0
push 0x40000000
push edi
test ebx, ebx
jns 0x41fe2a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x41fe30
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x41fef9
mov edx, eax
mov ecx, esi
call fcn.0041eef0
cmp dword [esi + 8], 0
jne 0x41fedc
cmp dword [esi + 0x4c], 0
jne 0x41fe72
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x41fe72
mov dword [esi + 8], 2
cmp dword [esi + 8], 0
jne 0x41fedc
mov edx, dword [esi + 0x4c]
mov ecx, esi
push 0
push 0x4000
call fcn.0041f1f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41febd
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esi + 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41feb6
cmp dword [esp + 0xc], ebx
jne 0x41feb6
cmp dword [esi + 8], 0
je 0x41fe78
jmp 0x41febd
mov dword [esi + 8], 3
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 0xc]
jne 0x41fedc
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp ebx, 4
je 0x41ff00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041ed80
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], 1
mov ecx, esi
call fcn.0041ed80
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret