joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.0043a11f
mov ecx, eax
test ecx, ecx
je 0x43697c
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [edi + 8]
cmp eax, 6
je 0x4367d0
cmp eax, 2
je 0x4367d0
cmp eax, 7
jne 0x4367de
mov dword [edi + 8], 1
mov dword [edi + 4], 0
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x43c], eax
lea eax, [edi + 0x1c]
movups xmmword [ebp - 0x464], xmm0
push 1
movups xmm0, xmmword [edi + 0x10]
push eax
movups xmmword [ebp - 0x454], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [ebp - 0x444], xmm0
call dword [sym.imp.USER32.dll_MonitorFromRect]
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x430], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [ebp - 0x424]
test eax, eax
mov edx, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x428]
cmovne edx, eax
mov eax, dword [ebp - 0x420]
test eax, eax
push 0x200
cmovne ecx, eax
mov dword [ebp - 0x438], edx
lea eax, [ebp - 0x408]
mov dword [ebp - 0x434], ecx
push eax
call fcn.00402640
push 0x4d76d8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x436898
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x4d76d8
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x408]
push 0x4b47d8
push eax
call edi
push str.RecvErrorWindowDlg
lea eax, [ebp - 0x408]
push eax
call edi
lea eax, [ebp - 0x468]
mov dword [ebp - 0x468], 0
push eax
push 0x20006
push 0
lea eax, [ebp - 0x408]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43692b
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x408]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x436949
push 0x34
lea eax, [ebp - 0x464]
push eax
push 3
push 0
push str.SHOWPOS
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43696a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00468009
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0041d300
int3
Function at 0x4369d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x114], ebx
jle 0x436a36
push esi
xor esi, esi
mov eax, dword [edi + 0x11c]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x436a0a
push ecx
call fcn.00439c20
mov eax, dword [edi + 0x11c]
add esp, 4
mov dword [esi + eax], 0
mov eax, dword [edi + 0x11c]
mov eax, dword [esi + eax + 4]
test eax, eax
je 0x436a29
push eax
call fcn.00439c20
mov eax, dword [edi + 0x11c]
add esp, 4
mov dword [esi + eax + 4], 0
inc ebx
add esi, 0xc
cmp ebx, dword [edi + 0x114]
jl 0x4369e1
pop esi
push dword [edi + 0x11c]
call fcn.00439c20
mov dword [edi + 0x114], 0
add esp, 4
cmp dword [edi + 8], 0
mov dword [edi + 4], vtable.CEPFDrvUtLib.0
je 0x436a7a
mov eax, dword [edi + 0xc]
test eax, eax
je 0x436a70
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0xc], 0
lea ecx, [edi + 4]
pop edi
pop ebx
jmp fcn.00401660
pop edi
pop ebx
ret
Function at 0x438fa0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1ba0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4d0554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x4a5a58
test eax, eax
cmovne edi, eax
call fcn.0043a11f
mov ecx, eax
test ecx, ecx
je 0x4390c3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
lea ecx, [ebp + 0xc]
cmp ax, 0x11
jne 0x439034
push 0x4a5940
call fcn.0041d290
cmp dword [ebp + 0x10], 0
jne 0x439062
push 1
push 0x4a59b4
lea ecx, [ebp + 0xc]
call fcn.00406460
push 0x1b
push 0x4a597c
jmp 0x43905a
push 0x4a59b8
call fcn.0041d290
cmp dword [ebp + 0x10], 0
jne 0x439062
push 1
push 0x4a59b4
lea ecx, [ebp + 0xc]
call fcn.00406460
push 0x16
push str.Reinstall_FAX_Utility.
lea ecx, [ebp + 0xc]
call fcn.00406460
lea ecx, [ebp - 0x18]
call fcn.0041d600
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push esi
mov byte [ebp - 4], 1
call fcn.0041db70
push 0x30
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.0041d620
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4390b0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041d300
int3

Function at 0x43aba2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4a1c82
call fcn.0046891d
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x43abc8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43ac28
call fcn.0043a11f
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d320
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x4a5818]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00471cb9
push eax
call fcn.0041cc20
add esp, 0x14
test esi, esi
je 0x43ac1b
push esi
call fcn.004779db
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041d350
mov eax, ebx
call fcn.004688e6
ret 8
Function at 0x43dee6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x43df2b
call fcn.00443c62
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43df2b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43df47
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00439699
mov ebx, eax
test edi, edi
je 0x43df45
test esi, esi
je 0x43df45
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43e57e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x43e63c
cmp dword [esi + 0x20], 0
je 0x43e63c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43e63c
cmp dword [ebp + 8], 0
je 0x43e63c
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00443c62
push 0x4a6a90
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43e60d
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43e63c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004563ab
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x43e62d
test edi, edi
je 0x43e62d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x43e638
mov ecx, esi
call fcn.0043e384
mov eax, ebx
jmp 0x43e63e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x444533
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4a20cd
call fcn.0046891d
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x18]
mov edi, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push edi
call fcn.004445d3
and dword [ebp - 4], 0
mov dword [ebx], vtable.CFtpConnection.0
call fcn.0043a11f
push eax
lea ecx, [ebx + 0x18]
call fcn.0041d320
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.0041d250
push dword [ebx + 8]
mov eax, dword [ebp + 0x20]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
je 0x4445c3
push dword [ebx + 0xc]
mov ecx, 0x4d61f0
push eax
call fcn.00445538
mov eax, ebx
call fcn.004688e6
ret 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 8]
call fcn.00444cdc
int3
Function at 0x4446e5
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x44470e
call fcn.00443c62
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x44473b
push esi
push eax
mov ecx, 0x4d61f0
call fcn.00445538
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00444cdc
int3

Function at 0x44f9d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x44fa1b
call fcn.00443c62
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44fa18
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44fa6b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x44fa48
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a5818]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x44fa48
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x44fa69
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x4a5818]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x451fba
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x45200d
push esi
push dword [ebp + 8]
call fcn.004521a3
mov edi, eax
test edi, edi
je 0x452008
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x452008
mov eax, dword [ebp - 8]
jmp 0x45201f
mov eax, dword [ebp + 0x10]
jmp 0x45201f
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x480f23
Capabilities:
Read file on windows

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

Function at 0x480f2e
Capabilities:
Read file on windows

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

Function at 0x482646
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482306
Function at 0x4883a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10005000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
test esi, esi
je 0x10005068
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x1c]
sub edx, esi
push eax
push 0x40
add edi, 5
mov byte [esp + 0x18], 0xe9
push edi
sub edx, 5
mov dword [esp + 0x18], 0
push esi
mov dword [esp + 0x21], edx
call ebx
test eax, eax
je 0x10005066
xor eax, eax
test edi, edi
je 0x10005059
cmp eax, 5
jae 0x1000504f
mov cl, byte [esp + eax + 0x10]
jmp 0x10005051
mov cl, 0x90
mov byte [esi + eax], cl
inc eax
cmp eax, edi
jb 0x10005044
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push edi
push esi
call ebx
pop edi
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x1000aeb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
sub esp, 8
mov dword [esp + 8], 0x5f327377
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0x642e3233
lea ecx, [esp + 8]
mov word [esp + 0x10], 0x6c6c
mov byte [esp + 0x12], 0
mov dword [esp + 0x14], 0x68746567
mov dword [esp + 0x18], 0x6274736f
mov dword [esp + 0x1c], 0x6d616e79
mov word [esp + 0x20], 0x65
call fcn.10005070
mov dword [0x10040ccc], eax
add esp, 0x24
ret

Function at 0x1000b000
Capabilities:
Create thread

Disassembly:
sub dword [esp + 8], 1
jne 0x1000b03b
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.1000b1e0
call fcn.1000aeb0
push 0
push 0
push 0
push 0x1000af10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000b03b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret 0xc
Function at 0x1001dc0d
Capabilities:
Parse pe header

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

Function at 0x100256ed
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10037ec0
push 0x10037eb8
push str.FlsAlloc
push 0x1f
call fcn.100255b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10025721
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034164]
call esi
jmp 0x10025727
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002576b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10037ed0
push 0x10037ec8
push str.FlsGetValue
push 0x21
call fcn.100255b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100257a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100257aa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10037ed8
push 0x10037ed0
push str.FlsSetValue
push 0x22
call fcn.100255b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100257e4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10034164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002728d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100179a0
mov eax, dword [0x1003f080]
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.100231f2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100272cf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002742b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10032e20
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 + 0x10040898]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10026e14
mov ecx, dword [esi*4 + 0x10040898]
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 0x10027424
cmp eax, dword [ecx + edi + 0x24]
jne 0x10027424
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 0x10027424
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10026e14
add esp, 0x14
test edx, edx
jl 0x10027424
jg 0x1002739a
test eax, eax
jb 0x10027424
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10027424
jl 0x100273b4
cmp dword [ebp - 0x1008], eax
ja 0x10027424
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100273d2
test ebx, ebx
je 0x1002740b
cmp ecx, edi
jae 0x1002740b
mov al, byte [ecx]
cmp al, 0xd
jne 0x100273ec
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100273f8
cmp byte [ecx + 1], 0xa
jne 0x100273f8
inc ecx
jmp 0x100273f8
movzx eax, al
movsx eax, byte [eax + 0x1003f328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100273d2
cmp edx, ebx
jne 0x100273d2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10027429
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10017013
leave
ret
Function at 0x10027722
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 + 0x10040898]
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 0x10027762
cmp byte [ebx], 0xa
jne 0x10027762
or byte [edi + eax + 0x28], 4
jmp 0x10027767
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 0x10027866
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10027849
inc eax
cmp dl, 0xd
je 0x10027793
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100277b9
cmp eax, ecx
jae 0x100277c7
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 0x1002777b
jmp 0x10027866
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 0x10027844
cmp dword [ebp - 0x10], 0
je 0x10027844
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10040898]
test byte [eax + edi + 0x28], 0x48
je 0x1002781e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10027809
mov byte [esi], dl
jmp 0x1002781a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10040898]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10027866
cmp byte [ebp - 1], 0xa
jne 0x1002782d
cmp esi, ebx
jne 0x1002782d
mov byte [esi], 0xa
jmp 0x10027865
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10026e32
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10027866
mov byte [esi], 0xd
jmp 0x10027865
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10040898]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10027863
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10027866
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002786f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10040898]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100278b5
cmp word [ebx], dx
jne 0x100278b5
or byte [eax + edi + 0x28], 4
jmp 0x100278ba
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10027a1d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100279fd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100278fb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10027931
cmp eax, edx
jae 0x1002793f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100278d6
jmp 0x10027a1d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100279f8
cmp dword [ebp - 0x18], 0
je 0x100279f8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10040898]
test byte [eax + edi + 0x28], 0x48
je 0x100279ce
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10027992
mov word [esi], cx
jmp 0x100279c9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10040898]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10040898]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10040898]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10027a1d
pop eax
cmp word [ebp - 4], ax
jne 0x100279de
cmp esi, ebx
jne 0x100279de
mov word [esi], ax
jmp 0x10027a1a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10026e32
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10027a1d
push 0xd
pop eax
jmp 0x100279d9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10040898]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10027a17
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10027a1d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret