joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467a24
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x467a36
add esp, 0xfffffff0
call fcn.004044ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ece8
mov eax, dword [0x497748]
mov dword [eax + 4], ebx
mov dword [eax], 0x467dc8
mov eax, dword [0x497758]
mov dword [eax + 4], ebx
mov dword [eax], 0x467dd4
mov eax, ebx
call fcn.00467de0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.00404198
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.00404198
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.00404198
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.00404198
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.00404198
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46326c
push eax
push 0
push 0
mov eax, dword [0x4978e0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4232dc]
call fcn.00424bd0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4232dc]
call fcn.00424bd0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4232dc]
call fcn.00424bd0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00468258
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468128
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468128
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468128
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x467b73
call fcn.00404544
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x467f0c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4680b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x468098
mov dl, 1
mov eax, dword [0x416e68]
call fcn.00404198
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ff4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x468087
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00458f74
test al, al
je 0x46807a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4680c8
lea eax, [ebp - 0x254]
call fcn.0040a5a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46807a
xor eax, eax
push ebp
push 0x468073
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x468100
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46805c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405264
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46805c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46807a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x467f7d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041ab94
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4680be
lea eax, [ebp - 0x260]
call fcn.00404ff4
ret

Function at 0x468a30
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49ccd0]
cmp byte [eax + 0xad], 0
jne 0x468aa1
cmp dword [0x49ccec], 0
jne 0x468a62
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4689ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49ccec], eax
cmp dword [0x49cce8], 0
jne 0x468a7d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49cce8], eax
cmp dword [0x49ccf0], 0
jne 0x468aa1
push esp
push 0
push 0
push 0x468990
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x49ccf0], eax
pop edx
ret
Function at 0x468ca4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x468cbb
add esp, 0xfffffff0
call fcn.004044ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ece8
mov eax, dword [0x4978c8]
cmp word [eax + 2], 0
jne 0x468ce3
mov eax, dword [0x4978c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046aa04
mov eax, dword [0x497990]
cmp word [eax + 2], 0
jne 0x468cfd
mov eax, dword [0x497990]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046ac10
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416a44]
call fcn.00404198
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.00404198
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.00404198
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x423e8c]
call fcn.0042c19c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x468eb4
mov eax, dword [0x4977bc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c570
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46b2d4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4977bc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ddf4
test eax, eax
je 0x468e04
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409f5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040de28
test eax, eax
je 0x468e18
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405264
mov byte [ebx + 0xd4], 0
push ebx
push 0x46a478
call fcn.0041fe78
mov dword [ebx + 0xc8], eax
mov eax, dword [0x497660]
cmp byte [eax], 0
jne 0x468e69
mov eax, ebx
call fcn.00468ff8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046b4b8
mov eax, ebx
call fcn.0046c01c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x468ea9
call fcn.00404544
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469278
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x469317
cmp dword [ebx + 0x94], 0
jne 0x469311
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x469200
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x469311
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 0x4692d7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x469311
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.00418de8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4692e6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x469530
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x49ccd0]
cmp dword [eax + 0x30], 0
je 0x46968d
test bl, bl
jne 0x4695de
cmp dword [esi + 0x9c], 0
jne 0x4695d3
mov eax, esi
call fcn.0046be98
push eax
push 0x46945c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4695a4
mov eax, dword [0x49ccd0]
call fcn.0046c578
test al, al
je 0x4695a4
mov eax, dword [0x49ccf4]
call fcn.0040620c
mov edi, eax
cmp edi, 0
jl 0x4695a4
push 0
mov eax, dword [0x49ccf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46958e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4695d3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00418de8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4695b3
inc dword [esi + 0x9c]
jmp 0x46968d
cmp dword [esi + 0x9c], 0
jle 0x46968d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x46968d
cmp dword [esi + 0x44], 0
je 0x469639
mov eax, dword [0x49ccd0]
call fcn.0046c578
test al, al
je 0x469639
mov eax, dword [0x49ccf4]
call fcn.0040620c
mov edi, eax
cmp edi, 0
jl 0x469639
push 5
mov eax, dword [0x49ccf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x469623
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x469668
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00418de8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x469648
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x49ccf4
mov ecx, 1
mov edx, dword [0x46943c]
call fcn.004063c0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46a174
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46a1de
mov eax, ebx
call fcn.0046c578
test al, al
jne 0x46a1de
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.004050e4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x46a1cb
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46a1eb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405048
jmp 0x46a1eb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405048
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46b69c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46b70a
mov eax, esi
call fcn.00453b18
test al, al
je 0x46b70a
mov eax, dword [ebx + 0x84]
call fcn.00453778
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46b70a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46b6fe
push 0
mov eax, dword [ebx + 0x84]
call fcn.00453778
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044b5b4
jmp 0x46b70a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046b4d8
pop esi
pop ebx
ret
Function at 0x46daa4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407f34]
call fcn.00405b0c
xor eax, eax
push ebp
push 0x46dc45
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4969a4], 0
jne 0x46daff
mov ecx, dword [0x497674]
mov dl, 1
mov eax, dword [0x408508]
call fcn.0040d050
call fcn.00404a3c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004039a0
mov eax, ebx
call fcn.004059dc
mov dword [ebp - 0x24], eax
mov esi, 0x46dc54
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406aa4
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004059ec
test eax, eax
jle 0x46dbe8
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46dbd4
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405264
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46db7a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.0040527c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x46db90
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.0040527c
mov eax, dword [ebp - 0x54]
call fcn.00405484
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405264
mov eax, dword [ebp - 0x58]
call fcn.00405484
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46dbd6
xor eax, eax
test al, al
je 0x46dbe1
mov ebx, 0x15
jmp 0x46dbed
mov ebx, 0x10
jmp 0x46dbed
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4969a4]
call fcn.0046d924
mov eax, dword [ebp - 4]
call fcn.0046d924
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dc4c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405018
lea eax, [ebp - 0xc]
mov edx, dword [0x407f34]
call fcn.00405bdc
ret
Function at 0x480760
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x48078e
mov eax, ebx
call fcn.00481214
cmp dword [ebx + 0x40], 0
je 0x480787
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4807ff
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4807f1
cmp dword [ebx + 8], 0
je 0x4807b0
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 0x4807c2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4807f1
cmp dword [ebx + 8], 0
je 0x4807a3
cmp eax, 3
je 0x4807d5
dec eax
jne 0x4807a3
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 0x4807a3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4807a3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x48081d
cmp dword [ebx + 0x14], 0xcc
je 0x48081d
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.00480828
pop ebx
ret
Function at 0x100135e3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024558
push 0x10024550
push str.FlsAlloc
push 0x1e
call fcn.100134ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013617
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002114c]
call esi
jmp 0x1001361d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10013661
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024568
push 0x10024560
push str.FlsGetValue
push 0x20
call fcn.100134ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013698
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002114c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10014d42
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10014bb3

Function at 0x1001513c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009610
mov eax, dword [0x1002b080]
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.10013c16
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001517e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100152da
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001f590
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 + 0x1002ca08]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10016119
mov ecx, dword [esi*4 + 0x1002ca08]
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 0x100152d3
cmp eax, dword [edi + ecx + 0x24]
jne 0x100152d3
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 0x100152d3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016119
add esp, 0x14
test edx, edx
jl 0x100152d3
jg 0x10015249
test eax, eax
jb 0x100152d3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100152d3
jl 0x10015263
cmp dword [ebp - 0x1008], eax
ja 0x100152d3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10015281
test ebx, ebx
je 0x100152ba
cmp ecx, edi
jae 0x100152ba
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001529b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100152a7
cmp byte [ecx + 1], 0xa
jne 0x100152a7
inc ecx
jmp 0x100152a7
movzx eax, al
movsx eax, byte [eax + 0x1002b328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10015281
cmp edx, ebx
jne 0x10015281
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100152d8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008b6c
leave
ret
Function at 0x100155d1
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 + 0x1002ca08]
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 0x10015611
cmp byte [ebx], 0xa
jne 0x10015611
or byte [eax + edi + 0x28], 4
jmp 0x10015616
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10015714
mov al, byte [edx]
cmp al, 0x1a
je 0x100156f6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10015645
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1001566a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10015674
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 0x10015627
jmp 0x10015714
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 0x100156f1
cmp dword [ebp - 0xc], 0
je 0x100156f1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1002ca08]
test byte [eax + edi + 0x28], 0x48
je 0x100156cb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100156b6
mov byte [esi], dl
jmp 0x100156c7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002ca08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10015714
cmp byte [ebp - 1], 0xa
jne 0x100156da
cmp esi, ebx
jne 0x100156da
mov byte [esi], 0xa
jmp 0x10015713
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10016137
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10015714
mov byte [esi], 0xd
jmp 0x10015713
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1002ca08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10015710
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10015714
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001571d
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 + 0x1002ca08]
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 0x10015760
cmp word [esi], dx
jne 0x10015760
or byte [edi + eax + 0x28], 4
jmp 0x10015765
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 0x1001589e
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 0x1001587e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100157a7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100157dd
cmp eax, edx
jae 0x100157e9
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 0x1001577f
jmp 0x1001589e
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 0x1001587a
cmp dword [ebp - 0x14], 0
je 0x1001587a
mov eax, dword [ebx*4 + 0x1002ca08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10015852
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10015898
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1002ca08]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1002ca08]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1002ca08]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1001589b
pop ebx
cmp word [ebp - 4], bx
jne 0x10015863
cmp esi, dword [ebp + 0xc]
jne 0x10015863
mov word [esi], bx
jmp 0x1001589b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10016137
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1001589e
push 0xd
jmp 0x10015897
mov ecx, dword [ebx*4 + 0x1002ca08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10015895
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001589e
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