joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa8fcf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0xb0a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, 0x3c
push esi
push edi
mov dword [ebp - 0x810], ebx
mov edi, dword [ebx + 0x124]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x80c], eax
mov eax, dword [edi + 0x1eb8]
sub eax, dword [edi + 0x1eb4]
add eax, 2
push eax
lea eax, [edi + 0x1cb4]
push eax
call fcn.00a8f650
mov eax, dword [edi + 0x1eb4]
add esp, 8
mov cl, byte [eax]
inc eax
mov dword [edi + 0x1eb4], eax
cmp cl, 0x18
je 0xa8feb8
cmp cl, 0x23
je 0xa8fe91
cmp cl, 0x27
jne 0xa8ff50
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x808]
push 0x800
push eax
call fcn.00a69770
mov edi, dword [edi + 0x1cb0]
add esp, 0x1c
mov esi, 4
test edi, edi
je 0xa8fe2b
mov edx, dword [edi]
mov eax, edx
lea ebx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xa8fdb0
sub eax, ebx
inc eax
add eax, esi
cmp eax, 0x7fa
jae 0xa8fe1e
push 0x2c
push edx
call fcn.00aa45b0
mov edx, eax
mov ebx, 0x800
lea eax, [ebp - 0x808]
add esp, 8
sub ebx, esi
add eax, esi
test edx, edx
jne 0xa8fdf7
push dword [edi]
push edx
push str._c_s
push ebx
push eax
call fcn.00a69770
add esp, 0x14
jmp 0xa8fe1c
mov ecx, dword [edi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
lea eax, [ebp - 0x808]
push edx
push 0
push str._c_.s_c_s
add eax, esi
push ebx
push eax
call fcn.00a69770
add esp, 0x20
add esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0xa8fda5
mov ebx, dword [ebp - 0x810]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, esi
push str._c_c
push eax
lea eax, [ebp - 0x808]
add eax, esi
push eax
call fcn.00a69770
add esp, 0x14
lea eax, [esi + 2]
push 0
push eax
lea eax, [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x80c]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0xa8fe8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00a66380
add esp, 0xc
push esi
jmp 0xa8ff3a
add edi, 0x1c28
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa8fea0
push 0xf0
push 0xff
push edi
push 0
push 0x23
jmp 0xa8fed9
add edi, 0x1c08
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa8fec3
push 0xf0
push 0xff
push edi
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [ebp - 0x808]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.00a69770
add esp, 0x28
lea eax, [ebp - 0x808]
push 0
push esi
push eax
mov eax, dword [ebp - 0x80c]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0xa8ff36
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00a66380
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x806]
mov edx, 0x3e
push eax
mov ecx, ebx
call fcn.00a8f650
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
Function at 0xa90eb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0xa9101d
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0xa91009
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0xa90f00
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xa90ef2
sub eax, edx
lea ecx, [eax + 1]
jmp 0xa90f02
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0xa90f14
mov eax, 0x10
jmp 0xa90f22
cmp eax, 0x17
jne 0xa90fc7
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0xa90fc7
mov edx, dword [esi + 0x10]
test edx, edx
je 0xa90fc7
cmp edx, eax
jb 0xa90fc7
add ecx, 0x20
add eax, ecx
push eax
call dword [0xb0a97c]
mov edi, eax
add esp, 4
test edi, edi
je 0xa90ffe
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00aa1fa0
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0xa90fb5
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00aa1fa0
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0xa90fc4
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0xa90ee8
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0xa90fe4
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0xa91005
mov ecx, ebx
call fcn.00a90e90
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0xa90fd5
test ebx, ebx
jne 0xa91015
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa958f0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push edx
push 0xa66800
push 0
push 0
call fcn.00aa5c83
add esp, 0x18
test eax, eax
je 0xa9590f
cmp eax, 0xffffffff
jne 0xa95911
xor eax, eax
ret
Function at 0xa987d0
Capabilities:
Create udp socket

Disassembly:
cmp byte [edx + 0x452], 2
je fcn.00a70470
mov al, 1
ret

Function at 0xa9e6e0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, ecx
push 0x401
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + 0x400], 0
test eax, eax
jne 0xa9e711
push 0x2e
push esi
call fcn.00aa45b0
add esp, 8
test eax, eax
je 0xa9e70f
mov byte [eax], 0
xor eax, eax
pop esi
ret

Function at 0xa9e7b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xb0a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
push eax
mov esi, edx
mov dword [ebp - 0x20], 8
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa9e83d
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x208
lea edx, [ebp - 0xc]
movlpd qword [ebp - 0xc], xmm0
mov ecx, ebx
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.00a9e720
mov ecx, edx
call fcn.00a9fd10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0xa9e850
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret

Function at 0xa9ea80
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa9eabf
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0xa9eac7
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x1b
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0xa9eef0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa9ef22
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0xa9eff0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xb0a97c]
mov edi, eax
add esp, 4
test edi, edi
jne 0xa9f023
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x10]
jbe 0xa9f06a
mov eax, dword [esi]
push ecx
call eax
push dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push dword [edi + 4]
call eax
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
mov eax, dword [esi + 8]
push ebx
mov dword [ebp - 8], ebx
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xa9f0c3
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 8], 1
jne 0xa9f088
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [esi + 0x10]
jae 0xa9f0f7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0xad623b
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0xad623a
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0xa9f0d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa9fc10
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push esi
push edi
push 0xf0000040
mov esi, ecx
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa9fc4b
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
ret

Function at 0xab9829
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00ab94e9

Function at 0xac0b49
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00ac09c8

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x401450
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40155a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401553
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x401553
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40154c
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push eax
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401545
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x401545
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401545
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0x6420c8
push 0
push ebx
push eax
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jl 0x40155a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40155a
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x4043a0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61611b
push eax
mov dword fs:[0], esp
sub esp, 0x210
lea eax, [esp + 0x10c]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor edi, edi
cmp eax, edi
jne 0x4043ed
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
call fcn.0048f1c0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x104
push eax
mov dword [esp + 0x238], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, edi
jne 0x40443f
mov ebx, dword [esp + 0x230]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.00489a30
jmp 0x404461
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x230]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x68f470
push ebx
call fcn.0048a580
add esp, 0x10
push 0x68f46c
mov ecx, ebx
call fcn.0048a7d0
cmp eax, edi
jle 0x40447a
push edi
push eax
mov ecx, ebx
call fcn.0048aae0
mov edi, dword [ebx]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x68f464
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00489a10
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.00489810
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
Function at 0x40dbd7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61696b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x14]
mov dword [esi], 0x633450
mov ecx, edi
call fcn.005e5e99
mov dword [edi], method.CPtrArray.virtual_0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
push ebx
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esi], 0x6333b4
mov dword [esi + 4], eax
call fcn.005e6638
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov edx, dword [0x6e8930]
push esi
mov dword [esi + 0x3c], edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0053c500
mov ecx, eax
call fcn.0053c5c0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x410b10
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x3c
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x410b2e
mov ecx, dword [0x6e88bc]
mov eax, 0xe8cd
sub eax, ecx
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0xbc], eax
test ecx, ecx
mov ebp, 0x40002810
je 0x410b46
mov ebp, 0x50002810
push eax
xor ecx, ecx
sub esp, 0x10
xor edx, edx
mov eax, esp
xor esi, esi
push ebp
push 0x8800
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
xor edi, edi
push ecx
mov dword [eax + 4], edx
mov ecx, ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
call fcn.006067c9
test eax, eax
jne 0x410b7f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
mov edx, dword [ebx + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push edx
call ebp
push eax
call fcn.005efff0
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edi, 0x68f630
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0xd
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0xa8]
mov ecx, esi
call fcn.005f005c
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call fcn.005f0005
test esi, esi
je 0x410bfd
mov esi, dword [esi + 4]
mov edx, dword [ebx + 0x1c]
push 1
push esi
push 0x30
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret 0xc
Function at 0x411870
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x61707e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
xor esi, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call fcn.005f6c6e
lea eax, [esp + 0x10]
mov dword [esp + 0xdc], ebx
push eax
push 1
push ebx
push 0x68f638
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4119f6
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push ebx
push edx
push ebx
push 0x6e8734
push eax
call edi
test eax, eax
jne 0x4119f6
mov eax, dword [esp + 0x14]
cmp eax, 1
jbe 0x4119f6
push eax
call fcn.005e6fe9
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push esi
push edx
push ebx
push 0x6e8734
push eax
call edi
test eax, eax
jne 0x4119f6
cmp esi, ebx
je 0x4119f6
push 0x400
lea ecx, [esp + 0x24]
call fcn.005f747a
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xdc], 1
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.005f7660
mov edx, dword [esp + 0x20]
push ebx
push ebx
lea ecx, [esp + 0x28]
call dword [edx + 0x28]
push ebx
push 0x1000
lea eax, [esp + 0x28]
push 1
push eax
lea ecx, [esp + 0xa0]
call fcn.005f03b7
lea ecx, [esp + 0x90]
mov byte [esp + 0xdc], 2
push ecx
lea ecx, [esp + 0x4c]
call fcn.005f6d62
lea ecx, [esp + 0x90]
mov dword [esp + 0x18], 1
mov byte [esp + 0xdc], 1
call fcn.005f0493
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], bl
call fcn.005f7502
mov edi, dword [esp + 0xe4]
lea edx, [esp + 0x48]
push edx
push edi
mov ecx, ebp
call fcn.00411820
test eax, eax
je 0x4119f2
lea eax, [esp + 0x48]
mov ecx, ebp
push eax
push edi
call fcn.00411c60
jmp 0x4119f6
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x411a05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x411a12
push esi
call fcn.005e7012
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0xdc], 0xffffffff
call fcn.005f6d01
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd0
ret 4
Function at 0x411a50
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6170b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x44]
call fcn.005f6c6e
mov ebp, dword [esp + 0xe0]
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
mov dword [esp + 0xdc], 0
call fcn.005f6ff7
lea ecx, [esp + 0x44]
push ecx
push ebp
mov ecx, ebx
call fcn.00411dc0
push 0x400
lea ecx, [esp + 0x20]
call fcn.005f747a
mov edx, dword [esp + 0x1c]
push 0
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0xe0], 1
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x9c]
call fcn.005f03b7
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd8], 2
push ecx
lea ecx, [esp + 0x48]
call fcn.005f6d62
lea ecx, [esp + 0x8c]
call fcn.005f06c8
mov edx, dword [esp + 0x1c]
push 0
push 0
lea ecx, [esp + 0x24]
call dword [edx + 0x28]
lea ecx, [esp + 0x1c]
call fcn.005ebbe3
mov esi, eax
push esi
call fcn.005e6fe9
add esp, 4
mov edi, eax
lea ecx, [esp + 0x1c]
push esi
push edi
call fcn.005f761f
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
push 2
push 0
push 0x68f638
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411b7f
mov ecx, dword [esp + 0x18]
push esi
push edi
push 3
push eax
push 0x6e8734
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x411b7f
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411b8e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x411b9b
push edi
call fcn.005e7012
add esp, 4
test ebp, ebp
je 0x411ba9
push ebp
mov ecx, ebx
call fcn.00411e50
jmp 0x411bae
mov eax, 1
mov edx, dword [0x6925a8]
mov dword [esp + 0x10], edx
push eax
lea eax, [esp + 0x14]
push 0x68f684
push eax
mov byte [esp + 0xe4], 3
call fcn.005e38ee
add esp, 0xc
call fcn.00606265
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
push ecx
push 0x68f67c
push 0x68f66c
mov ecx, eax
call fcn.005f7844
lea ecx, [esp + 0x10]
mov byte [esp + 0xd8], 2
call fcn.005eb04a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd8], 1
call fcn.005f0493
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd8], 0
call fcn.005f7502
lea ecx, [esp + 0x44]
mov dword [esp + 0xd8], 0xffffffff
call fcn.005f6d01
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc
ret 4