joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102d450
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1039004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x210]
push eax
mov word [ebp - 0x210], 0
mov word [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x102d56c
cmp eax, 0x104
jb 0x102d4b4
pop esi
mov eax, 0x6f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029f27
mov esp, ebp
pop ebp
ret 8
lea ecx, [eax + eax + 2]
xor edx, edx
cmp ecx, 0x208
jbe 0x102d4c9
mov edx, 0x6f
jmp 0x102d4df
cmp ecx, 2
jb 0x102d4da
shr ecx, 1
cmp word [ebp + ecx*2 - 0x212], dx
je 0x102d4e5
mov edx, 0xd
mov word [ebp - 0xa], 0
test edx, edx
jne 0x102d584
mov edx, 0x104
sub edx, eax
lea ecx, [ebp + eax*2 - 0x210]
mov ax, word [ebp - 0x210]
test ax, ax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], edx
je 0x102d53f
cmp ax, 0x5c
jne 0x102d523
cmp word [ebp - 0x20e], 0
je 0x102d53f
push 0x101a3f0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.0102d3e0
test eax, eax
jne 0x102d59a
push esi
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.0102d3e0
mov esi, eax
test esi, esi
jne 0x102d598
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebx], eax
jne 0x102d598
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029f27
mov esp, ebp
pop ebp
ret 8
pop esi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029f27
mov esp, ebp
pop ebp
ret 8
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01029f27
mov esp, ebp
pop ebp
ret 8

Function at 0x102d6e0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 7
mov dword [ebp - 4], 0
jne 0x102d72b
call fcn.010247e0
push eax
push ebx
push 0x1018350
call dword [sym.imp.MSVCR80.dll__wcsicmp_l]
add esp, 0xc
test eax, eax
jne 0x102d72b
lea eax, [ebp + 8]
push eax
push ebx
mov ecx, edi
call fcn.0102bf70
mov esi, eax
test esi, esi
je 0x102d786
cmp esi, 2
jne 0x102d76d
mov eax, dword [edi + 4]
lea edx, [ebp - 4]
push edx
mov edx, dword [edi + 0x408]
or eax, 0x20006
push eax
push 0
lea ecx, [edi + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x102d76d
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push esi
push ebx
push edx
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x102d77b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp + 8]
je 0x102d72b
mov esi, 0x1779
jmp 0x102d76d
Function at 0x102d930
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x1039004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
push 0x101b148
lea edx, [edi + 8]
xor esi, esi
push edx
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x610], 0
mov dword [ebp - 0x60c], 0
mov dword [ebp - 0x408], ecx
mov word [ebp - 0x206], si
call fcn.010247e0
push eax
push 0x1018498
lea eax, [ebp - 0x404]
push 0xff
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf_l]
add esp, 0x18
test eax, eax
jge 0x102d9aa
mov esi, 0x6f
test esi, esi
jne 0x102dae8
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
jmp 0x102d9c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x102d9c0
sub eax, edx
sar eax, 1
cmp eax, 0x100
jb 0x102d9e0
mov esi, 0x6f
jmp 0x102dae8
lea ecx, [ebp - 0x404]
push 0x1018468
push ecx
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x102dae3
lea edx, [ebp - 0x60c]
push edx
mov word [eax], 0
push 0x101aafc
lea eax, [ebp - 0x408]
push eax
call fcn.0102c790
mov esi, eax
test esi, esi
jne 0x102dae8
mov edx, dword [ebp - 0x60c]
lea ecx, [ebp - 0x610]
push ecx
mov ecx, dword [edi + 0x408]
or edx, 1
push edx
push eax
lea eax, [ebp - 0x608]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x102dae8
lea edx, [ebp - 0x614]
push edx
mov edx, dword [ebp - 0x610]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x61c]
push ecx
push esi
push 0x101aafc
push edx
mov dword [ebp - 0x614], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0x614]
push edi
push 0x200
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.0102be00
mov esi, eax
test esi, esi
jne 0x102dae8
cmp dword [ebp - 0x61c], 1
jne 0x102dae3
cmp edi, 2
jb 0x102dae3
mov eax, dword [ebp - 0x618]
test eax, eax
jne 0x102dac4
mov esi, 0x57
jmp 0x102dae8
cmp edi, dword [ebp + 0xc]
jbe 0x102dad0
mov esi, 0xea
jmp 0x102dae8
push edi
lea edx, [ebp - 0x204]
push edx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x102dae8
mov esi, 0xd
mov eax, dword [ebp - 0x610]
test eax, eax
je 0x102daf9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01029f27
mov esp, ebp
pop ebp
ret 8
Function at 0x102de40
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx + 4]
push esi
lea eax, [ebp - 4]
push eax
or edx, 0x20006
push edx
push 0
lea eax, [ecx + 8]
mov ecx, dword [ecx + 0x408]
push eax
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x102deab
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 8]
push edx
push edi
mov dword [ebp - 8], eax
call fcn.0102c850
mov esi, eax
test esi, esi
jne 0x102deaa
mov eax, dword [ebp - 8]
mov edx, dword [edi]
push eax
mov eax, dword [ebp + 8]
lea ecx, [edi + 4]
push ecx
mov ecx, dword [ebp - 4]
push edx
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
pop edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x102deb9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x102e0f0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1039004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x414], ebx
call fcn.0102c850
cmp eax, ebx
jne 0x102e19a
lea edx, [ebp - 0x40c]
push edx
add esi, 0x208
push esi
call fcn.0102c660
mov esi, eax
cmp esi, ebx
jne 0x102e187
cmp edi, ebx
je 0x102e1ad
lea eax, [ebp - 0x208]
push eax
push edi
lea ecx, [ebp - 0x40c]
push ecx
call fcn.0102c790
mov esi, eax
cmp esi, ebx
je 0x102e1c0
mov eax, dword [ebp - 0x410]
cmp eax, ebx
je 0x102e198
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01029f27
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x81
lea esi, [ebp - 0x40c]
lea edi, [ebp - 0x208]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov edx, edi
neg edx
sbb edx, edx
and edx, 0xffffff00
add edx, 0x200
push edx
call fcn.0102d630
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp - 0x41c]
lea edx, [ebp - 0x410]
push edx
mov edx, dword [ecx + 0x408]
push ebx
or eax, 0x20006
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x204]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x102e187
mov eax, dword [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x420]
push ecx
mov ecx, dword [ebp - 0x410]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
jne 0x102e187
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 1
cmp edi, 2
mov dword [ebp - 0x410], ebx
jb 0x102e1c2
jmp 0x102e198
Function at 0x1033710
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
test ecx, ecx
jbe 0x1033765
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xffffff
xor edx, dword [ecx*4 + 0x1018730]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x1033725
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x1033990
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x14]
shl eax, 1
mov dword [ebp - 4], eax
push 0x101b148
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0101ebe0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x10339db
push 0x57
call fcn.01024260
jmp 0x1033a7d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1033a6e
cmp dword [ebp - 8], 1
jne 0x1033a62
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x1033a62
cmp dword [ebp - 4], 2
jb 0x1033a62
mov edx, dword [ebp - 4]
shr edx, 1
sub edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + eax*2]
test edx, edx
jne 0x1033a37
jmp 0x1033a60
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0x14]
jae 0x1033a56
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov word [eax + edx*2], 0
jmp 0x1033a60
push 0x7a
call fcn.01024260
mov dword [ebp - 0xc], eax
jmp 0x1033a6c
push 0xb
call fcn.01024260
mov dword [ebp - 0xc], eax
jmp 0x1033a7a
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.01024260
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1033ae0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push 0x1018b44
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
push 0x1018b30
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x103a4cc], eax
cmp dword [0x103a4cc], 0
jne 0x1033b1d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov dword [0x103a4d0], eax
mov esp, ebp
pop ebp
ret
Function at 0x1001497
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ebx, ebx
push 0x44
push 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10014f7
mov eax, dword [section..data]
cmp eax, section..data
je 0x100159e
test byte [eax + 0x1c], 1
je 0x100159e
push 0x100114c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001365
jmp 0x100159e
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push 0xb
mov dword [ebp - 0xc], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x1001542
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001591
test byte [eax + 0x1c], 1
je 0x1001591
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x100114c
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100138b
jmp 0x1001591
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1001589
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001584
test byte [eax + 0x1c], 1
je 0x1001584
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x100114c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100138b
mov dword [ebp - 8], ebx
jmp 0x1001591
cmp dword [ebp - 8], 1
sete byte [ebp - 1]
push dword [ebp - 0x10]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x1001782
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1004004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
ja 0x10017db
test eax, eax
je 0x10017db
push 0x1001188
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10017db
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01002bda
leave
ret
Function at 0x1002bcb
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10030b0
call fcn.01002d84
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10043c8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002986
cmp eax, esi
jne 0x1002979
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002989
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002960
xor esi, esi
inc esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x100299c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10029cb
mov eax, dword [0x10043c4]
test eax, eax
jne 0x10029c5
mov dword [0x10043c4], esi
push 0x1001118
push 0x100110c
call fcn.010028c2
pop ecx
pop ecx
test eax, eax
je 0x10029cb
jmp 0x1002aef
mov dword [0x1004084], esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x10029ef
push 0x1001108
push 0x1001100
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10043c4], 2
cmp dword [ebp - 0x20], ebx
jne 0x10029fc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10043cc], ebx
je 0x1002a1d
push 0x10043cc
call fcn.01002cf9
pop ecx
test eax, eax
je 0x1002a1d
push ebx
push 2
push ebx
call dword [0x10043cc]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1002aef
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1002a87
cmp cx, bx
je 0x1002a42
cmp dword [ebp - 0x1c], ebx
jne 0x1002a87
movzx ecx, word [eax]
cmp cx, bx
je 0x1002a57
cmp cx, 0x20
ja 0x1002a57
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1002a42
test byte [ebp - 0x40], 1
je 0x1002a63
movzx ecx, word [ebp - 0x3c]
jmp 0x1002a66
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1004080], eax
cmp dword [0x1004074], ebx
jne 0x1002acc
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1002a98
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1002a2c
cmp dword [0x1004084], ebx
jne 0x1002ada
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004080]
jmp 0x1002afb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002dc9
ret
call fcn.01002ed1
jmp 0x1002923
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486b48]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402630
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402ef5
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069ff
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.00403895
push eax
call fcn.00403863
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402ef5
jmp 0x401f9b
Function at 0x41834a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407940
mov eax, dword [0x42c040]
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.00414745
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41838c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421760
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 + 0x486740]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418770
mov ecx, dword [esi*4 + 0x486740]
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 0x4184e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184e1
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 0x4184e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418770
add esp, 0x14
test edx, edx
jl 0x4184e1
jg 0x418457
test eax, eax
jb 0x4184e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184e1
jl 0x418471
cmp dword [ebp - 0x1008], eax
ja 0x4184e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41848f
test ebx, ebx
je 0x4184c8
cmp ecx, edi
jae 0x4184c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4184a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184b5
cmp byte [ecx + 1], 0xa
jne 0x4184b5
inc ecx
jmp 0x4184b5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41848f
cmp edx, ebx
jne 0x41848f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069ff
leave
ret
Function at 0x41eada
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 + 0x486740]
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 0x41eb1a
cmp byte [ebx], 0xa
jne 0x41eb1a
or byte [eax + edi + 0x28], 4
jmp 0x41eb1f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec1d
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebff
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb4e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb73
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb7d
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 0x41eb30
jmp 0x41ec1d
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 0x41ebfa
cmp dword [ebp - 0xc], 0
je 0x41ebfa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486740]
test byte [eax + edi + 0x28], 0x48
je 0x41ebd4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebbf
mov byte [esi], dl
jmp 0x41ebd0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486740]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec1d
cmp byte [ebp - 1], 0xa
jne 0x41ebe3
cmp esi, ebx
jne 0x41ebe3
mov byte [esi], 0xa
jmp 0x41ec1c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec1d
mov byte [esi], 0xd
jmp 0x41ec1c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486740]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec19
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec1d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret