joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b611
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
lea esi, [ecx - 0x1d8]
push edi
lea edi, [eax - 0x21e]
mov dword [esp + 0x18], esi
lea ebp, [eax - 0x2b4]
lea eax, [esi + 0x3c]
mov dword [esp + 0x28], ebp
lea ebx, [ecx - 0x4227]
cmp edi, eax
je 0x1000b707
lea eax, [edi + 0x362]
xor esi, 0x30c
push eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffa92
push eax
lea eax, [edi + 0x233]
push eax
push esi
push 0x10061458
call fcn.1000a110
mov esi, dword [esp + 0x38]
mov ecx, eax
mov eax, edi
xor eax, 0xa1
push eax
mov eax, ebx
xor eax, 0x426d
push eax
lea eax, [ecx - 0x7d]
push eax
lea eax, [ebp - 0xf1]
push eax
mov eax, ebp
xor eax, 0x78a9
push eax
lea eax, [ecx - 0x759]
push esi
push eax
call fcn.1000a01e
mov ecx, eax
lea eax, [edi + 0x2f4]
push eax
mov eax, ebp
mov dword [esp + 0x4c], ecx
xor eax, 0x7c05
push eax
lea eax, [ebp + 0x3f8]
push eax
lea eax, [ecx + 0x4e9]
push esi
push eax
lea eax, [ebx + 0x4282]
push eax
call fcn.1000e2fe
mov ecx, dword [esi + 0xdc]
add esp, 0x48
mov ebx, eax
cmp ecx, dword [0x10061538]
je 0x1000b73e
mov ecx, dword [0x1004b8b4]
mov ecx, dword [ecx + 0x60]
sub ecx, dword [esi + 0xb0]
add ecx, 0x5c5
mov dword [0x10061504], ecx
jmp 0x1000b73e
mov esi, dword [esp + 0x24]
mov ebp, ebx
mov eax, dword [esi + 0x34]
or eax, dword [esp + 0x28]
or eax, edi
cmp ebx, eax
je 0x1000b73e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov eax, dword [0x100614cc]
xor eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapLock]
mov eax, dword [esi + 0x34]
add ebp, 4
or eax, dword [esp + 0x28]
or eax, edi
cmp ebp, eax
jne 0x1000b71a
lea eax, [ebx - 0x139]
cmp dword [esp + 0x18], eax
jge 0x1000b75b
mov eax, 0x12b3fd
sub eax, dword [esi + 0xc0]
add dword [esi + 0xac], eax
lea eax, [edi + 0x6a]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1000c859
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [0x1004b8b4]
mov ebx, eax
push esi
mov esi, dword [esp + 0x1c]
xor ebx, 0x4038
xor eax, 0x384
add edx, 0x930
push edi
lea edi, [ecx - 0xd4]
cmp ebx, eax
jle 0x1000c8ac
add ecx, 0xfffffc6c
lea eax, [ebx - 0x40ee]
cmp ecx, eax
jne 0x1000c8ac
mov edx, dword [ebp + 0xd8]
or edx, dword [esi + 0xcc]
lea eax, [edi - 0x657]
cmp edx, eax
jl 0x1000c9a1
mov eax, dword [esi + 0xe0]
cmp eax, dword [esi + 0x7c]
jb 0x1000c8d6
mov eax, dword [esi + 0xc0]
sub eax, dword [ebp + 0xdc]
add dword [esi + 0x48], eax
jmp 0x1000c8e0
mov dword [esi + 0x88], 0x1004b8b8
xor ebp, ebp
mov eax, dword [esi + 0xe0]
xor eax, 0x12
imul eax, dword [0x100614f4]
mov dword [0x100614f4], eax
mov eax, dword [esi + 0x7c]
sub eax, 0xd79d24
xor dword [esi + 0x84], eax
mov eax, dword [esi + 0x84]
add eax, 0xffe04eeb
or dword [esi + 0xb0], eax
mov eax, dword [0x100614e0]
mov ebx, dword [eax + ebp]
add ebp, 4
mov eax, dword [0x1004b8b4]
imul ebx, dword [esi + 0x3c]
mov ecx, dword [eax + 0x8c]
mov eax, dword [esi + 0x58]
mov edx, ebx
shr edx, 0x10
mov byte [ecx + eax], dl
mov ecx, ebx
inc dword [esi + 0x58]
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x8c]
shr ecx, 8
mov byte [edx + eax], cl
inc dword [esi + 0x58]
mov eax, dword [esi + 0xc0]
sub eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x58]
sub eax, 0x3d4c6f2e
add dword [esi + 0x84], eax
mov eax, dword [esi + 0x8c]
mov byte [ecx + eax], bl
mov eax, 0x1446d4
inc dword [esi + 0x58]
sub eax, dword [esi + 0xa8]
add dword [esi + 0x9c], eax
mov ecx, dword [0x10061518]
xor ecx, 0x3d61eb30
add dword [esi + 0x50], ecx
cmp ebp, 0x15180
jl 0x1000c8e2
xor edi, 0x4a1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1000d3e8
Capabilities:
Encode data using xor
Resume thread

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ebx, edx
lea eax, [edx - 0x91]
add ebp, 0xfffffa26
mov dword [esp + 0xc], eax
xor ebx, 0x5df
mov eax, dword [esp + 0x20]
mov ecx, eax
push esi
xor ecx, 0x32
mov dword [esp + 0xc], ebx
push edi
mov edi, dword [esp + 0x38]
lea esi, [eax + 0x3ab]
lea eax, [edx - 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x1e2]
mov dword [esp + 0x1c], esi
cmp ecx, eax
jge 0x1000d5a4
cmp ebp, edx
jge 0x1000d5a4
mov eax, dword [esp + 0x30]
xor eax, 0x3ad
cmp ecx, eax
je 0x1000d4d7
mov edx, dword [0x10061488]
cmp edx, dword [edi + 0x38]
ja 0x1000d5a4
mov ebp, dword [edi + 0xa8]
mov eax, dword [edi + 0xac]
xor ebp, dword [edi + 0xb0]
mov ebx, dword [edi + 0xcc]
mov esi, dword [edi + 0xd0]
mov dword [esp + 0x34], eax
mov eax, dword [0x1004b8b4]
add esi, 0xffebb92b
add esi, ebp
mov ecx, dword [eax + 0xc0]
xor ecx, dword [eax + 0x7c]
mov eax, edx
sub ecx, 0xc524e6
imul eax, edx
or ebx, ecx
mov dword [edi + 0xd0], esi
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xcc], ebx
add ecx, eax
inc edx
mov dword [esp + 0x34], ecx
mov dword [edi + 0xac], ecx
cmp edx, dword [edi + 0x38]
jbe 0x1000d489
mov esi, dword [esp + 0x1c]
jmp 0x1000d5a0
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0x84]
or eax, 0x43bc
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
cmp edx, eax
jl 0x1000d5a4
mov ebx, dword [esp + 0x28]
xor ebp, ecx
xor ebp, 0x408b
cmp dword [edi + 0x34], ebp
jb 0x1000d591
mov esi, dword [edi + 0xcc]
lea eax, [ebx + 0x3ab]
mov edx, dword [0x100614ec]
or esi, eax
mov eax, dword [0x1004b8b4]
sub edx, dword [edi + 0x50]
push edi
and edx, 0x4450
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x70]
add ecx, dword [edi + 0x40]
imul ecx, dword [edi + 0xd8]
and eax, dword [esp + 0x24]
xor eax, 0x45a6
push eax
push ecx
push edx
push esi
call sym.ghhelc799cs5.dll_QzVO354E
add esp, 0x14
mov dword [esp + 0x14], eax
lea esi, [ebx + 0x3ab]
lea ecx, [esi - 0x4038]
and ecx, dword [edi + 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFiber]
mov ecx, dword [0x1004b8b4]
mov ecx, dword [ecx + 4]
sub ecx, dword [edi + 0x34]
sub ecx, 0x43b1
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
add edx, 4
mov dword [esp + 0x34], edx
cmp edx, eax
jge 0x1000d502
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, 0xfffff987
cmp esi, eax
jle 0x1000d620
xor esi, 0x609
lea eax, [ebx - 0x139]
push esi
push eax
push edi
push dword [esp + 0x34]
lea eax, [ebx + 0x37f]
push eax
mov eax, dword [esp + 0x2c]
xor eax, 0x75d
push eax
call fcn.10009f5f
mov eax, dword [edi + 0x10]
add esp, 0x18
sub dword [0x100614b4], eax
mov eax, dword [edi + 0xe0]
cmp eax, dword [edi + 0xf4]
jb 0x1000d614
mov ecx, dword [0x1004b8b4]
mov eax, dword [ecx + 0xcc]
xor eax, 0x14e79
imul eax, dword [ecx + 0xe0]
mov dword [ecx + 0xe0], eax
jmp 0x1000d620
mov ecx, dword [0x10061504]
mov dword [edi + 0xa0], ecx
pop edi
pop esi
xor ebx, 0x7d9e
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
Function at 0x1000dc42
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ebx, ecx
lea eax, [ecx - 0x635]
xor ebx, 0x485c
mov dword [esp + 8], eax
lea edx, [ecx - 0x635]
push esi
mov esi, dword [esp + 0x28]
mov eax, ebx
xor eax, 0x4710
add ebp, 0xffffc138
add esi, 0xfffff987
cmp edx, eax
je 0x1000dd87
lea eax, [ecx - 0x7d1]
cmp esi, eax
jl 0x1000dce0
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xcc]
sub eax, 0x1fe8b
imul eax, dword [esi + 0xc0]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x84]
add eax, 0x3f
push eax
xor ecx, 0x1f8115
push ecx
push dword [0x10061474]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add eax, 0x2000
mov dword [esi + 0x90], eax
jmp 0x1000dd87
mov edx, dword [0x1004b8b4]
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x48]
xor eax, dword [edi + 0x50]
mov ecx, dword [edi + 0xdc]
and eax, ebp
mov dword [esp + 0x20], ecx
cmp ecx, eax
jb 0x1000dd86
lea ecx, [ebx - 0x43bc]
or ecx, esi
or esi, ebp
mov dword [esp + 0x24], ecx
and esi, 0x47f8
imul eax, dword [edx + 0x34], 0x485c
push eax
mov eax, dword [0x10061528]
or eax, ebp
push eax
mov eax, dword [edi + 0x84]
push 0x10061458
xor eax, ebx
push ecx
xor eax, 0x43b1
push eax
push esi
call fcn.10009f5f
mov eax, dword [edi + 0xf0]
add esp, 0x18
xor eax, ebp
add eax, dword [edi + 0xb0]
push eax
mov eax, dword [edi + 0xa4]
or eax, dword [edi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov edx, dword [0x1004b8b4]
mov ecx, dword [esp + 0x20]
add ecx, 4
mov dword [esp + 0x20], ecx
mov eax, dword [edx + 0x48]
xor eax, dword [edi + 0x50]
and eax, ebp
cmp ecx, eax
mov ecx, dword [esp + 0x24]
jae 0x1000dd19
pop edi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add eax, 0x46
pop ebx
pop ecx
ret
Function at 0xae5da0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a9000]
push edi
jmp 0xae5dba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xae5dc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xae5db0
mov eax, 1
add ebx, ebx
jne 0xae5dd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xae5de4
jne 0xae5e03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xae5e03
dec eax
add ebx, ebx
jne 0xae5df0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xae5dc8
add ebx, ebx
jne 0xae5dff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xae5e55
xor ecx, ecx
sub eax, 3
jb 0xae5e1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xae5e8a
sar eax, 1
mov ebp, eax
jmp 0xae5e26
add ebx, ebx
jne 0xae5e26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xae5df4
inc ecx
add ebx, ebx
jne 0xae5e34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xae5df4
add ebx, ebx
jne 0xae5e41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xae5e36
jne 0xae5e52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xae5e36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xae5e74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xae5e66
jmp 0xae5db6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xae5e74
add edi, ecx
jmp 0xae5db6
pop esi
mov edi, esi
mov ecx, 0x17e47
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xae5e92
cmp byte [edi], 0x2f
jne 0xae5e92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xae5e97
lea edi, [esi + 0x6ca000]
mov eax, dword [edi]
or eax, eax
je 0xae5f0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6f0764]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6f07b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xae5ec4
mov ecx, edi
jns 0xae5ef3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6f07b8]
or eax, eax
je 0xae5f09
mov dword [ebx], eax
add ebx, 4
jmp 0xae5ee1
call dword [esi + 0x6f07c8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xae5f40
cmp al, 0xef
ja 0xae5f33
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xae5f15
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xae5f22
mov ebp, dword [esi + 0x6f07bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xae5f74
sub esp, 0xffffff80
jmp 0x63e977
Function at 0x401040
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push esi
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010ca
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x4010bf
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401110
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x401dbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x814
push ebp
push esi
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ebp, dword [esp + 0x82c]
lea eax, [esp + 0x10]
push eax
push 0xf003f
xor esi, esi
push esi
push ebp
push 0x80000002
mov dword [esp + 0x838], esi
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401215
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push esi
push esi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push esi
push ecx
call edi
cmp eax, 0x103
mov ebx, dword [esp + 0x838]
je 0x4011fc
mov edi, edi
lea edx, [esp + 0x24]
push edx
push ebp
lea eax, [esp + 0x18]
push str._s_s
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.00401110
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
add esi, 1
push esi
push ecx
mov dword [esp + 0x34], 0x800
call edi
cmp eax, 0x103
jne 0x4011a0
mov edx, dword [ebx + 8]
push ebp
push edx
mov ecx, ebx
call sub.MFC71.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
lea ecx, [esp + 8]
call dword [0x402074]
mov ecx, dword [esp + 0x81c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x820
ret
Function at 0x40bb27
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x410438], eax
je 0x40bb49
cmp dword [0x410438], ebx
jne 0x40bbdd
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x410438
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x410438
push 4
push edi
mov dword [0x410438], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x410438]
not eax
mov dword [0x4120c0], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408926
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
dec eax
sub edx, edx
call fcn.00408958
sub edx, 0xc07628ec
xor dword [esi], ebx
add edx, 0xcc4033e7
inc esi
sub edx, 0xc40964a2
sub eax, edx
cmp esi, ecx
jne fcn.00408926
mov edx, 0xc49770ab
ret
Function at 0x402ad8
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.0040476c
test esi, esi
jne 0x402b0e
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.0040485c
jmp 0x402b2c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040298c
mov edi, eax
test esi, esi
je 0x402b2c
cmp dword [ebx], 0
je 0x402b2c
dec esi
jmp 0x402b15
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403878
Capabilities:
Query or enumerate registry value

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

Function at 0x4045f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48004c], 0
je 0x404651
cmp word [0x480220], 0xd7b2
jne 0x404619
cmp dword [0x480228], 0
jbe 0x404619
mov eax, 0x48021c
call dword [0x480238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47e054
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 0x404678
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47e01c], 0
jne 0x40466d
push 0
push 0x47e074
push 0x47e054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a0e0
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 0x40a119
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040485c
jmp 0x40a122
mov eax, ebx
mov edx, esi
call fcn.004047c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a12c
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 0x40a14d
mov al, byte [esp]
jmp 0x40a14f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a7d4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a64c
mov eax, dword [0x47fb1c]
cmp byte [eax], 0
je 0x40a83c
mov eax, dword [0x47f930]
call fcn.00402f14
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408fd8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a884
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a872
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47f8e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x480718]
call fcn.00405f4c
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 0x40b3f8
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 0x40b45c
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.004049d4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408be8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b463
lea eax, [ebp - 0xc]
call fcn.0040476c
ret
Function at 0x41d4a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x480a24
cmp dword [edi], 0
jne 0x41d51c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x480a20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47e504
mov ecx, 2
call fcn.0040294c
mov edx, 0x41d478
lea eax, [esi + 5]
call fcn.0041d498
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d498
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 0x41d4f1
mov dword [0x480a20], 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 0x41ead8
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 0x41eade
ret

Function at 0x421060
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4210b1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421098
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421088
jmp 0x4210b1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x421099
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432150
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.00404c0c
xor eax, eax
push ebp
push 0x43227e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x432251
xor eax, eax
push ebp
push 0x43224a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a24
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43221f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x43220e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a24
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404c1c
mov edx, ebx
pop ecx
call fcn.0040294c
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 0x432215
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x47f87c]
mov dl, 1
mov eax, dword [0x407bc8]
call fcn.0040a950
call fcn.004041cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432285
lea eax, [ebp - 4]
call fcn.0040476c
ret