joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a60
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_DragQueryFileA]
push esi
push edi
mov edi, dword [esp + 0x124]
push 0
push 0
push 0xffffffffffffffff
push edi
mov ebx, ecx
call ebp
push 0x103
mov dword [esp + 0x14], eax
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.00418570
xor esi, esi
add esp, 0xc
cmp dword [esp + 0x10], esi
jbe 0x417ae5
push 0x104
lea ecx, [esp + 0x18]
push ecx
push esi
push edi
call ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x417ade
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00416d00
inc esi
cmp esi, dword [esp + 0x10]
jb 0x417ab5
push edi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [ebx + 0x6dc]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jbe 0x417b42
mov eax, dword [ebx + 0x704]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
xor edx, edx
cmp dword [ebx + 0x5a4], 0xffffffff
setne dl
mov esi, edx
push esi
push eax
call edi
mov ecx, dword [ebx + 0x6fc]
push esi
push ecx
call edi
mov edx, dword [ebx + 0x708]
push esi
push edx
call edi
mov eax, dword [ebx + 0x6f8]
push esi
push eax
call edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x10c
ret 8

Function at 0x417b60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
mov esi, ecx
call edi
mov eax, dword [esi + 0x6ec]
push 0
push eax
call edi
mov ecx, dword [esi + 0x6f0]
push 0
push ecx
call edi
mov eax, dword [esi + 0x6ec]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
call ebx
lea ecx, [esp + 0xc]
lea edi, [esi + 4]
push ecx
mov ecx, edi
call fcn.004150a0
mov eax, dword [esi + 0x6f0]
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.00419671
mov edx, dword [esi + 0x710]
add esp, 4
push edx
mov ecx, edi
mov word [esi + 0x10], ax
call fcn.00416280
lea eax, [esi + 0x478]
push eax
mov ecx, esi
call fcn.00417220
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x14
ret 8
Function at 0x417dd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa8
push ebx
push esi
push edi
xor esi, esi
push 0x38
lea eax, [esp + 0x5c]
push esi
push eax
mov edi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x60], esi
call fcn.00418570
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x5c], 1
call fcn.004170a0
mov ecx, dword [edi + 0x6dc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x1004
push ecx
call ebx
cmp eax, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
jle 0x417f50
push ebp
jmp 0x417e3a
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x6dc]
lea edx, [esp + 0x1c]
push edx
push esi
push 0x102e
push eax
mov dword [esp + 0x34], 2
mov dword [esp + 0x40], 0x42737c
call ebx
mov edx, dword [edi + 0x6dc]
lea ecx, [esp + 0x58]
push ecx
push esi
push 0x102d
push edx
call ebx
mov ebp, eax
lea ebx, [ebp + 1]
push ebx
call fcn.0041842a
push ebx
mov esi, eax
push 0
push esi
call fcn.00418570
mov ebx, dword [esp + 0x24]
mov ecx, dword [edi + 0x6dc]
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x102d
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0x6c8]
push 0
lea edx, [esp + 0x14]
push edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push eax
call ebp
cmp dword [esp + 0xbc], 0
je 0x417f20
lea ecx, [esp + 0x94]
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
mov edx, dword [esp + 0xb4]
push edx
push str.__d_r_n
push esi
call fcn.0041861e
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417f05
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
mov edx, dword [edi + 0x6c8]
push eax
push esi
push edx
jmp 0x417f35
mov ecx, dword [edi + 0x6c8]
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x4265f8
push ecx
call ebp
push esi
call fcn.00418bde
inc ebx
add esp, 4
cmp ebx, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
jl 0x417e30
pop ebp
mov edx, dword [esp + 0xbc]
push edx
mov ecx, edi
call fcn.004170e0
pop edi
pop esi
pop ebx
add esp, 0xa8
ret 8

Function at 0x4183c0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x718], 0xffffffff
mov dword [esi + 0x6d8], eax
push 0
jne 0x4183f4
push 0
push esi
push 0x4183a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x718], eax
pop esi
ret 4
mov ecx, dword [esi + 0x6f4]
push ecx
mov ecx, esi
call fcn.00417b60
pop esi
ret 4

Function at 0x41869b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b160]
jne 0x4186a5
repz ret
jmp fcn.0041b3f7
Function at 0x421b7d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041a09f
and dword [ebp - 4], 0
cmp dword [0x42d8c4], 0
mov ebx, eax
jne 0x421c2e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421cdf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x428438
push edi
call esi
test eax, eax
je 0x421cdf
push eax
call fcn.0041a02d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42d8c4], eax
call esi
push eax
call fcn.0041a02d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42d8c8], eax
call esi
push eax
call fcn.0041a02d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42d8cc], eax
call esi
push eax
call fcn.0041a02d
pop ecx
mov dword [0x42d8d4], eax
test eax, eax
je 0x421c2e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041a02d
pop ecx
mov dword [0x42d8d0], eax
mov eax, dword [0x42d8d0]
cmp eax, ebx
je 0x421c86
cmp dword [0x42d8d4], ebx
je 0x421c86
push eax
call fcn.0041a0a8
push dword [0x42d8d4]
mov esi, eax
call fcn.0041a0a8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421c86
test edi, edi
je 0x421c86
call esi
test eax, eax
je 0x421c7d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421c7d
test byte [ebp - 0xc], 1
jne 0x421c86
or dword [ebp + 0x10], 0x200000
jmp 0x421cbf
mov eax, dword [0x42d8c8]
cmp eax, ebx
je 0x421cbf
push eax
call fcn.0041a0a8
pop ecx
test eax, eax
je 0x421cbf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x421cbf
mov eax, dword [0x42d8cc]
cmp eax, ebx
je 0x421cbf
push eax
call fcn.0041a0a8
pop ecx
test eax, eax
je 0x421cbf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d8c4]
call fcn.0041a0a8
pop ecx
test eax, eax
je 0x421cdf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421ce1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c89
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov ecx, ebx
push edi
mov dword [esp + 0x1c], edx
mov eax, ecx
mov byte [esp + ecx + 0x30], cl
cdq
idiv dword [ebp + 0xc]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x130], al
inc ecx
cmp ecx, 0x100
jl 0x401cb5
mov esi, ebx
mov edi, ebx
mov dl, byte [esp + esi + 0x30]
movzx eax, byte [esp + esi + 0x130]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401cf9
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x30]
mov byte [esp + esi + 0x30], al
inc esi
mov byte [esp + edi + 0x30], dl
cmp esi, 0x100
jl 0x401cd6
mov edi, ebx
mov dword [esp + 0x20], ebx
mov eax, ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov esi, 0x3e8
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x401d3e
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x401d55
lea ecx, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004036e1
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub esi, 1
jne 0x401d2f
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
cmp dword [eax], ebx
jle 0x401de2
mov edi, eax
inc ebx
and ebx, 0x800000ff
jns 0x401d7f
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x30]
mov edx, dword [esp + 0x20]
movzx esi, cl
add edx, esi
and edx, 0x800000ff
jns 0x401d9c
dec edx
or edx, 0xffffff00
inc edx
mov al, byte [esp + edx + 0x30]
mov byte [esp + ebx + 0x30], al
mov dword [esp + 0x20], edx
mov byte [esp + edx + 0x30], cl
call fcn.00402bb1
push eax
call fcn.00402d74
movzx eax, byte [esp + ebx + 0x34]
mov edx, dword [esp + 0x30]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x24]
movzx eax, al
mov al, byte [esp + eax + 0x30]
xor byte [edx + ecx], al
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi]
jl 0x401d6e
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
sub edi, eax
and edi, 0xfffffffc
push edi
push eax
call fcn.004031e7
pop ecx
pop ecx
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406cb1
mov esp, ebp
pop ebp
ret
Function at 0x401fd5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x483698]
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 0x402045
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004029da
lea ecx, [esp + 0x1c]
call fcn.00401e05
cmp eax, dword [esp + 0x10]
je 0x40205c
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402a67
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x402015
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406cb1
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402da6
push eax
call fcn.00403028
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.00402a67
jmp 0x402047

Function at 0x40208f
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 [0x483698], eax
pop edi
pop esi
ret

Function at 0x404c0b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404c2c
jl 0x404c23
test edi, edi
jne 0x404c2c
xor eax, eax
xor edx, edx
jmp 0x404ced
cmp dword [ebx + 0x38], 0
je 0x404c41
push eax
push edi
push dword [ebp + 8]
call fcn.00404cf3
jmp 0x404ced
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404c88
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404c88
cmp eax, edi
jb 0x404c62
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407b20
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404c8e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404ce2
mov ecx, ebx
call fcn.0040445b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404ccd
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040c50c
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404ce2
jmp 0x404ca0
test edx, edx
je 0x404ce2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040c50c
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x407900
Capabilities:
Parse pe header

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

Function at 0x411ddd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421398
push 0x421390
push str.FlsAlloc
push 0x1e
call fcn.00411cc6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411e11
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e134]
call esi
jmp 0x411e17
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411e5b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4213a8
push 0x4213a0
push str.FlsGetValue
push 0x20
call fcn.00411cc6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411e92
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4135d6
Capabilities:
Read file on windows

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

Function at 0x4135e1
Capabilities:
Read file on windows

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

Function at 0x4139db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a70
mov eax, dword [0x428040]
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.0041246d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413a1d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b79
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d110
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 + 0x483360]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414bab
mov ecx, dword [esi*4 + 0x483360]
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 0x413b72
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b72
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 0x413b72
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414bab
add esp, 0x14
test edx, edx
jl 0x413b72
jg 0x413ae8
test eax, eax
jb 0x413b72
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b72
jl 0x413b02
cmp dword [ebp - 0x1008], eax
ja 0x413b72
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413b20
test ebx, ebx
je 0x413b59
cmp ecx, edi
jae 0x413b59
mov al, byte [ecx]
cmp al, 0xd
jne 0x413b3a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b46
cmp byte [ecx + 1], 0xa
jne 0x413b46
inc ecx
jmp 0x413b46
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413b20
cmp edx, ebx
jne 0x413b20
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b77
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406cb1
leave
ret
Function at 0x414049
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 + 0x483360]
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 0x414089
cmp byte [ebx], 0xa
jne 0x414089
or byte [eax + edi + 0x28], 4
jmp 0x41408e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41418c
mov al, byte [edx]
cmp al, 0x1a
je 0x41416e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4140bd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4140e2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4140ec
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 0x41409f
jmp 0x41418c
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 0x414169
cmp dword [ebp - 0xc], 0
je 0x414169
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x483360]
test byte [eax + edi + 0x28], 0x48
je 0x414143
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41412e
mov byte [esi], dl
jmp 0x41413f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x483360]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41418c
cmp byte [ebp - 1], 0xa
jne 0x414152
cmp esi, ebx
jne 0x414152
mov byte [esi], 0xa
jmp 0x41418b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414bc9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41418c
mov byte [esi], 0xd
jmp 0x41418b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x483360]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414188
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41418c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414195
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 + 0x483360]
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 0x4141d8
cmp word [esi], dx
jne 0x4141d8
or byte [edi + eax + 0x28], 4
jmp 0x4141dd
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 0x414330
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 0x414310
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41421f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414255
cmp eax, edx
jae 0x414261
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 0x4141f7
jmp 0x414330
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 0x41430c
cmp dword [ebp - 0x14], 0
je 0x41430c
mov eax, dword [ebx*4 + 0x483360]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4142e4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4142ad
mov word [esi], cx
jmp 0x4142e0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483360]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483360]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483360]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414330
pop ebx
cmp word [ebp - 4], bx
jne 0x4142f5
cmp esi, dword [ebp + 0xc]
jne 0x4142f5
mov word [esi], bx
jmp 0x41432d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414bc9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414330
push 0xd
jmp 0x414329
mov ecx, dword [ebx*4 + 0x483360]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414327
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414330
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 0x4173ff
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41744a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041759e
test al, al
jne 0x417444
sub edx, 2
cmp edx, edi
jne 0x41742a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41746c
lea eax, [edi + 2]
cmp edx, eax
je 0x41746c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041734b
add esp, 0x10
jmp 0x417566
push esi
lea ecx, [ebp - 0x255]
call fcn.0041759e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4174af
push dword [ebp - 0x25c]
jmp 0x41745c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4174ec
cmp word [ebp - 0x226], 0
je 0x41750d
cmp word [ebp - 0x226], ax
jne 0x4174ec
cmp word [ebp - 0x224], 0
je 0x41750d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041734b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x417559
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4174c6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x417541
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x417566
push 0x41717b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041b260
add esp, 0x10
jmp 0x417536
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cb1
leave
ret

Function at 0x41d0d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d0fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d0fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret