joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aa820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00472f10
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00472f90
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00472f90
lea ecx, [esi + 0xc]
call fcn.00498d72
lea ecx, [esi + 0x10]
call fcn.00498d72
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00474520
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00474520
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00474520
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00498de7
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00498de7
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x475ded
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4aab48
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x40]
test edx, edx
setne bl
inc ebx
test eax, eax
je 0x475e03
or bh, 0x80
lea ecx, [esp + 0xc]
call fcn.0047bd50
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0047c010
lea eax, [esp + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00475e70
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0xe73ff8
call fcn.0047bf50
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x40313a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x403180
sub ebx, 0x42b690
mov ax, word [ebx + edi*2 + 0x42b690]
mov ecx, esi
xor ax, word [edi*2 + 0x42b690]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x40315e
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403188
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [esp + 0x10], ebx
jle 0x4031c8
sub edi, 0x42b6c0
mov al, byte [edi + ebx + 0x42b6c0]
mov ecx, esi
xor al, byte [ebx + 0x42b6c0]
movzx eax, al
push eax
call fcn.0040424a
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x4031a9
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x404943
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
cmp dword [0x4a3618], ebx
jne 0x404989
mov ecx, ebx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40496a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40496c
shr eax, 1
dec edx
jne 0x40495d
mov dword [ecx*4 + 0x4ac9c0], eax
inc ecx
cmp ecx, 0x100
jl 0x404958
mov dword [0x4a3618], 1
mov eax, dword [ebp + 8]
or edx, 0xffffffff
xor ecx, ecx
lea eax, [edi + eax*2]
mov esi, eax
sub esi, edi
inc esi
shr esi, 1
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4049be
movzx eax, byte [edi]
lea edi, [edi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4ac9c0]
inc ebx
cmp ebx, esi
jb 0x4049a4
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4057c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
push edi
mov dword [esp + 0x14], ecx
cmp word [esi], ax
je 0x4057ec
xor eax, eax
jmp 0x405974
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi + 0x74], 0x10
jne 0x4057e5
mov ecx, dword [eax + esi + 0x7c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x4057e5
mov edi, dword [eax + esi + 0x78]
xor ebx, ebx
add edi, esi
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
add eax, esi
mov dword [esp + 0x1c], eax
add edx, esi
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
cmp dword [ebp + 0xc], ebx
je 0x405874
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [edi + 0x14], eax
jbe 0x405972
mov ecx, dword [edx + eax*4]
add ecx, esi
call fcn.0040307d
cmp eax, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
je 0x40585f
mov edx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x14]
jb 0x405839
jmp 0x405972
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebx + eax*4]
jmp 0x405886
mov ebx, dword [ebp + 0x10]
sub ebx, dword [edi + 0x10]
cmp ebx, dword [edi + 0x14]
jae 0x4057e5
mov ebx, dword [eax + ebx*4]
add ebx, esi
cmp ebx, edi
jbe 0x405972
lea eax, [ecx + edi]
cmp ebx, eax
jae 0x405972
push 0x104
call fcn.0040f04a
mov dword [esp + 0x14], eax
mov dword [esp], 0x100
call fcn.0040f04a
pop ecx
mov esi, eax
push 0x2e
push ebx
mov dword [esp + 0x2c], esi
call fcn.00410dd0
pop ecx
pop ecx
push 0x100
lea edi, [eax + 1]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
call esi
sub edi, ebx
push edi
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42b5fc
push ebx
call esi
push 0x42d0cc
push ebx
call esi
push 0x42d0d0
push ebx
call esi
mov ecx, dword [esp + 0x14]
push ebx
call fcn.0040576f
mov edi, eax
test edi, edi
jne 0x40592a
push eax
push ecx
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0040613a
mov edi, eax
test edi, edi
jne 0x40592e
jmp 0x4057e5
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x40594c
cmp byte [esi], 0x23
jne 0x40594c
movsx eax, byte [esi + 1]
push eax
push 0
jmp 0x405956
push 0
mov ecx, esi
call fcn.0040307d
push eax
push edi
mov ecx, ebx
call fcn.004057c8
push esi
mov ebx, eax
call fcn.00410a63
mov eax, dword [esp + 0x14]
pop ecx
push eax
call fcn.00410a63
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40651e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x406564
sub ebx, 0x42b760
mov ax, word [ebx + edi*2 + 0x42b760]
mov ecx, esi
xor ax, word [edi*2 + 0x42b760]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x406542
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x40656c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x4065b2
sub ebx, 0x42b7d0
mov ax, word [ebx + edi*2 + 0x42b7d0]
mov ecx, esi
xor ax, word [edi*2 + 0x42b7d0]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x406590
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x4065ba
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [esp + 0x28]
call fcn.004018f0
push 0x10
pop edi
cmp dword [esp + 0x3c], edi
lea edx, [esp + 0x28]
push dword [esi + 0x10]
cmovae edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
xor ebp, ebp
mov dword [esp + 0x4c], 0x67452301
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], 0xefcdab89
mov dword [esp + 0x54], 0x98badcfe
mov dword [esp + 0x58], 0x10325476
call fcn.004094e8
lea ecx, [esp + 0x40]
call fcn.00409574
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebp
lea esi, [esp + 0x98]
mov word [esp + 0x10], ax
movzx eax, byte [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00401a7c
inc esi
dec edi
jne 0x40663a
push dword [esp + 0x20]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.0040667f
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.00401d41
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x9c
ret
Function at 0x40667f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
and dword [esp + 0x10], 0
push ebx
push ebp
push esi
push edi
mov esi, edx
mov dword [esp + 0x24], 0xf
mov ebx, ecx
mov byte [esp + 0x10], 0
xor edi, edi
mov al, byte [edi + 0x42b720]
lea ecx, [esp + 0x10]
xor al, byte [edi + 0x4a1c80]
movzx eax, al
push eax
call fcn.0040424a
inc edi
cmp edi, 0x10
jl 0x40669e
xor ebp, ebp
mov dword [esp + 0x3c], 7
xor eax, eax
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
cmp dword [esi + 0x10], ebp
jne 0x4066e8
push 0x42b5f0
mov ecx, ebx
call fcn.004019f1
jmp 0x40676c
mov edi, ebp
cmp dword [esp + 0x44], eax
jbe 0x406760
cmp dword [esi + 0x14], 8
jb 0x4066fa
mov eax, dword [esi]
jmp 0x4066fc
mov eax, esi
movzx eax, word [eax + edi*2]
lea ecx, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
cmovae ecx, dword [esp + 0x10]
shr eax, 4
and eax, 0xf
movsx ax, byte [eax + ecx]
lea ecx, [esp + 0x28]
movzx eax, ax
push eax
call fcn.00401a7c
cmp dword [esi + 0x14], 8
jb 0x406730
mov eax, dword [esi]
jmp 0x406732
mov eax, esi
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x10]
movzx eax, word [eax + edi*2]
cmovae ecx, dword [esp + 0x10]
and eax, 0xf
movsx ax, byte [eax + ecx]
lea ecx, [esp + 0x28]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x44]
jb 0x4066f0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.00401a13
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.00401d41
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x30
ret 4
Function at 0x409eb9
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x409eff
sub ebx, 0x42b850
mov ax, word [ebx + edi*2 + 0x42b850]
mov ecx, esi
xor ax, word [edi*2 + 0x42b850]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x409edd
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x409f07
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x409f4d
sub ebx, 0x42b8b0
mov ax, word [ebx + edi*2 + 0x42b8b0]
mov ecx, esi
xor ax, word [edi*2 + 0x42b8b0]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x409f2b
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x40b287
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2b4
lea eax, [esp + 0xa8]
push ebx
push ebp
push esi
push edi
push 0x208
push eax
mov bh, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40b40c
and dword [esp + 0x38], 0
xor eax, eax
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
cmp word [esp + 0xb8], ax
je 0x40b2da
lea eax, [esp + 0xb8]
push eax
call fcn.0041012b
pop ecx
push eax
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x30]
call fcn.004026be
push 0xc
mov edx, 0x4a1d00
lea ecx, [esp + 0x5c]
call fcn.00409eb9
push 0xd
mov edx, 0x4a2130
lea ecx, [esp + 0x74]
call fcn.00409eb9
push 0xb
mov edx, 0x4a1d90
lea ecx, [esp + 0x8c]
call fcn.00409eb9
push 0xc
mov edx, 0x4a1f60
lea ecx, [esp + 0xa4]
call fcn.00409eb9
xor esi, esi
lea ebp, [esp + 0x58]
mov edi, esi
xor eax, eax
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x38]
push 0x42b5f8
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
call fcn.0041012b
pop ecx
add eax, esi
lea ecx, [esp + 0x10]
push eax
call fcn.00402caa
push 0xffffffffffffffff
xor esi, esi
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00401dd0
push 0x42b5f8
call fcn.0041012b
pop ecx
push eax
push 0x42b5f8
lea ecx, [esp + 0x18]
call fcn.00401e6d
push 0xffffffffffffffff
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401dd0
push eax
lea ecx, [esp + 0x44]
call fcn.00401a13
lea ecx, [esp + 0x40]
call fcn.0040ab19
push esi
push 1
lea ecx, [esp + 0x48]
mov bl, al
call fcn.004023dd
push esi
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
test bl, bl
jne 0x40b3e2
inc edi
add ebp, 0x18
cmp edi, 4
jl 0x40b33a
jmp 0x40b3e4
xor bh, bh
push 3
lea esi, [esp + 0xbc]
pop edi
push 0
sub esi, 0x18
push 1
mov ecx, esi
call fcn.004023dd
dec edi
jns 0x40b3ee
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
pop edi
pop esi
pop ebp
mov al, bh
pop ebx
add esp, 0x2b4
ret
Function at 0x42082b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x42d1a8]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041364c
mov dword [ebp - 0x14], eax
cmp dword [0x4a35fc], esi
jne 0x42091e
push 0x800
push esi
push str.USER32.DLL
call dword [0x42d1b8]
mov edi, eax
test edi, edi
jne 0x4208ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4209fe
push esi
push esi
push str.USER32.DLL
call dword [0x42d1b8]
mov edi, eax
test edi, edi
je 0x4209fe
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4209fe
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a35fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a3600], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a3604], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a360c], eax
test eax, eax
je 0x42091b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a3608], eax
mov edi, dword [ebp - 0x18]
call dword [0x42d1b0]
test eax, eax
je 0x420943
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x420936
push eax
call dword [0x42d1bc]
cmp dword [ebp - 0x14], esi
je 0x420958
push 4
pop eax
jmp 0x420a00
cmp dword [ebp - 0x14], esi
je 0x420958
push dword [0x4a35fc]
call dword [0x42d1ac]
push 3
jmp 0x42093d
mov eax, dword [0x4a3608]
mov ebx, dword [0x42d1ac]
cmp eax, edi
je 0x4209b6
cmp dword [0x4a360c], edi
je 0x4209b6
push eax
call ebx
push dword [0x4a360c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4209b6
test eax, eax
je 0x4209b6
call ecx
test eax, eax
je 0x4209ab
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4209ab
test byte [ebp - 8], 1
jne 0x4209b6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4209e6
mov eax, dword [0x4a3600]
cmp eax, edi
je 0x4209e3
push eax
call ebx
test eax, eax
je 0x4209e3
call eax
mov esi, eax
test esi, esi
je 0x4209e3
mov eax, dword [0x4a3604]
cmp eax, edi
je 0x4209e3
push eax
call ebx
test eax, eax
je 0x4209e3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a35fc]
call ebx
test eax, eax
je 0x4209fe
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x420a00
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411b2d
mov esp, ebp
pop ebp
ret
Function at 0x7c660d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7d0368
cmp edx, dword [eax]
je 0x7c662f
add eax, 8
inc ecx
cmp eax, 0x7d03f8
jl 0x7c6620
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7d0368]
jne 0x7c675d
mov eax, dword [0xbd5c60]
cmp eax, 1
je 0x7c6737
test eax, eax
jne 0x7c6660
cmp dword [0x7d0294], 1
je 0x7c6737
cmp edx, 0xfc
je 0x7c675d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c6697
lea eax, [ebp - 0x1a4]
push 0x7cbdd0
push eax
call fcn.007c6ff0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c7480
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c66da
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c7480
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cbdcc
push edi
call fcn.007c9350
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cbdb0
push eax
call fcn.007c6ff0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c7000
lea eax, [ebp - 0xa0]
push 0x7cbdac
push eax
call fcn.007c7000
push dword [esi + 0x7d036c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c7000
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cbd84
push eax
call fcn.007c92c4
add esp, 0x2c
pop edi
jmp 0x7c675d
lea eax, [ebp + 8]
lea esi, [esi + 0x7d036c]
push 0
push eax
push dword [esi]
call fcn.007c7480
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x412c2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407610
mov eax, dword [0x427040]
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.00411873
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412c6e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412dca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c000
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 + 0x7bea58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00413c29
mov ecx, dword [esi*4 + 0x7bea58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x412dc3
cmp eax, dword [ecx + edi + 0x24]
jne 0x412dc3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412dc3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413c29
add esp, 0x14
test edx, edx
jl 0x412dc3
jg 0x412d39
test eax, eax
jb 0x412dc3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412dc3
jl 0x412d53
cmp dword [ebp - 0x1008], eax
ja 0x412dc3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412d71
test ebx, ebx
je 0x412daa
cmp ecx, edi
jae 0x412daa
mov al, byte [ecx]
cmp al, 0xd
jne 0x412d8b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412d97
cmp byte [ecx + 1], 0xa
jne 0x412d97
inc ecx
jmp 0x412d97
movzx eax, al
movsx eax, byte [eax + 0x4272f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412d71
cmp edx, ebx
jne 0x412d71
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412dc8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406931
leave
ret
Function at 0x4130c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x7bea58]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413101
cmp byte [ebx], 0xa
jne 0x413101
or byte [edi + eax + 0x28], 4
jmp 0x413106
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x413205
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4131e8
inc eax
cmp dl, 0xd
je 0x413132
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413158
cmp eax, ecx
jae 0x413166
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41311a
jmp 0x413205
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4131e3
cmp dword [ebp - 0x10], 0
je 0x4131e3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x7bea58]
test byte [eax + edi + 0x28], 0x48
je 0x4131bd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4131a8
mov byte [esi], dl
jmp 0x4131b9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7bea58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413205
cmp byte [ebp - 1], 0xa
jne 0x4131cc
cmp esi, ebx
jne 0x4131cc
mov byte [esi], 0xa
jmp 0x413204
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413c47
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413205
mov byte [esi], 0xd
jmp 0x413204
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x7bea58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413202
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413205
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret