joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53d6e8
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, eax
cmp dword [esi + 0xc9], 1
jbe 0x53d704
mov byte [esi + 0x7c], 0
mov byte [esi + 0x7d], 0
mov byte [esi + 0x80], 0
cmp byte [esi + 0x569], 0
je 0x53d74d
cmp byte [esi + 0x7e], 0
jne 0x53d74d
cmp dword [esi + 0x1cb], 1
jne 0x53d74d
mov byte [esi + 0x7e], 1
mov eax, dword [0x558400]
push eax
push 0
lea eax, [esi + 0x368]
push eax
push 0x543814
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [0x5580d0]
mov dword [edx], eax
mov eax, dword [esi + 0x40]
call fcn.00543064
cmp byte [esi + 0x572], 0
je 0x53d785
cmp byte [esi + 0x7a], 0
je 0x53d785
mov byte [esi + 0x7a], 0
mov eax, dword [0x558400]
push eax
push 0
lea eax, [esi + 0x468]
push eax
push 0x543814
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [0x5580d0]
mov dword [edx], eax
cmp byte [esi + 0x6c], 0
jne 0x53d791
cmp byte [esi + 0x6d], 0
jne 0x53d7e8
cmp dword [esi + 0xc9], 1
jae 0x53d7e8
cmp byte [esi + 0x7d], 0
jne 0x53d7e8
cmp byte [esi + 0x56a], 0
je 0x53d7e8
mov byte [esi + 0x7d], 1
cmp byte [esi + 0x56b], 0
je 0x53d7c3
cmp byte [esi + 0x6c], 0
je 0x53d7c3
mov eax, esi
call fcn.0051e9d4
mov eax, dword [0x558400]
push eax
push 0
lea eax, [esi + 0x268]
push eax
push 0x543814
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [0x5580d0]
mov dword [edx], eax
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5426ad
Capabilities:
Get system information on windows

Disassembly:
pop dword [ebp - 4]
call 0x5426ba
add byte [eax], al
add byte [eax], al
add byte [edi + 0x5e8f845], cl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pop dword [ebp - 0xc]
call 0x5426dc
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid

Function at 0x5426ba
Capabilities:
Get system information on windows

Disassembly:
pop dword [ebp - 4]
call 0x5426ba
add byte [eax], al
add byte [eax], al
add byte [edi + 0x5e8f845], cl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pop dword [ebp - 0xc]
call 0x5426dc
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid

Function at 0x5426c7
Capabilities:
Get system information on windows

Disassembly:
pop dword [ebp - 4]
call 0x5426ba
add byte [eax], al
add byte [eax], al
add byte [edi + 0x5e8f845], cl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pop dword [ebp - 0xc]
call 0x5426dc
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid

Function at 0x5426dc
Capabilities:
Get system information on windows

Disassembly:
pop dword [ebp - 4]
call 0x5426ba
add byte [eax], al
add byte [eax], al
add byte [edi + 0x5e8f845], cl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pop dword [ebp - 0xc]
call 0x5426dc
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid

Function at 0x542700
Capabilities:
Get system information on windows

Disassembly:
pop dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
push eax
push ebx
call edi
call eax
mov dword [ebp - 0x20], eax
call 0x54271f
jne 0x542789
jb 0x54274c
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid
inc ebp
fcom qword [eax - 0x75]
inc ebp
or byte [eax - 0x75], dl
inc ebp
in al, dx
push eax
push ebx
call edi
call eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x5427a1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax], edx
pushal
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push eax
push dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx]
call edx
popal
hlt
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x54271f
Capabilities:
Get system information on windows

Disassembly:
pop dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
push eax
push ebx
call edi
call eax
mov dword [ebp - 0x20], eax
call 0x54271f
jne 0x542789
jb 0x54274c
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid
inc ebp
fcom qword [eax - 0x75]
inc ebp
or byte [eax - 0x75], dl
inc ebp
in al, dx
push eax
push ebx
call edi
call eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x5427a1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax], edx
pushal
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push eax
push dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx]
call edx
popal
hlt
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5427ce
Capabilities:
Get system information on windows

Disassembly:
pop dword [ebp - 4]
call 0x5427dc
aaa
aaa
aaa
aaa
aaa
add byte [edi + 0xfe8f845], cl
add byte [eax], al
add byte [esi], dh
add byte ss:[eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pop dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
call 0x542830
jne 0x54289a
jb 0x54285d
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid
inc ebp
in al, dx
pushal
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
rep movsb byte es:[edi], byte es:[esi]
popal
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
pushal
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
rep movsb byte es:[edi], byte es:[esi]
popal
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5427dc
Capabilities:
Get system information on windows

Disassembly:
pop dword [ebp - 4]
call 0x5427dc
aaa
aaa
aaa
aaa
aaa
add byte [edi + 0xfe8f845], cl
add byte [eax], al
add byte [esi], dh
add byte ss:[eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pop dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
call 0x542830
jne 0x54289a
jb 0x54285d
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid
inc ebp
in al, dx
pushal
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
rep movsb byte es:[edi], byte es:[esi]
popal
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
pushal
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
rep movsb byte es:[edi], byte es:[esi]
popal
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5427f3
Capabilities:
Get system information on windows

Disassembly:
pop dword [ebp - 4]
call 0x5427dc
aaa
aaa
aaa
aaa
aaa
add byte [edi + 0xfe8f845], cl
add byte [eax], al
add byte [esi], dh
add byte ss:[eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pop dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
call 0x542830
jne 0x54289a
jb 0x54285d
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid
inc ebp
in al, dx
pushal
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
rep movsb byte es:[edi], byte es:[esi]
popal
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
pushal
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
rep movsb byte es:[edi], byte es:[esi]
popal
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x542830
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
pop dword [ebp - 4]
call 0x5427dc
aaa
aaa
aaa
aaa
aaa
add byte [edi + 0xfe8f845], cl
add byte [eax], al
add byte [esi], dh
add byte ss:[eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pop dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
call 0x542830
jne 0x54289a
jb 0x54285d
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [edi + 0x458bf045], cl
invalid
inc ebp
in al, dx
pushal
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
rep movsb byte es:[edi], byte es:[esi]
popal
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
pushal
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
rep movsb byte es:[edi], byte es:[esi]
popal
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x542894
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x542967
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x4000
mov eax, ebx
call fcn.00402bd0
mov esi, eax
push 0
push ebx
push esi
push 5
call sub.NTdll.dll_NtQuerySystemInformation
mov edi, eax
cmp edi, 0xc0000004
jne 0x5428de
mov eax, esi
call fcn.00402c00
mov eax, ebx
add eax, eax
mov ebx, eax
cmp edi, 0xc0000004
je 0x5428b3
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3c]
call fcn.00405004
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004096d8
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004096d8
mov eax, dword [ebp - 8]
mov edx, 0x542980
call fcn.004051e8
jne 0x542932
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00542d58
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0054298c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x5428e9
mov eax, esi
call fcn.00402c00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54296e
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404e00
ret
Function at 0x5433fc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x543404
push ebx
xor eax, eax
push ebp
push 0x5435b1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004030e0
test eax, eax
lea edx, [ebp - 8]
mov eax, 1
call fcn.00403148
mov eax, dword [ebp - 8]
mov edx, 0x5435c8
call fcn.004051e8
jne 0x5434db
lea edx, [ebp - 0x14]
mov eax, 2
call fcn.00403148
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0054666c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040a600
mov edx, dword [ebp - 0xc]
mov eax, dword [0x558208]
call fcn.00404e30
lea edx, [ebp - 0x18]
mov eax, 5
call fcn.00403148
cmp dword [ebp - 0x18], 0
je 0x5434db
lea edx, [ebp - 0x1c]
mov eax, 5
call fcn.00403148
mov eax, dword [ebp - 0x1c]
call fcn.00409cc8
mov edx, dword [0x5583bc]
mov dword [edx], eax
lea edx, [ebp - 0x20]
mov eax, 6
call fcn.00403148
mov eax, dword [ebp - 0x20]
call fcn.00409cc8
mov edx, dword [0x5584b0]
mov dword [edx], eax
lea edx, [ebp - 0x24]
mov eax, 7
call fcn.00403148
mov eax, dword [ebp - 0x24]
call fcn.00409cc8
mov edx, dword [0x558160]
mov dword [edx], eax
lea edx, [ebp - 0x28]
mov eax, 1
call fcn.00403148
mov eax, dword [ebp - 0x28]
mov edx, 0x5435d8
call fcn.004051e8
lea edx, [ebp - 0x2c]
mov eax, 1
call fcn.00403148
mov eax, dword [ebp - 0x2c]
mov edx, 0x5435e8
call fcn.004051e8
jne 0x543596
xor eax, eax
push ebp
push 0x54358a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, 2
call fcn.00403148
mov eax, dword [ebp - 0x30]
call fcn.00409cc8
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x38]
mov eax, 3
call fcn.00403148
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0054666c
mov eax, dword [ebp - 0x34]
call fcn.0040a4a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x543591
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5435b8
lea eax, [ebp - 0x38]
mov edx, 0xd
call fcn.00404e00
ret

Function at 0x543f2c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 1
je 0x543f62
cmp dword [ebp - 8], 1
jne 0x543f64
mov dl, 1
mov eax, edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x546f58
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 8], eax
push esi
call sub.user32.dll_IsWindow
test eax, eax
je 0x547073
xor edx, edx
push ebp
push 0x547069
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
push 0x1000
push 0x1000
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, eax
add edx, 0x800
mov dword [ebp - 0x10], edx
push 0x500
mov ecx, dword [ebp - 4]
mov edx, eax
mov eax, ebx
call fcn.00547738
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00547738
mov byte [ebp - 0x1a], 1
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push 0xa
lea ecx, [ebp - 0x1a]
lea edx, [edi + 0x500]
mov eax, ebx
call fcn.00547738
push 0x618
push 0x618
push 0x618
push esi
call sub.user32.dll_SendMessageA
call sub.kernel32.dll_GetTickCount_1
test esi, esi
je 0x54703d
push 0xa
lea ecx, [ebp - 0x1a]
lea edx, [edi + 0x500]
mov eax, ebx
call fcn.005476d0
test al, al
je 0x54703d
cmp byte [ebp - 0x19], 0
jne 0x54703d
push 0x14
call sub.kernel32.dll_Sleep_1
jmp 0x547014
cmp byte [ebp - 0x19], 0
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.005473b0
mov dword [ebp - 8], eax
push 0x8000
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_VirtualFreeEx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x547073
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x550114
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040528c
xor eax, eax
push ebp
push 0x550197
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040509c
mov ecx, eax
test ecx, ecx
jle 0x55017e
mov esi, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x5579a8]
shr ebx, 8
and ebx, 0xffffff
xor eax, ebx
mov ebx, eax
inc esi
dec ecx
jne 0x550148
shr ebx, 0x10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55019e
lea eax, [ebp - 4]
call fcn.00404ddc
ret
Function at 0x403340
Capabilities:
Query or enumerate registry value

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

Function at 0x4040b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x452048], 0
je 0x404119
cmp word [0x45221c], 0xd7b2
jne 0x4040e1
cmp dword [0x452224], 0
jbe 0x4040e1
mov eax, 0x452218
call dword [0x452234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x451054
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 0x404140
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45101c], 0
jne 0x404135
push 0
push 0x451074
push 0x451054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409508
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 0x409541
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404324
jmp 0x40954a
mov eax, ebx
mov edx, esi
call fcn.00404288
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409bfc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409a74
mov eax, dword [0x451e4c]
cmp byte [eax], 0
je 0x409c64
mov eax, dword [0x451ca8]
call fcn.00402c5c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408740
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 0x409cac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409c9a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x451c68]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x452714]
call fcn.00405950
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 0x40a790
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 0x40a7f4
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.0040449c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408438
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7fb
lea eax, [ebp - 0xc]
call fcn.00404234
ret
Function at 0x41c3e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x452a20
cmp dword [edi], 0
jne 0x41c460
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x452a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4514bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c3bc
lea eax, [esi + 5]
call fcn.0041c3dc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c3dc
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 0x41c435
mov dword [0x452a1c], 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 0x41d8e4
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 0x41d8ea
ret

Function at 0x41fd40
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 0x41fd91
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fd78
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41fd68
jmp 0x41fd91
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 0x41fd79
pop ebx
mov esp, ebp
pop ebp
ret