joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417730
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 8]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x24], 0x445710
mov dword [ebp - 0x20], 0x446a34
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 0x417876
mov dword [esp], eax
call fcn.004286e0
mov dword [esp], 0x44bf00
mov dword [ebp - 0x38], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x40]
sub esp, 4
test eax, eax
mov dword [ecx], eax
je 0x417850
mov edx, dword [ebp - 0x40]
mov dword [edx + 4], 0
mov byte [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [esp + 4], str.SystemFunction036
mov dword [esp], eax
mov dword [ebp - 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x4177d0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.00428750
leave
ret
mov dword [esp + 4], str.SystemFunction036
mov dword [esp], 0x44bf53
call fcn.004168d0
mov eax, dword [ebp - 0x40]
mov dword [eax + 4], 0
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x40], eax
add eax, 0xc
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ecx, dword [ebp - 0x40]
sub esp, 0x14
test eax, eax
setne byte [ecx + 8]
jne 0x4177c0
mov dword [ebp - 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], eax
mov dword [esp], str.GenRandom:_CryptAcquireContext_failed:__u
call fcn.004168d0
jmp 0x4177c0
mov dword [esp + 8], 0x44bf1a
mov dword [esp + 4], 0x28
mov dword [esp], 0x44bf2b
call fcn.0041d680
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
jmp 0x417786

Function at 0x417920
Capabilities:
Generate random numbers via winapi

Disassembly:
push edi
push esi
mov edi, ecx
push ebx
sub esp, 0x20
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov dword [esp], esi
call sub.msvcrt.dll_memset
mov eax, dword [edi + 4]
test eax, eax
je 0x417993
mov dword [esp + 4], ebx
mov dword [esp], esi
call eax
sub esp, 8
test al, al
mov edx, 1
je 0x417970
add esp, 0x20
mov eax, edx
pop ebx
pop esi
pop edi
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.GenRandom:_RtlGenRandom_SystemFunction036_failed:__u
mov dword [esp + 4], eax
call fcn.004168d0
add esp, 0x20
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
ret 8
movzx edx, byte [edi + 8]
test dl, dl
je 0x417960
mov eax, dword [edi + 0xc]
mov byte [esp + 0x1f], dl
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
sub esp, 0xc
test eax, eax
movzx edx, byte [esp + 0x1f]
jne 0x417960
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.GenRandom:_CryptGenRandom_failed__size_d__lasterror_u
call fcn.004168d0
xor edx, edx
jmp 0x417960
Function at 0x4275f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x452420]
test esi, esi
jle 0x427700
mov edi, dword [0x452424]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x427624
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4276a5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x427610
mov dword [esp], eax
mov ebx, eax
call fcn.00427ee0
test eax, eax
mov edi, eax
je 0x427727
mov eax, dword [0x452424]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00427fe0
add eax, dword [edi + 0xc]
mov edx, dword [0x452424]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x427707
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x42769e
sub eax, 4
and eax, 0xfffffffb
jne 0x4276b0
add dword [0x452420], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x452424]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x42769e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00446750
lea esi, [esi]
xor esi, esi
jmp 0x42762e
mov eax, dword [0x452424]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00446750
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00446750
mov esi, esi
lea edi, [edi]

Function at 0x427b60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x452438
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x452430]
sub esp, 4
test ebx, ebx
je 0x427bb5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x427bae
test esi, esi
je 0x427bae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x427b90
mov dword [esp], 0x452438
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42fb10
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x447064], eax
je 0x42fb27
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x430020
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x430050
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.0042f9d0
cmp eax, 1
je 0x430052
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x4300a5
jmp 0x4300c2
cmp eax, 0x6a
je 0x4300b3
add eax, 1
cmp byte [ebx + eax], 0
jne 0x4300a0
cmp eax, 0x6a
jne 0x4300c2
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
jmp 0x4300b3
Function at 0x430160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x452e50], 1
je 0x430175
call fcn.004300d0
mov eax, dword [0x447064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x4301a0
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0042ff70
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x43018c
test esi, esi
je 0x43018c
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x38]
sub esp, 0x10
mov dword [esi + 0x1c], 0xffffffff
call fcn.00430020
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
lea edx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x4302a2
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
mov dword [esi + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x447064]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4302a2
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll_abort
mov esi, esi
lea edi, [edi]
Function at 0x4303e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x430410
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4304b1
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x4304e0
cmp eax, 3
jne 0x4303fa
mov eax, dword [0x447064]
cmp eax, 0xffffffff
je 0x4303fa
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x4303fa
test byte [eax + 0x20], 0x30
je 0x430502
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x430604
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x430484
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x430476
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0042f810
lea eax, [ebx + 0x38]
call fcn.00430020
mov esi, dword [ebx + 0xb0]
test esi, esi
jne 0x430589
mov eax, ebx
call fcn.0042fd10
jmp 0x430589
mov eax, dword [0x452e2c]
test eax, eax
je 0x4303fa
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x452e2c], 0
sub esp, 4
jmp 0x4303fa
mov dword [esp + 4], 0x42fa30
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x452e2c], eax
jmp 0x4303fa
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4305b0
test eax, eax
je 0x430520
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
jne 0x4305e0
test byte [ebx + 0x24], 4
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
je 0x4305f0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x430565
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.0042f810
mov eax, esi
call fcn.00430020
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x4304a5
mov eax, dword [0x447064]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x4303fa
test eax, eax
je 0x4305c0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.0042f810
lea eax, [ebx + 0x38]
call fcn.00430020
jmp 0x4303fa
call fcn.004302f0
jmp 0x43053c
mov dword [esp], edi
call fcn.0042f810
mov eax, esi
call fcn.00430020
jmp 0x4303fa
call fcn.004302f0
jmp 0x430452
Function at 0x430f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.00430160
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x431002
test byte [ebx + 0x20], 0x30
jne 0x430fb6
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x447064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov ebx, eax
je 0x430ff9
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x431046
test eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
je 0x430fec
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x431009
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.004302f0
jmp 0x430f9d
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x43106d
mov eax, dword [0x447064]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x430ff9
test eax, eax
mov dword [ebx], 0xdeadbeef
je 0x43105a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x43102c
mov eax, ebx
call fcn.0042fd10
jmp 0x43102c
Function at 0x446750
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0042de40
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0042de40
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
pop ebp
jmp fcn.004014e0
Function at 0x414779
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004100b5
xor ebx, ebx
cmp dword [0x4244a8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41484e
push 0x41cb64
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4147b9
xor eax, eax
jmp 0x414912
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cb58
push edi
call esi
cmp eax, ebx
je 0x4147b2
push eax
call fcn.00410052
mov dword [esp], 0x41cb48
push edi
mov dword [0x4244a8], eax
call esi
push eax
call fcn.00410052
mov dword [esp], 0x41cb34
push edi
mov dword [0x4244ac], eax
call esi
push eax
call fcn.00410052
mov dword [0x4244b0], eax
lea eax, [ebp - 8]
push eax
call fcn.0040eac1
test eax, eax
pop ecx
pop ecx
je 0x41481c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cbfb
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41484e
push 0x41cb18
push edi
call esi
push eax
call fcn.00410052
cmp eax, ebx
pop ecx
mov dword [0x4244b8], eax
je 0x41484e
push 0x41cb00
push edi
call esi
push eax
call fcn.00410052
pop ecx
mov dword [0x4244b4], eax
mov eax, dword [0x4244b4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4148c7
cmp dword [0x4244b8], esi
je 0x4148c7
push eax
call fcn.004100be
pop ecx
call eax
cmp eax, ebx
je 0x414894
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4244b8]
call fcn.004100be
pop ecx
call eax
test eax, eax
je 0x414894
test byte [ebp - 0x18], 1
jne 0x4148c7
lea eax, [ebp - 0xc]
push eax
call fcn.0040eaf8
test eax, eax
pop ecx
je 0x4148af
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cbfb
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4148be
or dword [ebp + 0x10], 0x200000
jmp 0x4148f8
or dword [ebp + 0x10], 0x40000
jmp 0x4148f8
mov eax, dword [0x4244ac]
cmp eax, esi
je 0x4148f8
push eax
call fcn.004100be
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4148f8
mov eax, dword [0x4244b0]
cmp eax, esi
je 0x4148f8
push dword [ebp - 4]
push eax
call fcn.004100be
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4244a8]
call fcn.004100be
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8ccbb5
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x8cc92e
sub ecx, 0x2dc2e747
or ebx, ebx
call fcn.008ccbe4
or ebx, ecx
or ecx, ecx
xor dword [eax], edx
sub ecx, ebx
and ebx, ebx
inc ebx
inc eax
add ecx, 0x6ed98446
cmp eax, edi
jne fcn.008ccbb5
or ebx, ebx
sub ecx, ebx
ret
Function at 0x402019
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x4882d0]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402080
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004029ba
lea ecx, [esp + 0x1c]
call fcn.00401e49
cmp eax, dword [esp + 0x14]
je 0x402098
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402a47
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402050
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040708b
add esp, 0x2c
ret
mov edx, str.QwruxAA
call fcn.00402da7
push eax
call fcn.00403020
mov eax, dword [ebp + 0x24]
pop ecx
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402a47
jmp 0x402082
Function at 0x4171e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416e84

Function at 0x4171ed
Capabilities:
Read file on windows

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

Function at 0x4175e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407fe0
mov eax, dword [0x42e040]
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.00415916
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417629
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417785
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422570
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 + 0x487f90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004187b7
mov ecx, dword [esi*4 + 0x487f90]
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 0x41777e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41777e
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 0x41777e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004187b7
add esp, 0x14
test edx, edx
jl 0x41777e
jg 0x4176f4
test eax, eax
jb 0x41777e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41777e
jl 0x41770e
cmp dword [ebp - 0x1008], eax
ja 0x41777e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41772c
test ebx, ebx
je 0x417765
cmp ecx, edi
jae 0x417765
mov al, byte [ecx]
cmp al, 0xd
jne 0x417746
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417752
cmp byte [ecx + 1], 0xa
jne 0x417752
inc ecx
jmp 0x417752
movzx eax, al
movsx eax, byte [eax + 0x42e308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41772c
cmp edx, ebx
jne 0x41772c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417783
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040708b
leave
ret
Function at 0x417c55
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 + 0x487f90]
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 0x417c95
cmp byte [ebx], 0xa
jne 0x417c95
or byte [eax + edi + 0x28], 4
jmp 0x417c9a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417d98
mov al, byte [edx]
cmp al, 0x1a
je 0x417d7a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417cc9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417cee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417cf8
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 0x417cab
jmp 0x417d98
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 0x417d75
cmp dword [ebp - 0xc], 0
je 0x417d75
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x487f90]
test byte [eax + edi + 0x28], 0x48
je 0x417d4f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417d3a
mov byte [esi], dl
jmp 0x417d4b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x487f90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417d98
cmp byte [ebp - 1], 0xa
jne 0x417d5e
cmp esi, ebx
jne 0x417d5e
mov byte [esi], 0xa
jmp 0x417d97
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004187d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417d98
mov byte [esi], 0xd
jmp 0x417d97
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x487f90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417d94
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417d98
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret