joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59e360
Capabilities:
Check http status code

Disassembly:
push 0x80004003
call fcn.0062ba80
mov eax, dword [ebp - 0x14]

Function at 0x5aba40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49486b
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x516a90]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
push esi
mov eax, dword [0x516a90]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x164]
xor eax, eax
mov dword [esp + 0xc], 0
push 0x11c
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
call fcn.00611070
mov esi, dword [fcn.00499378]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0x11c
call esi
test eax, eax
jne 0x5abafe
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], 0x114
call esi
test eax, eax
jne 0x5abafe
push 0x4ffe14
mov ecx, ebp
call fcn.0059fa40
jmp 0x5abc7a
push 0x50208c
push 0x5020a0
call dword [fcn.004993a0]
push eax
call dword [fcn.0049937c]
test eax, eax
je 0x5abb22
lea ecx, [esp + 0x10]
push ecx
call eax
jmp 0x5abb2d
lea edx, [esp + 0x10]
push edx
call dword [0x499374]
call 0x603e8c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x5abb47
push 0x80004005
call fcn.0059d040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x15c], 0
cmp dword [esp + 0x38], 6
jne 0x5abba7
cmp dword [esp + 0x3c], 0
jne 0x5abc40
cmp byte [esp + 0x14e], 1
jne 0x5abb99
call fcn.005c3b50
test al, al
lea ecx, [esp + 0xc]
je 0x5abb92
push 0x5020bc
jmp 0x5abba2
push 0x5020cc
jmp 0x5abba2
push 0x5020d8
lea ecx, [esp + 0x10]
call fcn.0059fb40
mov esi, 5
cmp dword [esp + 0x38], esi
jne 0x5abc29
cmp dword [esp + 0x3c], 2
jne 0x5abbf9
push 0x59
call dword [0x49959c]
test eax, eax
je 0x5abbcc
push 0x5020ec
jmp 0x5abbea
cmp byte [esp + 0x14e], 1
jne 0x5abbe5
cmp word [esp + 0x10], 9
jne 0x5abbe5
push 0x5020fc
jmp 0x5abbea
push 0x502108
lea ecx, [esp + 0x10]
call fcn.0059fb40
cmp dword [esp + 0x38], esi
jne 0x5abc29
cmp dword [esp + 0x3c], 1
jne 0x5abc14
push 0x502114
lea ecx, [esp + 0x10]
call fcn.0059fb40
cmp dword [esp + 0x38], esi
jne 0x5abc29
cmp dword [esp + 0x3c], 0
jne 0x5abc40
push 0x50211c
lea ecx, [esp + 0x10]
call fcn.0059fb40
cmp dword [esp + 0x38], 4
ja 0x5abc40
push 2
push 0x502124
lea ecx, [esp + 0x14]
call fcn.005a07c0
mov esi, dword [esp + 0xc]
add esi, 0xfffffff0
push esi
call fcn.005a08b0
add eax, 0x10
add esp, 4
mov dword [ebp], eax
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5abc7a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebp
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0060e648
add esp, 0x154
ret
Function at 0x5c3950
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x516a90]
xor eax, esp
mov dword [esp + 0x30], eax
mov edx, dword [0x499ea8]
mov eax, dword [0x499ea0]
push ebx
mov dword [esp + 0xc], edx
mov edx, dword [0x499e90]
push esi
mov dword [esp + 8], eax
mov al, byte [0x499eac]
push edi
mov edi, ecx
mov ecx, dword [0x499ea4]
mov dword [esp + 0x2c], edx
movzx edx, word [0x499e9c]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x499e8c]
mov byte [esp + 0x18], al
mov eax, dword [0x499e94]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x499e98]
mov dword [esp + 0x30], eax
mov eax, dword [0x499e80]
mov word [esp + 0x38], dx
movzx edx, word [0x499e88]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x499e84]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
mov word [esp + 0x24], dx
mov dword [esp + 0x20], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5c39e2
sub eax, edx
mov edx, eax
lea ecx, [esp + 0xc]
lea esi, [esp + edx + 0xc]
mov eax, ecx
cmp eax, esi
jae 0x5c3a15
lea ecx, [ecx]
mov al, cl
lea ebx, [esp + 0xc]
sub al, bl
imul dl
add al, 0x29
xor byte [ecx], al
add ecx, 1
cmp ecx, esi
jb 0x5c3a00
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5c3a20
sub eax, edx
mov edx, eax
lea ecx, [esp + 0x28]
lea esi, [esp + edx + 0x28]
mov eax, ecx
cmp eax, esi
jae 0x5c3a55
jmp 0x5c3a40
mov al, cl
lea ebx, [esp + 0x28]
sub al, bl
imul dl
add al, 0x29
xor byte [ecx], al
add ecx, 1
cmp ecx, esi
jb 0x5c3a40
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [0x4992cc]
push eax
call dword [fcn.0049937c]
mov dword [edi + 4], eax
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5c3a76
sub eax, edx
push eax
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00611070
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5c3a98
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.00611070
lea eax, [esp + 0x28]
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5c3ac0
sub eax, edx
mov edx, eax
lea ecx, [esp + 0x1c]
lea esi, [esp + edx + 0x1c]
mov eax, ecx
cmp eax, esi
jae 0x5c3af5
jmp 0x5c3ae0
mov al, cl
lea ebx, [esp + 0x1c]
sub al, bl
imul dl
add al, 0x29
xor byte [ecx], al
add ecx, 1
cmp ecx, esi
jb 0x5c3ae0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x34]
push ecx
call dword [fcn.004992d0]
mov ecx, dword [esp + 0x3c]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [edi + 8], edx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0060e648
add esp, 0x34
ret
Function at 0x5c8bf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x140
push ebp
push esi
mov esi, dword [esp + 0x14c]
push edi
mov edi, dword [esp + 0x154]
lea eax, [esp + 0xc]
mov dword [esi], 0
push eax
mov ebp, ecx
mov byte [edi], 0
call fcn.005c8b70
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x5c8c3e
cmp dword [esp + 0x18], 0
mov dword [esi], eax
setne cl
mov byte [edi], cl
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x140
ret 8
mov edx, dword [0x519298]
mov eax, dword [edx + 0x1c]
push ebx
xor ebx, ebx
cmp dword [eax + 8], ebx
jle 0x5c8d47
test ebx, ebx
jl 0x5c8d56
cmp ebx, dword [eax + 8]
jge 0x5c8d56
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edx + ebx*4]
call fcn.005c8b70
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x5c8d32
movzx ecx, byte [ebp + 8]
cmp dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
jne 0x5c8cab
movzx edx, byte [ebp + 9]
cmp dword [esp + 0x38], edx
jne 0x5c8cab
movzx edx, byte [ebp + 0xa]
cmp dword [esp + 0x3c], edx
jne 0x5c8cab
test ecx, ecx
setne dl
mov dword [esi], eax
mov byte [edi], dl
movzx edx, byte [ebp + 8]
cmp dword [esp + 0x74], edx
jne 0x5c8cd2
movzx edx, byte [ebp + 9]
cmp dword [esp + 0x78], edx
jne 0x5c8cd2
movzx edx, byte [ebp + 0xa]
cmp dword [esp + 0x7c], edx
jne 0x5c8cd2
test ecx, ecx
setne dl
mov dword [esi], eax
mov byte [edi], dl
movzx edx, byte [ebp + 8]
cmp dword [esp + 0xb4], edx
jne 0x5c8d02
movzx edx, byte [ebp + 9]
cmp dword [esp + 0xb8], edx
jne 0x5c8d02
movzx edx, byte [ebp + 0xa]
cmp dword [esp + 0xbc], edx
jne 0x5c8d02
test ecx, ecx
setne dl
mov dword [esi], eax
mov byte [edi], dl
movzx edx, byte [ebp + 8]
cmp dword [esp + 0xf4], edx
jne 0x5c8d32
movzx edx, byte [ebp + 9]
cmp dword [esp + 0xf8], edx
jne 0x5c8d32
movzx edx, byte [ebp + 0xa]
cmp dword [esp + 0xfc], edx
jne 0x5c8d32
mov dword [esi], eax
test ecx, ecx
setne al
mov byte [edi], al
mov ecx, dword [0x519298]
mov eax, dword [ecx + 0x1c]
add ebx, 1
cmp ebx, dword [eax + 8]
jl 0x5c8c53
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x140
ret 8
call 0x602d64
int3
Function at 0x5f14f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ecx, ebp
shr ecx, 5
push esi
mov esi, dword [esp + 0x14]
add ecx, 1
cmp ebp, ecx
push edi
mov edi, ebp
mov dword [esp + 0x1c], ebp
mov edx, ebp
jb 0x5f152f
movzx eax, byte [esi + edx - 1]
mov ebx, edi
shl ebx, 5
add eax, ebx
mov ebx, edi
shr ebx, 2
add eax, ebx
sub edx, ecx
xor edi, eax
cmp edx, ecx
jae 0x5f1510
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
mov eax, dword [ecx]
sub edx, 1
and edx, edi
mov eax, dword [eax + edx*4]
test eax, eax
je 0x5f15f4
jmp 0x5f1550
cmp dword [eax + 0xc], ebp
jne 0x5f15ea
cmp ebp, 4
mov ecx, ebp
lea edx, [eax + 0x10]
jb 0x5f1577
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x5f157b
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x5f1563
test ecx, ecx
je 0x5f15e0
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x5f15ca
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x5f15dc
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x5f15ca
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x5f15dc
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x5f15ca
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x5f15dc
movzx edi, byte [esi]
movzx ecx, byte [edx]
sub edi, ecx
je 0x5f15dc
test edi, edi
mov edi, dword [esp + 0x1c]
mov ecx, 1
jg 0x5f15e2
or ecx, 0xffffffff
jmp 0x5f15e2
mov edi, dword [esp + 0x1c]
xor ecx, ecx
test ecx, ecx
je 0x5f1604
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x5f1550
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov eax, edi
call fcn.005f1470
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x613b75
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x613bb2
cmp dword [ebp + 0x14], edi
je 0x613bb2
cmp ecx, edi
jne 0x613bb9
call fcn.00613f4f
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x613bcd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x613bee
cmp ebx, 0xffffffff
je 0x613bdd
push ebx
push edi
push ecx
call fcn.00612270
add esp, 0xc
cmp esi, edi
je 0x613b9a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x613b9a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x613c0a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x613c11
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x613d02
Function at 0x4088e2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4088f5
push 0x80004005
call fcn.00406a8b
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [0x41d08c]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4088fc
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [0x41d004]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40892c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x425058]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [0x41d010]
mov ebx, dword [0x41d008]
mov edi, eax
cmp edi, esi
jne 0x408a49
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x40899a
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x408a49
mov edi, dword [0x41d00c]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x408a0d
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.0040892c
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x408a6c
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], pe_nt_image_headers32
call edi
test eax, eax
je 0x4089d2
cmp dword [ebp - 0x210], esi
je 0x408a33
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [0x41d018]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x408a59
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c021
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x408a7c
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x408a5b
Function at 0x40a3d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x422dd0
push 0x40e9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x425058]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test eax, eax
jne 0x40a417
push eax
call dword [0x41d0c8]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp word [eax], 0x5a4d
je 0x40a42f
push 0xc1
jmp 0x40a4ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x40a449
push 0xbf
jmp 0x40a4ef
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x40a4ea
movzx eax, ax
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], edx
movzx eax, word [ecx + 6]
cmp edx, eax
jae 0x40a4ea
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + ecx*8]
mov edi, str..detour
mov esi, ebx
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a4d9
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40a4ea
cmp dword [ebx + 0x10], 0
je 0x40a4ea
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x40a4ea
cmp dword [esi + 4], 0x727444
jne 0x40a4ea
cmp dword [esi + 8], 0
jne 0x40a4b4
mov dword [esi + 8], eax
push 0
call dword [0x41d070]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add edx, 1
mov ecx, dword [ebp - 0x24]
jmp 0x40a462
push 0xc0
call dword [0x41d070]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a7a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x422db0
push 0x40e9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x425058]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [0x41d1b0]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x40a83f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a83f
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x40a83f
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x40a83f
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab00
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea ebx, [esi - 0x7ff80000]
ja 0x40ab19
mov ebx, 0x10000
cmp esi, 0x80000000
lea ebp, [esi + 0x7ff80000]
jb 0x40ab2c
mov ebp, 0xfff80000
mov eax, dword [0x43c64c]
test eax, eax
mov edx, dword [0x43c648]
jne 0x40ab46
test edx, edx
je 0x40ab59
mov eax, edx
mov dword [0x43c64c], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40ab59
cmp ecx, ebx
jb 0x40ab59
cmp ecx, ebp
jbe 0x40ac47
test edx, edx
mov eax, edx
mov dword [0x43c64c], eax
je 0x40ab87
test eax, eax
je 0x40ab7b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40ab7b
cmp ecx, ebx
jb 0x40ab7b
cmp ecx, ebp
jbe 0x40ac42
mov eax, dword [eax + 4]
test eax, eax
jne 0x40ab68
mov dword [0x43c64c], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x40abc2
lea edi, [esi - 0x40000000]
push esi
mov eax, edi
call fcn.0040a970
add esp, 4
test eax, eax
jne 0x40ac06
push ebx
mov eax, edi
call fcn.0040aa40
add esp, 4
test eax, eax
jne 0x40ac06
cmp esi, 0x40000000
jae 0x40abe8
lea edi, [esi + 0x40000000]
push esi
mov eax, edi
call fcn.0040aa40
add esp, 4
test eax, eax
jne 0x40ac06
push ebp
mov eax, edi
call fcn.0040a970
add esp, 4
test eax, eax
jne 0x40ac06
push ebx
mov eax, esi
call fcn.0040aa40
add esp, 4
test eax, eax
jne 0x40ac06
push ebp
mov eax, esi
call fcn.0040a970
add esp, 4
test eax, eax
je 0x40ac6f
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x43c648]
mov dword [eax + 4], ecx
mov dword [0x43c64c], eax
mov dword [0x43c648], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
nop
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x40ac30
mov dword [eax + 8], edx
jmp 0x40ac47
mov dword [0x43c64c], eax
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x40ac6f
cmp esi, ebp
ja 0x40ac6f
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.0040c2d0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40acb0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x43c648]
test eax, eax
push ebx
mov ebx, 0x43c648
je 0x40ad1d
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x40ad12
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x40ace5
cmp ecx, eax
jb 0x40ad12
cmp ecx, edi
jae 0x40ad12
add edx, 1
add esi, 0x48
cmp edx, 0x38d
jb 0x40acd7
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [0x41d1fc]
mov dword [0x43c64c], 0
jmp 0x40ad15
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x40acc1
pop edi
pop esi
pop ebx
ret
Function at 0x4065c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45945f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push esi
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
push 0x492a2c
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea ecx, [esp + 8]
push esi
push 0
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 2
call fcn.004581c0
lea ecx, [esp + 8]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
push 0x23
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea edx, [esp + 8]
dec esi
inc eax
push esi
push eax
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call fcn.004581c0
lea ecx, [esp + 8]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0045822c
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x408780
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4087da
mov ecx, dword [esp + 0x10]
lea edx, [esp]
neg ecx
push 4
push edx
sbb cl, cl
push 4
and cl, 0x96
push eax
mov eax, dword [esp + 0x14]
dec cl
push str.NoDriveTypeAutoRun
push eax
mov byte [esp + 0x18], cl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 8]
push edx
push 0x1388
push 2
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esp, 0xc
ret 4

Function at 0x408800
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov edi, 2
jne 0x40883b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40887c
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x408865
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x408854
mov dword [esi + 0x3cc8], edi
jmp 0x40887c
cmp eax, 1
jne 0x40887c
mov dword [esi + 0x3cc8], 3
jmp 0x40887c
cmp eax, 6
jne 0x40887c
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40887c
mov dword [esi + 0x3cc8], 4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
and eax, 0xffff
cmp eax, 0x404
je 0x4088bb
cmp eax, 0x804
je 0x4088a8
mov dword [esi + 0x3ccc], 0
pop edi
pop esi
add esp, 0x9c
ret
mov dword [esi + 0x3ccc], 1
pop edi
pop esi
add esp, 0x9c
ret
mov dword [esi + 0x3ccc], edi
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x409b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x459830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 0x3db8]
lea ecx, [esp + 0xc]
push eax
push str._scom.ini
push ecx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push esi
push 0x492ce8
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0x18
push eax
push ecx
push str.Group
push 0x492cdc
call ebx
push 0x4970cc
lea ecx, [esp + 0x14]
call fcn.004581ae
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x409c45
imul esi, eax
push ebp
mov ebp, eax
lea esi, [esi*2 + 0x4971ac]
xor edx, edx
lea eax, [esp + 0x10]
mov dx, word [esi]
push edx
push str._04X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
add esi, 2
dec ebp
jne 0x409c18
pop ebp
mov edx, dword [edi + 0x3db8]
lea eax, [esp + 0xc]
push edx
push str._scom.ini
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push edx
push str.Status
push 0x492cdc
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8