joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043661
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1001e278]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call dword [sym.imp.MSVCR90.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004da5d
leave
ret

Function at 0x10046ddd
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x1008b904
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x10046e2e
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x1008b908], eax
mov ax, word [ebp - 0x30]
mov word [0x1008b90c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x1008b910], eax
mov eax, dword [ebp - 0x40]
mov dword [0x1008b914], eax
mov eax, esi
pop esi
leave
ret
Function at 0x10048e32
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1001e278]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x1008b9a8
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 0x1f], 2
jne 0x10049047
mov eax, dword [esi + 0x14]
push edi
mov edi, 0x1008b9e4
cmp eax, ebx
je 0x10048e88
push eax
mov ecx, edi
call fcn.1004a552
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
push 8
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10048f89
lea eax, [ebp - 0x23c]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x1001df10
push ebx
call fcn.1004a1ea
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x10048f89
mov eax, dword [ebp - 0x238]
push 4
xor ecx, ecx
pop edx
mul edx
seto cl
mov dword [ebp - 0x220], 1
neg ecx
or eax, ecx
push eax
mov ecx, edi
call fcn.1004a528
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x10048f99
mov dword [ebp - 0x21c], ebx
cmp dword [ebp - 0x238], ebx
jbe 0x10048f5d
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x23c]
push dword [eax + ecx*4]
call fcn.10048c0b
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x10048f42
movzx eax, byte [esi + 0x1d]
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x224]
mov dword [ecx + eax*4], edx
inc byte [esi + 0x1d]
jmp 0x10048f49
cmp eax, 0x8007000e
je 0x10048f74
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x238]
jb 0x10048f08
cmp byte [esi + 0x1d], bl
jne 0x10049033
mov eax, dword [esi + 0x14]
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
jmp 0x10049033
push dword [esi + 0x14]
mov ecx, edi
call fcn.1004a552
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
jmp 0x10049046
push 4
mov ecx, edi
call fcn.1004a528
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x10048fa8
mov dword [ebp - 0x218], 0x8007000e
jmp 0x10049046
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
call fcn.1004a68d
test al, al
je 0x10048fd8
cmp dword [esi + 8], 0x1000
jne 0x10048fd8
push pe_nt_image_headers32
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 4]
call fcn.1004a65b
jmp 0x10048fef
push pe_nt_image_headers32
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
je 0x10049033
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x21c], ebx
call fcn.1004817c
test eax, eax
je 0x10049027
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call fcn.1004a495
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x218], 0x8007000e
je 0x10049046
cmp dword [esi + 8], 0xc00
je 0x10049040
or byte [esi + 0x1f], 2
mov dword [ebp - 0x218], ebx
pop edi
push 0x1008b9a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x220], ebx
pop esi
pop ebx
je 0x10049068
lea eax, [ebp - 0x23c]
push eax
call fcn.1004a257
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.1004da5d
leave
ret 4
Function at 0x1004a68d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1001e278]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1008b9f7], 0
jne 0x1004a6e7
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004a6e0
cmp dword [ebp - 0x110], 2
jne 0x1004a6e0
cmp dword [ebp - 0x11c], 6
jb 0x1004a6e0
call fcn.1004a56e
mov byte [0x1008b9f6], al
mov byte [0x1008b9f7], 1
mov ecx, dword [ebp - 4]
mov al, byte [0x1008b9f6]
xor ecx, ebp
call fcn.1004da5d
leave
ret

Function at 0x1004a6f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x1001e278]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x160], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x168], edi
call fcn.1004a68d
test al, al
je 0x1004a73f
push dword [ebp + 0x10]
push edi
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x160], eax
jmp 0x1004a7e2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x56
lea eax, [ebp - 0xb0]
push eax
push 0x59
push dword [ebp + 8]
call esi
push 0x56
mov ebx, eax
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push dword [ebp + 8]
call esi
cmp ebx, 1
jle 0x1004a7e0
cmp eax, 1
jle 0x1004a7c1
mov esi, dword [ebp + 0x10]
add eax, ebx
cmp eax, esi
mov dword [ebp - 0x164], eax
jg 0x1004a7e0
lea eax, [ebp - 0xb0]
push eax
push esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll_wcscpy_s]
call edi
mov eax, dword [ebp - 0x168]
push 0x2d
pop ecx
lea eax, [eax + ebx*2]
mov word [eax - 2], cx
lea ecx, [ebp - 0x15c]
push ecx
sub esi, ebx
push esi
push eax
call edi
mov eax, dword [ebp - 0x164]
add esp, 0x18
mov dword [ebp - 0x160], eax
jmp 0x1004a7e0
cmp ebx, dword [ebp + 0x10]
jg 0x1004a7e0
lea eax, [ebp - 0xb0]
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 0x160], ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x160]
xor ecx, ebp
pop edi
call fcn.1004da5d
leave
ret 0xc

Function at 0x1004ba7d
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_4
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1004badd
cmp eax, edi
je 0x1004badd
push edi
push edi
push edi
push 2
push edi
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
je 0x1004badd
cmp eax, edi
je 0x1004badd
push edi
push edi
push edi
push 4
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
inc eax
jmp 0x1004badf
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x1004d9a9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x1001e27c
push 0x1000dc44
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1004d9de
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x1001e278
push ebx
call edi
mov dword [0x1001e278], esi
test esi, esi
jne 0x1004da42
mov dword [0x1001e278], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x100845e4], 0x44bf19b1
pop ebx
leave
ret

Function at 0x1004da5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e278]
jne 0x1004eb50
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1008bbd0], eax
mov dword [0x1008bbcc], ecx
mov dword [0x1008bbc8], edx
mov dword [0x1008bbc4], ebx
mov dword [0x1008bbc0], esi
mov dword [0x1008bbbc], edi
mov word [0x1008bbe8], ss
mov word [0x1008bbdc], cs
mov word [0x1008bbb8], ds
mov word [0x1008bbb4], es
mov word [0x1008bbb0], fs
mov word [0x1008bbac], gs
pushfd
pop dword [0x1008bbe0]
mov eax, dword [ebp]
mov dword [0x1008bbd4], eax
mov eax, dword [ebp + 4]
mov dword [0x1008bbd8], eax
lea eax, [ebp + 8]
mov dword [0x1008bbe4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1008bb20], 0x10001
mov eax, dword [0x1008bbd8]
mov dword [0x1008bad4], eax
mov dword [0x1008bac8], 0xc0000409
mov dword [0x1008bacc], 1
mov eax, dword [0x1001e278]
mov dword [ebp - 0x328], eax
mov eax, dword [0x100845e4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1008bb18], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1001e424
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1008bb18], 0
jne 0x1004ec3c
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x1004da8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.1004da75
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x10002614
push Ordinal_4
call esi
test eax, eax
jne 0x1004db35
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.1004da75
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1004db27
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x1001e2a0
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004db27
cmp dword [ebp + 8], esi
jne 0x1004db27
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x1004db27
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x1004db19
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x1004db23
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x1004db45
cmp dword [ebp - 4], ebx
je 0x1004db35
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x1004db43
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1004db4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x1008ba88], 0
je 0x1004db61
mov eax, dword [0x1008ba84]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.1004da75
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1001e2f0
mov edi, Ordinal_4
push edi
call esi
test eax, eax
jne 0x1004dbc2
lea eax, [ebp - 8]
push eax
push 0x1008ba84
push 0
push 0
push dword [0x100845ec]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004dbc2
cmp dword [ebp - 8], 4
jne 0x1004dbc2
cmp dword [ebp - 4], eax
jmp 0x1004dc07
lea ecx, [ebp - 4]
call fcn.1004da75
push eax
push ebx
xor ebx, ebx
push ebx
push 0x1001e2b8
push edi
call esi
test eax, eax
jne 0x1004dc23
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x1008ba84
push ebx
push ebx
push dword [0x100845ec]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004dc23
cmp dword [ebp - 8], esi
jne 0x1004dc23
cmp dword [ebp - 4], ebx
mov esi, dword [0x1008ba84]
mov byte [0x1008ba88], 1
je 0x1004dc1f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1004dc40
mov dword [0x1008ba84], ebx
mov byte [0x1008ba88], 1
cmp dword [ebp - 4], ebx
je 0x1004dc3e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xb66a70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x34e000]
push edi
or ebp, 0xffffffff
jmp 0xb66a92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb66a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb66a88
mov eax, 1
add ebx, ebx
jne 0xb66aab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb66abc
jne 0xb66adb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb66adb
dec eax
add ebx, ebx
jne 0xb66ac8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb66aa0
add ebx, ebx
jne 0xb66ad7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb66b2d
xor ecx, ecx
sub eax, 3
jb 0xb66af3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb66b62
sar eax, 1
mov ebp, eax
jmp 0xb66afe
add ebx, ebx
jne 0xb66afe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb66acc
inc ecx
add ebx, ebx
jne 0xb66b0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb66acc
add ebx, ebx
jne 0xb66b19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb66b0e
jne 0xb66b2a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb66b0e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb66b4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb66b3e
jmp 0xb66a8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb66b4c
add edi, ecx
jmp 0xb66a8e
pop esi
mov edi, esi
mov ecx, 0xe441
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb66b6a
cmp byte [edi], 0x22
jne 0xb66b6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb66b6f
lea edi, [esi + 0x734000]
mov eax, dword [edi]
or eax, eax
je 0xb66bde
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x76a8a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x76a9cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb66b9c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x76a9d4]
or eax, eax
je 0xb66bd8
mov dword [ebx], eax
add ebx, 4
jmp 0xb66bb9
call dword [esi + 0x76a9d0]
mov ebp, dword [esi + 0x76a9d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xb66c12
sub esp, 0xffffff80
jmp 0x5a8091
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 [0x486348]
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.0040261a
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402edf
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.004069e9
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.0040387f
push eax
call fcn.0040384d
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.00402edf
jmp 0x401f9b
Function at 0x41833a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407930
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.00414735
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41837c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421750
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 + 0x485f40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418760
mov ecx, dword [esi*4 + 0x485f40]
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 0x4184d1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184d1
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 0x4184d1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418760
add esp, 0x14
test edx, edx
jl 0x4184d1
jg 0x418447
test eax, eax
jb 0x4184d1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184d1
jl 0x418461
cmp dword [ebp - 0x1008], eax
ja 0x4184d1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41847f
test ebx, ebx
je 0x4184b8
cmp ecx, edi
jae 0x4184b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x418499
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184a5
cmp byte [ecx + 1], 0xa
jne 0x4184a5
inc ecx
jmp 0x4184a5
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 0x41847f
cmp edx, ebx
jne 0x41847f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069e9
leave
ret
Function at 0x41eace
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 + 0x485f40]
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 0x41eb0e
cmp byte [ebx], 0xa
jne 0x41eb0e
or byte [eax + edi + 0x28], 4
jmp 0x41eb13
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec11
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebf3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb42
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb67
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb71
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 0x41eb24
jmp 0x41ec11
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 0x41ebee
cmp dword [ebp - 0xc], 0
je 0x41ebee
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x485f40]
test byte [eax + edi + 0x28], 0x48
je 0x41ebc8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebb3
mov byte [esi], dl
jmp 0x41ebc4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485f40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec11
cmp byte [ebp - 1], 0xa
jne 0x41ebd7
cmp esi, ebx
jne 0x41ebd7
mov byte [esi], 0xa
jmp 0x41ec10
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec11
mov byte [esi], 0xd
jmp 0x41ec10
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x485f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec0d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec11
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec1a
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 + 0x485f40]
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 0x41ec5d
cmp word [esi], dx
jne 0x41ec5d
or byte [edi + eax + 0x28], 4
jmp 0x41ec62
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 0x41edb5
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 0x41ed95
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eca4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ecda
cmp eax, edx
jae 0x41ece6
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 0x41ec7c
jmp 0x41edb5
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 0x41ed91
cmp dword [ebp - 0x14], 0
je 0x41ed91
mov eax, dword [ebx*4 + 0x485f40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed69
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed32
mov word [esi], cx
jmp 0x41ed65
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x485f40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x485f40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x485f40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edb5
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed7a
cmp esi, dword [ebp + 0xc]
jne 0x41ed7a
mov word [esi], bx
jmp 0x41edb2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edb5
push 0xd
jmp 0x41edae
mov ecx, dword [ebx*4 + 0x485f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edb5
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