joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4080
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x502c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004d770c
mov dword [ebp - 0x14], eax
cmp dword [0x506b1c], esi
jne 0x4e4173
push 0x800
push esi
push 0x458edc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4e4100
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4e4253
push esi
push esi
push 0x458edc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4e4253
push 0x458ef4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e4253
push eax
call ebx
push 0x458f00
push edi
mov dword [0x506b1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x458f10
push edi
mov dword [0x506b20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x458f24
push edi
mov dword [0x506b24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x506b2c], eax
test eax, eax
je 0x4e4170
push 0x44fda4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x506b28], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4e4198
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e418b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4e41ad
push 4
pop eax
jmp 0x4e4255
cmp dword [ebp - 0x14], esi
je 0x4e41ad
push dword [0x506b1c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4e4192
mov eax, dword [0x506b28]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4e420b
cmp dword [0x506b2c], edi
je 0x4e420b
push eax
call ebx
push dword [0x506b2c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4e420b
test eax, eax
je 0x4e420b
call ecx
test eax, eax
je 0x4e4200
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4e4200
test byte [ebp - 8], 1
jne 0x4e420b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4e423b
mov eax, dword [0x506b20]
cmp eax, edi
je 0x4e4238
push eax
call ebx
test eax, eax
je 0x4e4238
call eax
mov esi, eax
test esi, esi
je 0x4e4238
mov eax, dword [0x506b24]
cmp eax, edi
je 0x4e4238
push eax
call ebx
test eax, eax
je 0x4e4238
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x506b1c]
call ebx
test eax, eax
je 0x4e4253
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4e4255
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d17f4
mov esp, ebp
pop ebp
ret
Function at 0x4e95b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
cmp byte [ecx + 0x20], 0
lea eax, [ecx + 0x1c]
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esp + 8], ecx
jbe 0x4e95de
mov edi, dword [eax]
mov dword [esp + 0xc], edi
cmp esi, edi
jb 0x4e95d5
cmp esi, dword [eax + 8]
jb 0x4e95ec
add eax, 8
cmp byte [eax + 4], 0
ja 0x4e95c6
mov eax, dword [ecx + 0x14]
pop edi
mov al, byte [esi + eax]
pop esi
add esp, 8
ret 4
movzx eax, byte [eax + 4]
sub esi, edi
push ebx
push ebp
lea ebx, [eax*4 + 0x506b3c]
lea ebp, [eax - 1]
mov edi, edi
movzx eax, byte [ebx]
movzx edx, byte [ebx + 1]
add ecx, eax
movzx eax, byte [ecx]
and edx, eax
mov al, byte [ebx + 2]
test al, al
je 0x4e9623
movzx ecx, byte [ecx + 1]
movzx eax, al
and ecx, eax
shl ecx, 8
or edx, ecx
mov cl, byte [ebx + 3]
shr edx, cl
test ebp, ebp
je 0x4e968b
mov edi, 1
mov ecx, ebp
shl edi, cl
test esi, edi
setne al
mov byte [esp + 0x1c], al
test dl, 1
je 0x4e964a
test al, al
sete byte [esp + 0x1c]
shr edx, 1
mov eax, edx
xor edx, edx
div ebp
mov eax, 1
mov ecx, edx
shl eax, cl
test esi, eax
je 0x4e9663
or esi, edi
jmp 0x4e9667
not edi
and esi, edi
cmp byte [esp + 0x1c], 0
je 0x4e967a
mov ecx, dword [esp + 0x10]
or esi, eax
dec ebp
sub ebx, 4
jmp 0x4e9600
mov ecx, dword [esp + 0x10]
not eax
and esi, eax
dec ebp
sub ebx, 4
jmp 0x4e9600
pop ebp
pop ebx
test dl, 1
je 0x4e9695
xor esi, 1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, dword [eax + 0x14]
add eax, esi
pop esi
mov al, byte [eax + ecx]
add esp, 8
ret 4
Function at 0x40e660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x40e682
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e678
mov eax, 1
add ebx, ebx
jne 0x40e69b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e690
jne 0x40e6ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e690
xor ecx, ecx
sub eax, 3
jb 0x40e6c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e732
mov ebp, eax
add ebx, ebx
jne 0x40e6cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e6d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e6fc
inc ecx
add ebx, ebx
jne 0x40e6e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e6dd
jne 0x40e6f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e6dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e71c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e70d
jmp 0x40e67e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e71c
add edi, ecx
jmp 0x40e67e
pop esi
mov edi, esi
mov ecx, 0xea
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e73a
cmp byte [edi], 1
jne 0x40e73a
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 eax, ebx
loop 0x40e73f
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e7ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe490]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e76c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe494]
or eax, eax
je 0x40e7a8
mov dword [ebx], eax
add ebx, 4
jmp 0x40e789
call dword [esi + 0xe498]
popal
jmp 0x402db8
Function at 0x1334de0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..text
lea edi, [esi - 0xe000]
push edi
jmp 0x1334dfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1334e01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1334df0
mov eax, 1
add ebx, ebx
jne 0x1334e13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1334e24
jne 0x1334e43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1334e43
dec eax
add ebx, ebx
jne 0x1334e30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1334e08
add ebx, ebx
jne 0x1334e3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1334e95
xor ecx, ecx
sub eax, 3
jb 0x1334e5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1334eca
sar eax, 1
mov ebp, eax
jmp 0x1334e66
add ebx, ebx
jne 0x1334e66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1334e34
inc ecx
add ebx, ebx
jne 0x1334e74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1334e34
add ebx, ebx
jne 0x1334e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1334e76
jne 0x1334e92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1334e76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1334eb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1334ea6
jmp 0x1334df6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1334eb4
add edi, ecx
jmp 0x1334df6
pop esi
mov edi, esi
mov ecx, 0xb800
jmp 0x1334f05
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x1334ee5
cmp al, 0x8f
ja 0x1334ee5
cmp byte [edi - 2], 0xf
je 0x1334eeb
sub al, 0xe8
cmp al, 1
ja 0x1334f0f
cmp ecx, 4
jb 0x1334f14
mov eax, dword [edi]
sub al, 5
jne 0x1334f0f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x1334f14
mov al, byte [edi]
inc edi
jmp 0x1334ee5
sub ecx, 1
jae 0x1334ed4
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x1334f5c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1506c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1334f1a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15074]
or eax, eax
je 0x1334f56
mov dword [ebx], eax
add ebx, 4
jmp 0x1334f37
call dword [esi + 0x15070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1334f8d
cmp al, 0xef
ja 0x1334f80
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1334f62
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1334f6f
mov ebp, dword [esi + 0x15078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x1334fc1
sub esp, 0xffffff80
jmp 0x1325dd2
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1f643fa8
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x7cc1806
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x438c8c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop edx
sub esi, 0x42049997
sub esi, 0xec9f7e79
call fcn.00438cd6
and esi, esi
xor dword [edi], edx
add esi, 0x3091e6e6
sub esi, 0xfcbd5423
add edi, 1
sub esi, 0x8a734fd4
cmp edi, eax
jne fcn.00438c8c
add esi, 0x107588c2
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x40160a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x401697
cmp dword [esi + 8], ebx
je 0x401697
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], SysReAllocString
call fcn.004014e3
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401697
cmp dword [ebp - 4], ebx
je 0x401697
cmp dword [esi + 0x14], 1
jne 0x401665
push 4
lea eax, [esi + 0x10]
push eax
push 4
jmp 0x401679
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x40168e
push eax
call fcn.00429dc0
pop ecx
push eax
push dword [esi + 0xc]
push 1
push ebx
push dword [esi + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x402155
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [0x44c750]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, 0x400
push eax
lea ecx, [ebp - 0xc6c]
push ecx
lea ecx, [ebp - 0xc74]
push ecx
lea ecx, [ebp - 0xc78]
push ecx
lea ecx, [ebp - 0xc70]
push ecx
push eax
lea eax, [ebp - 0x86c]
push eax
push 0x43d6f8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
test eax, eax
jne 0x4021aa
mov dword [ebp - 0xc70], esi
push str.wrapper
push dword [ebp - 0xc70]
lea eax, [ebp - 0x46c]
push str.game
push str._s_lu_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0041852f
lea eax, [ebp - 0x46c]
push eax
call fcn.00429dc0
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00418575
lea eax, [ebp - 0x6c]
push eax
call fcn.004185fb
mov edi, dword [ebp + 8]
push str.xxxx_xxxx_xxxx_xxxx
push edi
call fcn.0042a1b0
push str.ACDEFHJKMNPRSTWXYZ2345679
call fcn.00429dc0
add esp, 0x3c
mov ebx, eax
lea ecx, [ebp - 0x14]
cmp esi, 4
je 0x40223c
cmp esi, 9
je 0x40223c
cmp esi, 0xe
je 0x40223c
movzx eax, byte [ecx]
xor edx, edx
div ebx
inc ecx
mov al, byte [edx + str.ACDEFHJKMNPRSTWXYZ2345679]
mov byte [esi + edi], al
inc esi
cmp esi, 0x13
jb 0x40221c
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0042a0fe
leave
ret

Function at 0x402e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
cmp ebx, esi
push edi
mov edi, dword [ebp + 8]
mov ecx, ebx
jae 0x402e7a
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov al, byte [edx + eax]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jb 0x402e65
push dword [ebp + 0x1c]
sub esi, ebx
push esi
add edi, ebx
push edi
call fcn.004025a8
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402ee1
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x44c750]
push ebx
push 0
push 2
mov dword [ebp + 0xac], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402f8f
push edi
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
mov dword [ebp - 0x7c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402f8b
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xb8]
call fcn.0042aa8d
test eax, eax
pop ecx
pop ecx
jne 0x402f7c
push dword [ebp - 0x74]
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x80], 0x103
jne 0x402f79
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402f36
pop esi
push ebx
call edi
pop edi
mov ecx, dword [ebp + 0xac]
pop ebx
call fcn.0042a0fe
add ebp, 0xb0
leave
ret

Function at 0x4031bb
Capabilities:
Set current directory
Terminate process

Disassembly:
mov eax, dword [0x548164]
test eax, eax
je 0x4031cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 4], 0
je 0x4031e0
push 1
push 0x547640
call fcn.004148d2
pop ecx
pop ecx
mov ecx, dword [0x548160]
test ecx, ecx
push esi
mov esi, ecx
je 0x4031f9
call fcn.004171eb
push esi
call fcn.00429d7b
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403202
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x4dc]
sub esp, 0x55c
mov eax, dword [0x44c750]
push ebx
push esi
push edi
push 0x44
pop esi
push esi
mov dword [ebp + 0x4d8], eax
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00429830
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.00429830
mov esi, 0x547748
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0042a1b0
push dword [0x548204]
lea eax, [ebp - 0x2c]
push eax
call fcn.0042a1c0
add esp, 0x28
cmp dword [ebp + 0x4e4], ebx
mov edi, 0x43d79c
je 0x403297
push dword [ebp + 0x4e4]
call fcn.00429dc0
test eax, eax
pop ecx
jbe 0x403297
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0042a1c0
push dword [ebp + 0x4e4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0042a1c0
add esp, 0x10
push dword [0x54820c]
call fcn.00429dc0
test eax, eax
pop ecx
jbe 0x4032c3
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0042a1c0
push dword [0x54820c]
lea eax, [ebp - 0x2c]
push eax
call fcn.0042a1c0
add esp, 0x10
lea eax, [ebp + 0x3d4]
push esi
push eax
call fcn.0042a1b0
push dword [0x548204]
lea eax, [ebp + 0x3d4]
push eax
call fcn.0042a1c0
lea eax, [ebp + 0x3d4]
push 0x5c
push eax
call fcn.0042aa60
add esp, 0x18
cmp eax, ebx
je 0x403307
mov byte [eax + 1], bl
lea eax, [ebp + 0x3d4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
push dword [0x548168]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xbb8
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 1
call fcn.004031bb
int3
Function at 0x40a3b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43b719
call fcn.00429d5c
sub esp, 0x420
mov eax, dword [0x44c750]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x44b0b4]
xor ebx, ebx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x40a457
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov edi, 0x400
cmp esi, edi
jg 0x40a437
push esi
call fcn.0040169d
test al, al
pop ecx
je 0x40a437
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0042a090
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40a443
push esi
lea ecx, [ebp - 0x420]
call fcn.00405dee
push dword [ebp - 0x41c]
push esi
push dword [ebp + 8]
push eax
call fcn.004017f2
cmp eax, ebx
jne 0x40a47a
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40a470
lea ecx, [ebp - 0x418]
call fcn.0040a5ad
mov esi, 0x8007000e
jmp 0x40a581
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp - 0x41c], eax
jne 0x40a49a
call fcn.00406e04
mov esi, eax
jmp 0x40a568
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40a4c4
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x424], eax
jne 0x40a4ce
call fcn.00406e04
jmp 0x40a55a
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, edi
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
jbe 0x40a4ff
push eax
lea ecx, [ebp - 0x418]
call fcn.0040b7e3
jmp 0x40a512
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40a512
cmp dword [ebp - 0x418], ebx
mov dword [ebp - 4], 1
jne 0x40a528
mov esi, 0x8007000e
jmp 0x40a55c
push esi
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call fcn.0042a690
mov eax, dword [ebp - 0x418]
add esp, 0xc
push dword [ebp + 0x14]
mov byte [esi + eax], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0040a5c3
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40a581
lea ecx, [ebp - 0x418]
call fcn.0040a5ad
lea ecx, [ebp - 0x420]
call fcn.00402fa3
mov eax, esi
lea esp, [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042a0fe
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40b257
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x44c750]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.0040b188
cmp eax, esi
jne 0x40b2df
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40b2a8
lea eax, [ebp - 0x70]
push eax
call fcn.0040b257
cmp eax, esi
jne 0x40b2de
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x40b29b
call fcn.0040b171
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040b171
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0042a0fe
add ebp, 0x94
leave
ret 4
Function at 0x40b6ef
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40b6fa
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8