joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001940
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ebx
cmp byte [ebx], 0xe9
jne 0x10001964
lea ecx, [ebx + 5]
add ecx, dword [ebx + 1]
call fcn.10001940
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10038bf8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10039638]
cmp eax, dword [ecx + 4]
jle 0x100019bc
push 0x10039638
call fcn.1000a28d
add esp, 4
cmp dword [0x10039638], 0xffffffff
jne 0x100019bc
push 0x40
push 0x1000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x10039638
mov dword [0x10039634], eax
call fcn.1000a243
add esp, 4
push esi
mov esi, dword [0x10039634]
push edi
lea edx, [esi + 0x1000]
cmp esi, edx
je 0x100019e3
nop
lea ecx, [esi + 0x1c]
call fcn.10001930
test eax, eax
je 0x100019e5
add esi, 0x20
cmp esi, edx
jne 0x100019d0
xor esi, esi
xor edi, edi
lea ecx, [edi + ebx]
call fcn.100016f0
add edi, eax
cmp edi, 5
jl 0x100019e7
test edi, edi
jle 0x10001a11
mov ecx, esi
sub ebx, esi
mov edx, edi
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x10001a00
mov ebx, dword [ebp - 0xc]
lea ecx, [edi + esi]
sub edi, ecx
mov byte [ecx], 0xe9
lea eax, [edi - 5]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add eax, ebx
mov dword [ecx + 1], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ebx
call edi
mov eax, dword [ebp - 0x10]
sub eax, ebx
mov byte [ebx], 0xe9
sub eax, 5
mov dword [ebx + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100029f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x10002a09
jmp 0x10002a1b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x10002a60
call fcn.100029f0
cmp dword [ebp - 4], 0x103
jne 0x10002a71
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002ef0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c94
call fcn.1000b2a0
mov eax, dword [0x1003706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x2c90], ecx
jmp 0x10002f22
jmp 0x10002f34
lea eax, [ebp - 0x2c8c]
mov dword [ebp - 0x2c8c], 0x2880
push eax
lea eax, [ebp - 0x2c88]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x10002f69
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x2af4], 0
lea eax, [ebp - 0x2c88]
jne 0x10002fb8
nop dword [eax + eax]
cmp byte [eax + 0x195], 0
jne 0x10002fb8
cmp byte [eax + 0x196], 0
jne 0x10002fb8
cmp byte [eax + 0x197], 0
jne 0x10002fb8
cmp byte [eax + 0x198], 0
jne 0x10002fb8
cmp byte [eax + 0x199], 0
jne 0x10002fb8
mov eax, dword [eax]
cmp byte [eax + 0x194], 0
je 0x10002f80
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x408]
push 0x3e8
push eax
call fcn.10001c00
add esp, 0x24
lea eax, [ebp - 0x408]
push 0x3e8
push eax
push 0x3e8
push dword [ebp - 0x2c90]
push 0
call fcn.10011447
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret
Function at 0x100049c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x100049eb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100052d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x10004a0d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10004a0f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10004a93
jg 0x10004a24
test esi, esi
je 0x10004a93
test ecx, ecx
jl 0x10004a6d
jg 0x10004a2e
test eax, eax
je 0x10004a6d
cmp edi, ecx
jg 0x10004a42
jl 0x10004a38
cmp esi, eax
jae 0x10004a42
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.1000b8e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10004a70
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10004a93
jg 0x10004a7a
test esi, esi
je 0x10004a93
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10004a93
push eax
push esi
push 1
push edx
call fcn.10010d4c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x10004adb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100053b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x10004afd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x10004aff
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x10004b9e
jg 0x10004b1c
test esi, esi
je 0x10004b9e
test ecx, ecx
jl 0x10004b69
jg 0x10004b26
test eax, eax
je 0x10004b69
cmp ebx, ecx
jg 0x10004b3a
jl 0x10004b30
cmp esi, eax
jae 0x10004b3a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.1000b8e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10004b70
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x10004b9e
jg 0x10004b7a
test esi, esi
je 0x10004b9e
cmp dword [edi + 0x4c], 0
je 0x10004b9e
mov ecx, edi
call fcn.10005cb0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.1001166e
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1003706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10004f00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10004f3c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10004f3c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10005021
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10004f64
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10004f97
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100105ae
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10005021
cmp eax, 1
jle 0x10004ff4
cmp eax, 3
jne 0x10005021
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100029d0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10005011
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10010d4c
add esp, 0x10
cmp edi, eax
jne 0x10005021
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10004f27
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret 4
Function at 0x10005d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003706c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10005e11
cmp byte [esi + 0x3d], 0
je 0x10005e11
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10005dc7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10005dd9
sub eax, 1
je 0x10005ddd
sub eax, 2
je 0x10005e11
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10005dfa
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10010d4c
add esp, 0x10
cmp edi, eax
jne 0x10005dc7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1000a0a5
mov esp, ebp
pop ebp
ret

Function at 0x100064a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025530
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1003706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000a0b6
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100076d5
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10006f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
test dl, dl
je 0x10006f54
push esi
movzx esi, cx
mov edx, 1
mov ecx, 0x80
push edi
mov dword [ebp - 4], ecx
mov ax, cx
nop dword [eax]
or ecx, edx
movzx edi, cx
mov ecx, edi
and ecx, esi
movzx ecx, cx
cmp cx, ax
je 0x10006f36
cmp cx, dx
jne 0x10006f38
xor esi, edi
shr ax, 1
add edx, edx
mov word [ebp - 4], ax
cmp ax, dx
jbe 0x10006f4b
mov ecx, dword [ebp - 4]
jmp 0x10006f20
pop edi
movzx eax, si
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, cx
mov esp, ebp
pop ebp
ret
Function at 0x10007200
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [ebp + 0xc], edi
jbe 0x1000725f
push ebx
push esi
movzx esi, byte [ecx + 1]
movzx edx, byte [ecx]
movzx eax, byte [esi + ecx + 2]
add edx, eax
movzx eax, dl
mov al, byte [eax + ecx + 2]
mov byte [ecx], al
mov dl, byte [esi + ecx + 2]
movzx eax, al
mov bl, byte [eax + ecx + 2]
movzx eax, bl
movzx eax, byte [eax + ecx + 2]
inc eax
movzx eax, al
mov dh, byte [eax + ecx + 2]
mov byte [esi + ecx + 2], bl
movzx eax, byte [ecx]
mov byte [eax + ecx + 2], dl
mov eax, dword [ebp - 4]
inc byte [ecx + 1]
xor byte [eax + edi], dh
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x10007211
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100086de
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1003706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x10008703
xor eax, eax
jmp 0x1000875f
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x10008730
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x10008730
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x100087e4
cmp dword [edi + 0x4c], 0
je 0x10008759
mov ecx, edi
call fcn.1000812e
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x1000876f
push dword [edi + 0x4c]
push ebx
call fcn.1000791d
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x1000875e
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1000a0a5
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x1002618c]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x10008759
cmp eax, 1
jle 0x100087b7
cmp eax, 3
jne 0x10008759
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x1000874b
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x100087d4
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.10010d4c
add esp, 0x10
cmp esi, eax
jne 0x10008759
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x10008759
mov ax, bx
jmp 0x1000875e

Function at 0x1001954a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001920d

Function at 0x10019555
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001938e
Function at 0x4061ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4061bd
pop dword [ebp - 0x34]
mov eax, 0x1c7e6940
sub eax, 0x1c3e0783
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xe49b3308
sub dword [ebp - 0x44], 0x9648edbd
mov dword [ebp - 0x40], 0xec5dfd6
sub dword [ebp - 0x40], 0xdc929391
mov dword [ebp - 0x3c], 0xc60c8a93
sub dword [ebp - 0x3c], 0x79c04665
mov dword [ebp - 0x38], 0x814acfc7
sub dword [ebp - 0x38], 0x814acfc7
lea eax, [ebp - 0x44]
push eax
mov eax, 0x3c18b5df
sub eax, 0x3bd8449b
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x831a3668
sub dword [ebp - 0x44], 0xea7cd12
mov dword [ebp - 0x40], 0x8e9e9b10
sub dword [ebp - 0x40], 0x4d32399b
mov dword [ebp - 0x3c], 0xf34e3f4c
add dword [ebp - 0x3c], 0x70212d20
mov dword [ebp - 0x38], 0x94e3adc9
add dword [ebp - 0x38], 0x6b1c5237
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x38589
push 0
call eax
mov ecx, 0xdb7602af
sub ecx, 0xdb75b71c
xor esi, esi
add esi, eax
mov edx, 0xfd89f441
sub edx, 0xfd469441
add edx, dword [ebp - 0x34]
mov ebx, 0x4984ffa7
add ebx, 0xad173555
mov dword [ebp - 0x28], 0x754d2ec
mov edi, dword [edx]
sub dword [ebp - 0x20], edi
xor edi, ebx
mov dword [ebp - 0x20], 0x8218dfa3
mov dword [esi], edi
mov dword [ebp - 0x14], 0xb50c5d85
add esi, 0x1eb977a6
sub esi, 0x1eb977a2
add edx, 0xd57ca8e5
add edx, 0x2a83571f
loop 0x4062dc
add eax, 0x1211f
xor ebx, ebx
add ebx, eax
add eax, 0x598976c4
add eax, 0xa6768941
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x40101f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2c7a110]
jne 0x401029
repz ret
jmp fcn.004012ab

Function at 0x404e11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x2c7a110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004013b1
and dword [ebp - 0x14], 0
cmp dword [0x2c7d224], 0
mov dword [ebp - 0x18], eax
jne 0x404ec4
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404f6c
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404f6c
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x2c7d224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x2c7d228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x2c7d22c], eax
call edi
push eax
call esi
mov dword [0x2c7d234], eax
test eax, eax
je 0x404ec4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x2c7d230], eax
mov eax, dword [0x2c7d230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x404f1d
cmp dword [0x2c7d234], ecx
je 0x404f1d
push eax
call esi
push dword [0x2c7d234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404f1d
test ebx, ebx
je 0x404f1d
call edi
test eax, eax
je 0x404f14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404f14
test byte [ebp - 8], 1
jne 0x404f1d
or dword [ebp + 0x10], 0x200000
jmp 0x404f50
mov eax, dword [0x2c7d228]
cmp eax, dword [ebp - 0x18]
je 0x404f50
push eax
call esi
test eax, eax
je 0x404f50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404f50
mov eax, dword [0x2c7d22c]
cmp eax, dword [ebp - 0x18]
je 0x404f50
push eax
call esi
test eax, eax
je 0x404f50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x2c7d224]
call esi
test eax, eax
je 0x404f6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404f6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040101f
leave
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x41b20c
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 0x41b212
ret
Function at 0x4010a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
and eax, 0xffff
push 0x64
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4010bd
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0xc]
push esi
push 0
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret

Function at 0x4010e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x220]
push esi
mov esi, dword [esp + 0x21c]
push edi
push eax
push esi
mov dword [ebx], 0
call fcn.004010a0
mov edi, eax
add esp, 8
test edi, edi
je 0x4011d5
lea ecx, [esp + 0x118]
push 0x104
push ecx
push esi
push 0x65
call fcn.00401030
add esp, 0x10
test al, al
je 0x4011cf
mov edx, dword [esp + 0x224]
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x14]
push 0x406030
push ecx
call esi
lea edx, [esp + 0x118]
lea eax, [esp + 0x14]
push edx
push eax
call esi
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x28]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4011cf
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4011cf
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, eax
jne 0x4011cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x210
ret
mov dword [ebx], 1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x4011f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x658
lea eax, [esp + 4]
push eax
push 5
push 0
push 0x406064
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40124a
push 6
lea ecx, [esp + 0x5c]
call fcn.00401000
push 2
lea ecx, [esp + 0x15c]
call fcn.00401000
lea ecx, [esp + 0x158]
push 0
lea edx, [esp + 0x5c]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x658
ret
lea eax, [esp + 8]
push 0x50
push eax
push 2
push 0x67
mov byte [esp + 0x18], 0
call fcn.00401030
mov eax, dword [esp + 0x14]
add esp, 0x10
lea ecx, [esp]
lea edx, [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4012bd
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 6
lea ecx, [esp + 0x15c]
call fcn.00401000
push 2
lea ecx, [esp + 0x5c]
call fcn.00401000
lea edx, [esp + 0x58]
push 0
lea eax, [esp + 0x15c]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x658
ret
mov edx, dword [esp + 0x65c]
push esi
lea ecx, [esp + 0xc]
push edi
push ecx
push edx
lea eax, [esp + 0x268]
push str._sUninstall.exe__s
push eax
call fcn.00401650
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
push str.DisplayName
push edx
call esi
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x260]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push 1
push 0
push str.UninstallString
push ecx
call esi
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop edi
pop esi
add esp, 0x658
ret