joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422120
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4222b8
cmp ebp, ebx
jle 0x4222b8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42217e
dec eax
or eax, 0xfffffff8
inc eax
je 0x422185
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x422194
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42219b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00462370
add esp, 4
cmp eax, ebx
je 0x4221bc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00462370
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4222ae
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x422295
mov al, byte [edx]
cmp al, 0xc0
jbe 0x422281
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x422276
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x422284
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x422284
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x422220
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x422211
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4302f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x471698
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x430329
inc eax
mov dword [esi + 0x10], eax
jmp 0x43043c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43033d
mov eax, 0xffffffc7
jmp 0x43043e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43034e
cmp dword [esi + 8], eax
jne 0x43033d
cmp dword [esi + 8], eax
jne 0x430367
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x430367
mov eax, 0xffffffc7
jmp 0x43043e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43037b
push eax
mov ecx, ebx
call fcn.0042fb20
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004045d0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4303ac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004045f0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042f290
test eax, eax
mov dword [esp + 0x38], eax
je 0x4303df
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x80ecc0
call fcn.004047d0
mov eax, dword [esp + 0x38]
jmp 0x43043e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00430150
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x430423
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00430170
mov esi, eax
test esi, esi
jne 0x430453
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00430150
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4303f5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x80ecc0
call fcn.004047d0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x80ecc0
call fcn.004047d0
mov eax, esi
jmp 0x43043e
Function at 0x43c970
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c9a3
push esi
call fcn.0043fa60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c99c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43ca29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43ca12
mov eax, dword [esi + 8]
test eax, eax
je 0x43c9c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43ca0e
cmp eax, 2
je 0x43ca12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c9ba
cmp eax, 3
je 0x43c9ed
cmp eax, 1
jne 0x43c9ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c9ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c9ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ca50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43ca38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ca50
add esp, 4
pop esi
ret
Function at 0x76def0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x205000]
push edi
or ebp, 0xffffffff
jmp 0x76df12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x76df19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76df08
mov eax, 1
add ebx, ebx
jne 0x76df2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x76df3c
jne 0x76df5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76df5b
dec eax
add ebx, ebx
jne 0x76df48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x76df20
add ebx, ebx
jne 0x76df57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x76dfad
xor ecx, ecx
sub eax, 3
jb 0x76df73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x76dfe2
sar eax, 1
mov ebp, eax
jmp 0x76df7e
add ebx, ebx
jne 0x76df7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76df4c
inc ecx
add ebx, ebx
jne 0x76df8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76df4c
add ebx, ebx
jne 0x76df99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x76df8e
jne 0x76dfaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x76df8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x76dfcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x76dfbe
jmp 0x76df0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x76dfcc
add edi, ecx
jmp 0x76df0e
pop esi
mov edi, esi
mov ecx, 0x69b1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x76dfea
cmp byte [edi], 0x25
jne 0x76dfea
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 0x76dfef
lea edi, [esi + 0x36a000]
mov eax, dword [edi]
or eax, eax
je 0x76e067
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3804a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3805f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x76e01c
mov ecx, edi
jns 0x76e04b
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 + 0x3805fc]
or eax, eax
je 0x76e061
mov dword [ebx], eax
add ebx, 4
jmp 0x76e039
call dword [esi + 0x38060c]
mov ebp, dword [esi + 0x380600]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x76e09b
sub esp, 0xffffff80
jmp 0x4dd27d
Function at 0x40b8dc
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
mov dword [esi + 8], eax
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [esi + 0x34], edi
je 0x40b90c
xor eax, eax
inc eax
jmp 0x40b93a
push esi
push edi
push 0x40b832
call dword [sym.imp.msvcrt.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b930
push esi
call fcn.0040a86e
test eax, eax
je 0x40b930
cmp dword [esi + 0x48], edi
je 0x40b907
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x40c864
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 7
push 0x10000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c8ab
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c8bb
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x40cb8b
Capabilities:
Timestomp file

Disassembly:
push 0x14
push 0x402760
call fcn.0041ae80
or dword [ebp - 0x20], 0xffffffff
xor edi, edi
mov dword [ebp - 4], edi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
push edi
push edi
push 3
push edi
push 3
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xc0000000
add eax, 0x80000000
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x40cbd9
xor eax, eax
jmp 0x40cbde
call fcn.0040c9c8
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x40cc39
push edi
call esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
cmp dword [ebp + 0x18], edi
je 0x40cc05
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x40cc0d
xor eax, eax
jmp 0x40cc12
call dword [sym.imp.KERNEL32.dll_GetFileTime]
jmp 0x40cbfd
call fcn.0040c9c8
mov dword [ebp - 0x1c], eax
jmp 0x40cc39
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0xffffffff
je 0x40cc4c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
call fcn.0041aebb
ret 0x14
Function at 0x40db0d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4233cc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
je 0x40db61
push 0xa
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov ecx, dword [ebp - 0x218]
add esp, 0xc
cmp word [ecx], bx
jne 0x40db5a
cmp ecx, esi
jne 0x40db64
push 0xd
jmp 0x40dc6a
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x214], ebx
jne 0x40db76
mov dword [ebp - 0x214], 0x401460
cmp eax, 0x8000
jae 0x40dba8
mov ecx, 0x4000
test ecx, eax
je 0x40dba8
push 1
xor eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40dbd7
lea edi, [ebp - 0x20c]
jmp 0x40dc40
lea edx, [edi + 0x26c]
mov esi, dword [edx + 4]
xor ecx, ecx
cmp esi, ebx
mov dword [ebp - 0x210], ecx
jbe 0x40dbd7
mov edx, dword [edx]
mov edi, ecx
imul edi, edi, 0x20c
cmp dword [edi + edx], eax
je 0x40dc32
inc ecx
cmp ecx, esi
mov dword [ebp - 0x210], ecx
jb 0x40dbbf
push dword [ebp - 0x214]
call fcn.0041a138
mov esi, eax
cmp esi, ebx
je 0x40dc21
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
mov dword [ebp - 0x210], eax
je 0x40dc21
lea eax, [esi + eax*2]
push eax
push esi
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x5c
jne 0x40dc21
mov eax, dword [ebp - 0x210]
cmp eax, 3
jne 0x40dc1c
cmp word [esi + 2], 0x3a
je 0x40dc21
mov word [esi + eax*2 - 2], bx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419805
leave
ret 0x10
imul ecx, ecx, 0x20c
lea edi, [ecx + edx + 4]
cmp edi, ebx
je 0x40dbd7
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x214]
push edi
call fcn.0041a306
mov eax, dword [ebp - 0x210]
add eax, eax
push eax
call fcn.0041a065
mov esi, eax
cmp esi, ebx
jne 0x40dc74
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40dc23
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push esi
call fcn.0041a306
jmp 0x40dbe4
Function at 0x41ab4d
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4233cc]
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
je 0x41ac56
test eax, eax
jne 0x41ab87
mov dword [edi], 0x57
jmp 0x41ac56
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp + 0x10]
and edx, 0x1000
or edx, 0x100080
shr edx, 4
push edx
push 8
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [ebp - 0x218], eax
je 0x41abbc
mov dword [edi], eax
jmp 0x41ac56
push ebx
xor ebx, ebx
xor edi, edi
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41ac34
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.0041ab4d
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [ebp - 0x218], eax
je 0x41abc1
inc ebx
mov edi, eax
jmp 0x41abc1
cmp eax, 0x103
pop ebx
je 0x41ac3e
mov edi, eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41ac5a
mov eax, dword [ebp - 0x220]
mov dword [eax], edi
xor eax, eax
jmp 0x41ac5d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
call fcn.00419805
leave
ret 0x10

Function at 0x41ac6f
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ab4d
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 4]
cmp esi, 2
je 0x41ac9e
cmp esi, 3
jne 0x41aca0
xor esi, esi
test esi, esi
jne 0x41ad1a
test byte [ebp + 0x11], 0x10
push edi
push dword [ebp + 0xc]
je 0x41ad02
call fcn.0041a138
mov edi, eax
test edi, edi
je 0x41acfd
push 0x5c
push edi
call sub.msvcrt.dll_wcsrchr
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41acf3
and word [esi], 0
lea eax, [ebp - 8]
push eax
push 0x10100
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esi, 2
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x41acf5
xor esi, esi
push edi
call fcn.0041a0e7
jmp 0x41ad0d
push 8
pop esi
jmp 0x41ad0d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp esi, 2
pop edi
je 0x41ad18
cmp esi, 3
jne 0x41ad1a
xor esi, esi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x41c300
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x41c33d
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x41c31a
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x41c359
dec esi
je 0x41c352
dec esi
jne 0x41c35e
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x402e4c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404944
test esi, esi
jne 0x402e83
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404a34
jmp 0x402ea4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce8
mov dword [esp], eax
test esi, esi
je 0x402ea4
cmp dword [ebx], 0
je 0x402ea4
dec esi
jmp 0x402e8b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403938
Capabilities:
Query or enumerate registry value

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

Function at 0x40473c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b044], 0
je 0x40479d
cmp word [0x45b218], 0xd7b2
jne 0x404765
cmp dword [0x45b220], 0
jbe 0x404765
mov eax, 0x45b214
call dword [0x45b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x459070
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 0x4047c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x4047b9
push 0
push 0x459068
push 0x459070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4048f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a88
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45b045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048c0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40665c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4066c2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404bb4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403394
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066ac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066c9
lea eax, [ebp - 0x10]
call fcn.00404944
ret

Function at 0x40b838
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 0x40b871
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a34
jmp 0x40b87a
mov eax, ebx
mov edx, esi
call fcn.00404998
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf3c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bda4
mov eax, dword [0x45a1a8]
cmp byte [eax], 0
je 0x40bfb8
mov eax, dword [0x459fcc]
call fcn.004031f4
call fcn.00402c14
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.00409014
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 0x40c000
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bfee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x459f7c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45b660]
call fcn.00405ac8
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