joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451d8e
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.00407c40
fld1
lea eax, [esp + 0x24]
fstp qword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
test esi, esi
jl 0x451f8f
mov edi, dword [esp + 0x24]
call fcn.0040ff90
mov esi, eax
push str.interface_
lea eax, [esp + 0x34]
call fcn.00401b10
mov edi, esi
lea eax, [esp + 0x30]
call fcn.0040df00
mov edi, str.TypeLib
lea eax, [esp + 0x30]
call fcn.0040df00
push esi
call fcn.00412949
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x451f8f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x2c], 0x1fe
call ebx
mov esi, eax
test esi, esi
jne 0x451f84
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x50], cx
call fcn.0040ff90
lea edx, [esp + 0x40]
mov edi, eax
push edx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.00412949
add esp, 4
test esi, esi
jl 0x451f84
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push str.Version
push edx
mov dword [esp + 0x2c], 0x1fe
call ebx
test eax, eax
jne 0x451edf
mov eax, dword [esp + 0x14]
shr eax, 1
lea edx, [esp + 0x50]
xor ecx, ecx
push edx
mov dword [esp + 0x18], eax
mov word [esp + eax*2 + 0x54], cx
call fcn.00415247
fstp qword [esp + 0x2c]
add esp, 4
fld1
lea eax, [esp + 0x20]
push eax
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
call fcn.004171f0
fnstcw word [esp + 0x2a]
add esp, 0x10
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
mov cx, word [esp + 0x20]
movzx edx, cx
push edx
fldcw word [esp + 0x1e]
lea edx, [esp + 0x4c]
fld qword [esp + 0x34]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
mov ax, word [esp + 0x24]
movzx ecx, ax
push ecx
fldcw word [esp + 0x22]
push edx
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
test esi, esi
jl 0x451f84
mov edx, dword [esp + 0x264]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
call fcn.0040c430
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x451fa5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x284
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov esi, 0x80004002
xor ebx, ebx
mov dword [esp + 0x14], 0x28
call fcn.00407c40
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.interface
push accept
call ebp
test eax, eax
jne 0x4520ea
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4520df
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [esp + eax*2 + 0x38], dx
push str.interface_
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0x1fe
call fcn.00401b10
lea edi, [esp + 0x38]
lea eax, [esp + 0x20]
call fcn.0040df00
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push accept
call ebp
test eax, eax
jne 0x4520cd
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4520c2
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x29c]
shr eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x88], cx
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00412485
add esp, 8
test eax, eax
jne 0x4520c2
mov ecx, dword [esp + 0x298]
push ecx
push edi
call dword [sym.imp.ole32.dll_IIDFromString]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4520df
inc ebx
mov dword [esp + 0x14], 0x28
jmp 0x451fec
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040c430
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret
Function at 0x452c43
Capabilities:
Create http request

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 0xd8]
mov ecx, dword [edi + 0xdc]
mov edx, dword [edi + 0xd4]
mov ebp, dword [edi + 0xd0]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0xe0]
inc dword [eax]
mov esi, dword [edi + 0xe8]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0xec]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xf0]
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0xe4]
inc dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xfc]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x100]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0xf8]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0xf4]
inc dword [eax]
cmp dword [esp + 0x50], 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jne 0x452d17
mov ebp, dword [edi + 0x104]
lea edx, [edi + 0x108]
push edx
lea esi, [esp + 0x3c]
call fcn.0040ee20
lea eax, [edi + 0x118]
push eax
lea esi, [esp + 0x2c]
call fcn.0040ee20
add edi, 0x128
push edi
lea esi, [esp + 0x1c]
call fcn.0040ee20
mov esi, dword [esp + 0x2c]
push 0
cmp ebp, 1
jne 0x452d25
push 0
push 0
push ebp
jmp 0x452d3e
cmp ebp, 2
jne 0x452d38
mov ecx, dword [esp + 0x3c]
push str._local_
push ecx
push 3
jmp 0x452d3e
push 0
push 0
push 0
push 0x47f818
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
test eax, eax
jne 0x452d76
lea ecx, [esp + 0x18]
call fcn.0040c430
lea ecx, [esp + 0x28]
call fcn.0040c430
lea ecx, [esp + 0x38]
call fcn.0040c430
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 8
lea edx, [esp + 0x14]
push edx
push 0x32
push 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call edi
cmp ebp, 2
jne 0x452dc2
test esi, esi
je 0x452dc2
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx]
inc esi
push esi
push eax
push 0x2b
push ecx
call edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
inc edx
push edx
push eax
push 0x2c
push ecx
call edi
lea ecx, [esp + 0x18]
call fcn.0040c430
lea ecx, [esp + 0x28]
call fcn.0040c430
lea ecx, [esp + 0x38]
call fcn.0040c430
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x38
ret 0xc
Function at 0x453945
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x434
push ebx
push esi
mov esi, dword [esp + 0x440]
push edi
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00415c17
add esp, 0x10
push 0x18ee
push 4
lea edx, [esp + 0x1c]
push edx
call fcn.0044b5da
lea eax, [esp + 0x14]
push str.FILE
push eax
mov byte [esp + 0x20], 0
call fcn.00415260
add esp, 8
test eax, eax
jne 0x453abe
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.00415c17
mov edi, dword [esp + 0x20]
mov eax, dword [esi]
push eax
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea ecx, [esp + 0x38]
push 1
push ecx
call fcn.00415c17
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea edx, [esp + 0x28]
push edx
call fcn.0044b5da
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x234]
xor eax, eax
push edx
mov word [esp + ebx + 0x28], ax
call fcn.00412546
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.00415c17
mov edi, dword [esp + 0x28]
mov edx, dword [esi]
push edx
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [esp + 0x40]
push 1
push eax
call fcn.00415c17
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.0044b5da
mov ecx, dword [esp + 0x44c]
lea eax, [esp + 0x20]
push eax
xor edx, edx
push ecx
mov word [esp + ebx + 0x28], dx
call fcn.00412546
mov edx, dword [esp + 0x450]
push edx
lea eax, [esp + 0x23c]
push eax
call fcn.0041455e
add esp, 0x10
test eax, eax
je 0x453ab0
mov ecx, dword [esi]
push 1
push 1
push ecx
call fcn.004155ad
mov edx, dword [esi]
add esp, 0xc
push edx
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.00415c17
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
xor eax, 0x87bc
mov dword [esp + 0x2c], eax
push 1
add eax, 0x18
push eax
push ecx
call fcn.004155ad
add esp, 0x1c
jmp 0x453955
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x434
ret 0xc
pop edi
pop esi
mov eax, 6
pop ebx
add esp, 0x434
ret 0xc
Function at 0x453acf
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x688
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x69c]
push esi
mov esi, dword [esp + 0x698]
push edi
push eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x478], eax
mov eax, dword [esi + 4]
mov word [esp + 0x48], cx
mov ecx, dword [esi]
push eax
xor edx, edx
push ecx
mov word [esp + 0x25a], dx
mov dword [esp + 0x28], 1
call fcn.004155ad
add esp, 0xc
lea edx, [esp + 0x488]
push edx
push str.___AUTOIT_SCRIPT___
push esi
call fcn.00453945
test eax, eax
je 0x453b66
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x688
ret 0xc
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x1b]
push 1
push ecx
call fcn.00415c17
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.00415c17
mov ecx, dword [esi]
mov edi, dword [esp + 0x38]
push ecx
push 1
lea edx, [esp + 0x40]
push 4
push edx
xor edi, 0x87bc
call fcn.00415c17
mov ecx, dword [esi]
mov eax, dword [esp + 0x48]
push ecx
push 1
lea edx, [esp + 0x50]
xor eax, 0x87bc
push 4
push edx
mov dword [ebp], eax
call fcn.00415c17
mov eax, dword [esi]
mov ebx, dword [esp + 0x58]
add esp, 0x40
push 1
push 0x10
push eax
xor ebx, 0xa685
call fcn.004155ad
mov ecx, dword [ebp]
add esp, 0xc
push ecx
call fcn.00414ada
add esp, 4
push edi
mov dword [esp + 0x18], eax
call fcn.00414ada
mov edx, dword [esi]
add esp, 4
push edx
push 1
mov ebp, eax
push edi
push ebp
call fcn.00415c17
mov eax, dword [esi + 8]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push ebp
call fcn.0044b5da
push edi
push ebp
lea ecx, [esp + 0x24]
push ecx
call fcn.004368b0
cmp ebx, dword [esp + 0x1c]
je 0x453c50
mov edx, dword [esp + 0x14]
push edx
call fcn.00414d38
add esp, 4
push ebp
call fcn.00414d38
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x688
ret 0xc
cmp byte [esp + 0x13], 1
jne 0x453cb0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
xor ecx, ecx
mov dword [esp + 0x474], eax
mov eax, 1
mov word [esp + 0x44], cx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
xor edx, edx
push ecx
mov word [esp + 0x252], dx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
call fcn.0044b793
push ebp
call fcn.00414d38
jmp 0x453cbe
mov edx, dword [esp + 0x14]
push edx
call fcn.00414d38
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x6a4]
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 0x688
ret 0xc
Function at 0x454826
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12d4
call fcn.00426210
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x430]
xor bl, bl
call fcn.0040ff50
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x640]
call fcn.0040ff50
lea eax, [esp + 0x640]
push eax
lea ecx, [esp + 0x434]
push ecx
call fcn.0044c8e8
lea edx, [esp + 0x438]
push edx
mov byte [esp + 0x1b], al
call fcn.00438396
add esp, 0xc
test al, al
je 0x45489b
lea eax, [esp + 0x430]
push str..
push eax
call fcn.00412518
add esp, 8
lea ecx, [esp + 0x640]
push ecx
call fcn.00438396
add esp, 4
test al, al
je 0x4548c4
lea edx, [esp + 0x640]
push str..
push edx
call fcn.00412518
add esp, 8
lea eax, [esp + 0xec0]
push eax
lea ecx, [esp + 0x10d4]
push ecx
lea edx, [esp + 0xcb8]
push edx
lea eax, [esp + 0xaac]
push eax
lea ecx, [esp + 0x440]
push ecx
call fcn.00415060
add esp, 0x14
lea edx, [esp + 0x850]
push edx
lea eax, [esp + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov byte [esp + 0xe], 1
cmp esi, 0xffffffff
je 0x454a80
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0xe], 1
jne 0x454a80
test byte [esp + 0x850], 0x10
jne 0x454a60
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x644]
push edx
lea eax, [esp + 0xec8]
push eax
lea ecx, [esp + 0x10dc]
push ecx
lea edx, [esp + 0x88c]
push edx
call fcn.004381f2
add esp, 0x14
lea eax, [esp + 0xaa0]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00412546
lea edx, [esp + 0xcb8]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00412518
lea ecx, [esp + 0x88c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00412518
lea eax, [esp + 0x238]
push eax
call fcn.004383f4
add esp, 0x1c
test al, al
je 0x4549de
cmp byte [ebp + 0x10], 0
je 0x454a37
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x454a47
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
jne 0x454a22
cmp byte [esp + 0xf], 0
jne 0x454a00
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x454a33
push 0
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
je 0x454a37
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x454a33
push 0
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x454a5e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x454a37
mov bl, 1
lea ecx, [esp + 0x850]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x454920
mov byte [esp + 0xe], al
jmp 0x454920
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456726
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esi + 0x158], ecx
mov dword [esi + 0x15c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, dword [esi + 0x160]
jne 0x45677a
cmp ecx, dword [esi + 0x164]
je 0x456798
cmp dword [esp + 0x24], 1
mov dword [esi + 0x160], eax
mov dword [esi + 0x164], ecx
jl 0x456798
push ecx
push eax
push esi
push 0xfffffffffffffff5
push ebx
call fcn.0045063a
mov ecx, dword [ebx + 0x18]
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push ecx
call ebp
mov edx, dword [ebx + 0x1c]
movzx edi, ax
push edx
shr edi, 0xf
call ebp
movzx ebp, ax
shr ebp, 0xf
cmp edi, dword [esi + 0x168]
je 0x456838
cmp dword [esp + 0x24], 1
jl 0x456838
cmp byte [esi + 0x194], 0
je 0x456838
test edi, edi
je 0x4567e1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff9
jmp 0x45682b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff8
push ebx
call fcn.0045063a
cmp byte [esi + 0x170], 0
je 0x456831
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
je 0x45681e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffffa
jmp 0x45682b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
push 0xfffffffffffffff4
push ebx
call fcn.0045063a
mov byte [esi + 0x170], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x456846
mov dword [esi + 0x168], edi
cmp ebp, dword [esi + 0x16c]
je 0x456879
cmp eax, 1
jl 0x456879
test ebp, ebp
je 0x456866
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff7
jmp 0x456873
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff6
push ebx
call fcn.0045063a
cmp dword [esp + 0x24], 0
je 0x456886
mov dword [esi + 0x16c], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x45d156
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2020
call fcn.00426210
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00407c40
lea ecx, [esp + 0x20]
call fcn.00407c40
mov eax, dword [esp + 0x2034]
push eax
xor ebp, ebp
call fcn.0044bbd8
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x45d284
nop
inc ebp
cmp ax, 0x25
jne 0x45d258
cmp word [esi + ebp*2], ax
jne 0x45d1bb
push 0x25
lea ecx, [esp + 0x14]
push ecx
mov bl, 1
call fcn.0044c25b
inc ebp
jmp 0x45d263
push 0x47f878
lea eax, [esp + 0x24]
call fcn.00401b10
movzx eax, word [esi + ebp*2]
cmp ax, 0x25
je 0x45d1f5
lea ecx, [ecx]
test ax, ax
je 0x45d1f5
movzx eax, ax
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0044c25b
movzx eax, word [esi + ebp*2 + 2]
inc ebp
cmp ax, 0x25
jne 0x45d1d6
cmp word [esi + ebp*2], 0
je 0x45d2a3
mov edx, dword [esp + 0x20]
push 0xfff
lea ecx, [esp + 0x34]
push ecx
xor eax, eax
push edx
inc ebp
mov word [esp + 0x3c], ax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
lea eax, [esp + 0x10]
je 0x45d232
lea edi, [esp + 0x30]
call fcn.0040df00
mov bl, 1
jmp 0x45d263
mov edi, 0x4863c4
mov bl, 1
call fcn.0040df00
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00454426
lea eax, [esp + 0x10]
call fcn.0040df00
jmp 0x45d263
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0044c25b
movzx eax, word [esi + ebp*2]
test ax, ax
jne 0x45d196
test bl, bl
je 0x45d284
mov esi, dword [esp + 0x2034]
lea edi, [esp + 0x10]
call fcn.0040f790
lea ecx, [esp + 0x20]
call fcn.0040c430
lea ecx, [esp + 0x10]
call fcn.0040c430
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2020
ret 4
mov edi, 0x4863c4
lea eax, [esp + 0x10]
call fcn.0040df00
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00454426
jmp 0x45d274
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7ea04f0a
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x234c091f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4034f0
Capabilities:
Encode data using xor

Disassembly:
add dword [eax + 0x28404000], edi
jno 0x403473
mul edi
sub eax, 0x8db810c1
invalid

Function at 0x4051fc
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
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
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
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret