joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a560
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x495be4]
cmp dword [eax + 0x30], 0
je 0x45a60a
cmp dword [ebx + 0x94], 0
jne 0x45a604
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a4f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a604
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 0x45a5ca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a604
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.004186ac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a5d9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b168
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 0x45b19d
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.004044e0
jmp 0x45b1aa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404444
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c364
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c3a5
mov eax, esi
call fcn.0044282c
test al, al
je 0x45c3a5
mov eax, dword [ebx + 0x84]
call fcn.00442528
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c3a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442528
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45d088
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 [0x4155a4]
call fcn.00404dfc
xor eax, eax
push ebp
push 0x45d1cc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x492e6c], 0
jne 0x45d0db
mov ecx, dword [0x494094]
mov dl, 1
mov eax, dword [0x4078c0]
call fcn.0040c504
call fcn.00403d80
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402fe4
mov eax, ebx
call fcn.00404c58
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45d1dc
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.00405f50
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c68
test eax, eax
jle 0x45d173
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 0x45d16c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404678
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404660
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004087a4
test eax, eax
jne 0x45d16c
mov ebx, 0x15
jmp 0x45d178
mov ebx, 0x10
jmp 0x45d178
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 [0x492e6c]
call fcn.0045cfe0
mov eax, dword [ebp - 8]
call fcn.0045cfe0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405f68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d1d3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404414
lea eax, [ebp - 0x10]
mov edx, dword [0x4155a4]
call fcn.00404ecc
ret
Function at 0x472188
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 0x472190
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x472382
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x472398
mov eax, esi
call fcn.00470014
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404444
lea ecx, [ebp - 0x10]
mov edx, 0x4723ac
mov eax, esi
call fcn.00470014
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404444
lea ecx, [ebp - 0x14]
mov edx, 0x4723c4
mov eax, esi
call fcn.00470014
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404444
lea ecx, [ebp - 0x18]
mov edx, 0x4723e0
mov eax, esi
call fcn.00470014
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404444
lea ecx, [ebp - 0x1c]
mov edx, 0x4723fc
mov eax, esi
call fcn.00470014
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404444
lea ecx, [ebp - 0x24]
mov edx, 0x472414
mov eax, esi
call fcn.00470014
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408814
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408db0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x47242c
mov eax, esi
call fcn.00470014
mov eax, dword [ebp - 0x28]
call fcn.00469aec
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x47243c
mov eax, esi
call fcn.00470014
mov eax, dword [ebp - 0x2c]
call fcn.00469aec
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x472454
mov eax, esi
call fcn.00470014
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408db0
inc eax
je 0x472325
lea ecx, [ebp - 0x34]
mov edx, 0x472454
mov eax, esi
call fcn.00470014
mov eax, dword [ebp - 0x34]
call fcn.00408d74
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.0040a318
fstp qword [ebp - 0x3c]
wait
call fcn.0040a688
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x472340
lea ecx, [ebp - 0x40]
mov edx, 0x472454
mov eax, esi
call fcn.00470014
mov eax, dword [ebp - 0x40]
call fcn.00469aec
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x472464
mov eax, esi
call fcn.00470014
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404444
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472389
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404414
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404414
ret
Function at 0x479114
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 0x47916e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00479104
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00468758
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00468358
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 0x479175
lea eax, [ebp - 4]
call fcn.004043f0
ret

Function at 0x47f3f8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47f426
mov eax, ebx
call fcn.0047feac
cmp dword [ebx + 0x40], 0
je 0x47f41f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47f497
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47f489
cmp dword [ebx + 8], 0
je 0x47f448
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47f45a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47f489
cmp dword [ebx + 8], 0
je 0x47f43b
cmp eax, 3
je 0x47f46d
dec eax
jne 0x47f43b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47f43b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47f43b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47f4b5
cmp dword [ebx + 0x14], 0xcc
je 0x47f4b5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047f4c0
pop ebx
ret

Function at 0x48fad4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x21
mov eax, dword [0x494534]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409528
add esp, 0x104
pop ebx
ret

Function at 0x48fb14
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048a0
xor eax, eax
push ebp
push 0x48fb7f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402fe4
mov dword [ebp - 0x1e], 3
mov eax, dword [ebp - 4]
call fcn.004048b0
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x12], 0x10
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48fb86
lea eax, [ebp - 4]
call fcn.004043f0
ret
Function at 0x40337c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004051ac
test esi, esi
jne 0x4033b2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040529c
jmp 0x4033d0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403220
mov edi, eax
test esi, esi
je 0x4033d0
cmp dword [ebx], 0
je 0x4033d0
dec esi
jmp 0x4033b9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x404014
Capabilities:
Query or enumerate registry value

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

Function at 0x404f58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4da04c], 0
je 0x404fb9
cmp word [0x4da220], 0xd7b2
jne 0x404f81
cmp dword [0x4da228], 0
jbe 0x404f81
mov eax, 0x4da21c
call dword [0x4da238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404fe0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d402c], 0
jne 0x404fd5
push 0
push 0x4d475c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405130
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4d4034], 0
je 0x405156
mov edx, esi
mov eax, ebx
call dword [0x4d4034]
jmp 0x405165
mov eax, 8
call fcn.00402f30
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4da04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4050f8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406c40
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406cc3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406cc3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406d4c
xor eax, eax
push ebp
push 0x406d45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406a7c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406d2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406eac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406d2a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d4c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406e66
cmp byte [ebp - 0xd], 0
jne 0x406d93
cmp byte [ebp - 0x12], 0
je 0x406e66
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406dac
dec ebx
cmp byte [ebx], 0x2e
je 0x406dbb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406dab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406e66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406df8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406e66
cmp byte [ebp - 0xd], 0
je 0x406e66
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406e66
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409a14
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409a66
test eax, edx
je 0x409a69
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409a29
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409a4f
add ecx, 4
js 0x409a3f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409a4c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409a75
test edx, edx
jne 0x409a1c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a718
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040563c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a731
test al, 0x10
jne 0x40a735
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d8a4
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 0x40d8dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040529c
jmp 0x40d8e6
mov eax, ebx
mov edx, esi
call fcn.00405200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d8f0
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 0x40d912
movzx eax, byte [esp]
jmp 0x40d914
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40dfa4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40de1c
mov eax, dword [0x4d8f58]
cmp byte [eax], 0
je 0x40e020
mov eax, dword [0x4d8bf8]
call fcn.004037f8
call fcn.0040308c
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.0040a8f4
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 0x40e068
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e056
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d8b78]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dc7f8]
call fcn.00406a24
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 0x40e928
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e9fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405244
lea eax, [ebp - 4]
call fcn.00405694
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040563c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e9e8
mov eax, ebx
call fcn.00402f30
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e9e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040563c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e9cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ea10
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e9cb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9e8
mov eax, dword [ebp - 0x10]
call fcn.00402f4c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea05
lea eax, [ebp - 4]
call fcn.004051ac
ret

Function at 0x424848
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00424584
dec esi
jne 0x42486a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x425abc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4de9f0
cmp dword [edi], 0
jne 0x425b38
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4de9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d4c18
mov ecx, 2
call fcn.00403120
mov edx, 0x425a94
lea eax, [esi + 5]
call fcn.00425ab4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425ab4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x425b0d
mov dword [0x4de9ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x429b44
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00429518
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040563c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x429ba3
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d8dd4]
mov dl, 1
mov eax, dword [0x429410]
call fcn.0040e164
call fcn.00404af8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x429bac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040563c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x429c04
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d9120]
mov dl, 1
mov eax, dword [0x429410]
call fcn.0040e164
call fcn.00404af8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00429548
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42aeb4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42aeba
ret
Function at 0x43eb7c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040562c
xor eax, eax
push ebp
push 0x43ecb1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x43ec84
xor edx, edx
push ebp
push 0x43ec7d
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x43ebc9
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43ec52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x43ec41
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x43ec08
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.0040563c
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00403120
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ec48
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4d8ab0]
mov dl, 1
mov eax, dword [0x408b80]
call fcn.0040e128
call fcn.00404af8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ecb8
lea eax, [ebp - 4]
call fcn.004051ac
ret