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

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x642cd19d
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x642cd33f
cmp edi, dword [ebp + 0x10]
jb 0x642cd33f
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.642ccc67
inc edi
jmp 0x642cd226
jmp 0x642cd233
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.642ccc67
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.642ccc67
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x642cd287
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x642cd26b
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.642cd2b5
add dword [eax], 0x39
jle 0x642cd291
sub al, 0xf5
mov ch, al
call fcn.642cd2ca
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x642cefa2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x642cefb8
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x642cefc9
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.642cf00a
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x642d1376
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 0x642d12bf
add ebx, 0
push ecx
call 0x642d12d4
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, 0x6dc2419b
sub ebx, dword [0x6dc439da]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6dc439ca
call fcn.642ccd9e
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.642cc2ac
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x642d1432
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x642d1432
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 0x642d13e9
mov eax, 1
lock xchg dword [0x6dc439d6], eax
push 0x3dd1fc71
call 0x642d1376
push esi
add esp, 8
cmp eax, 0
jne 0x642d135f
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x642d1385
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x642d139a
cmp ecx, edx
cmp eax, 0
je 0x642d13bf
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 0x642d13a9
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.642d13d8
dec eax
loope 0x642d13db
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6dc439d6], 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 0x642d140f
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x642d1424
jmp 0x642d142f
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x642d131d
Function at 0x642d8497
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 0x642d876d
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6dc3064e
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6dc27614
push 0xffffffffffffffff
call fcn.642cf697
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 0x642d8501
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.642d8519
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 0x642d8761
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x642d8735
Function at 0x642e7f67
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 0x642e7f89
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e7f89
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e7f89
ret
cmp word [ebx + 4], 0x14c
jne 0x642e7f89
test word [ebx + 0x16], 2
je 0x642e7f89
test word [ebx + 0x16], 0x100
je 0x642e7f89
cmp word [ebx + 0x18], 0x10b
jne 0x642e7f89
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e7f89
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e8015
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e7fa9
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642ceef4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e7f89
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 0x642e8015
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 0x642e7f89
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e7f89
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e7f89
ret
cmp word [ebx + 4], 0x14c
jne 0x642e7f89
test word [ebx + 0x16], 2
je 0x642e7f89
test word [ebx + 0x16], 0x100
je 0x642e7f89
cmp word [ebx + 0x18], 0x10b
jne 0x642e7f89
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e7f89
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e8015
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e7fa9
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642ceef4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e7f89
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 0x642e80cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e8125
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e80cc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e80db
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 0x646edd7e
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 0x642e812c
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.642cefa2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e81cb
add edi, 4
add eax, 2
dec ecx
jne 0x642e8111
call 0x642e8178
loope 0x642e816e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e81c8
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 0x642e81d9
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 0x642e818c
cmp eax, ecx
ja 0x642e818c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e8216
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e820c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642cf481
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x642e80db
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e8125
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e80cc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e80db
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 0x646edd7e
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 0x642e812c
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.642cefa2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e81cb
add edi, 4
add eax, 2
dec ecx
jne 0x642e8111
call 0x642e8178
loope 0x642e816e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e81c8
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 0x642e81d9
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 0x642e818c
cmp eax, ecx
ja 0x642e818c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e8216
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e820c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642cf481
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x5b82dc80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
invalid
invalid
dec esp
invalid

Function at 0x5b82dff0
Capabilities:
Inspect section memory permissions

Disassembly:
add byte [eax], al
cmp eax, ebx
je 0x5b82e257
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x5b82e00d
cmp dword [eax + 0xc], ebx
je 0x5b82e0b0
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.5b82da68
cli
or dword [edx + ecx*4 + 0x39], ebp
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.5b82da68
shr esi, 1
aad 0x5c
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x5b82e11c
add eax, esi
Function at 0x5b82e0e0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x5b82e11c
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x5b82e117
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x5b82e101
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x5b82e109
cmp edx, ebx
jne 0x5b82e257
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x5b82e0d8
add eax, dword [eax + 4]
jmp 0x5b82e0c5
mov dword [ebp + 0xc], ebx
jmp 0x5b82e127
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x5b82e13f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x5b82e15d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x5b82e1bb
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x5b82e1a2
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x5b82e1ab
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x5b82e1b5
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x5b82e197
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x5b82e121
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x5b82e208
dec eax
je 0x5b82e1ff
sub eax, 3
je 0x5b82e1f6
mov dword [ebp - 4], 0x40
jmp 0x5b82e225
mov dword [ebp - 4], 4
jmp 0x5b82e20b
mov dword [ebp - 4], 0x20
jmp 0x5b82e20b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x5b82e257
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x5b82e1d7
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.5b82da68
or esi, dword [edi]
dec ebx
cmp al, 0xff
jne 0x5b82e262
push 1
push esi
call edi
mov eax, esi
jmp 0x5b82e263
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5b82e550
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.5b82da78
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.5b82da2d
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.5b82da68
aam 0xe7
out 0x53, eax
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.5b82da78
hlt
invalid
call [ecx + 0x50]
Function at 0x401060
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push 0x64
push eax
mov edi, 0x4030e4
push 0x404048
push edi
call fcn.00401b75
add esp, 0x10
test eax, eax
je 0x40116b
xor ebx, ebx
cmp byte [ebp - 0x68], bl
je 0x4010b3
lea eax, [ebp - 0x25c]
push 0x63
push eax
lea eax, [ebp - 0x68]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40116b
mov esi, 0x12c
lea eax, [ebp - 0x194]
push esi
push eax
push ebx
push str.Settings
push str.SettingsDir
push edi
call fcn.00401d96
add esp, 0x18
test eax, eax
je 0x40116b
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xa
cmp eax, esi
jae 0x40116b
lea eax, [ebp - 0x194]
push str.s_pid.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x194]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40116b
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 4]
push ebx
push eax
shl esi, 1
lea eax, [ebp - 0x25c]
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jne 0x40115e
push 1
pop eax
jmp 0x40116d
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401c2d
xor eax, eax
jmp 0x401c8a
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401c78
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x401c78
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x401c78
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x401d16
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp + 0xc]
xor edi, edi
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401d41
xor eax, eax
jmp 0x401d93
cmp dword [ebp + 0x14], edi
push esi
jne 0x401d55
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401d72
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x401d87
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x401ffb
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
push eax
call fcn.00401a7e
test eax, eax
pop ecx
je 0x402057
cmp byte [esi + 1], 0x3a
jne 0x402057
cmp byte [esi + 2], 0x5c
jne 0x402057
push 4
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x40203f
cmp eax, 4
jne 0x402057
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402057
and eax, 0x10
cmp al, 0x10
je 0x402057
push 1
pop eax
jmp 0x402059
xor eax, eax
pop esi
leave
ret
Function at 0x10001ff0
Capabilities:
Get http content length
Read data from internet
Receive data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
mov eax, dword [0x10008018]
xor eax, esp
mov dword [esp + 0x838], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x74]
mov dword [eax], 0
cmp dword [edi], 0
mov dword [esp + 0x10], eax
jne 0x10002063
cmp dword [esi + 0x14], 0
jne 0x10002063
mov ecx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push 0x20000005
push ecx
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10002063
mov eax, dword [edi]
test eax, eax
jbe 0x10002063
add eax, 1
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov dword [esi + 0x14], eax
cmp dword [esi + 0x78], 2
jne 0x10002072
mov byte [esi + 0x71], 1
jmp 0x100021a7
mov ebx, dword [sym.imp.WININET.dll_InternetReadFileExA]
mov ecx, dword [esi + 0xc]
xor eax, eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
push 8
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x4c]
push ecx
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0x7ff
call ebx
test eax, eax
je 0x10002146
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10002113
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x30]
add eax, edx
cmp eax, dword [edi]
jbe 0x100020f3
mov dword [edi], eax
add eax, 1
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_realloc]
add esp, 8
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x3c]
add esp, 0xc
add dword [esi + 0x10], ecx
cmp dword [esp + 0x30], 0
jne 0x1000211e
mov byte [esi + 0x71], 1
cmp byte [esi + 0x71], 0
je 0x10002078
mov ecx, dword [edi]
test ecx, ecx
jbe 0x10002139
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10002139
mov byte [eax + ecx], 0
mov eax, dword [esi + 0x10]
cmp eax, dword [edi]
jae 0x10002194
mov byte [esi + 0x71], 0
jmp 0x100021a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov edx, dword [esp + 0x10]
mov dword [edx], eax
jne 0x10002172
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.100037a7
mov esp, ebp
pop ebp
ret 4
push eax
push 0x1c3
call fcn.10002440
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.ImHttp__03X____13.13hs:_04d_____ImWinInet:_Error_Reading_request___d__n_n
call fcn.10002470
add esp, 0x14
jmp 0x100021a7
cmp byte [esi + 0x70], 0
je 0x100021a7
cmp byte [esi + 0x71], 0
je 0x100021a7
mov ecx, esi
call sym.IMHttpComm.dll_private:_bool___thiscall_CImWinInetRequest::SaveToFile_void_
mov ecx, dword [esp + 0x844]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.100037a7
mov esp, ebp
pop ebp
ret 4