joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004ded8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movdqa xmm0, xmmword [0x10007b00]
xor eax, eax
push ebx
push esi
push edi
push dword [ebp - 0x14]
mov ebx, ecx
mov dword [ebp - 8], 0xc865b49d
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], eax
xor edi, edi
mov dword [ebp - 0x20], eax
push ecx
inc edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0xc00eadd5
push eax
movdqu xmmword [ebp - 0x38], xmm0
call fcn.1001863a
mov dword [ebp - 0x14], 0xd6cd
mov edx, edi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xfbb9cf7d
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
xor eax, eax
cmp dword [ebp - 8], eax
jne 0x1004df51
mov edx, eax
mov ecx, dword [ebp - 8]
add edx, ecx
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 8], edi
sbb esi, esi
mov dword [ecx], edx
neg esi
mov ecx, 0x69438ed5
sub ecx, edx
xor edx, edx
cmp esi, ecx
setne dl
sub edx, 0x479e
jne 0x1004df7b
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub esi, 0xffff
neg esi
mov byte [ebp - 1], al
sbb esi, esi
xor edx, edx
inc esi
cmp esi, ecx
setg dl
xor ecx, ecx
inc edx
cmp edx, 0xfffffffb
setg cl
cmp ecx, 0xfffffffd
jne 0x1004dfb2
cmp byte [ebp - 1], al
je 0x1004dfbe
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
jmp 0x1004dfbe
cmp byte [ebp - 1], al
je 0x1004dfbe
push eax
call dword [sym.imp.USER32.dll_CharNextW]
lea ecx, [ebp - 0x28]
call fcn.100178ce
push 0x26bd
push 0x1b2
push ebx
push edi
call fcn.10048b09
push ebx
call fcn.10031087
add esp, 0x14
mov esi, eax
xor eax, eax
push 2
pop edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0xfffffffb
mov dword [ebp - 0x14], 0xf18c9a01
mov dword [ebp - 8], eax
jmp 0x1004e00b
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x1c], 0x3342eb9
inc dword [ebp - 8]
cmp dword [ebp - 8], edx
jl 0x1004dffd
mov dword [ebp - 8], eax
jmp 0x1004e02b
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x1004e028
push eax
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor eax, eax
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jle 0x1004e015
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, 0xfffffffe
mov ecx, dword [ebp - 0x18]
setle bl
xor edx, edx
cmp ebx, ecx
setl dl
cmp edx, dword [ebp - 8]
jl 0x1004e060
cmp dword [ebp - 0x18], eax
je 0x1004e060
cmp dword [ebp - 0xc], eax
jne 0x1004e062
mov edi, eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
cmp edi, eax
mov eax, dword [ebp - 0x1c]
setge cl
sub edx, ecx
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 8]
pop edi
setge cl
xor edx, edx
cmp ecx, eax
mov eax, esi
pop esi
setne dl
sub edx, dword [ebp - 8]
neg edx
pop ebx
sbb edx, edx
inc edx
mov dword [ebp - 8], edx
mov esp, ebp
pop ebp
ret
Function at 0x1007d030
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10086330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006d3e6
mov dword [ebp - 0x14], eax
cmp dword [0x10cbe67c], esi
jne 0x1007d123
push 0x800
push esi
push 0x1000794c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007d0b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007d203
push esi
push esi
push 0x1000794c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007d203
push 0x10007964
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007d203
push eax
call ebx
push 0x10007970
push edi
mov dword [0x10cbe67c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007980
push edi
mov dword [0x10cbe680], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007994
push edi
mov dword [0x10cbe684], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cbe68c], eax
test eax, eax
je 0x1007d120
push 0x100079b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cbe688], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007d148
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007d13b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007d15d
push 4
pop eax
jmp 0x1007d205
cmp dword [ebp - 0x14], esi
je 0x1007d15d
push dword [0x10cbe67c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007d142
mov eax, dword [0x10cbe688]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007d1bb
cmp dword [0x10cbe68c], edi
je 0x1007d1bb
push eax
call ebx
push dword [0x10cbe68c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007d1bb
test eax, eax
je 0x1007d1bb
call ecx
test eax, eax
je 0x1007d1b0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007d1b0
test byte [ebp - 8], 1
jne 0x1007d1bb
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007d1eb
mov eax, dword [0x10cbe680]
cmp eax, edi
je 0x1007d1e8
push eax
call ebx
test eax, eax
je 0x1007d1e8
call eax
mov esi, eax
test esi, esi
je 0x1007d1e8
mov eax, dword [0x10cbe684]
cmp eax, edi
je 0x1007d1e8
push eax
call ebx
test eax, eax
je 0x1007d1e8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10cbe67c]
call ebx
test eax, eax
je 0x1007d203
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007d205
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x401550
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4015dd
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x4015a4
mov word [0x801fb0], cx
jmp 0x4015d8
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x4015c0
mov eax, 1
cmp dword [esp + 8], eax
jb 0x40159b
mov word [0x801fb0], ax
jmp 0x4015ce
cmp eax, 6
jb 0x40159b
mov word [0x801fb0], 1
call fcn.00401240
call fcn.00401400
call fcn.00403710
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0052bfb9
add esp, 0x98
ret

Function at 0x4020d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
lea eax, [esp + 8]
push eax
xor ebp, ebp
push str.SystemCurrentControlSetControlProductOptions
xor ebx, ebx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4021a7
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x1c]
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x4021a6
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4021a6
push edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x4021a5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x402198
cmp dword [esp + 0x18], 7
jne 0x402198
cmp byte [edi], bl
mov esi, edi
je 0x402198
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
push esi
call ebx
test eax, eax
je 0x402190
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x402174
jmp 0x402198
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
pop edi
pop esi
mov eax, dword [esp + 8]
cmp eax, ebp
je 0x4021b6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x402a20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
push 0x4e8
push 5
push 6
mov dword [esp + 0x14], 0x10
call fcn.00403050
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x402abe
push edi
mov edi, dword [esp + 0xc]
push edi
lea eax, [esp + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
lea ecx, [esp + 0x14]
push ecx
push esi
mov word [esp + 0x1c], 6
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
pop edi
je 0x402abe
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push esi
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x402abe
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push ebx
call fcn.00410db0
add esp, 8
push esi
call sub.WS2_32.dll_closesocket
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0052bfb9
add esp, 0x18
ret
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push ebx
call fcn.00410db0
mov ecx, dword [esp + 0x24]
add esp, 8
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0052bfb9
add esp, 0x18
ret

Function at 0x402bf0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402c55
cmp dword [esp + 4], 6
jne 0x402c55
cmp dword [esp + 8], 0
jne 0x402c55
cmp word [esp + 0x94], 0
jne 0x402c55
mov eax, 1
cmp byte [esp + 0x9a], al
je 0x402c57
xor eax, eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0052bfb9
add esp, 0xa0
ret

Function at 0x402c70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x10], eax
mov cl, 0x65
mov al, 0x72
push esi
xor esi, esi
mov byte [esp + 4], 0x54
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x402d17
cmp al, 4
jbe 0x402cfa
lea eax, [esp + 4]
push eax
call fcn.004020d0
add esp, 4
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0052bfb9
add esp, 0x14
ret
lea ecx, [esp + 4]
push ecx
call fcn.004020d0
add esp, 4
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0052bfb9
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0052bfb9
add esp, 0x14
ret
Function at 0x403620
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push esi
xor ebp, ebp
call fcn.00402060
test eax, eax
jne 0x40364a
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x403655
lea eax, [esi + 1]
pop esi
pop ebp
ret
mov edx, dword [esp + 0xc]
push edx
push 0
push 0
jmp 0x403638
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [esp + 0x20]
push edi
push esi
call ebx
test eax, eax
je 0x403688
lea esp, [esp]
cmp eax, 0x102
jne 0x4036ad
add ebp, 1
cmp ebp, dword [esp + 0x24]
jg 0x403695
push edi
push esi
call ebx
test eax, eax
jne 0x403670
mov eax, dword [esp + 0x1c]
pop edi
pop ebx
mov dword [eax], esi
pop esi
xor eax, eax
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
ret
pop edi
pop ebx
pop esi
mov eax, 0x73
pop ebp
ret

Function at 0x4036c0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.00402060
test eax, eax
jne 0x4036e7
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4036f2
lea eax, [esi + 1]
pop esi
ret
mov edx, dword [esp + 8]
push edx
push 0
push 0
jmp 0x4036d6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403709
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x4064d0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4cc
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x4c8], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x406563
lea edx, [esp + 8]
push edx
lea eax, [esp + 0xcc]
push 0x200
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push 0x40
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00414570
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40654a
push str.NoName
lea eax, [esp + 0xc]
push 0x40
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
add esp, 0xc
jmp 0x40658e
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0xc]
push 0x40
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
add esp, 0xc
jmp 0x40658e
push str.NoName
lea eax, [esp + 0xc]
push 0x40
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd8]
push 0x200
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
add esp, 0x18
lea eax, [esp + 0x48]
push eax
call fcn.00413f50
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0xd0]
push 0x200
push edx
mov byte [esp + 0x97], 0
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x40
lea eax, [esp + 0x2dc]
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.00414570
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4065ea
push str.NoShareString
push 0x200
lea edx, [esp + 0xd0]
push edx
jmp 0x4065ff
lea eax, [esp + 0x2c8]
push eax
push 0x200
lea ecx, [esp + 0xd0]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
lea eax, [esp + 0xd4]
add esp, 0xc
mov dword [esp], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406618
sub eax, edx
lea edx, [esp]
push edx
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.00413ee0
mov ecx, dword [esp + 0x4d4]
sub eax, 0xffffffff
add esp, 0xc
neg eax
sbb eax, eax
and eax, dword [esp]
xor ecx, esp
mov dword [0x8030ac], eax
call fcn.0052bfb9
add esp, 0x4cc
ret
Function at 0x409150
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x108
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x120]
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, dword [esp + 0x120]
push 0xaf
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1c], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x409371
test esi, esi
je 0x409371
mov ebx, dword [esp + 0x124]
cmp ebx, 0x50
ja 0x409371
cmp dword [esp + 0x130], 0x50
jb 0x409371
test ebx, ebx
push ebp
jne 0x40931f
lea edi, [esp + 0xc4]
push ebx
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ebp, [esi + 0x10]
push 0x2c
push ebp
call fcn.00417350
mov byte [esi + 0xc], bl
mov ebx, dword [esp + 0x120]
push 2
lea edi, [esi + 0xe]
push edi
mov byte [esi + 0xd], bl
call fcn.00417350
mov cl, byte [edi]
mov al, byte [esp + 0x11c]
mov dl, byte [esi + 0xf]
not cl
mov byte [esi + 0x3d], al
mov eax, dword [esp + 0x10]
mov byte [esi + 0x3e], cl
push eax
lea ecx, [esp + 0x18]
not dl
shr ebx, 8
push ecx
mov byte [esi + 0x3c], bl
mov byte [esi + 0x3f], dl
call fcn.004168c0
lea edi, [esi + 0x30]
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.00416b50
add esp, 0x10
mov eax, edi
mov ecx, 4
jmp 0x409250
movzx edx, byte [eax - 0x10]
xor byte [eax], dl
movzx edx, byte [eax - 0xf]
xor byte [eax + 1], dl
movzx edx, byte [eax - 0xe]
xor byte [eax + 2], dl
movzx edx, byte [eax - 0xd]
xor byte [eax + 3], dl
add eax, 4
sub ecx, 1
jne 0x409250
lea edi, [esi + 0x20]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00416b50
add esp, 8
mov eax, edi
mov ecx, 4
jmp 0x409290
movzx edx, byte [eax - 0x10]
xor byte [eax], dl
movzx edx, byte [eax - 0xf]
xor byte [eax + 1], dl
movzx edx, byte [eax - 0xe]
xor byte [eax + 2], dl
movzx edx, byte [eax - 0xd]
xor byte [eax + 3], dl
add eax, 4
sub ecx, 1
jne 0x409290
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00416b50
add esp, 8
mov eax, ebp
mov ecx, 4
jmp 0x4092d0
movzx edx, byte [eax - 0x10]
xor byte [eax], dl
movzx edx, byte [eax - 0xf]
xor byte [eax + 1], dl
movzx edx, byte [eax - 0xe]
xor byte [eax + 2], dl
movzx edx, byte [eax - 0xd]
xor byte [eax + 3], dl
add eax, 4
sub ecx, 1
jne 0x4092d0
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00416b50
add esp, 8
xor ax, ax
pop ebp
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052bfb9
add esp, 0x108
ret 0x1c
cmp ebx, 0xc
jbe 0x4091d7
cmp ebx, 0x4c
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
jbe 0x409343
mov ax, 0x10
jmp 0x409304
lea ecx, [ebx - 0xc]
push ecx
add edi, 0xc
lea ebp, [esi + 0x10]
push edi
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x38
sub eax, ebx
add esp, 0xc
test eax, eax
jle 0x4091ed
push eax
lea edx, [esi + ebx + 4]
push edx
jmp 0x4091e8
mov ax, 0x10
jmp 0x409305
Function at 0x409380
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x5efaec]
test eax, eax
mov dword [esp], 0
je 0x4093e8
cmp eax, 0xffffffff
je 0x4093e8
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp], 0x103
jne 0x4093e8
mov edx, dword [0x5efaec]
push 0x7530
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4093d1
mov eax, dword [0x5efaec]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x5efaec]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5efaec], 0
pop ecx
ret

Function at 0x409820
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405e40
test esi, esi
mov edi, eax
jne 0x40983b
pop edi
mov ax, 2
pop esi
ret 8
cmp word [edi + 0x18], 0x7242
lea esi, [edi + 0x18]
jne 0x409832
test byte [esi + 0x12], 4
jne 0x40985b
pop edi
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 8
push ebp
push 0
call fcn.00416d50
mov ebp, eax
test ebp, 0x100
jne 0x40986f
xor ebp, ebp
mov ax, word [esp + 0x14]
mov word [esi + 0xd0], ax
mov dword [esi + 0xc8], ebp
mov word [esi + 0x30], 8
push ebx
mov word [esi + 0x38], ax
mov word [esi + 0x3a], ax
mov byte [esi + 0x34], 0
mov byte [esi + 0x35], 0
mov byte [esi + 0x36], 0xff
mov byte [esi + 0x37], 0
mov word [esi + 0x3c], 0
mov word [esi + 0x3e], 0xffff
xor bl, bl
mov eax, 3
cmp ax, 3
je 0x4098bf
cmp ax, 7
jne 0x4098e3
push esi
mov byte [esi + 0xa], bl
call fcn.004141a0
movzx eax, ax
cmp ax, 0x103
jne 0x4098d8
mov eax, 0x112
jmp 0x4098db
movzx eax, al
add bl, 1
cmp bl, 3
jbe 0x4098b3
cmp ax, 9
pop ebx
je 0x409940
test ax, ax
jne 0x40998b
and byte [edi], 0xfc
movzx ecx, word [esi + 0x3c]
cmp cx, 5
mov al, byte [edi]
mov byte [esp + 0x14], 0x91
jne 0x409910
or al, 2
mov byte [esp + 0x14], 1
jmp 0x409918
cmp cx, 7
jne 0x40991a
or al, 1
mov byte [edi], al
test ebp, ebp
je 0x40994a
mov eax, dword [esp + 0x14]
mov esi, dword [esi + 0xc8]
push ebp
push eax
call fcn.00407d50
add esp, 8
cmp esi, eax
je 0x40994a
push ebp
call fcn.00416dd0
cmp esi, eax
je 0x40994a
pop ebp
pop edi
mov ax, 3
pop esi
ret 8
cmp dword [0x5efaec], 0xffffffff
jne 0x409988
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x8030cc
push 0x4084d0
push 0
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
cmp byte [0x8030c8], 1
mov dword [0x5efaec], eax
jne 0x409988
pop ebp
pop edi
mov ax, 0x68
pop esi
ret 8
xor ax, ax
pop ebp
pop edi
pop esi
ret 8
Function at 0x40a9f0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x40]
push edi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push 0
push esi
push edx
push eax
push ecx
call fcn.00403e70
movzx eax, ax
add esp, 0x28
test ax, ax
je 0x40aa46
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov word [edx + 6], ax
pop ebx
add esp, 8
ret
cmp word [0x8030d4], 0
jne 0x40aaeb
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x405480
push 0
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
push 0x1b58
push eax
mov dword [0x8030d0], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40aaeb
mov ax, word [esp + 0x10]
cmp ax, 2
jne 0x40aaf6
cmp dword [esp + 0x28], 0xffffffff
jne 0x40aaba
test esi, esi
jge 0x40aaba
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
push edi
push ebx
push ebp
push edx
mov edx, dword [esp + 0x30]
push eax
push 2
push esi
push 0xffffffffffffffff
push ecx
push edx
jmp 0x40aad6
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push edi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x30]
push ecx
push 2
push esi
push 1
push edx
push eax
call fcn.00403e70
mov ecx, dword [0x8030d0]
add esp, 0x28
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
test ax, ax
jne 0x40ab13
mov edx, dword [0x8030d0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
cmp dword [esp + 0x28], 1
jne 0x40ab3c
test esi, esi
jle 0x40ab3c
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push edi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x30]
push ecx
push 1
push esi
push 1
push edx
push eax
jmp 0x40ab58
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push edi
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x30]
push edx
push 1
push esi
push 0xffffffffffffffff
push eax
push ecx
call fcn.00403e70
mov eax, dword [0x8030d0]
mov edx, dword [esp + 0x44]
add esp, 0x28
push eax
mov word [edx + 6], 0x46
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
add esp, 8
ret