joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dcc9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41dd66
push ebx
push esi
call fcn.0041dc92
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041dbdb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41dd13
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd65
push edi
push eax
call fcn.0041b98c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dd33
call fcn.0041ae45
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd64
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041dbdb
add esp, 0x20
test eax, eax
jne 0x41dd52
push edi
call fcn.0041ae45
jmp 0x41dd5a
push ebx
call fcn.0041ae45
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x422260
Capabilities:
Read file on windows

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

Function at 0x42265a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00429d40
mov eax, dword [0x4630d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041c7c1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42269c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4227f8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429b70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x464840]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00423651
mov ecx, dword [esi*4 + 0x464840]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4227f1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4227f1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4227f1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423651
add esp, 0x14
test edx, edx
jl 0x4227f1
jg 0x422767
test eax, eax
jb 0x4227f1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4227f1
jl 0x422781
cmp dword [ebp - 0x1008], eax
ja 0x4227f1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42279f
test ebx, ebx
je 0x4227d8
cmp ecx, edi
jae 0x4227d8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4227b9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4227c5
cmp byte [ecx + 1], 0xa
jne 0x4227c5
inc ecx
jmp 0x4227c5
movzx eax, al
movsx eax, byte [eax + 0x463878]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42279f
cmp edx, ebx
jne 0x42279f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4227f6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c3a8
leave
ret
Function at 0x422aef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x464840]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422b2f
cmp byte [ebx], 0xa
jne 0x422b2f
or byte [eax + edi + 0x28], 4
jmp 0x422b34
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x422c32
mov al, byte [edx]
cmp al, 0x1a
je 0x422c14
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x422b63
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x422b88
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x422b92
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x422b45
jmp 0x422c32
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422c0f
cmp dword [ebp - 0xc], 0
je 0x422c0f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x464840]
test byte [eax + edi + 0x28], 0x48
je 0x422be9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x422bd4
mov byte [esi], dl
jmp 0x422be5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x464840]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x422c32
cmp byte [ebp - 1], 0xa
jne 0x422bf8
cmp esi, ebx
jne 0x422bf8
mov byte [esi], 0xa
jmp 0x422c31
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042366f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422c32
mov byte [esi], 0xd
jmp 0x422c31
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x464840]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422c2e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422c32
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422c3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x464840]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422c7e
cmp word [esi], dx
jne 0x422c7e
or byte [edi + eax + 0x28], 4
jmp 0x422c83
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x422dd6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x422db6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x422cc5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x422cfb
cmp eax, edx
jae 0x422d07
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x422c9d
jmp 0x422dd6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422db2
cmp dword [ebp - 0x14], 0
je 0x422db2
mov eax, dword [ebx*4 + 0x464840]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x422d8a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x422d53
mov word [esi], cx
jmp 0x422d86
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x464840]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x464840]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x464840]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x422dd6
pop ebx
cmp word [ebp - 4], bx
jne 0x422d9b
cmp esi, dword [ebp + 0xc]
jne 0x422d9b
mov word [esi], bx
jmp 0x422dd3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042366f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x422dd6
push 0xd
jmp 0x422dcf
mov ecx, dword [ebx*4 + 0x464840]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422dcd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422dd6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x429a90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x429abd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x429abd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x401010
Capabilities:
Accept command line arguments
Create thread

Disassembly:
sub esp, 0x40c
mov eax, dword [0x40c144]
xor eax, esp
mov dword [esp + 0x408], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x40d944], eax
test eax, eax
jne 0x40104f
push 1
call fcn.00402f45
push str..pipe_
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.00402a23
push str..pipe_
lea eax, [esp + 0x11c]
push 0x100
push eax
call fcn.00402a23
mov edx, dword [esi]
add esp, 0x18
push 0
push 0
push 0x80
lea ecx, [esp + 0x218]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor esi, esi
movsx eax, byte [esp + esi + 0x20c]
push eax
call fcn.00402c28
add esp, 4
cmp al, 0x39
ja 0x4010c4
shl al, 4
mov ecx, esi
shr ecx, 1
mov byte [esp + ecx + 0x15], al
jmp 0x4010d1
sub al, 7
shl al, 4
mov edx, esi
shr edx, 1
mov byte [esp + edx + 0x15], al
movsx eax, byte [esp + esi + 0x20d]
inc esi
push eax
call fcn.00402c28
mov edx, esi
shr edx, 1
add esp, 4
lea ecx, [esp + edx + 0x15]
cmp al, 0x39
ja 0x4010f3
sub al, 0x30
jmp 0x4010f5
sub al, 0x37
add byte [ecx], al
mov al, byte [ecx]
xor al, 0x6c
sub al, dl
mov dl, al
sar dl, 4
and dl, 0xf
shl al, 4
xor dl, al
mov byte [ecx], dl
je 0x401114
inc esi
cmp esi, 0x44
jb 0x4010a2
push edi
mov edi, 0x44
xor esi, esi
lea esp, [esp]
movsx ecx, byte [esp + edi + 0x210]
push ecx
call fcn.00402c28
add esp, 4
cmp al, 0x39
ja 0x401145
shl al, 4
mov edx, esi
shr edx, 1
mov byte [esp + edx + 0x119], al
jmp 0x401155
sub al, 7
shl al, 4
mov ecx, esi
shr ecx, 1
mov byte [esp + ecx + 0x119], al
movsx edx, byte [esp + edi + 0x211]
inc edi
push edx
inc esi
call fcn.00402c28
mov edx, esi
shr edx, 1
add esp, 4
lea ecx, [esp + edx + 0x119]
cmp al, 0x39
ja 0x40117b
sub al, 0x30
jmp 0x40117d
sub al, 0x37
add byte [ecx], al
mov al, byte [ecx]
xor al, 0xc6
sub al, dl
mov dl, al
sar dl, 4
and dl, 0xf
shl al, 4
xor dl, al
mov byte [ecx], dl
je 0x4011a0
inc edi
inc esi
cmp edi, 0x88
jb 0x401120
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x28]
push eax
call esi
mov dword [0x40d948], eax
pop edi
cmp eax, 0xffffffff
jne 0x4011d1
push 1
call fcn.00402f45
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x124]
push ecx
call esi
mov dword [0x40d940], eax
cmp eax, 0xffffffff
jne 0x4011fe
push 1
call fcn.00402f45
lea edx, [esp + 8]
push edx
push 0
push 0x40d948
push 0x401220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00401290
int3
Function at 0x401c18
Capabilities:
Execute shellcode via indirect call
Read file on windows

Disassembly:
call fcn.004025a0
mov byte [0x40c116], 1

Function at 0x401c24
Capabilities:
Execute shellcode via indirect call
Read file on windows

Disassembly:
push 0x40c0fd
pop dword [0x40b302]
mov dword [0x40c0fd], 0
Function at 0x4025e6
Capabilities:
Query environment variable

Disassembly:
mov dword [0x40bb96], 0
push 0x40b64f
call fcn.004028d6
je 0x4027a7
or dword [0x40bb96], 1
call fcn.004027d2
je 0x402769
jb 0x402762
or dword [0x40bb96], 2
mov eax, 0x40b54b
cmp byte [eax], 0
jne 0x40277f
or dword [0x40bb96], 0x20
push 0x40b64f
push 0x40b753
call sub.KERNEL32.dll_lstrcpy
call fcn.004028a0
jne 0x402769
or dword [0x40bb96], 0x10
push 0x40b64f
push 0x40b753
call sub.KERNEL32.dll_lstrcpy
push 0x40b9c3
push 0x40b753
call sub.KERNEL32.dll_lstrcat
call fcn.004028a0
jne 0x402769
or dword [0x40bb96], 4
push 0x100
push 0x40b753
push str.APPDATA
call sub.KERNEL32.dll_GetEnvironmentVariableA
cmp eax, 0
je 0x4026f0
push 0x40bc4a
push 0x40b753
call sub.KERNEL32.dll_lstrcat
push 0x40b1c5
push 0x40b753
call sub.KERNEL32.dll_lstrcat
push 0x40bc4a
push 0x40b753
call sub.KERNEL32.dll_lstrcat
push str.DESIGNER
push 0x40b753
call sub.KERNEL32.dll_lstrcat
push 0x40b9c3
push 0x40b753
call sub.KERNEL32.dll_lstrcat
call fcn.004028a0
jne 0x402769
or dword [0x40bb96], 8
push 0x100
push 0x40b753
push str.ALLUSERSPROFILE
call sub.KERNEL32.dll_GetEnvironmentVariableA
cmp eax, 0
je 0x402762
push 0x40bc4a
push 0x40b753
call sub.KERNEL32.dll_lstrcat
push 0x40b1c5
push 0x40b753
call sub.KERNEL32.dll_lstrcat
push 0x40bc4a
push 0x40b753
call sub.KERNEL32.dll_lstrcat
push str.DESIGNER
push 0x40b753
call sub.KERNEL32.dll_lstrcat
push 0x40b9c3
push 0x40b753
call sub.KERNEL32.dll_lstrcat
call fcn.004028a0
jne 0x402769
mov eax, 0
clc
ret
push 0x40b753
push 0x40b54b
call sub.KERNEL32.dll_lstrcpy
mov eax, 1
clc
ret
push 0x40b9cc
push 0x40b54b
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
je 0x402762
mov ecx, 0x40bb80
cmp dword [ecx], 0
je 0x4027a0
push eax
call dword [ecx]
mov eax, 1
clc
ret
mov eax, 0xff
stc
ret

Function at 0x402a14
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c144]
jne 0x402a1e
repz ret
jmp fcn.0040318e
Function at 0x406e7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403ec0
and dword [ebp - 4], 0
cmp dword [0x40d714], 0
mov ebx, eax
jne 0x406f2d
push 0x40a268
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406fde
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a25c
push edi
call esi
test eax, eax
je 0x406fde
push eax
call fcn.00403e4e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d714], eax
call esi
push eax
call fcn.00403e4e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d718], eax
call esi
push eax
call fcn.00403e4e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40d71c], eax
call esi
push eax
call fcn.00403e4e
pop ecx
mov dword [0x40d724], eax
test eax, eax
je 0x406f2d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403e4e
pop ecx
mov dword [0x40d720], eax
mov eax, dword [0x40d720]
cmp eax, ebx
je 0x406f85
cmp dword [0x40d724], ebx
je 0x406f85
push eax
call fcn.00403ec9
push dword [0x40d724]
mov esi, eax
call fcn.00403ec9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406f85
test edi, edi
je 0x406f85
call esi
test eax, eax
je 0x406f7c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406f7c
test byte [ebp - 0xc], 1
jne 0x406f85
or dword [ebp + 0x10], 0x200000
jmp 0x406fbe
mov eax, dword [0x40d718]
cmp eax, ebx
je 0x406fbe
push eax
call fcn.00403ec9
pop ecx
test eax, eax
je 0x406fbe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406fbe
mov eax, dword [0x40d71c]
cmp eax, ebx
je 0x406fbe
push eax
call fcn.00403ec9
pop ecx
test eax, eax
je 0x406fbe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d714]
call fcn.00403ec9
pop ecx
test eax, eax
je 0x406fde
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406fe0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4dbd50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5db33b
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.005cf4b5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4dbdd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005cc87d
mov eax, dword [eax]
push 0x936028
push eax
call fcn.005bef04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005cf740
test bl, bl
je 0x4dbdd2
push 0x936028
lea ecx, [esp + 0xc]
call fcn.005cfad0
push 0x936034
lea ecx, [esp + 0xc]
call fcn.005cfad0
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 0x4dbe0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005cf740
jmp 0x4dbed9
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 0x4dbe92
lea edx, [esp + 0x7c]
push 0x936030
push edx
call fcn.005bef04
add esp, 8
test eax, eax
je 0x4dbe92
lea eax, [esp + 0x7c]
push 0x93602c
push eax
call fcn.005bef04
add esp, 8
test eax, eax
je 0x4dbe92
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 0x4dbe22
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.005cf740
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 0x4dc700
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 0x4dc762
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 0x4dc770
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5db3bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x94affc]
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 0x4dc8a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4dc7d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005cf740
xor eax, eax
jmp 0x4dc91f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005cf87d
push esi
lea ecx, [esp + 0xc]
call fcn.005cfb0c
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 0x4dc8fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.004dc700
test eax, eax
jne 0x4dc8fd
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 bind
mov ecx, edi
call fcn.004dc700
test eax, eax
jne 0x4dc8fd
lea eax, [esp + 0x14]
push 0x936044
push eax
call fcn.005c01e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dc8dc
lea ecx, [esp + 0x14]
push 0x936040
push ecx
call fcn.005c0160
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dc8dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4dc8df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005cf82d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4dc7ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005cf740
xor eax, eax
jmp 0x4dc91f
mov byte [esi], 0
push 0x93603c
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.005cf740
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