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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4becc9
push eax
mov al, byte [0x590274]
mov dword fs:[0], esp
sub esp, 0x30
test al, 1
jne 0x49d113
mov dl, al
mov ecx, 0x590270
or dl, 1
mov byte [0x590274], dl
call fcn.0049ce10
push 0x49d1d0
call fcn.004b046c
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [0x590270]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x49d1b7
mov al, byte [esp + 0x40]
push ebx
push ebp
push edi
mov byte [esp + 0xc], al
mov edi, str.CryptGenRandom
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ebx
mov ebp, ecx
lea ecx, [esp + 0x10]
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x49d193
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov edx, ecx
push esi
mov esi, str.CryptGenRandom
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
pop esi
mov byte [eax + ebp], bl
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], ebx
push ecx
lea ecx, [esp + 0x20]
call fcn.0049cc60
lea edx, [esp + 0x1c]
push 0x567240
push edx
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 8

Function at 0x49d7e0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx + 0x18]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x18]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x18]
mov dword [eax + 8], 0x98badcfe
mov edx, dword [ecx + 0x18]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [ecx + 0x18]
mov dword [eax + 0x10], 0xc3d2e1f0
ret

Function at 0x49f2a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
push esi
mov esi, dword [esp + 0x10]
or edx, ecx
or edx, esi
test dl, 3
jne 0x49f2d4
mov edx, esi
shr edx, 2
je 0x49f2e9
push edi
sub ecx, eax
mov esi, dword [ecx + eax]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x49f2c2
pop edi
pop esi
ret
test esi, esi
jbe 0x49f2e9
push ebx
sub ecx, eax
mov dl, byte [eax + ecx]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x49f2db
pop ebx
pop esi
ret
Function at 0x4a0340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bef18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
call fcn.004779e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 4], vtable.CryptoPP::ArraySink.1.0
mov dword [esp + 8], vtable.CryptoPP::ArraySink.0
mov edx, dword [esi]
mov dword [esp + 0x28], eax
push 1
lea eax, [esp + 0x2c]
push 0x58fb70
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [edx + 0x7c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x4a0648
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bef80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0xc]
call fcn.004779e0
push 0xffffffffffffffff
push 0x58fb80
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], vtable.CryptoPP::ByteQueue::Walker.1.0
mov dword [esp + 0x14], vtable.CryptoPP::ByteQueue::Walker.0
call fcn.00478720
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 8]
mov dword [esp + 0x30], 1
mov eax, dword [esi]
push eax
call fcn.00478d40
mov ecx, dword [esp + 0x40]
mov edx, dword [esi]
mov eax, dword [esp + 0x44]
sub ecx, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], ecx
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004a0a30
mov ecx, dword [esp + 4]
mov edx, dword [esi]
add edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esi], edx
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 0x14

Function at 0x4a07f8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4befb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
call fcn.004779e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 4], vtable.CryptoPP::ArraySink.1.0
mov dword [esp + 8], vtable.CryptoPP::ArraySink.0
mov edx, dword [esi]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x2c]
push 0x58fb70
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [edx + 0x7c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4a0888
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4befd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
call fcn.004779e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 4], vtable.CryptoPP::ArraySink.1.0
mov dword [esp + 8], vtable.CryptoPP::ArraySink.0
mov edx, dword [esi]
mov dword [esp + 0x28], eax
push 1
lea eax, [esp + 0x2c]
push 0x58fb70
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [edx + 0x7c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x4a0918
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4beff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
call fcn.004779e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
mov dword [esp + 4], vtable.CryptoPP::ArraySink.1.0
mov dword [esp + 8], vtable.CryptoPP::ArraySink.0
mov edx, dword [esi]
push 1
push 0x58fb70
lea eax, [esp + 0x30]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
call dword [edx + 0x80]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4a78a0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf848
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, ecx
mov ecx, esi
call fcn.004a8e30
test al, al
je 0x4a78fa
mov eax, dword [esp + 0x84]
xor ebx, ebx
push ebx
push ebx
mov ecx, dword [eax + 4]
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret 8
mov ecx, esi
call fcn.004a8e20
test al, al
je 0x4a7929
mov edx, dword [esp + 0x84]
mov ecx, edi
push edx
push esi
call fcn.004a7760
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret 8
mov ecx, esi
call fcn.004a8e40
test al, al
je 0x4a793c
push esi
mov ecx, edi
call fcn.004a7a80
lea ecx, [esp + 0x40]
call fcn.004a8bb0
mov eax, dword [esi]
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0x7c], ebx
call dword [eax + 0x44]
mov ecx, eax
mov byte [esp + 0x78], 1
call fcn.0044d920
test al, al
jne 0x4a798d
mov eax, dword [esi]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call dword [eax + 0x30]
push eax
call fcn.004a83a0
add esp, 8
mov byte [esp + 0x80], 1
test al, al
sete al
cmp al, bl
jne 0x4a7994
mov byte [esp + 0x80], bl
lea ecx, [esp + 0xc]
mov byte [esp + 0x78], bl
call fcn.0044d0c0
cmp byte [esp + 0x80], bl
je 0x4a7a02
push esi
lea ecx, [esp + 0x14]
call fcn.004a8ce0
sub esp, 0x30
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0xb0], esp
push edx
mov byte [esp + 0xac], 2
call fcn.004a8ce0
lea ecx, [esp + 0x40]
mov byte [esp + 0xa8], 2
call fcn.00450fe0
push eax
mov ecx, 0x59072c
call fcn.004a81d0
mov ecx, eax
call fcn.004a6e50
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], bl
call fcn.004a8c60
push esi
mov ecx, edi
call fcn.004a7d90
mov eax, dword [esi]
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [esp + 0x78], 4
call fcn.0044c8e0
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0x30]
push edi
push eax
mov eax, dword [esp + 0x8c]
push ebx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], bl
call fcn.0044d0c0
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], 0xffffffff
call fcn.004a8c60
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret 8
Function at 0x4a8420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bf907
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_3
push 0
push 2
push 3
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 1
call fcn.004a8a70
lea eax, [esp + 0x14]
mov ecx, 0x590730
push eax
mov byte [esp + 0x34], 2
call fcn.004a99f0
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x4a84ab
xor edi, edi
test edi, edi
jl 0x4a84f8
cmp esi, eax
jge 0x4a84f8
mov ecx, dword [esp + 0x1c]
add ecx, edi
mov edx, dword [ecx]
call dword [edx + 0x30]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x18]
inc esi
add edi, 0x44
cmp esi, eax
jl 0x4a8482
mov esi, dword [esp + 0x38]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004afb58
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x30], 1
test ecx, ecx
je 0x4a84d7
mov eax, dword [ecx]
push 3
call dword [eax + 0x48]
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov al, byte [esp + 0x38]
lea ecx, [esp + 0xb]
push 0x568170
push ecx
mov byte [esp + 0x13], al
call sub.MSVCRT.dll__CxxThrowException
nop
Function at 0x4ad830
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4c00f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, ecx
push 0x80
push 3
mov eax, dword [esi]
push ebx
push 1
push bind
push eax
mov dword [esi + 0xc], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
lea ecx, [esp + 0x10]
call fcn.00451520
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebx
call fcn.0044c8e0
or edi, 0xffffffff
cmp eax, edi
je 0x4ad935
push ebx
lea ecx, [esp + 0x10]
call fcn.0044c8e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x4ad966
push ebx
push ebx
push ebx
push 2
push ebx
lea ecx, [esp + 0x20]
call fcn.0044c8e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push eax
lea ecx, [esp + 0x14]
call fcn.00451520
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.0044c8e0
cmp eax, edi
jne 0x4ad90f
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.004b09c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], edi
call fcn.004b09c0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push ebx
push ebx
push ebx
push 4
lea ecx, [esp + 0x20]
call fcn.0044c8e0
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
jne 0x4ad956
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.004b09c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], edi
call fcn.004b09c0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0x10]
mov dword [esi + 0xc], eax
mov byte [esp + 0x1c], bl
call fcn.004b09c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], edi
call fcn.004b09c0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4ae490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ae4e6
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x4cafe0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ae4d9
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4ae4e8
xor eax, eax
pop esi
leave
ret 4
Function at 0x40c430
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00403750
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40c4fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40c4fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40c4ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40c4b9
or bh, 8
and edi, 0x8000000
je 0x40c4d4
mov eax, dword [0x420d7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40c4fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c8d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40c8fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40c91f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40c93a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x410b23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x410b65
call fcn.004138dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x410b65
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x410b5c
xor eax, eax
jmp 0x410b6d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00410b73
pop edi
pop esi
pop ebx
ret 4

Function at 0x413fb8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x413fe6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414004
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413f1e
jmp 0x414004
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414004
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00413f1e
test edi, edi
mov eax, edi
jne 0x413fee
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4072e0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4072ed
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x4072ff
pop esi
ret
cmp ecx, 1
jne 0x40730d
cmp byte [esi], 0x5c
jne 0x40730d
xor eax, eax
pop esi
ret
push esi
call fcn.00407090
add esp, 4
test eax, eax
je 0x407321
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x4074c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.00408410
mov esi, dword [esp + 0x138]
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x4075ae
test ecx, ecx
je 0x4075ae
inc ecx
push ebx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x407542
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407596
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407583
cmp eax, 0xea
jne 0x40758b
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
pop edi
pop esi
mov eax, edx
pop ebp
add esp, 0x114
ret
Function at 0x4075c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00408410
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x407710
test ecx, ecx
je 0x407710
inc ecx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407639
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4076fd
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x4076c1
cmp eax, 0xea
jne 0x4076e9
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x40768c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4076cf
cmp eax, 2
jne 0x4076e9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.00408460
add esp, 8
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x40773e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40774a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x40774a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00408460
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret