joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004229a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.10015708
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x100422d7
call fcn.10041ee3
mov dword [esi + 0xc], 1
jmp 0x100422dc
call fcn.10041ee3
cmp dword [esi], 0
je 0x10042325
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x100422fd
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000a9b4
jmp 0x1004230f
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.10003f4e
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10005ba3
jmp 0x10042349
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10042349
push dword [esi]
push dword [ebp + 8]
call fcn.10009cc8
pop esi
pop ebp
ret 0xc

Function at 0x10071998
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x100719b2
call fcn.100072f4
mov esi, dword [eax + 0xc]
push dword [0x10168d28]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100719d0
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x100719c8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x100719fd
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x100719ca
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100718c6
mov esi, eax
jmp 0x100719ef

Function at 0x100bc90d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100f0f2f
call fcn.10006d25
cmp dword [eax + 0x14], 0
jne 0x100bc92a
mov ecx, esi
pop esi
jmp fcn.100bc412
pop esi
ret

Function at 0x100bfac5
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.10058219
call fcn.10006d25
cmp dword [eax + 0x14], 0
jne 0x100bfae2
mov ecx, esi
pop esi
jmp fcn.100bf498
pop esi
ret
Function at 0x100d2055
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100d206d
mov edi, dword [esi + 0xc]
jmp 0x100d20ad
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100d2086
call fcn.100089ea
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100d209b
call fcn.100089ea
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100d20ad
call fcn.100089ea
call fcn.100072f4
cmp dword [eax + 0x3c], 0
je 0x100d20c2
push edi
mov ecx, ebx
call fcn.100d0f09
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100d1f6f
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100d20e0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d20ec
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f687f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101635c4]
jne 0x100f6889
repz ret
jmp fcn.100fcaf8
Function at 0x101080b2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101635c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100fda0c
and dword [ebp - 0x14], 0
cmp dword [0x1016b4f0], 0
mov dword [ebp - 0x18], eax
jne 0x10108165
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1010820d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10144fdc
push ebx
call edi
test eax, eax
je 0x1010820d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x10144fcc
push ebx
mov dword [0x1016b4f0], eax
call edi
push eax
call esi
push 0x10144fb8
push ebx
mov dword [0x1016b4f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1016b4f8], eax
call edi
push eax
call esi
mov dword [0x1016b500], eax
test eax, eax
je 0x10108165
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1016b4fc], eax
mov eax, dword [0x1016b4fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x101081be
cmp dword [0x1016b500], ecx
je 0x101081be
push eax
call esi
push dword [0x1016b500]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x101081be
test ebx, ebx
je 0x101081be
call edi
test eax, eax
je 0x101081b5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x101081b5
test byte [ebp - 8], 1
jne 0x101081be
or dword [ebp + 0x10], 0x200000
jmp 0x101081f1
mov eax, dword [0x1016b4f4]
cmp eax, dword [ebp - 0x18]
je 0x101081f1
push eax
call esi
test eax, eax
je 0x101081f1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x101081f1
mov eax, dword [0x1016b4f8]
cmp eax, dword [ebp - 0x18]
je 0x101081f1
push eax
call esi
test eax, eax
je 0x101081f1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1016b4f0]
call esi
test eax, eax
je 0x1010820d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1010820f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f687f
leave
ret
Function at 0x10047e50
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a56a9
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x1010df64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov eax, dword [0x1010df30]
mov ecx, 0x1010df30
mov byte [ebp - 4], 1
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x128], esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
mov dword [ebp - 0x124], 0
call fcn.10013bd0
mov ecx, eax
call fcn.10013cd0
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
test edi, edi
jns 0x10047efa
push 0x80070057
call fcn.10096b50
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x10047f17
push edi
lea ecx, [ebp + 8]
call fcn.10096b50
mov eax, dword [ebp + 8]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.10096b50
mov eax, dword [ebp + 8]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x10047ef0
mov dword [eax - 0xc], edi
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax + edi*2], cx
push dword [ebp + 8]
lea eax, [ebp - 0x120]
push str.wstrUserName_s
push str.IDCRL::DeleteUserAllExtendedProperties
push eax
push str.d:_bt20572clientwlidsspwlidsvccorecredentialbag.cpp_40
lea eax, [ebp - 0x11c]
push 2
push eax
call fcn.10096b50
add esp, 0x1c
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], 0
je 0x10048004
lea eax, [ebp - 0x124]
push eax
push 0x20006
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov edi, eax
test edi, edi
je 0x10047fa6
jg 0x10047f95
mov dword [ebp - 0x120], edi
jmp 0x1004800a
movzx edi, di
or edi, 0x80070000
mov dword [ebp - 0x120], edi
jmp 0x1004800a
push 0x39
push str.SoftwareMicrosoftMSOIdentityCRLUserExtendedProperties_
lea ecx, [ebp - 0x128]
call fcn.10096b50
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x128]
push dword [eax - 0xc]
push eax
call fcn.10096b50
mov esi, dword [ebp - 0x128]
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x10047ff8
cmp eax, 2
je 0x10047ff8
test eax, eax
jle 0x10047ff2
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x120], eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.10096b50
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10048039
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1004805a
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10001e17
mov esp, ebp
pop ebp
ret 4
Function at 0x1004bac0
Capabilities:
Write file on windows

Disassembly:
call fcn.10096b50
call fcn.1000ddf0
mov ecx, eax
call fcn.1000d310
mov ecx, dword [0x1011169c]
test ecx, ecx
je 0x1004bb06
push esi
call fcn.10096b50
mov esi, dword [0x1011169c]
test esi, esi
je 0x1004bafb
mov ecx, esi
call fcn.10096b50
push esi
call fcn.1000863f
add esp, 4
mov dword [0x1011169c], 0
pop esi
jmp fcn.1004de70
Function at 0x10096b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10096b5f
pop dword [ebp - 0x30]
mov eax, 0x1c07e7bd
sub eax, 0xbfe7c5e
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x66566
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xb00b55a
sub ecx, 0xb005d0d
xor edx, edx
add edx, eax
mov esi, 0x3a0f3bbf
sub esi, 0x29fc8fbf
add esi, dword [ebp - 0x30]
mov ebx, 0x416172fe
add ebx, 0x2624e8b0
mov edi, dword [esi]
xor dword [ebp - 0x24], 0x745988ca
sub edi, ebx
sub dword [ebp - 0x10], edx
mov dword [edx], edi
xor dword [ebp - 8], 0xc9cafdcb
add edx, 4
add esi, 0x1d0ac696
add esi, 0xe2f5396e
loop 0x10096bbb
add eax, 0xe0b279cb
add eax, 0x1f4eda3c
mov ebx, eax
add eax, 5
mov ecx, 0xbd4cbb1c
add ecx, 0x52b344e4
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4049e4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jmp 0x4163d0
sub esp, 0x220
mov eax, dword [0x6aae40]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
xor ecx, ecx
push ebp
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x24], eax
mov eax, ecx
mov byte [esp + ecx + 0x28], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x128], al
inc ecx
cmp ecx, 0x100
jl 0x416402
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x28]
movzx eax, byte [esp + esi + 0x128]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x416445
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jl 0x416422
mov ebp, dword [esp + 0x234]
xor ecx, ecx
xor eax, eax
xor edi, edi
test ebp, ebp
jle 0x416556
mov dword [esp + 0x20], eax
push ebx
inc ecx
and ecx, 0x800000ff
jns 0x416485
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x2c]
movzx esi, bl
add eax, esi
mov dword [esp + 0x10], ecx
and eax, 0x800000ff
jns 0x4164a0
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0
push eax
push 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.004061a9
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
movzx eax, byte [esp + edx + 0x2c]
mov byte [esp + ecx + 0x2c], al
mov byte [esp + edx + 0x2c], bl
movzx eax, byte [esp + ecx + 0x2c]
mov edx, dword [esp + 0x28]
add eax, esi
movzx eax, al
movzx eax, byte [esp + eax + 0x2c]
xor byte [edx + edi], al
mov edx, dword [esp + 0x18]
test edx, edx
je 0x416547
mov eax, dword [esp + 0x20]
mov ecx, edx
sub eax, edx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x416521
mov edx, dword [ecx - 4]
add eax, 0x23
sub ecx, edx
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x41656e
push eax
push edx
call fcn.00401a64
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
inc edi
cmp edi, ebp
jge 0x416555
mov eax, dword [esp + 0x14]
jmp 0x416474
pop ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004030df
add esp, 0x220
ret
call fcn.0040487c
int3

Function at 0x4058b2
Capabilities:
Parse pe header

Disassembly:
jmp 0x447409
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x447448
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x447448
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x447448
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x447448
cmp dword [ecx + 0x74], 0xe
jbe 0x447448
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x417c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x417bd0
sub esp, 0x6c
mov eax, dword [0x6aae40]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040135c
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], ebx
call fcn.00402734
add esp, 4
mov edi, 0x4bb203
cmp byte [esp + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x6c], xmm0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x74], eax
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jne 0x417c46
mov edi, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
call fcn.00402734
mov ecx, edi
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417c58
sub ecx, edx
push 1
lea ebx, [ecx + 1]
push ebx
call fcn.004033f5
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x417d62
test ebx, ebx
je 0x417c88
push ebx
push edi
push ebp
call fcn.004057ea
add esp, 0xc
lea eax, [esp + 0x4c]
mov dword [esi + 8], ebp
push eax
push 0
push str.false
call fcn.00403210
mov dword [esi + 0x10], eax
lea eax, [esp + 0x58]
push eax
push 0
push str.true
call fcn.00403210
add esp, 0x18
mov dword [esi + 0x14], eax
cmp byte [esp + 0x84], 0
je 0x417d35
lea eax, [esp + 0x4c]
mov byte [esp + 0x10], 0x2e
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x28], xmm0
push eax
call fcn.00403d3c
movzx eax, word [esp + 0x28]
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x28], 0x2c
push eax
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x3c], xmm0
push eax
call fcn.00403d3c
movzx eax, word [esp + 0x3c]
add esp, 0x28
jmp 0x417d49
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
movzx eax, word [eax]
mov word [esi + 0xc], ax
mov eax, dword [ecx + 0x34]
movzx eax, word [eax]
mov ecx, dword [esp + 0x78]
pop edi
mov word [esi + 0xe], ax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004030df
add esp, 0x6c
ret 8
call fcn.004010af
int3

Function at 0x445a6a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0040381e
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x445aa9
sub eax, 1
je 0x445aa4
sub eax, 1
je 0x445aa0
xor eax, eax
leave
ret
push 3
jmp 0x445aab
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4998e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401de8
mov eax, dword [0x6aae40]
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.00405f6f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x499925
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x499a81
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004060c3
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 + 0x6ae868]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040330f
mov ecx, dword [esi*4 + 0x6ae868]
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 0x499a7a
cmp eax, dword [edi + ecx + 0x24]
jne 0x499a7a
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 0x499a7a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040330f
add esp, 0x14
test edx, edx
jl 0x499a7a
jg 0x4999f0
test eax, eax
jb 0x499a7a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x499a7a
jl 0x499a0a
cmp dword [ebp - 0x1008], eax
ja 0x499a7a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x499a28
test ebx, ebx
je 0x499a61
cmp ecx, edi
jae 0x499a61
mov al, byte [ecx]
cmp al, 0xd
jne 0x499a42
lea eax, [edi - 1]
cmp ecx, eax
jae 0x499a4e
cmp byte [ecx + 1], 0xa
jne 0x499a4e
inc ecx
jmp 0x499a4e
movzx eax, al
movsx eax, byte [eax + 0x6ab1a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x499a28
cmp edx, ebx
jne 0x499a28
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x499a7f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030df
leave
ret
Function at 0x49a1c0
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 + 0x6ae868]
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 0x49a200
cmp byte [ebx], 0xa
jne 0x49a200
or byte [eax + edi + 0x28], 4
jmp 0x49a205
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49a303
mov al, byte [edx]
cmp al, 0x1a
je 0x49a2e5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49a234
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49a259
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49a263
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 0x49a216
jmp 0x49a303
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 0x49a2e0
cmp dword [ebp - 0xc], 0
je 0x49a2e0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6ae868]
test byte [eax + edi + 0x28], 0x48
je 0x49a2ba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49a2a5
mov byte [esi], dl
jmp 0x49a2b6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6ae868]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49a303
cmp byte [ebp - 1], 0xa
jne 0x49a2c9
cmp esi, ebx
jne 0x49a2c9
mov byte [esi], 0xa
jmp 0x49a302
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49a303
mov byte [esi], 0xd
jmp 0x49a302
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6ae868]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49a2ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49a303
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49a35f
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 + 0x6ae868]
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 0x49a3a2
cmp word [esi], dx
jne 0x49a3a2
or byte [edi + eax + 0x28], 4
jmp 0x49a3a7
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 0x49a4fa
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 0x49a4da
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49a3e9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49a41f
cmp eax, edx
jae 0x49a42b
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 0x49a3c1
jmp 0x49a4fa
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 0x49a4d6
cmp dword [ebp - 0x14], 0
je 0x49a4d6
mov eax, dword [ebx*4 + 0x6ae868]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49a4ae
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49a477
mov word [esi], cx
jmp 0x49a4aa
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6ae868]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6ae868]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6ae868]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49a4fa
pop ebx
cmp word [ebp - 4], bx
jne 0x49a4bf
cmp esi, dword [ebp + 0xc]
jne 0x49a4bf
mov word [esi], bx
jmp 0x49a4f7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49a4fa
push 0xd
jmp 0x49a4f3
mov ecx, dword [ebx*4 + 0x6ae868]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49a4f1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49a4fa
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