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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1003507b
add ebx, 0
push ecx
call 0x10035090
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c120291
sub ebx, dword [0x6c13fad0]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c13fac0
call fcn.10030b5a
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.10030068
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100351ee
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100351ee
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100351a5
mov eax, 1
lock xchg dword [0x6c13facc], eax
push 0x3dd1fc71
call 0x10035132
push esi
add esp, 8
cmp eax, 0
jne 0x1003511b
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10035141
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10035156
cmp ecx, edx
cmp eax, 0
je 0x1003517b
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10035165
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10035194
dec eax
loope 0x10035197
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c13facc], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100351cb
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100351e0
jmp 0x100351eb
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100350d9
Function at 0x1003c253
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1003c529
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c12c744
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c12370a
push 0xffffffffffffffff
call fcn.10033453
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1003c2bd
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1003c2d5
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1003c51d
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1003c4f1
Function at 0x1004bd23
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1004bd45
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1004bd45
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1004bd45
ret
cmp word [ebx + 4], 0x14c
jne 0x1004bd45
test word [ebx + 0x16], 2
je 0x1004bd45
test word [ebx + 0x16], 0x100
je 0x1004bd45
cmp word [ebx + 0x18], 0x10b
jne 0x1004bd45
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1004bd45
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1004bdd1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1004bd65
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10032cb0
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1004bd45
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1004bdd1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1004bd45
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1004bd45
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1004bd45
ret
cmp word [ebx + 4], 0x14c
jne 0x1004bd45
test word [ebx + 0x16], 2
je 0x1004bd45
test word [ebx + 0x16], 0x100
je 0x1004bd45
cmp word [ebx + 0x18], 0x10b
jne 0x1004bd45
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1004bd45
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1004bdd1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1004bd65
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10032cb0
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1004bd45
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1004be88
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1004bee1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1004be88
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1004be97
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10451b3a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1004bee8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10032d5e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1004bf87
add edi, 4
add eax, 2
dec ecx
jne 0x1004becd
call 0x1004bf34
loope 0x1004bf2a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1004bf84
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1004bf95
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1004bf48
cmp eax, ecx
ja 0x1004bf48
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1004bfd2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1004bfc8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1003323d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1004be97
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1004bee1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1004be88
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1004be97
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10451b3a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1004bee8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10032d5e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1004bf87
add edi, 4
add eax, 2
dec ecx
jne 0x1004becd
call 0x1004bf34
loope 0x1004bf2a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1004bf84
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1004bf95
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1004bf48
cmp eax, ecx
ja 0x1004bf48
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1004bfd2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1004bfc8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1003323d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401dd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x658e64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x9c
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401e2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Microsoft_Windows
push 0x100
push esi
call fcn.005d5367
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cc070
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp - 0x8c]
push ebx
mov ebx, dword [ebp - 0x11c]
push edi
mov edi, dword [ebp - 0x118]
test eax, eax
je 0x401e62
push eax
push edi
push ebx
push str._Version__d._d_Service_Pack__d_
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00401db0
add esp, 0x18
jmp 0x401e7d
push edi
push ebx
push str._Version__d._d_
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00401db0
add esp, 0x14
cmp ebx, 5
jne 0x401ec0
test edi, edi
jne 0x401e97
lea eax, [ebp - 0x84]
push eax
push str.Windows_2000__s
jmp 0x401f33
cmp edi, 1
jne 0x401ead
lea eax, [ebp - 0x84]
push eax
push str.Windows_XP__s
jmp 0x401f33
cmp edi, 2
jne 0x401f27
lea eax, [ebp - 0x84]
push eax
push str.Windows_2003__s
jmp 0x401f33
cmp ebx, 6
jne 0x401f10
test edi, edi
jne 0x401ed7
lea eax, [ebp - 0x84]
push eax
push str.Windows_Vista__s
jmp 0x401f33
cmp edi, 1
jne 0x401eea
lea eax, [ebp - 0x84]
push eax
push str.Windows_7__s
jmp 0x401f33
cmp edi, 2
jne 0x401efd
lea eax, [ebp - 0x84]
push eax
push str.Windows_8__s
jmp 0x401f33
cmp edi, 3
jne 0x401f27
lea eax, [ebp - 0x84]
push eax
push str.Windows_8.1__s
jmp 0x401f33
cmp ebx, 0xa
jne 0x401f27
test edi, edi
jne 0x401f27
lea eax, [ebp - 0x84]
push eax
push str.Windows_10__s
jmp 0x401f33
lea eax, [ebp - 0x84]
push eax
push str.Windows__s
push 0x100
push esi
call fcn.00401db0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop ebx
pop esi
call fcn.005cc070
mov esp, ebp
pop ebp
ret

Function at 0x401f60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push ecx
mov dword [ebp - 4], edx
xor edi, edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x401f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x401fb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x401f9d
push dword [ebp + 8]
push dword [ebp - 4]
push eax
call fcn.005cf460
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x401f9d
mov edi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402000
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x658e64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edi
push 0xf0000000
push 1
push 0
push 0
push eax
mov edi, edx
mov dword [ebp - 0x1c], 0
mov ebx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x402061
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cc070
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x402083
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4020d5
push 0
push edi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4020c6
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4020c6
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.005cf460
add esp, 0xc
jmp 0x4020cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cc070
mov esp, ebp
pop ebp
ret
Function at 0x402100
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x658e64]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0xf0000000
push 1
xor esi, esi
mov dword [ebp - 0x424], 0
push esi
mov edi, edx
mov dword [ebp - 0x420], 0
push esi
lea eax, [ebp - 0x424]
mov ebx, ecx
push eax
mov byte [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x402166
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cc070
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4021ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cc070
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021b2
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx*2 + 2]
push eax
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402294
push 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x14
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x402288
xor bl, bl
xor esi, esi
mov al, byte [ebp + esi - 0x1c]
add bl, al
movzx eax, al
push eax
push edi
push str._s_2.2X
lea eax, [ebp - 0x41c]
push 0x400
push eax
call fcn.00401db0
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push 0x400
push edi
call fcn.005d5367
inc esi
add esp, 0xc
cmp esi, 0x14
jl 0x402211
movzx eax, bl
push eax
push edi
push str._s_2.2X
lea eax, [ebp - 0x41c]
push 0x400
push eax
call fcn.00401db0
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push 0x400
push edi
call fcn.005d5367
add esp, 0xc
mov esi, 1
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cc070
mov esp, ebp
pop ebp
ret
Function at 0x4022c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x658e64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x62df8c
mov edi, ecx
mov esi, 8
push 0x200
push edi
call fcn.005d5367
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023b0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x200
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.svcVersion
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402381
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x200
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.Version
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4023a4
lea eax, [ebp - 0x204]
push eax
call fcn.005d6439
mov esi, eax
lea eax, [ebp - 0x204]
push eax
push 0x200
push edi
call fcn.005d5367
add esp, 0x10
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005cc070
mov esp, ebp
pop ebp
ret

Function at 0x4023d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
lea eax, [ebp - 0x54]
mov esi, ecx
push 0
push eax
call fcn.005cf9e0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov eax, 3
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402431
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402740
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
push 0
push 0
push 0
push str.Software_Verion_Checker
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x40277c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x50
push str.www.SecurityXploded.com
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4027a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x100
push 0
push 0
push 0
push str._product_versions.xml
push 0x62e064
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x4027e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
call esi
pop edi
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x402810
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
push dword [ebp - 0x10]
call esi
pop edi
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4027f8
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
lea eax, [ebp - 4]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x402871
mov ecx, dword [ebp - 4]
cmp ecx, 1
jb 0x402877
lea eax, [esi + ecx]
cmp eax, 0x30d40
ja 0x402877
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [esi + 0x664a50]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x402871
add esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0
call ebx
test eax, eax
jne 0x402833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov byte [esi + 0x664a50], 0
mov dword [eax], esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0x10]
call esi
pop edi
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404240
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaec
mov eax, dword [0x658e64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x110]
mov esi, edx
push 0
push eax
call fcn.005cf9e0
add esp, 0xc
lea eax, [ebp - 0x700]
push 0x3e8
push 0
push eax
call fcn.005cf9e0
add esp, 0xc
lea eax, [ebp - 0xae8]
push esi
push str._skey4.db
push 0x3e8
push eax
call fcn.00401db0
add esp, 0x10
lea eax, [ebp - 0xae8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [ebp - 0x700]
je 0x4042bb
push str.MozillaComponentsExt
jmp 0x4042c0
push str.MozillaComponents
push 0x3e8
push eax
call fcn.005d5367
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x4042fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cc070
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x318]
push 0x208
push eax
call fcn.005d5367
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x632e14
push 0x208
push eax
call fcn.005d6b58
add esp, 0xc
lea eax, [ebp - 0x700]
push eax
lea eax, [ebp - 0x318]
push 0x208
push eax
call fcn.005d6b58
lea ecx, [ebp - 0x318]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404356
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.005d6bc1
mov esi, eax
add esp, 4
test esi, esi
je 0x40439d
lea ecx, [ebp - 0x318]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404380
sub ecx, edx
lea eax, [ebp - 0x318]
push eax
lea eax, [ecx + 1]
push eax
push esi
call fcn.005d5367
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4042ed
test al, 0x10
je 0x4042ed
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005cc070
mov esp, ebp
pop ebp
ret
Function at 0x404f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404fa5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404fe6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404fe2
nop word [eax + eax]
cmp esi, edx
jae 0x404fe6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404fd0
cmp esi, edx
jb 0x404feb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x405120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0049a6a9