joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a6a
Capabilities:
Get keyboard layout
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x438]
sub esp, 0x4b8
mov eax, dword [0x43fda4]
xor eax, ebp
mov dword [ebp + 0x434], eax
mov eax, dword [ebp + 0x440]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
push eax
push 0xf003f
push esi
push str.Keyboard_LayoutPreload
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409b9c
cmp dword [ebp - 0x78], esi
mov edi, 0x432f34
jbe 0x409b23
lea ebx, [eax + 1]
push ebx
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.0041a34e
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x194]
push eax
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409b1c
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x74]
mov word [ebp + eax*2 + 0x194], si
lea eax, [ebp + 0x194]
push eax
call fcn.00418daf
test eax, eax
pop ecx
pop ecx
je 0x409b8f
mov eax, ebx
cmp eax, dword [ebp - 0x78]
jb 0x409acd
mov eax, dword [ebp - 0x78]
inc eax
push eax
lea eax, [ebp + 0x394]
push edi
push eax
call fcn.0041a34e
push dword [ebp - 0x74]
call fcn.004194ab
add esp, 0x10
add eax, eax
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x394]
push 1
push esi
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x101
push dword [ebp - 0x74]
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
lea eax, [ebp - 0x80]
push eax
push 0x5dc
push esi
push str.HKEY_CURRENT_USERKeyboard_LayoutPreload
push esi
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x409b98
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x409b9e
xor al, al
mov ecx, dword [ebp + 0x434]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419911
add ebp, 0x438
leave
ret
Function at 0x40a193
Capabilities:
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x188]
sub esp, 0x208
mov eax, dword [0x43fda4]
xor eax, ebp
mov dword [ebp + 0x184], eax
push ebx
push esi
mov esi, dword [ebp + 0x190]
xor ebx, ebx
cmp esi, ebx
je 0x40a321
cmp byte [ebp + 0x194], bl
je 0x40a2f7
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0041a59a
lea eax, [ebp - 0x7c]
push 0x5c
push eax
call fcn.00418ec1
add esp, 0x10
cmp eax, ebx
je 0x40a321
add eax, 2
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.0041a59a
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp - 0x7c]
push str._s.old
push eax
call fcn.0041a34e
lea eax, [ebp + 0x84]
push esi
push eax
call fcn.0041a59a
lea eax, [ebp + 0x84]
push 0x5c
push eax
call fcn.00418ec1
mov word [eax + 2], bx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.0041a570
add esp, 0x2c
cmp dword [0x4414b0], ebx
je 0x40a255
lea eax, [ebp - 0x80]
push eax
call fcn.004098d7
pop ecx
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x4414b0], ebx
je 0x40a285
push dword [ebp - 0x80]
call fcn.00409910
cmp dword [0x4414b0], ebx
pop ecx
je 0x40a285
lea eax, [ebp - 0x80]
push eax
call fcn.004098d7
pop ecx
lea eax, [ebp + 0x84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [0x4414b0], ebx
je 0x40a2a4
push dword [ebp - 0x80]
call fcn.00409910
pop ecx
lea eax, [ebp + 0x84]
push esi
push eax
call fcn.0041a59a
lea eax, [ebp + 0x84]
push 0x5c
push eax
call fcn.00418ec1
mov word [eax + 2], bx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.0041a570
add esp, 0x18
cmp dword [0x4414b0], ebx
je 0x40a2e8
lea eax, [ebp - 0x80]
push eax
call fcn.004098d7
pop ecx
push 4
push ebx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40a310
cmp dword [0x4414b0], ebx
je 0x40a309
lea eax, [ebp - 0x80]
push eax
call fcn.004098d7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x4414b0], ebx
je 0x40a321
push dword [ebp - 0x80]
call fcn.00409910
pop ecx
mov ecx, dword [ebp + 0x184]
pop esi
xor ecx, ebp
pop ebx
call fcn.00419911
add ebp, 0x188
leave
ret

Function at 0x40a338
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
push 0x43aba0
call fcn.0041a66c
xor eax, eax
inc eax
mov dword [ebp - 0x1c], eax
mov esi, 0x80
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x24]
push ecx
push eax
push edi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x40a37d
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a3ba
mov dword [ebp - 0x20], esi
push edi
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0041a651
pop ecx
pop ecx
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x40a372
mov eax, dword [ebp - 0x20]
cmp eax, esi
ja 0x40a372
mov word [ebx + eax*2], di
jmp 0x40a372
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.0041a6b1
ret
Function at 0x419911
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fda4]
jne 0x41991b
repz ret
jmp fcn.0042187c

Function at 0x41a5b6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41a5e3
call fcn.0041aff8
mov dword [eax], esi
call fcn.0041afe5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041ddfb
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41a5bf
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a612
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b00b
pop ecx
call fcn.0041afe5
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41a639
test al, 1
je 0x41a639
test byte [esp + 0xc], 2
je 0x41a639
call fcn.0041aff8
mov dword [eax], 5
call fcn.0041afe5
mov dword [eax], 0xd
jmp 0x41a609
xor eax, eax
pop esi
ret
Function at 0x4298ae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041ec7d
xor ebx, ebx
cmp dword [0x443e4c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x429983
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4298ee
xor eax, eax
jmp 0x429a47
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4298e7
push eax
call fcn.0041ec1a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x443e4c], eax
call esi
push eax
call fcn.0041ec1a
mov dword [esp], 0x438500
push edi
mov dword [0x443e50], eax
call esi
push eax
call fcn.0041ec1a
mov dword [0x443e54], eax
lea eax, [ebp - 8]
push eax
call fcn.0041d484
test eax, eax
pop ecx
pop ecx
je 0x429951
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041dcff
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x429983
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041ec1a
cmp eax, ebx
pop ecx
mov dword [0x443e5c], eax
je 0x429983
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ec1a
pop ecx
mov dword [0x443e58], eax
mov eax, dword [0x443e58]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4299fc
cmp dword [0x443e5c], esi
je 0x4299fc
push eax
call fcn.0041ec86
pop ecx
call eax
cmp eax, ebx
je 0x4299c9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x443e5c]
call fcn.0041ec86
pop ecx
call eax
test eax, eax
je 0x4299c9
test byte [ebp - 0x18], 1
jne 0x4299fc
lea eax, [ebp - 0xc]
push eax
call fcn.0041d4bb
test eax, eax
pop ecx
je 0x4299e4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041dcff
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4299f3
or dword [ebp + 0x10], 0x200000
jmp 0x429a2d
or dword [ebp + 0x10], 0x40000
jmp 0x429a2d
mov eax, dword [0x443e50]
cmp eax, esi
je 0x429a2d
push eax
call fcn.0041ec86
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x429a2d
mov eax, dword [0x443e54]
cmp eax, esi
je 0x429a2d
push dword [ebp - 4]
push eax
call fcn.0041ec86
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x443e4c]
call fcn.0041ec86
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42dd56
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43fda4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042dceb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004194d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42dda5
cmp dword [ebp - 0x1c], 5
jb 0x42ddbd
jmp 0x42ddb9
cmp dword [ebp - 0x10], 1
jne 0x42ddbd
cmp dword [ebp - 0x1c], 4
ja 0x42ddb9
jne 0x42ddbd
cmp dword [ebp - 0x18], 0
jbe 0x42ddbd
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x438574
call fcn.0042dbbf
test eax, eax
jge 0x42ddde
mov byte [0x4411a0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419911
add ebp, 0x78
leave
ret
Function at 0x401f49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x47bf30]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x401fb9
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004028d3
lea ecx, [esp + 0x1c]
call fcn.00401d79
cmp eax, dword [esp + 0x10]
je 0x401fd0
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403198
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x401f89
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ca2
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403b38
push eax
call fcn.00403b06
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403198
jmp 0x401fbb

Function at 0x402003
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x47bf30], eax
pop edi
pop esi
ret

Function at 0x407a6d
Capabilities:
Parse pe header

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

Function at 0x41612c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427050
push 0x427048
push str.FlsAlloc
push 0x1e
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416160
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
jmp 0x416166
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4161aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427060
push 0x427058
push str.FlsGetValue
push 0x20
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4161e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416f76
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416c18

Function at 0x416f81
Capabilities:
Read file on windows

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407be0
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004149e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41862e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41878a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421a10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47bb28]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418a12
mov ecx, dword [esi*4 + 0x47bb28]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418783
cmp eax, dword [edi + ecx + 0x24]
jne 0x418783
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418783
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418a12
add esp, 0x14
test edx, edx
jl 0x418783
jg 0x4186f9
test eax, eax
jb 0x418783
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418783
jl 0x418713
cmp dword [ebp - 0x1008], eax
ja 0x418783
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418731
test ebx, ebx
je 0x41876a
cmp ecx, edi
jae 0x41876a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41874b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418757
cmp byte [ecx + 1], 0xa
jne 0x418757
inc ecx
jmp 0x418757
movzx eax, al
movsx eax, byte [eax + 0x42d9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418731
cmp edx, ebx
jne 0x418731
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418788
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406ca2
leave
ret
Function at 0x41ed7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x47bb28]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41edbc
cmp byte [ebx], 0xa
jne 0x41edbc
or byte [eax + edi + 0x28], 4
jmp 0x41edc1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eebf
mov al, byte [edx]
cmp al, 0x1a
je 0x41eea1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41edf0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ee15
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee1f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41edd2
jmp 0x41eebf
push 0
lea eax, [ebp - 0xc]
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 0x41ee9c
cmp dword [ebp - 0xc], 0
je 0x41ee9c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47bb28]
test byte [eax + edi + 0x28], 0x48
je 0x41ee76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee61
mov byte [esi], dl
jmp 0x41ee72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47bb28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eebf
cmp byte [ebp - 1], 0xa
jne 0x41ee85
cmp esi, ebx
jne 0x41ee85
mov byte [esi], 0xa
jmp 0x41eebe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eebf
mov byte [esi], 0xd
jmp 0x41eebe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47bb28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eebb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eebf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eec8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47bb28]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ef0b
cmp word [esi], dx
jne 0x41ef0b
or byte [edi + eax + 0x28], 4
jmp 0x41ef10
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f063
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f043
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef52
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef88
cmp eax, edx
jae 0x41ef94
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ef2a
jmp 0x41f063
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f03f
cmp dword [ebp - 0x14], 0
je 0x41f03f
mov eax, dword [ebx*4 + 0x47bb28]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f017
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efe0
mov word [esi], cx
jmp 0x41f013
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47bb28]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47bb28]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47bb28]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f063
pop ebx
cmp word [ebp - 4], bx
jne 0x41f028
cmp esi, dword [ebp + 0xc]
jne 0x41f028
mov word [esi], bx
jmp 0x41f060
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f063
push 0xd
jmp 0x41f05c
mov ecx, dword [ebx*4 + 0x47bb28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f05a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f063
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x408d60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d3a8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004c6465
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408de2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c3e7a
mov eax, dword [eax]
push 0xaa0d1c
push eax
call fcn.004b4ca4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c66f0
test bl, bl
je 0x408de2
push 0xaa0d1c
lea ecx, [esp + 0xc]
call fcn.004c6acc
push 0xaa0d28
lea ecx, [esp + 0xc]
call fcn.004c6acc
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408e1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c66f0
jmp 0x408ee9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408ea2
lea edx, [esp + 0x7c]
push 0xaa0d24
push edx
call fcn.004b4ca4
add esp, 8
test eax, eax
je 0x408ea2
lea eax, [esp + 0x7c]
push 0xaa0d20
push eax
call fcn.004b4ca4
add esp, 8
test eax, eax
je 0x408ea2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408e32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004c66f0
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4096f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409752
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc