joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4639f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a5768
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 0x463a29
inc eax
mov dword [esi + 0x10], eax
jmp 0x463b3c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x463a3d
mov eax, 0xffffffc7
jmp 0x463b3e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x463a4e
cmp dword [esi + 8], eax
jne 0x463a3d
cmp dword [esi + 8], eax
jne 0x463a67
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x463a67
mov eax, 0xffffffc7
jmp 0x463b3e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x463a7b
push eax
mov ecx, ebx
call fcn.00463220
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.00433760
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x463aac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00433780
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00462990
test eax, eax
mov dword [esp + 0x38], eax
je 0x463adf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x58a4e0
call fcn.00433960
mov eax, dword [esp + 0x38]
jmp 0x463b3e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00463850
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x463b23
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00463870
mov esi, eax
test esi, esi
jne 0x463b53
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00463850
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x463af5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x58a4e0
call fcn.00433960
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], 0x58a4e0
call fcn.00433960
mov eax, esi
jmp 0x463b3e

Function at 0x466c80
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x466ce0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x466ce0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x466ce0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x466ce0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x466d20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x46ce70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a5d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0049cbfc
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0046c810
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049cb2a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00499311
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00499311
push 1
push 0
push 0
mov ecx, esi
call fcn.004992b9
push 1
push 0
push 1
mov ecx, esi
call fcn.004992b9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049cc6e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x46cff0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a5db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0049cbfc
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0046c810
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049cb2a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x46d0b4
cmp dword [esp + 0x40], 1
jne 0x46d0b2
cmp ecx, eax
jge 0x46d0b4
mov eax, ecx
cmp eax, 0xc8
jge 0x46d0c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0046ce70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049cc6e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46d830
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a5e23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00497731
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049cea4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049e3fc
test eax, eax
je 0x46d94c
mov ecx, dword [esp + 0x3c]
call fcn.0049ced1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46d910
push edi
mov ecx, esi
call fcn.0049a498
mov ecx, esi
call fcn.0046dab0
cmp dword [esp + 0x38], 1
jne 0x46d945
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049a602
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x470370
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4703a3
push esi
call fcn.00473470
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47039c
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 0x470429
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x470412
mov eax, dword [esi + 8]
test eax, eax
je 0x4703c7
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 0x47040e
cmp eax, 2
je 0x470412
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4703ba
cmp eax, 3
je 0x4703ed
cmp eax, 1
jne 0x4703ba
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 0x4703ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4703ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00470450
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x470438
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00470450
add esp, 4
pop esi
ret

Function at 0x498527
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49855f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004965b4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049658c
jmp 0x49856b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x499c19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x499c5b
call fcn.0049f903
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499c5b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499c52
xor eax, eax
jmp 0x499c63
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499c69
pop edi
pop esi
pop ebx
ret 4

Function at 0x49fe33
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49fe61
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49fe7f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049fd99
jmp 0x49fe7f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49fe7f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049fd99
test edi, edi
mov eax, edi
jne 0x49fe69
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x54d974
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x44], edi
lea esp, [esp + 0x44]
pushfd
not ecx
push edx
jmp 0x54dab1
mov dword [esp + 7], eax
mov word [esp + 0xa], dx
mov dword [esp + 0x21], esi
push esp
lea esp, [esp + 2]
jmp 0x54d937
mov dword [esp], ecx
mov word [esp], bx
push word [esp + 1]
pushal
jmp 0x54d95b
rdtsc
mov edi, dword [esp + 0x2c]
jmp 0x54d9a6
xor eax, esi
jns 0x54d9ce
rdtsc
jmp 0x54d9d0

Function at 0x676301
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 2], ebp
lea esp, [esp + 8]
push edx
lea eax, [eax*4]
mov dword [esp], ebp
jmp 0x6762df
xchg byte [esp + 2], dl
mov dh, byte [esp + 3]
mov ch, byte [esp + 6]
setnp dh
push word [esp + 3]
mov ch, byte [esp + 2]
jmp 0x6762ac
xchg ah, bl
bsf cx, ax
push dword [esp + 4]
pop bp
xchg ch, dl
add esp, 4
jmp 0x6763f3
mov si, word [esp + 7]
lea esp, [esp]
pop ebx
jmp 0x6762c5
mov di, sp
mov ch, byte [esp]
mov bp, 0xc61d
inc al
btc ebp, edi
rdtsc
jmp 0x676363
pop dword [esp + 6]
mov word [esp + 0xa], dx
btc esi, ebx
lea esp, [esp + 0xd]
lea edx, [eax*4]
rol dx, cl
jmp 0x67630c
add bx, 0x96ee
lea ebp, [eax - 0x61]
mov al, 0xfe
xchg byte [esp], bl
mov ebx, esi
jmp 0x6763d1
mov bp, 0x679b
bswap ebp
mov di, 0x7deb
bswap ebp
bswap ebx
mov ax, di
jmp 0x67634d
lea esp, [esp + 0xb]
setl ch
mov word [esp + 8], di
lea edi, [eax - 0x19]
pop edx
add ecx, ebp
jmp 0x676331
lea esp, [esp + 2]
xchg di, ax
pushal
setnp ch
neg ah
xchg word [esp + 9], di
jmp 0x67637a
mov bh, byte [esp]
lea ebp, [ecx - 0x5e249685]
sub esp, 4
pop bx
mov bl, 0xa8
mov cl, ch
jmp 0x676442
lea ebp, [ecx + 0x33]
lea ebp, [ebx + edi]
cmc
rdtsc
shl si, cl
lea esi, [esi*4]
jmp 0x6763ab
stc
mov si, bx
mov byte [esp + 1], ah
cpuid
ror dh, 7
mov ebp, dword [esp]
jmp 0x676397
cmc
mov edx, 0x35f16a
mov ebp, ecx
lea eax, [esp + ebx]
mov si, word [esp + 1]
mov byte [esp + 1], ch
jmp 0x676420

Function at 0x67665e
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dh, al
xchg dword [esp + 0x10], edx
cpuid
mov dword [esp + 0x1b], eax
mov word [esp + 0x10], di
xchg word [esp + 9], cx
jmp 0x676612
jmp 0x676630
Function at 0x67689d
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp], ecx
push esp
not edi
lea eax, [esi + 0x175dcd05]
jmp 0x676cc2
xchg bp, cx
pop dword [esp]
mov word [esp], di
xchg dh, al
add esp, 3
mov dl, 0xc
jmp 0x67698b
mov esi, 0x126d7c5c
sub esp, 4
mov si, 0x30cb
mov dl, 0xec
mov edi, eax
xchg ecx, edx
jmp 0x676939
xchg si, bx
lea edx, [ebx*4]
xchg word [esp + 1], bp
pop ecx
lea ecx, [eax*4]
bswap esi
jmp 0x676954
mov ah, byte [esp]
inc bx
rcr ch, 5
xchg bp, ax
setp ch
push edx
jmp 0x67699f
cpuid
cmc
mov edx, ebp
xchg word [esp + 2], bp
mov bx, 0xcd95
clc
jmp 0x676bce
rdtsc
xchg ch, dl
rdtsc
mov al, ah
shl ax, cl
mov ax, bx
jmp 0x676970
lea edi, [ebp - 0x1f]
add esp, 5
mov edi, 0xc743b712
inc eax
push dword [esp + 2]
pop cx
jmp 0x6769b6
mov ebp, esi
mov eax, esi
bsr bp, bp
mov bl, bh
push esp
cld
jmp 0x676a43
pop word [esp + 1]
mov ax, word [esp + 6]
xchg byte [esp + 5], al
mov edi, 0x6a734d22
neg bx
mov edx, 0x17486b30
jmp 0x6769ee
xchg ch, dl
xchg byte [esp + 3], dl
cld
lea edi, [ecx*4]
sub esp, 0xa
mov dword [esp + 0xb], esi
jmp 0x676a08
lea esp, [esp + 7]
add esp, 0xc
neg ebp
bswap edi
pushal
mov si, sp
jmp 0x676a88
sub ecx, eax
mov edi, dword [esp + 1]
xchg byte [esp], al
push dword [esp + 2]
btr ecx, esp
mov bx, 0x59b
jmp 0x676a2c
pop eax
mov ebp, ecx
mov ah, byte [esp + 0xe]
push dword [esp + 0xb]
mov dl, 0x54
mov bp, 0x2e79
jmp 0x676ba5
bsf di, ax
xchg ah, bl
xchg edi, edx
push word [esp + 3]
xchg byte [esp + 0x10], dl
setge ah
jmp 0x676a6f
mov bx, word [esp + 0xe]
bsf ax, si
add esp, 0x22
call fcn.00676b3e
movsd dword es:[edi], dword [esi]
cmp eax, 0xf547b4ad
mov word [ebp + 0x852c], cs
add byte [eax], al
lea ebp, [eax*4]
pop ebp
sub esp, 0xc
lea ebx, [ebx + esi]
pop bx
jmp 0x676a9e
lea eax, [edx + ebx]
pop word [esp]
pushal
push edx
mov ebx, esi
rdtsc
jmp 0x676ab6
cmc
xchg dword [esp + 3], edi
pop dword [esp + 0xc]
pop dword [esp + 0x19]
xchg word [esp + 2], si
popal
jmp 0x676acd
xchg dx, cx
pop bp
bswap esi
btc edx, edi
mov al, ah
inc cl
jmp 0x676aee
push dword [esp + 9]
xchg byte [esp + 0x1a], al
mov ax, 0x8f17
sub esp, 8
rcl cx, cl
btc esi, ebx
jmp 0x676b13
mov bl, 8
mov ebx, dword [esp + 2]
lea esp, [esp + 3]
push word [esp + 1]
neg ebp
mov ebx, 0xbdf798dc
jmp 0x676a59
mov word [esp + 1], bx
push dword [esp]
pop ebp
lea ecx, [eax*4]
mov byte [esp + 5], dh
mov word [esp + 6], dx
jmp 0x6769da

Function at 0x676f80
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 0x32
xchg ecx, edi
mov dh, byte [esp + 1]
xchg ebx, edx
xor si, 0x8cc
mov ebx, 0xfa46a950
jmp 0x676f62
sub esp, 0x18
xchg si, bp
neg si
btc ebp, edi
mov al, ah
mov dx, di
jmp 0x676f11
xchg dword [esp + 6], esi
pop ebx
pop ecx
not edi
sub esp, 0x14
pop di
jmp 0x676f38
not ch
not edi
mov ecx, ebp
cmc
lea eax, [esi - 0x56cb3463]
sub bl, ah
jmp 0x676f89
mov cx, word [esp + 5]
neg bh
jmp 0x676f53
lea eax, [ebp + 0xea9e427]
add esp, 1
and esi, ecx
btc ebp, ebx
lea esp, [esp + 1]
add esp, 0
jmp 0x676fd8
xchg esi, ecx
push edx
xchg ebx, edx
cpuid
lea edx, [esi + 0xf5]
mov esi, dword [esp + 4]
jmp 0x676fc0
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x28912878
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3e5c0a38
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401580
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebx
sub esp, 0x138
lea ebx, [esp + 0x2c]
mov dword [esp + 8], 0x104
mov dword [esp], 0
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
mov dword [esp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x401664
mov edx, ebx
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x4015e1
mov ecx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
shr ecx, 0x10
test eax, 0x8080
mov dword [esp + 8], 0
cmove eax, ecx
lea ecx, [edx + 2]
mov dword [esp + 4], str.MyProgramName
cmove edx, ecx
mov ecx, eax
add cl, al
mov eax, dword [esp + 0x28]
sbb edx, 3
sub edx, ebx
add edx, 1
mov dword [esp], eax
mov dword [esp + 0x14], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
jne 0x401664
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
xor eax, eax
add esp, 0x138
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x138
pop ebx
ret

Function at 0x401680
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov ecx, 0x1db
mov esi, 0x4b9060
sub esp, 0x784
lea edi, [esp + 0x10]
lea edx, [esp + 0x77c]
rep movsd dword es:[edi], dword [esi]
movzx eax, word [esi]
lea esi, [esp + 0x10]
mov word [edi], ax
movzx eax, byte [0x4b97ce]
mov byte [edi + 2], al
mov eax, esi
xor dword [eax], 0x4f4f4f4f
add eax, 4
cmp eax, edx
jne 0x4016b5
xor byte [esp + 0x77c], 0x4f
xor byte [esp + 0x77d], 0x4f
xor byte [esp + 0x77e], 0x4f
call esi
mov dword [esp], esi
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
sub esp, 0xc
xor eax, eax
add esp, 0x784
pop esi
pop edi
ret

Function at 0x40b050
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0040b0b0