joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015a40
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10015ad2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10015ac4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x10015abc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10015a85
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x10015c50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10015cb9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10015200
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x100161f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1001620e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10016203
pop esi
ret

Function at 0x10017950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x10017971
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x100179cb
inc edi
cmp edi, esi
jl 0x10017965
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x10017a00
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x100179ba
cmp byte [eax], bl
je 0x100179d5
cmp byte [eax + 1], bl
je 0x100179de
cmp byte [eax + 2], bl
je 0x100179e8
cmp byte [eax + 3], bl
je 0x100179f4
add eax, 4
cmp eax, edi
jb 0x10017991
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010d7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401108
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401104
cmp esi, eax
jae 0x401108
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4010f4
cmp esi, eax
jb 0x40110e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4011a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x402ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x404018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push 0x4031d8
xor ebx, ebx
call fcn.00401a70
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4031d8
call fcn.00401730
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x3c]
xor edi, edi
lea edx, [esp + 0x1c]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push ecx
mov dword [esp + 0x54], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401326
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x28]
push eax
push edi
push ebp
push ecx
mov dword [esp + 0x38], edi
call ebx
cmp eax, edi
jne 0x401326
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi - 8]
shr ecx, 1
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x401269
lea eax, [esp + 0x14]
call fcn.00401b20
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x28]
push eax
push edi
push ebp
push ecx
call ebx
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call dword [sym.imp.MSVCR90.dll_wcsnlen]
add esp, 8
cmp eax, edi
jl 0x40131c
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x40131c
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x401326
lea ebx, [esp + 0x14]
call fcn.004018c0
mov ebx, eax
call fcn.00401950
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x14]
call fcn.00401800
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401303
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00401000
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40134e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401370
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x402a88
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x404018]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401488
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x4013e5
mov ecx, esi
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004019f0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ecx, [esi + esi + 2]
push ecx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
push ecx
push eax
call dword [sym.imp.MSVCR90.dll_wcsnlen]
add esp, 8
test eax, eax
jl 0x40147e
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx - 8]
jg 0x40147e
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test esi, esi
sete cl
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40146b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
push 0x80070057
call fcn.00401000
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x401d44
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404018]
jne 0x401d4e
repz ret
jmp fcn.004020b3
Function at 0x408320
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x448598]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
call fcn.004081f0
test eax, eax
je 0x408380
push 1
call fcn.00408010
add esp, 4
test eax, eax
jne 0x40836f
push 0x437e38
call fcn.00405180
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040917c
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040917c
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp + 8]
push eax
push 0x437e80
call fcn.00404100
push esi
lea eax, [ebp + 8]
push eax
push 0x437e80
call fcn.00404c00
add esp, 0x18
test eax, eax
je 0x40835b
call fcn.00407030
test al, al
jne 0x4083cf
push 0x437e90
call fcn.004051b0
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040917c
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00407b00
add esp, 8
test al, al
je 0x4084a8
push edi
push 0x43769c
call fcn.00406660
add esp, 4
push 0
push 1
call dword [0x42f064]
call fcn.004058d0
push 0x100
mov edi, eax
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], 0
push 0
push eax
mov dword [ebp - 0x110], 0
call fcn.0040acc0
mov esi, dword [0x42f0d8]
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa], ax
mov dword [ebp - 8], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 6
xor ecx, ecx
mov dword [ebp - 0x118], 0
push eax
mov word [ebp - 0xc], cx
call dword [0x42f11c]
test eax, eax
setne byte [0x4495a6]
call fcn.00407f70
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040917c
mov esp, ebp
pop ebp
ret
call fcn.00408230
int3

Function at 0x409dee
Capabilities:
Parse pe header

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

Function at 0x42e500
Capabilities:
Parse pe header

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

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x1001c671
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1001c680
pop dword [ebp - 0x28]
mov eax, 0xaa0bf475
sub eax, 0x9a0a2df5
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x35bfa01f
sub dword [ebp - 0x38], 0xe76d5ad4
mov dword [ebp - 0x34], 0x718dfa61
add dword [ebp - 0x34], 0xc0a551e4
mov dword [ebp - 0x30], 0xb8e5bf05
sub dword [ebp - 0x30], 0x6c997ad7
mov dword [ebp - 0x2c], 0xc3eeb002
sub dword [ebp - 0x2c], 0xc3eeb002
lea eax, [ebp - 0x38]
push eax
mov eax, 0x2c62e154
add eax, 0xe3a16fb0
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x5811b077
sub dword [ebp - 0x38], 0xe39f4721
mov dword [ebp - 0x34], 0x9a4e7531
sub dword [ebp - 0x34], 0x58e213bc
mov dword [ebp - 0x30], 0x24dce5bc
sub dword [ebp - 0x30], 0xc16d7950
mov dword [ebp - 0x2c], 0x9a0d0527
add dword [ebp - 0x2c], 0x65f2fad9
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x8d02d4ab
add eax, 0x83017c0d
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x46d5a
push 0
call eax
mov ecx, 0x682e5884
add ecx, 0x97d1e152
mov ebx, eax
mov edi, 0x3b655092
add edi, 0xd4a1ff6e
add edi, dword [ebp - 0x28]
mov edx, 0x430108a
add edx, 0x4a709726
add dword [ebp - 4], ebx
mov esi, dword [edi]
add dword [ebp - 0x1c], 0xebdad01f
xor esi, edx
xor dword [ebp - 8], 0xaa6bb379
mov dword [ebx], esi
add dword [ebp - 4], ebx
add ebx, 0xaacb831
sub ebx, 0xaacb82d
add edi, 4
loop 0x1001c7a2
add eax, 0xda2b
mov ebx, eax
add eax, 0x8322d764
sub eax, 0x8322d75f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1001d144
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10069020]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor edx, edx
mov bl, byte [edi]
mov bh, byte [edi + 7]
movzx eax, word [edi + 8]
mov byte [ebp - 0x114], bl
mov byte [ebp - 0x110], bh
cmp dword [esi + 0x20], edx
je 0x1001d230
cmp bl, 0x14
je 0x1001d230
cmp bl, 0x90
je 0x1001d230
cmp bl, 0x91
je 0x1001d230
cmp bl, 0xff
je 0x1001d2bc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x1001d1cc
movzx eax, bl
xor byte [ebp + eax - 0x10c], 0x80
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx edx, bh
mov ecx, edi
shl edx, 0x10
or edx, 0xc0000001
call fcn.1001bc7e
cmp al, 1
jne 0x1001d1e9
or edx, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x1001d1fa
cmp byte [esi + 0x1d], 0
jne 0x1001d1fa
cmp bl, 0x12
jne 0x1001d218
cmp byte [esi + 0x16], 0
jne 0x1001d218
cmp byte [esi + 0x1c], 0
jne 0x1001d218
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x105
jmp 0x1001d222
push edx
movzx eax, bl
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1001d2bc
cmp bl, 0xff
je 0x1001d27d
mov ecx, edi
call fcn.1001bc7e
cmp al, 1
jne 0x1001d24f
test byte [esi + 0xc], 4
je 0x1001d24a
push 3
jmp 0x1001d257
push edx
push 3
jmp 0x1001d269
test byte [esi + 0xc], 4
je 0x1001d266
push 2
push dword [ebp - 0x110]
mov cl, bl
call fcn.1001c671
jmp 0x1001d2bc
push edx
push 2
push dword [ebp - 0x110]
push dword [ebp - 0x114]
call dword [sym.imp.USER32.dll_keybd_event]
jmp 0x1001d2bc
mov word [ebp - 0x12a], ax
xor edx, edx
push 0x1c
lea eax, [ebp - 0x130]
mov dword [ebp - 0x128], 6
inc edx
xor ecx, ecx
and dword [ebp - 0x124], ecx
and dword [ebp - 0x120], ecx
push eax
push edx
mov dword [ebp - 0x130], edx
mov word [ebp - 0x12c], cx
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.1001d2d6
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10030b40
mov esp, ebp
pop ebp
ret 4
Function at 0x41b483
Capabilities:
Read file on windows

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

Function at 0x41b87d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b260
mov eax, dword [0x47d540]
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.00419264
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b8bf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ba1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426310
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 + 0x47fba0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c61c
mov ecx, dword [esi*4 + 0x47fba0]
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 0x41ba14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ba14
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 0x41ba14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c61c
add esp, 0x14
test edx, edx
jl 0x41ba14
jg 0x41b98a
test eax, eax
jb 0x41ba14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ba14
jl 0x41b9a4
cmp dword [ebp - 0x1008], eax
ja 0x41ba14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b9c2
test ebx, ebx
je 0x41b9fb
cmp ecx, edi
jae 0x41b9fb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b9dc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b9e8
cmp byte [ecx + 1], 0xa
jne 0x41b9e8
inc ecx
jmp 0x41b9e8
movzx eax, al
movsx eax, byte [eax + 0x47d808]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b9c2
cmp edx, ebx
jne 0x41b9c2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ba19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a62d
leave
ret
Function at 0x41baba
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 + 0x47fba0]
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 0x41bafa
cmp byte [ebx], 0xa
jne 0x41bafa
or byte [eax + edi + 0x28], 4
jmp 0x41baff
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bbfd
mov al, byte [edx]
cmp al, 0x1a
je 0x41bbdf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bb2e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bb53
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bb5d
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 0x41bb10
jmp 0x41bbfd
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 0x41bbda
cmp dword [ebp - 0xc], 0
je 0x41bbda
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47fba0]
test byte [eax + edi + 0x28], 0x48
je 0x41bbb4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bb9f
mov byte [esi], dl
jmp 0x41bbb0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47fba0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bbfd
cmp byte [ebp - 1], 0xa
jne 0x41bbc3
cmp esi, ebx
jne 0x41bbc3
mov byte [esi], 0xa
jmp 0x41bbfc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bbfd
mov byte [esi], 0xd
jmp 0x41bbfc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47fba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bbf9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bbfd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bc06
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 + 0x47fba0]
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 0x41bc49
cmp word [esi], dx
jne 0x41bc49
or byte [edi + eax + 0x28], 4
jmp 0x41bc4e
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 0x41bda1
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 0x41bd81
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bc90
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bcc6
cmp eax, edx
jae 0x41bcd2
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 0x41bc68
jmp 0x41bda1
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 0x41bd7d
cmp dword [ebp - 0x14], 0
je 0x41bd7d
mov eax, dword [ebx*4 + 0x47fba0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bd55
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bd1e
mov word [esi], cx
jmp 0x41bd51
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47fba0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47fba0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47fba0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bda1
pop ebx
cmp word [ebp - 4], bx
jne 0x41bd66
cmp esi, dword [ebp + 0xc]
jne 0x41bd66
mov word [esi], bx
jmp 0x41bd9e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bda1
push 0xd
jmp 0x41bd9a
mov ecx, dword [ebx*4 + 0x47fba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bd98
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bda1
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