joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405aa5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405ae4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405ae4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405ae4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405ae4
cmp dword [ecx + 0x74], 0xe
jbe 0x405ae4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40a0f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x471ddc
push str.FlsAlloc
push 0x1f
call fcn.00409f64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a12d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4713d0]
call esi
jmp 0x40a133
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a177
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x471e00
push str.FlsGetValue
push 0x21
call fcn.00409f64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a1ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x4713d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a1b6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x471e14
push str.FlsSetValue
push 0x22
call fcn.00409f64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a1f0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4713d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40bc28
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 0x40bcc5
push ebx
push esi
call fcn.0040bbf1
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.0040bb85
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bc72
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bcc4
push edi
push eax
call fcn.00408eb5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bc92
call fcn.00408e7b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bcc3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040bb85
add esp, 0x20
test eax, eax
jne 0x40bcb1
push edi
call fcn.00408e7b
jmp 0x40bcb9
push ebx
call fcn.00408e7b
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 0x40eeba
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00409934
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40ef29
cmp esi, dword [ebp - 4]
je 0x40ef24
cmp dword [ebp + 0xc], 0
je 0x40ef24
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40ef01
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040ea0c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40ef2b
xor eax, eax
inc eax
jmp 0x40ef2b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40ef90
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a6224]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00409934
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00409934
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40f007
cmp word [ecx], dx
je 0x40f007
mov eax, dword [0x4730bc]
push edi
dec eax
push eax
push 0x472fa8
call fcn.0040ef2f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40f07a
cmp word [eax], dx
je 0x40f07a
mov eax, dword [edi]
test eax, eax
je 0x40f02b
cmp word [eax], dx
je 0x40f02b
lea eax, [ebp - 0x10]
push eax
call fcn.0040e912
jmp 0x40f034
lea eax, [ebp - 0x10]
push eax
call fcn.0040e9ad
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40f0a4
mov eax, dword [0x472fa4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x472c98
call fcn.0040ef2f
add esp, 0xc
test al, al
je 0x40f0a4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40f06f
cmp word [eax], di
je 0x40f06f
lea eax, [ebp - 0x10]
push eax
call fcn.0040e912
pop ecx
jmp 0x40f0a6
lea eax, [ebp - 0x10]
push eax
call fcn.0040e9ad
jmp 0x40f06c
mov eax, dword [edi]
test eax, eax
je 0x40f091
cmp word [eax], dx
je 0x40f091
lea eax, [ebp - 0x10]
push eax
call fcn.0040e8c7
pop ecx
jmp 0x40f0a4
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40f16f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040edb4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40f16f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40f16f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40f16f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40f0fc
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040a2f6
test ebx, ebx
je 0x40f16a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040a2f6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f16f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f16f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041134e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40f171
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405dd5
leave
ret
Function at 0x413fa8
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 + 0x4a7330]
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 0x413fe8
cmp byte [ebx], 0xa
jne 0x413fe8
or byte [edi + eax + 0x28], 4
jmp 0x413fed
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 0x4140ec
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4140cf
inc eax
cmp dl, 0xd
je 0x414019
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41403f
cmp eax, ecx
jae 0x41404d
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 0x414001
jmp 0x4140ec
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 0x4140ca
cmp dword [ebp - 0x10], 0
je 0x4140ca
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4a7330]
test byte [eax + edi + 0x28], 0x48
je 0x4140a4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41408f
mov byte [esi], dl
jmp 0x4140a0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a7330]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4140ec
cmp byte [ebp - 1], 0xa
jne 0x4140b3
cmp esi, ebx
jne 0x4140b3
mov byte [esi], 0xa
jmp 0x4140eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413dad
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4140ec
mov byte [esi], 0xd
jmp 0x4140eb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4a7330]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4140e9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4140ec
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4140f5
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 + 0x4a7330]
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 0x41413b
cmp word [ebx], dx
jne 0x41413b
or byte [eax + edi + 0x28], 4
jmp 0x414140
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 0x4142a3
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 0x414283
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x414181
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4141b7
cmp eax, edx
jae 0x4141c5
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 0x41415c
jmp 0x4142a3
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 0x41427e
cmp dword [ebp - 0x18], 0
je 0x41427e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4a7330]
test byte [eax + edi + 0x28], 0x48
je 0x414254
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 0x414218
mov word [esi], cx
jmp 0x41424f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4a7330]
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 + 0x4a7330]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4a7330]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4142a3
pop eax
cmp word [ebp - 4], ax
jne 0x414264
cmp esi, ebx
jne 0x414264
mov word [esi], ax
jmp 0x4142a0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413dad
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4142a3
push 0xd
pop eax
jmp 0x41425f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4a7330]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41429d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4142a3
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 0x41aa89
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41aade
push dword [esp + 0x10]
push 0x41aa08
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x4a762c]
test edi, edi
je 0x41ab37
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x41aad6
cmp byte [edi + 0x10], 0
je 0x41aad6
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 0x41aab2
jmp 0x41ab37
mov edi, dword [0x4a762c]
test edi, edi
je 0x41ab37
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x41ab30
cmp byte [edi + 0x11], 0
je 0x41ab09
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x41ab20
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 0x4a762c
call fcn.00426d5b
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x41aaeb
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41df70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x4a7ac0]
call fcn.00426613
mov esi, eax
test esi, esi
je 0x41e04a
cmp dword [ebp + 0xc], 0
je 0x41dfbc
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x41dfad
cmp dword [esi + 0x1c], 0
jne 0x41dfad
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41e04a
test byte [ebp + 0x10], 3
je 0x41dfd7
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0041ef5a
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x41dffc
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x41e010
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x41e02d
test ebx, ebx
je 0x41e021
push 8
jmp 0x41e033
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x41e040
test ebx, ebx
je 0x41e036
push 3
pop ecx
jmp 0x41e040
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x41f16c
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 0x41f202
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x41f1ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x41f1ff
lea eax, [esi - 1]
push eax
push dword [0x4a7ac0]
call fcn.00426613
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x41f201
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x41f1ef
mov edx, 0xfa01
cmp word [ecx], dx
je 0x41f1fa
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41f1df
jmp 0x41f1ff
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x41f2a8
push eax
call esi
test al, al
jns 0x41f2a8
push 0x11
call esi
test al, al
js 0x41f2a8
push 0x10
call esi
test al, al
js 0x41f2a8
push 0x12
call esi
test al, al
js 0x41f2a8
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x41f2a8
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0040d9e1
add esp, 0xc
test eax, eax
je 0x41f27c
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0040d9e1
add esp, 0xc
test eax, eax
jne 0x41f293
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x41f2e9
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.00454f58
pop ecx
pop ecx
test eax, eax
je 0x41f2e9
test ebp, ebp
je 0x41f2cc
push 0x11
call esi
test al, al
js 0x41f2c4
push 0x10
call esi
test al, al
js 0x41f2c4
push 0x12
call esi
test al, al
jns 0x41f2cc
push 1
push ebp
call fcn.0041f2f5
test ebx, ebx
je 0x41f2e0
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x41f2e9
test edi, edi
je 0x41f2e9
mov eax, dword [edi + 8]
jmp 0x41f2eb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x41f649
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x4a7910]
push esi
test eax, eax
jne 0x41f66e
push fcn.0041f776
push 0x10
push 0x258
call fcn.004266e6
mov dword [0x4a7910], eax
push dword [esp + 0xc]
push eax
call fcn.00426652
mov esi, eax
test esi, esi
je 0x41f76f
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x41f690
mov edi, 0x474398
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x41f6a0
xor eax, eax
cmp word [ebx], ax
jne 0x41f6a5
mov ebx, 0x47682c
push edi
call fcn.0040d709
push ebx
mov dword [esp + 0x24], eax
call fcn.0040d709
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x4a6b80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41f756
push edi
push eax
call fcn.00454f98
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x41f706
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x41f70a
push 0x4716f0
push edi
call fcn.00455e68
pop ecx
pop ecx
jmp 0x41f70a
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.00455e68
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41f72e
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x41f744
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41f742
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x4a6b80]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x41f76d
cmp dword [esp + 0x14], 0xffffffff
je 0x41f761
mov esi, dword [esp + 0x14]
push esi
push dword [0x4a7910]
call fcn.004265c4
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x41f7ec
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 0x41f934
xor ecx, ecx
cmp word [eax], cx
je 0x41f934
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00455e99
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0040d709
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x41f845
cmp eax, 3
jne 0x41f87f
cmp word [esp + 0xa], 0x3a
jne 0x41f87f
cmp eax, 2
jne 0x41f863
lea eax, [esp + 8]
push 0x4716f0
push eax
call fcn.00455e68
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41f934
push 0xfffffffffffffffe
pop edi
jmp 0x41f934
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x41f894
cmp ax, bx
jne 0x41f89e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x41f887
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x41f8dd
test byte [esp + 0x21c], 0x10
je 0x41f8c4
push 0xfffffffffffffffe
pop edi
jmp 0x41f8d4
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41f932
cmp word [esp + 0x10], bp
jne 0x41f8eb
cmp word [esp + 0x12], bp
je 0x41f90a
cmp word [esp + 0x10], bx
jne 0x41f8f9
cmp word [esp + 0x12], bx
je 0x41f90a
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x41f932
cmp word [esp + 0x12], ax
jne 0x41f932
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x41f91f
test al, 0x10
je 0x41f932
jmp 0x41f92f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41f932
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 0x41f9cd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x41f9e3
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f9e6
or eax, 0xffffffff
ret 4

Function at 0x41fb5e
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x41fb6c
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8
Function at 0x41fbd0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x41fbe9
push dword [0x4a7ae0]
call fcn.0042678f
pop edi
ret 4
push esi
push edi
push dword [0x4a7ae0]
call fcn.00426613
mov esi, eax
test esi, esi
je 0x41fc53
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41fc3f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x41fc2e
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 [0x4a6b80]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x4a7ae0]
call fcn.004265c4
pop esi
pop edi
ret 4

Function at 0x41fc60
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 0x41fc9c
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 0x41fce0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4a7ae0]
call fcn.00426613
mov esi, eax
test esi, esi
je 0x41fd5f
cmp dword [esi + 4], 0
je 0x41fd30
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0041ff10
test eax, eax
je 0x41fd24
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 0x41fd6a
cmp dword [esp + 8], 0
je 0x41fd6a
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