joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057a6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4057c7
jl 0x4057be
test edi, edi
jne 0x4057c7
xor eax, eax
xor edx, edx
jmp 0x405888
cmp dword [ebx + 0x38], 0
je 0x4057dc
push eax
push edi
push dword [ebp + 8]
call fcn.0040588e
jmp 0x405888
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405823
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405823
cmp eax, edi
jb 0x4057fd
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406df0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405829
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40587d
mov ecx, ebx
call fcn.0040500e
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x405868
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040dd1c
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40587d
jmp 0x40583b
test edx, edx
je 0x40587d
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040dd1c
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406c39
Capabilities:
Parse pe header

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

Function at 0x413109
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426fd8
push 0x426fd0
push str.FlsAlloc
push 0x1e
call fcn.00412f73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41313d
push dword [ebp + 8]
mov ecx, esi
call dword [0x423134]
call esi
jmp 0x413143
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x413187
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426fe8
push 0x426fe0
push str.FlsGetValue
push 0x20
call fcn.00412f73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4131be
push dword [ebp + 8]
mov ecx, esi
call dword [0x423134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4167e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041665a

Function at 0x416be3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406da0
mov eax, dword [0x45e014]
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.0041462d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416c25
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416d81
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004220e0
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 + 0x45fb90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417bda
mov ecx, dword [esi*4 + 0x45fb90]
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 0x416d7a
cmp eax, dword [edi + ecx + 0x24]
jne 0x416d7a
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 0x416d7a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417bda
add esp, 0x14
test edx, edx
jl 0x416d7a
jg 0x416cf0
test eax, eax
jb 0x416d7a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416d7a
jl 0x416d0a
cmp dword [ebp - 0x1008], eax
ja 0x416d7a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x416d28
test ebx, ebx
je 0x416d61
cmp ecx, edi
jae 0x416d61
mov al, byte [ecx]
cmp al, 0xd
jne 0x416d42
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416d4e
cmp byte [ecx + 1], 0xa
jne 0x416d4e
inc ecx
jmp 0x416d4e
movzx eax, al
movsx eax, byte [eax + 0x45e2c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416d28
cmp edx, ebx
jne 0x416d28
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416d7f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040601d
leave
ret
Function at 0x417078
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 + 0x45fb90]
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 0x4170b8
cmp byte [ebx], 0xa
jne 0x4170b8
or byte [eax + edi + 0x28], 4
jmp 0x4170bd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4171bb
mov al, byte [edx]
cmp al, 0x1a
je 0x41719d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4170ec
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417111
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41711b
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 0x4170ce
jmp 0x4171bb
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 0x417198
cmp dword [ebp - 0xc], 0
je 0x417198
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45fb90]
test byte [eax + edi + 0x28], 0x48
je 0x417172
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41715d
mov byte [esi], dl
jmp 0x41716e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45fb90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4171bb
cmp byte [ebp - 1], 0xa
jne 0x417181
cmp esi, ebx
jne 0x417181
mov byte [esi], 0xa
jmp 0x4171ba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417bf8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4171bb
mov byte [esi], 0xd
jmp 0x4171ba
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45fb90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4171b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4171bb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4171c4
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 + 0x45fb90]
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 0x417207
cmp word [esi], dx
jne 0x417207
or byte [edi + eax + 0x28], 4
jmp 0x41720c
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 0x41735f
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 0x41733f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41724e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417284
cmp eax, edx
jae 0x417290
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 0x417226
jmp 0x41735f
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 0x41733b
cmp dword [ebp - 0x14], 0
je 0x41733b
mov eax, dword [ebx*4 + 0x45fb90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417313
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4172dc
mov word [esi], cx
jmp 0x41730f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45fb90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x45fb90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45fb90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41735f
pop ebx
cmp word [ebp - 4], bx
jne 0x417324
cmp esi, dword [ebp + 0xc]
jne 0x417324
mov word [esi], bx
jmp 0x41735c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417bf8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41735f
push 0xd
jmp 0x417358
mov ecx, dword [ebx*4 + 0x45fb90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417356
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41735f
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 0x41af6d
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 0x41b00a
push ebx
push esi
call fcn.0041af36
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.00419bbb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41afb7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b009
push edi
push eax
call fcn.0041373c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41afd7
call fcn.00412c3b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b008
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00419bbb
add esp, 0x20
test eax, eax
jne 0x41aff6
push edi
call fcn.00412c3b
jmp 0x41affe
push ebx
call fcn.00412c3b
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 0x421ee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421f0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421f0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402512
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.0040d1f0
add eax, 0xfffffffd
mov dword [ebp - 8], eax
js 0x4026f4
mov esi, dword [ebp + 8]
mov eax, 0xfffffffe
sub eax, esi
lea edi, [esi + 2]
mov dword [ebp - 0xc], eax
mov al, byte [edi - 2]
mov cl, al
sub cl, 0x41
cmp cl, 0x19
ja 0x402557
mov byte [ebp - 0xd], cl
jmp 0x40258a
mov cl, al
sub cl, 0x61
cmp cl, 0x19
ja 0x402565
sub al, 0x47
jmp 0x402587
mov dl, al
sub dl, 0x30
cmp dl, 9
ja 0x402573
add al, 4
jmp 0x402587
cmp al, 0x2b
jne 0x40257d
mov byte [ebp - 0xd], 0x3e
jmp 0x40258a
cmp al, 0x2f
setne al
sub al, 1
and eax, 0x3f
mov byte [ebp - 0xd], al
mov al, byte [edi - 1]
mov cl, al
sub cl, 0x41
cmp cl, 0x19
ja 0x40259b
mov bl, cl
jmp 0x4025d1
mov cl, al
sub cl, 0x61
cmp cl, 0x19
ja 0x4025ab
sub al, 0x47
mov bl, al
jmp 0x4025d1
mov dl, al
sub dl, 0x30
cmp dl, 9
ja 0x4025be
add al, 4
mov bl, al
mov byte [ebp - 0xe], al
jmp 0x4025d4
cmp al, 0x2b
jne 0x4025c6
mov bl, 0x3e
jmp 0x4025d1
cmp al, 0x2f
setne bl
sub bl, 1
and ebx, 0x3f
mov byte [ebp - 0xe], bl
mov al, byte [edi]
mov cl, al
sub cl, 0x41
cmp cl, 0x19
ja 0x4025e4
mov al, cl
jmp 0x402612
mov cl, al
sub cl, 0x61
cmp cl, 0x19
ja 0x4025f2
sub al, 0x47
jmp 0x402612
mov dl, al
sub dl, 0x30
cmp dl, 9
ja 0x402600
add al, 4
jmp 0x402612
cmp al, 0x2b
jne 0x402608
mov al, 0x3e
jmp 0x402612
cmp al, 0x2f
setne al
sub al, 1
and eax, 0x3f
mov cl, byte [edi + 1]
mov dl, cl
sub dl, 0x41
cmp dl, 0x19
ja 0x402623
mov cl, dl
jmp 0x402656
mov dl, cl
sub dl, 0x61
cmp dl, 0x19
ja 0x402632
sub cl, 0x47
jmp 0x402656
mov dl, cl
sub dl, 0x30
cmp dl, 9
ja 0x402641
add cl, 4
jmp 0x402656
cmp cl, 0x2b
jne 0x40264a
mov cl, 0x3e
jmp 0x402656
cmp cl, 0x2f
setne cl
sub cl, 1
and ecx, 0x3f
mov dl, byte [ebp - 0xd]
mov esi, dword [ebp + 0xc]
add dl, dl
shr bl, 4
add dl, dl
or bl, dl
mov esi, dword [ebp + 0xc]
add esi, dword [ebp - 4]
mov byte [esi], bl
cmp byte [edi], 0x3d
je 0x4026c4
mov dl, byte [ebp - 0xe]
mov bl, al
shr bl, 2
shl dl, 4
or bl, dl
mov byte [esi + 1], bl
cmp byte [edi + 1], 0x3d
je 0x4026dc
shl al, 6
or al, cl
mov byte [esi + 2], al
add dword [ebp - 4], 3
mov eax, dword [ebp - 4]
lea eax, [eax + 5]
add edi, 4
cmp eax, dword [ebp + 0x10]
jge 0x4026f7
mov ecx, dword [ebp - 0xc]
add ecx, edi
cmp ecx, dword [ebp - 8]
jle 0x402545
mov esi, dword [ebp + 0xc]
add esi, dword [ebp - 4]
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
add esi, dword [ebp - 4]
mov byte [esi + 1], 0
mov eax, dword [ebp - 4]
lea eax, [eax + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
add esi, dword [ebp - 4]
mov byte [esi + 2], 0
mov eax, dword [ebp - 4]
lea eax, [eax + 2]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
add esi, dword [ebp - 4]
mov byte [esi], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407462
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
call fcn.004069cc
mov dword [ebp - 4], eax
mov eax, 0xfffefdfc
mov ecx, 0x40
mov edi, dword [ebp - 4]
mov dword [edi + ecx*4 - 4], eax
sub eax, 0x4040404
dec ecx
jne 0x40747b
xor eax, eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
jmp 0x40749b
inc bl
dec esi
je 0x40748f
push esi
mov esi, dword [ebp - 4]
mov dl, byte [esi + ecx]
add al, byte [edi + ebx]
add al, dl
mov dh, byte [esi + eax]
mov byte [esi + ecx], dh
mov byte [esi + eax], dl
pop esi
inc cl
jne 0x407496
popal
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4074bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00407462
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test edi, edi
je 0x407513
xor eax, eax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
inc bl
push esi
mov esi, dword [ebp - 4]
mov dl, byte [esi + ebx]
add al, dl
mov cl, byte [esi + eax]
mov byte [esi + ebx], cl
mov byte [esi + eax], dl
add cl, dl
mov cl, byte [esi + ecx]
pop esi
xor byte [esi], cl
inc esi
dec edi
jne 0x4074e6
xor eax, eax
mov edi, dword [ebp - 4]
mov ecx, 0x40
cld
rep stosd dword es:[edi], eax
popal
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418fb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x481b1b
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.00475cff
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x419032
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00473580
mov eax, dword [eax]
push 0x4d1210
push eax
call fcn.004661c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00475f8a
test bl, bl
je 0x419032
push 0x4d1210
lea ecx, [esp + 0xc]
call fcn.0047631a
push 0x4d4d8c
lea ecx, [esp + 0xc]
call fcn.0047631a
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 0x41906e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00475f8a
jmp 0x419139
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 0x4190f2
lea edx, [esp + 0x7c]
push 0x4d4d88
push edx
call fcn.004661c4
add esp, 8
test eax, eax
je 0x4190f2
lea eax, [esp + 0x7c]
push 0x4d4d84
push eax
call fcn.004661c4
add esp, 8
test eax, eax
je 0x4190f2
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 0x419082
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.00475f8a
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 0x419950
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 0x4199b2
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 0x4199c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x481b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4db374]
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 0x419af8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x419a26
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00475f8a
xor eax, eax
jmp 0x419b6f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004760c7
push esi
lea ecx, [esp + 0xc]
call fcn.00476356
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4d4dc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x419b4d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00419950
test eax, eax
jne 0x419b4d
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 closesocket
mov ecx, edi
call fcn.00419950
test eax, eax
jne 0x419b4d
lea eax, [esp + 0x14]
push 0x4d4da0
push eax
call fcn.00467200
mov esi, eax
add esp, 8
test esi, esi
jne 0x419b2c
lea ecx, [esp + 0x14]
push 0x4d4d9c
push ecx
call fcn.00467180
mov esi, eax
add esp, 8
test esi, esi
jne 0x419b2c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x419b2f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00476077
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x419a3e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00475f8a
xor eax, eax
jmp 0x419b6f
mov byte [esi], 0
push 0x4d4d98
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.00475f8a
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
Function at 0x41f8ca
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4823c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00477539
xor ebp, ebp
mov dword [esi], 0x4c053c
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea edi, [esi + 0x44]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x18]
mov dword [edi], 0x4bfc80
call fcn.0040fcf0
lea ecx, [edi + 0x30]
mov byte [esp + 0x38], 1
call fcn.0047506c
lea ebx, [edi + 0x44]
mov ecx, ebx
call fcn.0040fcf0
mov dword [ebx], 0x4be444
mov dword [edi], 0x4c0460
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x9c], 0x4bfe00
lea ecx, [esi + 0xb0]
call fcn.0040fcf0
lea edi, [esi + 0xc8]
mov dword [edi + 4], ebp
mov dword [edi], vtable.CBitmap.0
mov byte [esp + 0x38], 5
mov dword [esi], 0x4c0468
mov dword [esi + 0xac], ebp
call fcn.0047fbe4
mov eax, dword [eax + 0xc]
push 0x40e
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.0047cbd1
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 0x18]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x1c]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0xd4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xd0], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x41fa80
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x482455
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4c0468
mov dword [esp + 0x18], 0
lea ecx, [esi + 0xc8]
mov dword [esp + 0xc], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x18], 4
call fcn.0047cc28
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 2
mov dword [ecx], 0x4be440
call fcn.0040fef0
lea ecx, [esi + 0x9c]
mov dword [esp + 0xc], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x18], 5
call fcn.0047cc28
lea edi, [esi + 0x44]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x4be440
call fcn.0040fef0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 6
call fcn.0047509f
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x4be440
call fcn.0040fef0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0047e024
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret