joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401330
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
mov dword [esi], fcn.00401520
mov eax, dword [0x40f960]
test eax, eax
jne 0x4013c9
push 0x40f7d0
push 0x202
mov dword [0x40f960], 1
call dword [0x40b184]
test eax, eax
je 0x401380
mov dword [0x40f964], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 2
mov eax, esi
pop esi
ret
cmp word [0x40f7d0], 0x202
je 0x4013ad
mov dword [0x40f964], 0
call dword [0x40b188]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 2
mov eax, esi
pop esi
ret
mov dword [0x40f964], 1
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 2
mov eax, esi
pop esi
ret
mov eax, dword [0x40f960]
inc eax
mov dword [0x40f960], eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 2
mov eax, esi
pop esi
ret

Function at 0x401450
Capabilities:
Create tcp socket

Disassembly:
mov eax, dword [0x40f964]
push esi
test eax, eax
mov esi, ecx
je 0x401474
push 6
push 1
push 2
call dword [0x40b180]
cmp eax, 0xffffffff
je 0x401474
mov dword [esi + 4], eax
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x4014b0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [0x40f964]
push esi
test eax, eax
mov esi, ecx
jne 0x4014c3
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4014d0
xor eax, eax
pop esi
pop ecx
ret
lea ecx, [esp + 4]
push 4
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x18], 1
mov word [esp + 0x1a], 0
call dword [0x40b174]
test eax, eax
jne 0x40151a
mov edx, dword [esi + 4]
push edi
push edx
call dword [0x40b178]
push 2
mov ecx, esi
mov edi, eax
call fcn.00401c30
mov eax, edi
mov dword [esi + 4], 0xffffffff
pop edi
pop esi
pop ecx
ret

Function at 0x401520
Capabilities:
Connect socket

Disassembly:
mov eax, dword [0x40f964]
sub esp, 0x10
test eax, eax
push esi
push edi
mov esi, ecx
jne 0x40153b
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 8
cmp dword [esi + 4], 0xffffffff
jne 0x40154c
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 8
mov eax, dword [esp + 0x1c]
push eax
call dword [0x40b194]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401568
pop edi
or eax, eax
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
mov word [esp + 0xc], 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
call dword [0x40b170]
mov ecx, dword [esi + 4]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push ecx
mov dword [esp + 0x18], edi
call dword [0x40b198]
mov edi, eax
test edi, edi
jne 0x4015b4
push eax
mov ecx, esi
call fcn.00401c30
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x4015c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x40f964]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
jne 0x4015d9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
mov ecx, dword [ebx + 4]
or eax, 0xffffffff
cmp ecx, eax
je 0x40161f
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
mov esi, eax
jle 0x40161f
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
push 0
lea eax, [edi + ebp]
push esi
push eax
push ecx
call dword [0x40b16c]
test eax, eax
jl 0x4015cf
je 0x40161d
sub esi, eax
add edi, eax
test esi, esi
jg 0x4015f3
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x401a70
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x401a82
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401a91
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x401aa0
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x401aaf
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov ebp, dword [esp + 0x18]
test ebp, ebp
jg 0x401abe
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test eax, eax
jg 0x401acd
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x401adc
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [0x40b194]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x401af5
push esi
call dword [0x40b190]
jmp 0x401b04
push 2
lea eax, [esp + 0x14]
push 4
push eax
call dword [0x40b18c]
mov ebx, eax
test ebx, ebx
jne 0x401b11
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov edx, dword [ebx]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 1]
mov esi, ecx
cmp esi, eax
jle 0x401b2b
mov esi, eax
mov edi, dword [esp + 0x18]
push esi
push edx
push edi
call fcn.00403180
mov byte [esi + edi], 0
mov ecx, dword [ebx + 4]
add esp, 0xc
mov edx, dword [ecx]
test edx, edx
jne 0x401b50
mov edx, dword [esp + 0x20]
mov byte [edx], 0
jmp 0x401b7c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
not ecx
dec ecx
dec eax
mov esi, ecx
cmp esi, eax
jle 0x401b69
mov esi, eax
mov edi, dword [esp + 0x20]
push esi
push edx
push edi
call fcn.00403180
add esp, 0xc
mov byte [esi + edi], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [0x40b158]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x2c]
lea eax, [ecx - 1]
cmp esi, eax
jle 0x401ba7
mov esi, eax
mov edi, dword [esp + 0x28]
push esi
push edx
push edi
call fcn.00403180
add esp, 0xc
mov byte [esi + edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401c40
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push esi
push edi
push 1
push 0
push 0
call dword [0x40b014]
mov esi, eax
test esi, esi
jne 0x401c62
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push 0x10004
push str.RealSvc
push esi
call dword [0x40b018]
mov edi, eax
test edi, edi
jne 0x401cad
call dword [0x40b060]
cmp eax, 5
jne 0x401c96
push esi
call dword [0x40b01c]
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push esi
cmp eax, 0x424
call dword [0x40b01c]
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push edi
call dword [0x40b020]
test eax, eax
jne 0x401cd4
push edi
mov edi, dword [0x40b01c]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0xc]
push edi
cmp eax, 1
je 0x401d04
mov edi, dword [0x40b01c]
call edi
push esi
call edi
push 0x9c4
call dword [0x40b05c]
call fcn.00401c40
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
call dword [0x40b024]
test eax, eax
push edi
mov edi, dword [0x40b01c]
jne 0x401d25
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x401f70
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
call dword [0x40b140]
test eax, eax
jl 0x401faf
lea ecx, [esp]
push ecx
push 0x26
push 0
call dword [0x40b138]
test eax, eax
jl 0x401faf
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push edx
push eax
call dword [0x40b13c]
neg eax
sbb eax, eax
neg eax
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x402df0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [esp + 0x20c]
push ebp
xor ebp, ebp
push esi
push edi
test ebx, ebx
je 0x402e6d
mov edi, dword [esp + 0x21c]
test edi, edi
je 0x402e6d
mov esi, dword [esp + 0x220]
test esi, esi
je 0x402e6d
lea eax, [esp + 0x14]
push 0x200
push eax
call fcn.00401fc0
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0xf003f
push ebp
push edx
push 0x80000002
call dword [0x40b008]
test eax, eax
jne 0x402e6d
push esi
push edi
push eax
push eax
mov eax, dword [esp + 0x20]
push ebx
push eax
call dword [0x40b00c]
test eax, eax
je 0x402e7a
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x40b010]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x40b010]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x204
ret

Function at 0x402ea0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x204
push ebx
push esi
push edi
mov edi, dword [esp + 0x214]
xor ebx, ebx
test edi, edi
je 0x402f42
mov esi, dword [esp + 0x218]
test esi, esi
je 0x402f42
lea eax, [esp + 0x10]
push 0x200
push eax
call fcn.00401fc0
add esp, 8
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000002
call dword [0x40b008]
test eax, eax
je 0x402f19
lea eax, [esp + 0xc]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea ecx, [esp + 0x28]
push ebx
push ecx
push 0x80000002
call dword [section..rdata]
test eax, eax
jne 0x402f42
push esi
call dword [0x40b064]
mov edx, dword [esp + 0xc]
inc eax
push eax
push esi
push 1
push 0
push edi
push edx
call dword [0x40b004]
test eax, eax
je 0x402f4e
mov eax, dword [esp + 0xc]
push eax
call dword [0x40b010]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x204
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x40b010]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x204
ret

Function at 0x403000
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [0x40b008]
test eax, eax
je 0x40303c
mov eax, dword [esp]
test eax, eax
je 0x403038
push eax
call dword [0x40b010]
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
push esi
push eax
push ecx
call dword [0x40b028]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [0x40b010]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x403070
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
lea eax, [esp + 4]
push eax
call dword [0x40b140]
test eax, eax
jl 0x4030d5
lea ecx, [esp]
push ecx
push 0x10
push 0
call dword [0x40b138]
test eax, eax
jl 0x4030d5
mov eax, dword [esp]
lea edx, [esp + 8]
push edx
push eax
call dword [0x40b13c]
test eax, eax
je 0x4030d5
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
lea edx, [esp + 8]
push ecx
push edx
push eax
call fcn.00403180
add esp, 0xc
mov eax, 1
add esp, 0x110
ret
xor eax, eax
add esp, 0x110
ret
Function at 0x7097e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x206000]
lea eax, [edi + 0x2e424c]
push dword [eax]
mov dword [eax], 0xd561841a
push eax
push edi
jmp 0x70980a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x709811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x709800
mov eax, 1
add ebx, ebx
jne 0x709823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x709834
jne 0x709853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x709853
dec eax
add ebx, ebx
jne 0x709840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x709818
add ebx, ebx
jne 0x70984f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7098a5
xor ecx, ecx
sub eax, 3
jb 0x70986b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7098da
sar eax, 1
mov ebp, eax
jmp 0x709876
add ebx, ebx
jne 0x709876
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x709844
inc ecx
add ebx, ebx
jne 0x709884
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x709844
add ebx, ebx
jne 0x709891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x709886
jne 0x7098a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x709886
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7098c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7098b6
jmp 0x709806
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7098c4
add edi, ecx
jmp 0x709806
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xc0d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7098e6
cmp byte [edi], 0x4d
jne 0x7098e6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7098eb
lea edi, [esi + 0x305000]
mov eax, dword [edi]
or eax, eax
je 0x709963
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31a3d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31a5b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x709918
mov ecx, edi
jns 0x709947
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31a5bc]
or eax, eax
je 0x70995d
mov dword [ebx], eax
add ebx, 4
jmp 0x709935
call dword [esi + 0x31a5b8]
mov ebp, dword [esi + 0x31a5c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2a7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x709997
sub esp, 0xffffff80
jmp 0x56a69f
Function at 0x4026a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c4
call fcn.00403fb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr ecx, 4
shr edx, 8
or dl, cl
movsx ecx, al
movsx ebx, dl
imul ebx, ecx
mov cl, al
add cl, cl
xor bl, al
lea edx, [ecx + eax]
add bl, dl
mov byte [ebp + eax - 0x3a988], bl
inc eax
cmp eax, 0x3a980
jb 0x402724
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x403b3b
Capabilities:
Parse pe header

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

Function at 0xfb4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xfb41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xfb407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfb406a
add dl, dl
jne 0xfb4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfb40dc
xor eax, eax
add dl, dl
jne 0xfb4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfb417d
add dl, dl
jne 0xfb40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfb40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfb40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfb40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xfb40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xfb4075
mov eax, 1
add dl, dl
jne 0xfb40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfb40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfb40e1
sub eax, ebx
mov ebx, 1
jne 0xfb4128
mov ecx, 1
add dl, dl
jne 0xfb410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfb4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfb4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfb4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xfb413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfb414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfb4136
cmp eax, 0x7d00
jae 0xfb416d
cmp eax, 0x500
jb 0xfb4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfb4075
cmp eax, 0x7f
ja 0xfb4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfb4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xfb419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xfb4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40ba60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d59b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00461f52
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bae2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045fb30
mov eax, dword [eax]
push 0x4861f0
push eax
call fcn.004526d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004621dd
test bl, bl
je 0x40bae2
push 0x4861f0
lea ecx, [esp + 0xc]
call fcn.0046256d
push 0x489d6c
lea ecx, [esp + 0xc]
call fcn.0046256d
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40bb1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004621dd
jmp 0x40bbe9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40bba2
lea edx, [esp + 0x7c]
push 0x489d68
push edx
call fcn.004526d4
add esp, 8
test eax, eax
je 0x40bba2
lea eax, [esp + 0x7c]
push 0x489d64
push eax
call fcn.004526d4
add esp, 8
test eax, eax
je 0x40bba2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bb32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004621dd
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40ce60
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40cec2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40ced0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d6fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4902b8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40d008
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cf36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004621dd
xor eax, eax
jmp 0x40d07f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046231a
push esi
lea ecx, [esp + 0xc]
call fcn.004625a9
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40d05d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0040ce60
test eax, eax
jne 0x40d05d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.0040ce60
test eax, eax
jne 0x40d05d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00453710
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d03c
lea ecx, [esp + 0x14]
push 0x489d7c
push ecx
call fcn.00453690
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d03c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40d03f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004622ca
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cf4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004621dd
xor eax, eax
jmp 0x40d07f
mov byte [esi], 0
push 0x489d78
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004621dd
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4