joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dd40
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 0x44deeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44decc
mov dl, 1
mov eax, dword [0x415224]
call fcn.004037b4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040451c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44debb
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.0043bd74
test al, al
je 0x44deae
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, 0x44defc
lea eax, [ebp - 0x254]
call fcn.0040914c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44deae
xor eax, eax
push ebp
push 0x44dea7
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 0x44df34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44de90
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040478c
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 0x44de90
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040478c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44deae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ddb1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418d00
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 0x44def2
lea eax, [ebp - 0x260]
call fcn.0040451c
ret

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

Disassembly:
push ecx
mov eax, dword [0x45bbb4]
cmp byte [eax + 0xa5], 0
jne 0x44e891
cmp dword [0x45bbcc], 0
jne 0x44e852
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e7dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45bbcc], eax
cmp dword [0x45bbc8], 0
jne 0x44e86d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45bbc8], eax
cmp dword [0x45bbd0], 0
jne 0x44e891
push esp
push 0
push 0
push 0x44e780
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45bbd0], eax
pop edx
ret
Function at 0x44e988
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44e99f
add esp, 0xfffffff0
call fcn.00403af0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cb10
mov eax, dword [0x459fd8]
cmp word [eax + 2], 0
jne 0x44e9c7
mov eax, dword [0x459fd8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450078
mov eax, dword [0x45a084]
cmp word [eax + 2], 0
jne 0x44e9e1
mov eax, dword [0x45a084]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450270
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414e08]
call fcn.004037b4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414e08]
call fcn.004037b4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41ece4]
call fcn.0042492c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44eb68
mov eax, dword [0x459ef8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424cfc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x450810
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x459ef8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c804
test eax, eax
je 0x44ead6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b40
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c82c
test eax, eax
je 0x44eaea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040478c
mov eax, dword [0x459de0]
cmp byte [eax], 0
jne 0x44eb1e
mov eax, ebx
call fcn.0044ec90
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004509ec
mov eax, ebx
call fcn.004513b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44eb5e
call fcn.00403b48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ef10
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bbb4]
cmp dword [eax + 0x30], 0
je 0x44efba
cmp dword [ebx + 0x94], 0
jne 0x44efb4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44eea0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44efb4
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 0x44ef7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44efb4
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.00417170
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ef89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44fb1c
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 0x44fb51
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.0040460c
jmp 0x44fb5e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404570
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450bc8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450c09
mov eax, esi
call fcn.0043757c
test al, al
je 0x450c09
mov eax, dword [ebx + 0x84]
call fcn.004372a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450c09
push 0
mov eax, dword [ebx + 0x84]
call fcn.004372a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4518c8
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 [0x414650]
call fcn.00404e88
xor eax, eax
push ebp
push 0x451a0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x459d50], 0
jne 0x45191b
mov ecx, dword [0x459df0]
mov dl, 1
mov eax, dword [0x4075b4]
call fcn.0040bb3c
call fcn.00403f58
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403028
mov eax, ebx
call fcn.00404d58
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x451a1c
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.00405ddc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404d68
test eax, eax
jle 0x4519b3
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 0x4519ac
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004047a4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040478c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040838c
test eax, eax
jne 0x4519ac
mov ebx, 0x15
jmp 0x4519b8
mov ebx, 0x10
jmp 0x4519b8
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 [0x459d50]
call fcn.00451820
mov eax, dword [ebp - 8]
call fcn.00451820
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451a13
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404540
lea eax, [ebp - 0x10]
mov edx, dword [0x414650]
call fcn.00404f4c
ret
Function at 0x42a1f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x479658
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00424a30
test eax, eax
je 0x42a2f8
lea ecx, [esp + 0xc]
call fcn.00402490
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00424a30
mov ecx, eax
call fcn.00422130
test eax, eax
je 0x42a2df
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42a2df
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42a2df
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00402690
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42a2c1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42a2df
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x6600c0]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x632ad8
call fcn.00402690
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42d100
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4798e8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42d139
inc eax
mov dword [esi + 0x10], eax
jmp 0x42d24c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42d14d
mov eax, 0xffffffc7
jmp 0x42d24e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42d15e
cmp dword [esi + 8], eax
jne 0x42d14d
cmp dword [esi + 8], eax
jne 0x42d177
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42d177
mov eax, 0xffffffc7
jmp 0x42d24e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42d18b
push eax
mov ecx, ebx
call fcn.0042c930
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402490
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42d1bc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004024b0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042c0a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42d1ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x632b08
call fcn.00402690
mov eax, dword [esp + 0x38]
jmp 0x42d24e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042cf60
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42d233
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042cf80
mov esi, eax
test esi, esi
jne 0x42d263
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042cf60
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42d205
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x632b08
call fcn.00402690
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x632b08
call fcn.00402690
mov eax, esi
jmp 0x42d24e

Function at 0x431c00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x431c60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x431c60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x431c60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x431c60
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x431ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x406b81
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c3dc]
jne 0x406b8b
repz ret
jmp fcn.0040b47c

Function at 0x4115dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c3dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409b27
and dword [ebp - 0x14], 0
cmp dword [0x41eb08], 0
mov dword [ebp - 0x18], eax
jne 0x41168f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411737
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x411737
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41eb08], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41eb0c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41eb10], eax
call edi
push eax
call esi
mov dword [0x41eb18], eax
test eax, eax
je 0x41168f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41eb14], eax
mov eax, dword [0x41eb14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4116e8
cmp dword [0x41eb18], ecx
je 0x4116e8
push eax
call esi
push dword [0x41eb18]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4116e8
test ebx, ebx
je 0x4116e8
call edi
test eax, eax
je 0x4116df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4116df
test byte [ebp - 8], 1
jne 0x4116e8
or dword [ebp + 0x10], 0x200000
jmp 0x41171b
mov eax, dword [0x41eb0c]
cmp eax, dword [ebp - 0x18]
je 0x41171b
push eax
call esi
test eax, eax
je 0x41171b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41171b
mov eax, dword [0x41eb10]
cmp eax, dword [ebp - 0x18]
je 0x41171b
push eax
call esi
test eax, eax
je 0x41171b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41eb08]
call esi
test eax, eax
je 0x411737
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411739
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b81
leave
ret

Function at 0xefa29c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xefa2a6
pushal
call 0xefa2ac
pop ebp
sub ebp, 0x10
sub ebp, 0xafa29c
jmp 0xefa2c2
mov eax, 0xafa29c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c9
mov edx, 0x271d4842
xor byte [eax], dl
inc eax
dec ecx
jne 0xefa2d9
jmp 0xefa2ec
leave
invalid
Function at 0x402690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402728
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402708
xor eax, eax
push ebp
push 0x402701
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402744
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402708
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402df8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x402e59
cmp word [0x405208], 0xd7b2
jne 0x402e21
cmp dword [0x405210], 0
jbe 0x402e21
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x404054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402e80
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x404018], 0
jne 0x402e75
push 0
push 0x40404c
push 0x404054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4030f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403156
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00402ff4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402584
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403140
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40315d
lea eax, [ebp - 0x10]
call fcn.00402f74
ret

Function at 0x403640
Capabilities:
Log keystrokes via application hook
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push 0x4036d0
push 4
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x40567c], eax
push 4
push 0
push 0
push 2
mov eax, dword [0x40567c]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], ebx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, 4
call fcn.00402438
mov dword [0x405678], eax
mov eax, dword [0x405678]
mov dword [eax], ebx
mov al, byte [ebp + 0xc]
mov byte [0x405674], al
cmp dword [0x4040b0], 0
jne 0x4036bf
push 0
mov eax, dword [0x405650]
push eax
mov eax, 0x403570
push eax
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4040b0], eax
cmp dword [0x4040b0], 0
setne al
pop ebx
pop ebp
ret 8
Function at 0x4010e3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
leave
ret

Function at 0x40128d
Capabilities:
Encode data using xor

Disassembly:
add byte [esp + 8], 0x64
push esi
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [edi]
test cl, cl
mov eax, 0x404148
mov esi, eax
je 0x4012b5
sub edi, eax
xor cl, byte [esp + 0x10]
mov byte [esi], cl
inc esi
mov cl, byte [edi + esi]
test cl, cl
jne 0x4012a7
pop edi
mov byte [esi], 0
pop esi
ret

Function at 0x4012bb
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
push 0x7f
mov byte [ebp - 0x208], bl
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp byte [esi + 1], 0x3a
mov byte [ebp - 0x608], bl
mov ecx, 0xff
lea edi, [ebp - 0x607]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 1], bl
stosb byte es:[edi], al
mov dword [ebp - 8], ebx
je 0x401337
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x608]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x401345
push esi
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4013c2
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4013c2
push str.SizeofResource
push 0x403174
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
push ebx
call eax
mov edi, eax
cmp edi, ebx
je 0x4013c2
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013c2
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [ebp - 1], 1
cmp dword [ebp + 0x14], ebx
pop edi
pop esi
pop ebx
je 0x4013da
lea eax, [ebp - 0x608]
push eax
call fcn.004011ed
pop ecx
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
leave
ret