joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4590b4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45925f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x459240
mov dl, 1
mov eax, dword [0x4165e0]
call fcn.004034d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45922f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00446d2c
test al, al
je 0x459222
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x459270
lea eax, [ebp - 0x254]
call fcn.00409508
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x459222
xor eax, eax
push ebp
push 0x45921b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4592a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x459204
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404520
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x459204
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404520
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459222
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x459125
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a864
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459266
lea eax, [ebp - 0x260]
call fcn.004042b0
ret

Function at 0x459ba8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x492be8]
cmp byte [eax + 0xa5], 0
jne 0x459c19
cmp dword [0x492c00], 0
jne 0x459bda
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459b64
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x492c00], eax
cmp dword [0x492bfc], 0
jne 0x459bf5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x492bfc], eax
cmp dword [0x492c04], 0
jne 0x459c19
push esp
push 0
push 0
push 0x459b08
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x492c04], eax
pop edx
ret
Function at 0x45a2ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x492be8]
cmp dword [eax + 0x30], 0
je 0x45a356
cmp dword [ebx + 0x94], 0
jne 0x45a350
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a23c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a350
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45a316
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a350
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041852c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a325
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45aeb4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45aee9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004043a0
jmp 0x45aef6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404304
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c020
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c061
mov eax, esi
call fcn.00442314
test al, al
je 0x45c061
mov eax, dword [ebx + 0x84]
call fcn.00442010
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c061
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442010
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x462e8c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x462f46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004049bc
mov eax, dword [0x491170]
cmp byte [eax], 0
je 0x462efb
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404d1c
mov eax, dword [ebx]
call fcn.00404b48
push eax
mov eax, dword [ebx]
call fcn.00404b38
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404b48
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404d1c
jmp 0x462f2d
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409088
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462f4d
lea eax, [ebp - 0x3f0]
call fcn.004042b0
ret
Function at 0x462f54
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00409088
add esp, 0x3ec
pop ebx
ret

Function at 0x469238
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x49149c]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x4692de
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x46927d
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4692b9
jmp 0x469281
pop edx
pop eax
jge 0x4692b9
mov eax, dword [0x49149c]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00463f00
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x4692de
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4692de
cmp dword [ebx + 0x11c], 0
je 0x4692de
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042e9c4
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x47020c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4702c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004049bc
mov eax, dword [0x491170]
cmp byte [eax], 0
je 0x47027b
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404d1c
mov eax, dword [ebx]
call fcn.00404b48
push eax
mov eax, dword [ebx]
call fcn.00404b38
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404b48
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404d1c
jmp 0x4702ad
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409088
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4702cd
lea eax, [ebp - 0x3f0]
call fcn.004042b0
ret

Function at 0x4734dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x473536
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.00473540
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47353d
ret
Function at 0x47999c
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4799d2
jmp 0x479a78
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x479a16
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x17c], 0
je 0x479a16
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x14]
jmp 0x479a26
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x178]
test edx, edx
je 0x479a26
mov eax, dword [edx + 0x14]
test eax, eax
je 0x479a3f
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.00476328
jmp 0x479a78
mov dl, 1
mov eax, dword [0x42047c]
call fcn.00422484
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.00422e3c
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xbc]
mov eax, dword [esi + 0x10]
call fcn.00422034
mov edx, esp
mov eax, esi
call fcn.00422b88
mov eax, esi
call fcn.00403504
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x47c27c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00442010
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.0043b608
pop ebx
ret
Function at 0x4868c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x486a39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x486a1e
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409088
mov dl, 1
mov eax, dword [0x45d248]
call fcn.0045d2a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x4168d0]
call fcn.004034d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.0045d31c
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x486a1b
mov dl, 1
mov eax, dword [0x45e8d8]
call fcn.0045e940
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x486a50
call fcn.0045da84
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004045bc
xor eax, eax
push ebp
push 0x486a14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0045ec40
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00486a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486a1b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.00403504
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403504
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403504
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486a40
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004042d4
ret
Function at 0x487f78
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4155e8]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4880bc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x491060], 0
jne 0x487fcb
mov ecx, dword [0x4910f4]
mov dl, 1
mov eax, dword [0x4077bc]
call fcn.0040bf6c
call fcn.00403ca4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402f14
mov eax, ebx
call fcn.00404b38
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4880cc
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]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405dc4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404b48
test eax, eax
jle 0x488063
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x48805c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404538
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404520
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408634
test eax, eax
jne 0x48805c
mov ebx, 0x15
jmp 0x488068
mov ebx, 0x10
jmp 0x488068
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x491060]
call fcn.00487ed0
mov eax, dword [ebp - 8]
call fcn.00487ed0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405ddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4880c3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004042d4
lea eax, [ebp - 0x10]
mov edx, dword [0x4155e8]
call fcn.00404e54
ret
Function at 0x4014bc
Capabilities:
Reference processor manufacturer constants

Disassembly:
push 0x4016c0
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
push 0x40000000
add byte [eax], al
add ah, dh
movsd dword es:[edi], dword [esi]
clc
xor esp, eax
cmpsb byte [esi], byte es:[edi]
pop es
inc edi
lodsd eax, dword [esi]
cmp ah, byte [0x411aa9a0]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sub eax, 0x30303043
sub eax, 0x7263694d
outsd dx, dword [esi]
jae 0x40156e
je 0x401502
xor al, 0x36
jge 0x401529
xor ch, byte [esi]
push edi
imul ebp, dword [esi + 0x64], 0x2073776f
inc ebx
jb 0x40157c
je 0x40157e
arpl word [ecx + 0x6c], sp
and byte [ebx + 0x65], dl
arpl word [ebp + 0x72], si
imul esi, dword [ecx + edi*2 + 0x20], 0x61647055
je 0x40158d
jae 0x40152a
add byte [esp + 0x6f], dh
je 0x401590
outsd dx, dword [esi]
insb byte es:[edi], dx
xor al, byte gs:[eax]
add byte [eax], al
add byte [ecx], al
add byte [ecx], al
add ah, dh
sbb al, byte [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
hlt
jo 0x4015cf
add byte [ebx], al
add byte [eax], al
add byte [eax + 0x4015], ch
add eax, dword [eax]
add byte [eax], al
test al, 0x15
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x20004015], ch
push ebx
arpl word gs:[ebp + 0x72], si
imul esi, dword [ecx + edi*2 + 0x20], 0x17055
add al, byte [eax]
hlt
add byte [eax + 0xf004070], dl
add byte [eax], al
add ah, ch
adc eax, 0x40
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
in al, dx
adc eax, 0x4f0040
dec ebp
add byte [ebp], al
pop esp
add byte [ecx], al
jo 0x4015f8
jo 0x4015fa
inc esp
add byte [ecx], ah
je 0x401600
popal
add byte [eax + eax + 0x4c], bl
add byte [edi], ch
arpl word [eax], ax
popal
add byte [eax + eax + 0x5c], ch
add byte [ebp], cl
imul eax, dword [eax], 0x720063
outsd dx, dword [esi]
add byte [ebx], dh
outsd dx, dword [esi]
add byte [esi], ah
je 0x401622
pop esp
add byte [edi], dl
imul eax, dword [eax], 0x30001
hlt
Function at 0x43b65f
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
add ebx, edi
call fcn.0043b6a2
add edi, 1
xor dword [eax], edx
mov ebx, 0xad09e43e
and edi, edi
push 0x2ae62551
pop edi
add eax, 1
dec ebx
add ebx, 0x16a7fbf0
cmp eax, esi
jne fcn.0043b65f
inc ebx
add ebx, edi
sub esp, 4
mov dword [esp], ebx
pop edi
ret
Function at 0x405f20
Capabilities:
Allocate thread local storage

Disassembly:
std
push ebp
mov ebp, esp
sub esp, 0x35680198
jno 0x405eb3
add eax, dword [ecx - 0x5e]
mov ecx, eax
inc eax
test ecx, ecx
mov dword [0xc7410367], eax
je 0x405f40
xor eax, eax
mov esp, ebp
pop ebp
in eax, 0x5d
ret
lea edx, [ebp - 8]
push edx
call 0x114a720
add esp, 4
test eax, eax
jne 0x405fd6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41099d], eax
jge 0x405f3d
lodsd eax, dword [esi]
in eax, dx
push 0xffffffffffffff85
sal byte [ebp + 0x73], 0x50
push eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00404f60
test eax, eax
je 0x405f81
or dword [eax + 0x4e3c], edi
mov eax, 0x4e3c
pop esp
in eax, 7
ret
mov ecx, dword [ebp - 4]
push 0x99f424
push ecx
call 0x944055f0
lea edx, [ebp - 0x198]
push esp
push 2
call dword [0xb2c1d0]
test eax, eax
jne 0x405fdb
mov ax, word [ebp - 0x916698]
cmp al, 2
jne 0x405f77
xor esi, dword [esi - 0x7e473374]
jne 0x405fba
mov edx, dword [ebp + 0x12]
push edx
dec esp
bound eax, qword [eax + eax]
mov eax, dword [ebp - 4]
push eax
call fcn.0040a430
pop ebp
les edi, [esi]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 0x8200002f
mov esp, ebp
pop ebp
ret

Function at 0x40879e
Capabilities:
Encode data using xor

Disassembly:
inc eax
pop esi
xor dword [esi + 0xe], 0x8c40ef91
sub esi, 0xfffffffc
loop 0x4087a1
insd dword es:[edi], dx
push esp
movsb byte es:[edi], byte [esi]
rol dword [eax], 1
invalid
Function at 0x401c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4464d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
cmp edi, eax
je 0x401c31
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004017b0
xor eax, eax
mov dword [ebp - 0x408], 0x400
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x40c], 7
mov dword [ebp - 0x410], 0
mov word [ebp - 0x420], ax
call fcn.004017b0
cmp dword [ebp - 0x40c], 8
lea ecx, [ebp - 0x424]
push ecx
push 0x20019
lea eax, [ebp - 0x420]
cmovae eax, dword [ebp - 0x420]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x40c], 8
mov ebx, dword [ebp - 0x424]
jb 0x401cb2
push dword [ebp - 0x420]
call fcn.00418fbd
add esp, 4
xor eax, eax
mov dword [ebp - 0x40c], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x410], 0
mov word [ebp - 0x420], ax
jb 0x401cd7
mov esi, dword [esi]
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x401d2e
cmp word [ebp - 0x404], ax
jne 0x401d04
xor ecx, ecx
jmp 0x401d1f
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401d10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x404]
mov ecx, edi
push eax
call fcn.00401a70
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fae
mov esp, ebp
pop ebp
ret
Function at 0x404790
Capabilities:
Create thread
Get graphical window text
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4464d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0041bd20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x44a028]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x20c]
push eax
push 0x44a458
call fcn.00419c07
add esp, 8
lea ecx, [ebp - 0x20c]
mov esi, eax
lea edx, [ecx + 2]
neg esi
sbb esi, esi
neg esi
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404800
sub ecx, edx
sar ecx, 1
jne 0x40483d
push 0
push 0x43f5b0
push 0x43f834
push dword [0x44a004]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x449ff0]
push edi
mov edi, 1
cmp ecx, edi
jne 0x4048a0
test esi, esi
jne 0x404874
push dword [0x449ffc]
mov dword [0x449ff0], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x449ff8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x404953
push 0
push dword [0x44a000]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x44a000]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [0x44a000], 0
mov dword [0x449ff0], ecx
push 4
push 0
cmp esi, 1
jne 0x4048e0
mov eax, dword [0x449ff4]
cmp ecx, esi
push 0x43f854
push dword [0x44a004]
cmove eax, edi
mov dword [0x449ff4], eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4048f6
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
push 0x43f880
push dword [0x44a004]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40496d
push dword [0x449ffc]
mov dword [0x449ff0], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x449ff8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.00408da0
push 0
push 0x3e8
push 1
push dword [0x44a004]
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x4051f0
push 0
push 0
call fcn.00419e1b
add esp, 0x18
mov dword [0x44a000], eax
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [0x44a038]
call esi
push 1
push dword [0x44a034]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00418fae
mov esp, ebp
pop ebp
ret