joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cc20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x290]
call fcn.0045d0f6
push 0
push dword [esi + 8]
push dword [esi]
call fcn.004622c8
add esp, 0xc
lea eax, [ebp - 0x398]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.0045cf02
test eax, eax
je 0x45cc64
push 6
jmp 0x45ccf3
push dword [esi]
lea eax, [ebp - 1]
push 1
pop ebx
push ebx
push ebx
push eax
call fcn.00462221
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.00462221
push dword [esi]
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
xor edi, 0x45aa
push ebx
push 4
push eax
call fcn.00462221
mov eax, dword [ebp - 8]
push dword [esi]
xor eax, 0x45aa
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.00462221
add esp, 0x40
lea eax, [ebp - 0x18]
push dword [esi]
push ebx
push 4
push eax
call fcn.00462221
push dword [esi]
lea eax, [ebp - 0x1c]
push ebx
push 4
push eax
call fcn.00462221
push dword [esi]
lea eax, [ebp - 0x20]
push ebx
push 4
push eax
call fcn.00462221
push dword [ebp - 0xc]
call fcn.0045dde3
add esp, 0x34
mov dword [ebp + 8], eax
test eax, eax
jne 0x45ccf9
push 8
pop eax
jmp 0x45cdd0
push edi
call fcn.0045dde3
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x45cd0f
push 8
pop esi
jmp 0x45cdc5
push dword [esi]
push ebx
push edi
push eax
call fcn.00462221
mov eax, dword [esi + 0x110]
add esp, 0x10
add eax, 0x22af
mov ecx, esi
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.0045cbf2
cmp byte [ebp - 1], bl
jne 0x45cd73
lea ecx, [ebp - 0x290]
call fcn.0045d0f6
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x290], eax
call fcn.0045d122
push edi
call fcn.0045f5bf
pop ecx
jmp 0x45cd7f
push dword [ebp + 8]
call fcn.0045f5bf
pop ecx
mov dword [ebp + 8], edi
push 0x49c014
push dword [ebp + 0xc]
call fcn.004613c6
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x45cd9b
push 7
jmp 0x45cd09
push edi
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00461534
push edi
call fcn.0046161b
add esp, 0x14
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.0045d04e
xor esi, esi
push dword [ebp + 8]
call fcn.0045f5bf
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45cf02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 1
pop ebx
mov esi, ecx
mov byte [ebp - 1], bl
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push ebx
push eax
call fcn.00462221
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push 0x16fa
push 4
push eax
call fcn.0045cbf2
and byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push 0x49c018
push eax
call fcn.004623e0
pop ecx
test eax, eax
pop ecx
jne 0x45d033
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.00462221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29bc
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.00462221
add esp, 0x20
lea eax, [edi + 0xa25e]
mov ecx, esi
push eax
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0045cbf2
push dword [esi]
and byte [ebp + edi - 0x11c], 0
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.00462221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29ac
push edi
push ebx
push dword [ebp + 0xc]
call fcn.00462221
add esp, 0x20
lea eax, [edi + 0xf25e]
mov ecx, esi
push eax
push edi
push dword [ebp + 0xc]
call fcn.0045cbf2
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and byte [edi + eax], 0
lea eax, [ebp - 0x11c]
push eax
call fcn.004623e0
pop ecx
test eax, eax
pop ecx
je 0x45d04a
push ebx
push ebx
push dword [esi]
call fcn.004622c8
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.00462221
xor dword [ebp - 8], 0x45aa
push ebx
push 4
push dword [esi]
call fcn.004622c8
push ebx
push 0x10
push dword [esi]
call fcn.004622c8
push ebx
push dword [ebp - 8]
push dword [esi]
call fcn.004622c8
add esp, 0x40
jmp 0x45d037
and byte [ebp - 1], 0
cmp byte [ebp - 1], bl
je 0x45cf16
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x45d043

Function at 0x45d08e
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, ecx
push esi
push edi
mov edi, eax
or dword [eax + 0x400], 0xffffffff
xor esi, esi
mov edx, esi
push 8
shl edx, 0x18
pop ecx
test edx, 0x80000000
je 0x45d0b7
add edx, edx
xor edx, 0x4c11db7
jmp 0x45d0b9
shl edx, 1
dec ecx
jne 0x45d0a5
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x45d09d
pop edi
pop esi
ret

Function at 0x45d241
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x45d266
mov eax, dword [esi + 0xc]
push 8
add eax, dword [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00462470
add esp, 0xc
jmp 0x45d279
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00462221
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
add dword [esi + 0xc], 8
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
and byte [ebp - 4], 0
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
push 0x49c020
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
call fcn.004623e0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop esi
leave
ret 4
Function at 0x4134b7
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4276e0]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x434], 0x20
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
mov byte [ebp - 0x24], 0xcc
mov byte [ebp - 0x23], 0xd5
mov byte [ebp - 0x22], 0x70
mov byte [ebp - 0x21], 0x2f
mov byte [ebp - 0x20], 0x16
mov byte [ebp - 0x1f], 0x3a
mov byte [ebp - 0x1e], 0xf7
mov byte [ebp - 0x1d], 0x63
mov byte [ebp - 0x1c], 0xd6
mov byte [ebp - 0x1b], 0x7f
mov byte [ebp - 0x1a], 0xa9
mov byte [ebp - 0x19], 0x91
mov byte [ebp - 0x18], 0x44
mov byte [ebp - 0x17], 0xbd
mov byte [ebp - 0x16], 0x9b
mov byte [ebp - 0x15], 2
mov byte [ebp - 0x14], 0x45
mov byte [ebp - 0x13], 0x7f
mov byte [ebp - 0x12], 0xeb
mov byte [ebp - 0x11], 0x7d
mov byte [ebp - 0x10], 0xa7
mov byte [ebp - 0xf], 0xb5
mov byte [ebp - 0xe], 0x22
mov byte [ebp - 0xd], 0xc
mov byte [ebp - 0xc], 0x42
mov byte [ebp - 0xb], 0xdc
mov byte [ebp - 0xa], 0x51
mov byte [ebp - 9], 9
mov byte [ebp - 8], 0xdf
mov byte [ebp - 7], 0x25
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x413662
push ebx
push edi
lea eax, [ebp - 0x428]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x41359e
xor edi, edi
jmp 0x413651
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x1e
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
jne 0x4135be
xor edi, edi
jmp 0x413645
push 0x401480
push dword [ebp + 8]
mov dword [ebp - 0x430], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x413625
push ebx
push 0x400
lea eax, [ebp - 0x424]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x41361d
add dword [ebp - 0x430], eax
push esi
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
je 0x41366f
cmp dword [ebp - 0x430], 0x5000
jb 0x4135da
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x434]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x413645
inc edi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041644b
leave
ret 8
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x413660
Function at 0x413694
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4276e0]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401488
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x413780
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x413774
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x413723
xor edi, edi
jmp 0x41376b
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x41371f
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x41374b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x41371f
push dword [ebp - 0x38]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041644b
leave
ret 8
Function at 0x414e6c
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x403d30
push 1
xor ebx, ebx
push ebx
push 0x403dd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x414f1f
mov eax, dword [ebp - 8]
push ebx
lea edx, [ebp - 4]
push edx
push 0x401d94
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x414f1f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp + 0xc]
jmp 0x414f1a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0xc]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x414f1e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push 0x403d20
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jl 0x414f1a
push dword [ebp + 8]
push dword [esi]
call fcn.00414dfa
mov edi, eax
cmp edi, ebx
jge 0x414f1e
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
cmp dword [esi], ebx
je 0x414eca
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8

Function at 0x41644b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4276e0]
jne 0x416454
ret
jmp 0x416459
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4276e0]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x429984]
test eax, eax
je 0x41647d
call eax
cmp dword [0x429988], 0
je 0x4164c4
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x429988]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0041644b
add ebp, 0x2a8
leave
ret
Function at 0x41d2a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x409890
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, 0x409878
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x409864
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
movsw word es:[edi], word [esi]
mov esi, 0x409850
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
push 0x409830
movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [ebp - 0xc4]
push 0x64
push eax
mov dword [0x4298ec], esi
mov dword [0x4298f0], esi
mov dword [0x4298f4], esi
call fcn.0041d24c
add esp, 0x10
test eax, eax
jl 0x41d448
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xc4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41d451
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push 0x4298ec
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 4
call edi
test eax, eax
je 0x41d372
mov dword [0x4298ec], esi
lea eax, [ebp - 4]
push eax
push 0x4298f0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x41d393
mov dword [0x4298f0], esi
lea eax, [ebp - 4]
push eax
push 0x4298f4
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x41d3b4
mov dword [0x4298f4], esi
lea eax, [ebp - 4]
push eax
push 0x4298f8
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x41d3d9
mov dword [0x4298f8], 0xffff0000
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4298ec], esi
jne 0x41d402
cmp dword [0x4298f0], esi
jne 0x41d412
cmp dword [0x4298f4], esi
jne 0x41d412
xor eax, eax
inc eax
jmp 0x41d486
cmp dword [0x4298f0], esi
jne 0x41d412
cmp dword [0x4298f4], esi
je 0x41d437
push ebx
push 0x40982c
push 0x64
push 0x429888
call fcn.0041d24c
add esp, 0x10
test eax, eax
jl 0x41d448
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov dword [0x428f88], eax
cmp dword [0x4298ec], esi
jne 0x41d44c
cmp dword [0x428f88], 0xffffffff
jne 0x41d44c
xor eax, eax
jmp 0x41d486
xor eax, eax
inc eax
jmp 0x41d481
push ebx
push 0x40982c
push 0x64
push 0x429888
call fcn.0041d24c
add esp, 0x10
test eax, eax
jl 0x41d448
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, 0xffffffff
mov dword [0x428f88], ecx
je 0x41d486
mov dword [0x4298fc], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d48d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor esi, esi
cmp dword [0x4298ec], esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x201
jbe 0x41d5b4
test dword [0x4298f8], edi
je 0x41d5b4
cmp edi, 0x10002
je 0x41d4f9
cmp edi, 0x20002
je 0x41d4f6
cmp edi, 0x40002
je 0x41d4f2
cmp edi, 0x80002
je 0x41d4ed
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
mov esi, eax
jmp 0x41d4f9
push 3
pop esi
jmp 0x41d4f9
push 2
jmp 0x41d4ef
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [esi*4 + 0x428f8c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push 0x429888
push 0x4098f0
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041d24c
add esp, 0x28
test eax, eax
jl 0x41d64c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0041d1cc
test eax, eax
jl 0x41d64c
mov eax, dword [ebp - 4]
cmp eax, ebx
jae 0x41d64c
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.0041d231
test eax, eax
jge 0x41d595
cmp eax, 0x7a
jne 0x41d64c
push 0x4098ec
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0041d273
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x428f88], 0xffffffff
je 0x41d64c
xor eax, eax
cmp dword [0x4298f0], eax
ja 0x41d5d3
cmp dword [0x4298f4], eax
jbe 0x41d64c
cmp edi, 0x10002
je 0x41d60f
cmp edi, 0x20002
je 0x41d60c
cmp edi, 0x40002
je 0x41d608
cmp edi, 0x80002
je 0x41d603
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
jmp 0x41d60f
push 3
pop eax
jmp 0x41d60f
push 2
jmp 0x41d605
xor eax, eax
inc eax
push dword [ebp + 0xc]
push dword [eax*4 + 0x428f8c]
lea eax, [ebp - 0x218]
push 0x4098e4
push ebx
push eax
call fcn.0041d24c
add esp, 0x14
test eax, eax
jl 0x41d64c
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
or edi, 4
push edi
push dword [0x428f88]
call sub.rtutils.dll_TraceVprintfExA
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4236d6
Capabilities:
Create thread

Disassembly:
mov eax, 0x4252e1
call fcn.00416760
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4298fc], edi
mov esi, ecx
mov ebx, 0x80002
je 0x423703
push 0x40f2a0
push ebx
call fcn.0041d48d
pop ecx
pop ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
jne 0x423783
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x423746
cmp dword [0x4298fc], edi
je 0x42373f
push 0x40f280
push 0x10002
call fcn.0041d48d
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x42379b
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x4236ca
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x423783
cmp dword [0x4298fc], edi
je 0x42373f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f264
push 0x10002
call fcn.0041d48d
add esp, 0xc
jmp 0x42373f
inc dword [esi + 0x30]
cmp dword [0x4298fc], edi
je 0x42379b
push 0x40f244
push ebx
call fcn.0041d48d
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x668f4d13
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x69ef5d99
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40380c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403875
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402655
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00406309
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40388d
lea ecx, [esp + 0x14]
add edi, 4
call fcn.004053a0
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40383d
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409f50
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.004053a0
jmp 0x403877

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
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 [0x486c48], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x27
push 0x484c30
push 0x547
mov esi, 0x484c58
push esi
call fcn.004038ab
push 1
push 0x427554
call fcn.00406896
add esp, 0x18
mov ecx, 0x486f50
push 0
call fcn.004031a4
push eax
call fcn.00402227
push 0x8aafdc01
push dword [0x486c48]
call fcn.0040380c
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x406892
lea eax, [ebp - 0xc]
push 0x40663b
push eax
call fcn.004020fb
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040671a
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x406892
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x406892
call fcn.0040407b
xor eax, eax
leave
ret