joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000772f
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
add eax, 0x14
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx + 0x20]
movzx ecx, word [ebx + 0x1c]
sub esp, 0x20
vxorps xmm0, xmm0, xmm0
vmovups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ecx
and dword [esp + 4], 0
mov dword [esp + 8], eax
and dword [esp], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
movzx eax, word [ebx + 0x1c]
push 0
push 0
push edi
push esi
push eax
push dword [ebx + 0x20]
push 0
push 0
call ebp
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
push str.KERNEL32.DLL
push esi
call sub.msvcrt.dll_strstr
add esp, 8
test eax, eax
jne 0x100077cf
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebx]
cmp ebx, dword [esp]
jne 0x1000774e
jmp 0x100077e2
mov edi, dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 0x3c]
mov eax, dword [edi + eax + 0x78]
mov ecx, dword [edi + eax + 0x1c]
add ecx, edi
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + eax + 0x20]
add ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + eax + 0x24]
add ecx, edi
mov dword [esp + 8], ecx
mov eax, dword [edi + eax + 0x18]
mov dword [esp], eax
xor ebp, ebp
mov dword [esp + 4], 0
xor ebx, ebx
cmp dword [esp], ebp
je 0x10007873
mov eax, dword [esp + 0x10]
mov esi, dword [eax + ebp*4]
add esi, edi
push 0x1003333d
push esi
call sub.msvcrt.dll_strcmp
pop ecx
pop edx
test eax, eax
jne 0x1000784a
mov eax, dword [esp + 8]
movzx eax, word [eax + ebp*2]
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + eax*4]
add ebx, edi
push 0x1003334e
push esi
call sub.msvcrt.dll_strcmp
pop ecx
pop edx
test eax, eax
jne 0x10007870
mov eax, dword [esp + 8]
movzx eax, word [eax + ebp*2]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + eax*4]
add eax, edi
mov dword [esp + 4], eax
inc ebp
jmp 0x1000781a
push 0x1003335d
call ebx
mov esi, eax
push str.VirtualAllocEx
push eax
mov ebp, dword [esp + 0xc]
call ebp
mov edi, eax
push 0x10033379
push esi
call ebp
mov ebx, eax
push str.WriteProcessMemory
push esi
call ebp
mov esi, eax
call ebx
mov ebx, eax
sub esp, 0x14
vmovaps xmm0, xmmword [0x10033310]
vmovups xmmword [esp + 4], xmm0
mov dword [esp], eax
call edi
test eax, eax
jne 0x100078c3
push 1
call sub.msvcrt.dll_exit
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0xab95
push 0x1003a024
push edi
push ebx
call esi
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10009320
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
call fcn.1000e730
test al, al
je 0x10009367
mov esi, dword [fcn.1000c680]
push 2
call esi
add esp, 4
push ebp
push ebx
push edi
push str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0x__n
push eax
call fcn.10008a80
add esp, 0x14
push 2
call esi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1000e840

Function at 0x1000e110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x1000e121
jmp dword [eax*4 + 0x10034260]
cmp dword [0x10044e88], 0
je 0x1000e230
push 0x10044e8c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x10044ea4]
test edi, edi
je 0x1000e225
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000e16b
mov edi, dword [edi + 8]
test edi, edi
je 0x1000e225
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x1000e160
test esi, esi
je 0x1000e160
mov ecx, dword [edi + 4]
call dword [0x10039230]
push esi
call ecx
add esp, 4
jmp 0x1000e160
call fcn.100084e0
jmp case.default.0x1000e121
cmp dword [0x10044e88], 0
je case.default.0x1000e121
push 0x10044e8c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x10044ea4]
test edi, edi
je 0x1000e218
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000e1d7
mov edi, dword [edi + 8]
test edi, edi
je 0x1000e218
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x1000e1d0
test esi, esi
je 0x1000e1d0
mov ecx, dword [edi + 4]
call dword [0x10039230]
push esi
call ecx
add esp, 4
jmp 0x1000e1d0
cmp dword [0x10044e88], 0
jne 0x1000e20c
push 0x10044e8c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x10044e88], 1
jmp case.default.0x1000e121
push 0x10044e8c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x1000e121
push 0x10044e8c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x10044e88]
cmp eax, 1
jne case.default.0x1000e121
mov eax, dword [0x10044ea4]
test eax, eax
je 0x1000e262
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x1000e250
mov dword [0x10044ea4], 0
mov dword [0x10044e88], 0
push 0x10044e8c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000e390
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x10033720]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x1000e3f6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x1000e3f6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x1000e3f6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x1000e3f6
mov edx, dword [esp + 0xc]
sub edx, dword [0x10033720]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x1000e3e6
add esi, 0x28
dec ecx
je 0x1000e3f6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x1000e3e0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x1000e3e0
mov eax, esi
pop esi
pop edi
ret

Function at 0x1000e670
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x10045e43], 1
jne 0x1000e68f
cmp byte [0x10045e42], 0
jne 0x1000e6ae
jmp 0x1000e6db
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x10045e43], 1
test eax, eax
setne byte [0x10045e42]
je 0x1000e6db
mov ebx, dword [fcn.1000c680]
push 2
call ebx
add esp, 4
push edi
push esi
push str.libunwind:___unw_init_local_cursor_p__context_p__n
push eax
call fcn.1000e770
add esp, 0x10
push 2
call ebx
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov dword [esi], 0x1003442c
mov dword [esi + 4], 0x10045e38
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esi + 8], xmm0
movups xmmword [esi + 0x18], xmm1
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x38], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x48], xmm0
movups xmmword [esi + 0x58], xmm0
movups xmmword [esi + 0x62], xmm0
mov ecx, esi
push 0
call fcn.1000f350
xor eax, eax
pop esi
pop edi
pop ebx
ret

Function at 0x1000e730
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x10045e43], 1
jne 0x1000e744
cmp byte [0x10045e42], 0
setne al
ret
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x10045e42]
mov byte [0x10045e43], 1
ret
Function at 0x1000e790
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x10045e43], 1
jne 0x1000e7b4
cmp byte [0x10045e42], 0
jne 0x1000e7d3
jmp 0x1000e801
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x10045e43], 1
test eax, eax
setne byte [0x10045e42]
je 0x1000e801
mov edi, dword [fcn.1000c680]
push 2
call edi
add esp, 4
push ebx
push ebp
push esi
push str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
push eax
call fcn.1000e770
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
push ebp
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x1000e834
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
push ebp
call edi
mov dword [ebx], eax
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000e840
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp byte [0x10045e43], 1
jne 0x1000e867
cmp byte [0x10045e42], 0
jne 0x1000e886
jmp 0x1000e8b4
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x10045e43], 1
test eax, eax
setne byte [0x10045e42]
je 0x1000e8b4
mov edi, dword [fcn.1000c680]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_x__n
push eax
call fcn.1000e770
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
push ebx
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x1000e948
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
push ebp
push ebx
call edi
xor eax, eax
cmp ebx, 0xffffffff
jne 0x1000e948
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x10039230]
mov eax, esp
mov ecx, esi
push eax
call edi
mov eax, dword [esi]
mov edi, dword [eax + 0x34]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
push 0
call edi
cmp dword [esp + 0x10], 0
je 0x1000e946
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
push 0xfffffffffffffffe
call edi
mov edi, eax
add edi, dword [esp + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [0x10039230]
mov ecx, esi
push edi
push 0xfffffffffffffffe
call ebx
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000e950
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x10045e43], 1
jne 0x1000e96a
cmp byte [0x10045e42], 0
jne 0x1000e989
jmp 0x1000e9b5
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x10045e43], 1
test eax, eax
setne byte [0x10045e42]
je 0x1000e9b5
mov edi, dword [fcn.1000c680]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_stage2_cursor_p__n
push eax
call fcn.1000e770
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
push 1
call edi
pop esi
pop edi
ret

Function at 0x1000e9d0
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x10045e43], 1
jne 0x1000e9ef
cmp byte [0x10045e42], 0
jne 0x1000ea0e
jmp 0x1000ea3b
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x10045e43], 1
test eax, eax
setne byte [0x10045e42]
je 0x1000ea3b
mov edi, dword [fcn.1000c680]
push 2
call edi
add esp, 4
push ebx
push esi
push str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
push eax
call fcn.1000e770
add esp, 0x10
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
push ebx
call edi
xor ecx, ecx
cmp dword [ebx + 4], 0
mov eax, 0xffffe66b
cmovne eax, ecx
pop esi
pop edi
pop ebx
ret

Function at 0x1000ea60
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x10045e43], 1
jne 0x1000ea7a
cmp byte [0x10045e42], 0
jne 0x1000ea99
jmp 0x1000eac5
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x10045e43], 1
test eax, eax
setne byte [0x10045e42]
je 0x1000eac5
mov edi, dword [fcn.1000c680]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_resume_cursor_p__n
push eax
call fcn.1000e770
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
call edi
mov eax, 0xffffe674
pop esi
pop edi
ret
Function at 0x1000eae0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x10045e43], 1
jne 0x1000eb04
cmp byte [0x10045e42], 0
jne 0x1000eb23
jmp 0x1000eb51
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x10045e43], 1
test eax, eax
setne byte [0x10045e42]
je 0x1000eb51
mov edi, dword [fcn.1000c680]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
push eax
call fcn.1000e770
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x30]
mov ecx, edi
call dword [0x10039230]
mov ecx, esi
push dword [esp + 0x20]
push ebp
push ebx
call edi
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000f000
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x10045e41], 1
jne 0x1000f014
cmp byte [0x10045e40], 0
setne al
ret
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x10045e40]
mov byte [0x10045e41], 1
ret
Function at 0x10012250
Capabilities:
Enumerate process modules
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1014
call fcn.1000e630
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x1000
push edx
push eax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1001238e
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, 0
cmp ecx, 4
jb 0x100123fb
shr ecx, 2
mov dword [esp + 8], ecx
jmp 0x100122b3
mov edx, dword [esp + 0xc]
inc edx
xor eax, eax
mov ecx, dword [esp + 8]
cmp edx, ecx
je 0x100123fb
mov dword [esp + 0xc], edx
mov esi, dword [esp + edx*4 + 0x14]
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + eax + 0x14]
mov edx, dword [esp + 0x102c]
mov dword [edx], esi
mov dword [esp + 4], esi
movzx ebx, word [esi + eax + 6]
test ebx, ebx
je 0x100122a0
add eax, dword [esp + 4]
lea ebp, [eax + ecx]
add ebp, 0x18
mov dword [esp], 0
xor ecx, ecx
jmp 0x1001232e
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esp + 0x1028]
cmp eax, ecx
mov eax, esi
movzx esi, al
mov eax, esi
mov edx, 1
cmova eax, edx
cmp edi, ecx
mov ecx, eax
cmova ecx, esi
test cl, 1
je 0x10012324
mov eax, dword [esp]
and al, 1
jne 0x100123aa
add ebp, 0x28
dec ebx
je 0x100122a0
mov esi, ecx
mov edi, dword [ebp + 0xc]
add edi, dword [esp + 4]
push 8
push str..text
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x100122f0
push 8
push str..eh_frame
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x10012370
mov ecx, esi
test cl, 1
jne 0x10012319
jmp 0x10012324
mov ecx, dword [esp + 0x102c]
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov al, 1
mov dword [esp], eax
mov ecx, esi
test cl, 1
jne 0x10012319
jmp 0x10012324
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x10045e41], 1
jne 0x100123ae
cmp byte [0x10045e40], 0
jne 0x100123cd
jmp 0x100123f9
mov al, 1
jmp 0x100123fb
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x10045e41], 1
test eax, eax
setne byte [0x10045e40]
je 0x100123f9
mov edi, dword [fcn.1000c680]
push 2
call edi
add esp, 4
push esi
push str.libunwind:_findUnwindSections:_EnumProcessModules_failed__returned_error__d_n
push eax
call fcn.1000e770
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
xor eax, eax
add esp, 0x1014
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x401f49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x487350]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x401fb9
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004028d3
lea ecx, [esp + 0x1c]
call fcn.00401d79
cmp eax, dword [esp + 0x10]
je 0x401fd0
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403198
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x401f89
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ca2
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403b38
push eax
call fcn.00403b06
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403198
jmp 0x401fbb

Function at 0x402003
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x487350], eax
pop edi
pop esi
ret

Function at 0x407a6d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407aac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407aac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407aac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407aac
cmp dword [ecx + 0x74], 0xe
jbe 0x407aac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41612c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427050
push 0x427048
push str.FlsAlloc
push 0x1e
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416160
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
jmp 0x416166
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4161aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427060
push 0x427058
push str.FlsGetValue
push 0x20
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4161e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416f76
Capabilities:
Read file on windows

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

Function at 0x416f81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416da7
Function at 0x4185ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407be0
mov eax, dword [0x42d040]
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.004149e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41862e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41878a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421a10
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 + 0x486f48]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418a12
mov ecx, dword [esi*4 + 0x486f48]
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 0x418783
cmp eax, dword [edi + ecx + 0x24]
jne 0x418783
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 0x418783
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418a12
add esp, 0x14
test edx, edx
jl 0x418783
jg 0x4186f9
test eax, eax
jb 0x418783
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418783
jl 0x418713
cmp dword [ebp - 0x1008], eax
ja 0x418783
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418731
test ebx, ebx
je 0x41876a
cmp ecx, edi
jae 0x41876a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41874b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418757
cmp byte [ecx + 1], 0xa
jne 0x418757
inc ecx
jmp 0x418757
movzx eax, al
movsx eax, byte [eax + 0x42d9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418731
cmp edx, ebx
jne 0x418731
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418788
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406ca2
leave
ret
Function at 0x41ed7c
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 + 0x486f48]
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 0x41edbc
cmp byte [ebx], 0xa
jne 0x41edbc
or byte [eax + edi + 0x28], 4
jmp 0x41edc1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eebf
mov al, byte [edx]
cmp al, 0x1a
je 0x41eea1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41edf0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ee15
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee1f
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 0x41edd2
jmp 0x41eebf
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 0x41ee9c
cmp dword [ebp - 0xc], 0
je 0x41ee9c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486f48]
test byte [eax + edi + 0x28], 0x48
je 0x41ee76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee61
mov byte [esi], dl
jmp 0x41ee72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486f48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eebf
cmp byte [ebp - 1], 0xa
jne 0x41ee85
cmp esi, ebx
jne 0x41ee85
mov byte [esi], 0xa
jmp 0x41eebe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eebf
mov byte [esi], 0xd
jmp 0x41eebe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486f48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eebb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eebf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret