joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4705a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4c2064]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4705cb
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x47061a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x470622
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x470696
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x470650
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x4706c5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push str.6__bG
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4aebcf
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4706a0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4706d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.004321c0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x4c2064]
mov esi, eax
add esp, 8
test esi, esi
je 0x470852
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x470752
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4707c6
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x470780
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x4707f5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push str.6__bG
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4aebcf
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4707d0
push dword [esp + 0x30]
call fcn.004321c0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x470820
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x4c2068]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret

Function at 0x4709c0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x470a0c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4709d1
pop ebx
pop edi
pop esi
ret
Function at 0x474098
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.004739ee
mov edi, eax
test edi, edi
jne 0x4740bf
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x474108
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x474103
test al, 0x10
je 0x474103
test eax, 0x400
je 0x4740ff
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00474121
push dword [ebp - 4]
mov esi, eax
call fcn.00473a2a
test esi, esi
jne 0x474103
xor edx, edx
jmp 0x474105
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x474595
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4745bc
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4745bf
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00474571
pop esi
leave
ret 8
Function at 0x475320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4c2100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
push edi
mov edi, ecx
cmp bx, si
jne 0x47534b
push ebx
call fcn.004158a0
pop ecx
jmp 0x4753a0
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x475374
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x475374
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], ax
jmp 0x4753a0
cmp dword [edi + 0x4c], 0
je 0x47539d
mov ecx, edi
call fcn.00474ffe
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4753b1
push dword [edi + 0x4c]
push esi
call fcn.00474c1d
pop ecx
pop ecx
test al, al
je 0x47539d
movzx ebx, si
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476631
leave
ret 4
mov word [ebp - 0x28], si
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 [0x4a2330]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x47540c
sub eax, 1
je 0x47540c
dec eax
sub eax, 1
jne 0x47539d
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.00474c1d
pop ecx
pop ecx
test al, al
je 0x47539d
mov eax, dword [ebp + 8]
movzx ebx, ax
jmp 0x47539d
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x47542d
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0047ed0c
add esp, 0x10
cmp esi, eax
jne 0x47539d
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x47539d
mov eax, dword [ebp + 8]
jmp 0x4753a0

Function at 0x4777ef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47782e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47782e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47782e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47782e
cmp dword [ecx + 0x74], 0xe
jbe 0x47782e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x492c65
Capabilities:
Read file on windows

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

Function at 0x492c70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00492aa0

Function at 0x497886
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004973d9

Function at 0x49f380
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49f3ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49f3ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401400
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
lea ecx, [esp + 4]
call fcn.00408a20
push 0
push str.._AutoUpdate.cfg
lea ecx, [esp + 0xc]
call fcn.00408420
test eax, eax
je 0x40143f
push str.HttpServer
lea ecx, [esp + 8]
call fcn.00408810
test eax, eax
je 0x40143f
mov ecx, eax
call section..text
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push str.._AutoUpdate.bin
push eax
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40149c
push eax
push 0x40ea3c
push 0x40ea44
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 4]
call fcn.00408c10
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401970
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x13c
mov eax, dword [0x41013c]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [edi]
cmp eax, 0xffffffff
push ebx
push ebp
mov ebp, dword [esp + 0x148]
mov ebx, ecx
push esi
mov dword [esp + 0x1c], ebx
je 0x4019a8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019cd
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4019d4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x401b17
xor ecx, ecx
mov dword [esp + 0x134], ecx
mov dword [esp + 0x138], ecx
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x140], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebp
mov dword [esp + 0x13c], edx
mov word [esp + 0x138], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov word [esp + 0x136], ax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x18], 1
call ebx
cmp eax, 0xffffffff
je 0x4019c6
push 0x10
lea ecx, [esp + 0x138]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401ac1
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esi + 1]
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4019c6
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x1007
push 0xffff
push esi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x2c], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [esp + 0x10], 0
jne 0x4019c6
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x18], 0
call ebx
cmp eax, 0xffffffff
je 0x4019c6
push 4
lea edx, [esp + 0x18]
push edx
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x28], 0x7d0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [edi + 4]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov dword [edi + 0x20], ebp
mov dword [edi], esi
mov eax, 1
mov ecx, dword [esp + 0x144]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409415
add esp, 0x13c
ret 4
Function at 0x4029f0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x402a0c
pop edi
mov eax, 1
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x402b1c
push ebp
lea ebx, [ebx]
cmp ebx, 0x15b0
mov eax, ebx
jb 0x402a2f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x402adb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x402a50
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x402a50
test eax, eax
je 0x402aef
nop
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x402ae0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x402a20
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x406640
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x406e70
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xc
mov eax, dword [0x41013c]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0x40
mov esi, ecx
push 0
push esi
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
lea ebp, [esi + 0x48]
push edi
mov ecx, esi
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [ebp], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
call fcn.00406dd0
xor ecx, ecx
lea eax, [esi + 0x42]
movzx edx, byte [eax - 2]
mov byte [esp + ecx + 0xc], dl
movzx edx, byte [eax - 1]
mov byte [esp + ecx + 0xd], dl
movzx edx, byte [eax]
mov byte [esp + ecx + 0xe], dl
movzx edx, byte [eax + 1]
mov byte [esp + ecx + 0xf], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x406ed3
mov eax, dword [esi + 0x40]
shr eax, 3
and eax, 0x3f
cmp eax, 0x38
mov ecx, 0x38
jb 0x406f15
mov ecx, 0x78
sub ecx, eax
push ecx
push 0x410040
mov ecx, esi
call fcn.00406dd0
push 8
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00406dd0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00409415
add esp, 0xc
ret 8
Function at 0x409415
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41013c]
jne 0x40941f
repz ret
jmp fcn.00409931
Function at 0x40cb49
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.00401200
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40cd80
push esi
call fcn.0040b0af
cmp eax, 0x3f6
jae 0x40cd80
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.0040ad80
movzx ecx, word [esi]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x5c0
cmp cx, 0x22
jne 0x40cba0
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
jmp 0x40cba3
mov dword [ebp - 0x30], esi
xor eax, eax
cmp cx, bx
je 0x40cbf9
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40cbcb
jmp 0x40cbbb
cmp word [esi + eax*2], 0x22
je 0x40cbc4
inc eax
cmp word [esi + eax*2], bx
jne 0x40cbb4
jmp 0x40cbcb
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40cbe5
cmp word [esi + eax*2 + 2], 0x2f
je 0x40cbe5
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40cbac
jmp 0x40cbf9
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40cbf3
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 8], bl
jne 0x40cc0e
cmp word [0x41ca12], bx
je 0x40cc0e
mov dword [ebp - 0x2c], 0x41ca12
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.00407f51
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40cc3a
push str..inf
push eax
call fcn.0040f257
test eax, eax
jne 0x40cc3a
mov dword [ebp - 0x34], str.Install
push dword [ebp - 0x30]
call fcn.00405e39
mov bl, al
test bl, bl
je 0x40cc60
lea eax, [ebp - 0x1040]
push eax
push dword [ebp - 0x30]
call fcn.00407a78
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], 0
je 0x40cc9e
test bl, bl
jne 0x40cc9e
push dword [ebp - 0x30]
lea eax, [ebp - 0x840]
push eax
call fcn.0040b0d9
push str..exe
lea eax, [ebp - 0x840]
push eax
call fcn.0040b146
lea eax, [ebp - 0x840]
push eax
call fcn.00405e39
test al, al
je 0x40cd7f
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x40]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40ccd0
and dword [ebp - 0x3c], 0xfffffbff
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], esi
call edi
test eax, eax
setne al
test al, al
je 0x40cd7f
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor bl, bl
cmp byte [0x41c208], bl
jne 0x40cce5
cmp byte [ebp + 8], bl
je 0x40cd1b
mov eax, dword [0x41c200]
test eax, eax
je 0x40cd05
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40cd05
push 0
push dword [0x41c200]
call esi
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 8]
call fcn.0040c418
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40cd3b
push str..exe
push dword [ebp - 4]
call fcn.0040f257
test eax, eax
je 0x40cd6b
cmp byte [0x41c208], 0
je 0x40cd51
cmp byte [ebp + 8], 0
jne 0x40cd51
push 0x1b58
jmp 0x40cd65
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x40cd7f
cmp byte [ebp + 8], 0
je 0x40cd7f
push 1
push dword [0x41c200]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100050c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100424e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100576e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call fcn.10003bd0
xor ebx, ebx
mov esi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], ebx
call dword [0x10058a9c]
cmp esi, ebx
jne 0x10005129
push ebx
call dword [0x10044318]
or eax, 0xffffffff
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x1c]
push eax
mov word [esp + 0x20], bx
call dword [0x10044310]
push edi
mov word [esp + 0x20], 8
call dword [0x10044314]
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x1000516c
cmp edi, ebx
je 0x1000516c
push 0x8007000e
mov word [esp + 0x20], 0xa
mov dword [esp + 0x28], 0x8007000e
call fcn.100010d0
mov byte [esp + 0x48], 1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
push 0x1004b630
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
call fcn.100031c0
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x100051aa
push 0x8007000e
call fcn.100010d0
mov byte [esp + 0x48], 2
mov edx, dword [esp + 0x30]
mov ecx, dword [esi]
push 1
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x4c]
push edi
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0x1c]
push esi
call eax
push edi
mov edi, dword [0x10044318]
call edi
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x4c], 0
call dword [0x10044310]
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
push 0
call edi
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10005390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100424e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100576e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
call dword [0x10058a9c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
mov dword [esp + 0x4c], ebx
call fcn.10003d30
mov esi, eax
cmp esi, ebx
jne 0x100053ff
push ebx
call dword [0x10044318]
or eax, 0xffffffff
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x20], bx
call dword [0x10044310]
push edi
mov word [esp + 0x20], 8
call dword [0x10044314]
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x10005442
cmp edi, ebx
je 0x10005442
push 0x8007000e
mov word [esp + 0x20], 0xa
mov dword [esp + 0x28], 0x8007000e
call fcn.100010d0
mov byte [esp + 0x48], 1
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
push 0x1004b630
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
call fcn.100031c0
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x10005480
push 0x8007000e
call fcn.100010d0
mov byte [esp + 0x48], 2
mov edx, dword [esp + 0x30]
mov ecx, dword [esi]
push 1
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x4c]
push edi
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0x1c]
push esi
call eax
push edi
mov edi, dword [0x10044318]
call edi
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x4c], 0
call dword [0x10044310]
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
push 0
call edi
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8