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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x41e5a8]
push edi
jae 0x410511
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x41e5c0]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x410511
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x4103f0
test dl, 2
jne 0x4103f0
test dl, 0x48
je 0x4103ba
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4103ba
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410403
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4103eb
mov dword [0x41d0fc], ecx
jmp 0x410518
cmp eax, 0x6d
jne 0x4103f7
xor eax, eax
jmp 0x410525
push eax
call fcn.00413d65
pop ecx
jmp 0x410522
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41050c
test edx, edx
je 0x410426
cmp byte [edi], 0xa
jne 0x410426
or al, 4
jmp 0x410428
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x410506
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4104f6
cmp al, 0xd
je 0x41045c
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x4104e8
dec ecx
cmp dword [ebp - 8], ecx
jae 0x410476
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x410471
add dword [ebp - 8], 2
jmp 0x4104ca
mov dword [ebp - 8], eax
jmp 0x4104e4
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41049e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4104e4
cmp dword [ebp - 0x10], 0
je 0x4104e4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x4104bf
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4104ca
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x4104e7
cmp edi, dword [ebp + 0xc]
jne 0x4104cf
cmp byte [ebp - 1], 0xa
jne 0x4104cf
mov byte [edi], 0xa
jmp 0x4104e7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040ff79
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4104e8
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x410440
jmp 0x410506
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x410506
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x410525
and dword [0x41d0fc], 0
mov dword [0x41d0f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41094b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x419100]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x41e5a8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x410adb
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x41e5c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x410adb
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x4109aa
xor eax, eax
jmp 0x410aef
test al, 0x20
je 0x4109bb
push 2
push edi
push edi
push ecx
call fcn.00413fe5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x410a77
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x410aaf
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x410a11
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410a02
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4109e7
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410a51
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x410a5a
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4109db
jmp 0x410a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x410ad6
cmp dword [ebp + 8], edi
je 0x410aaf
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x410aa4
mov dword [0x41d0fc], eax
jmp 0x410ae2
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410a99
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x410a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x410a5c
push dword [ebp + 8]
call fcn.00413d65
pop ecx
jmp 0x410aec
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x410ac4
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x4109a3
mov dword [0x41d0f8], 0x1c
mov dword [0x41d0fc], edi
jmp 0x410aec
sub eax, dword [ebp - 0x14]
jmp 0x410aef
and dword [0x41d0fc], 0
mov dword [0x41d0f8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0040f1d4
leave
ret
Function at 0x4117eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x419100]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x419140]
je 0x411818
inc eax
cmp eax, 0x12
jb 0x411809
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x419140]
jne 0x41194c
mov eax, dword [0x41d0f4]
cmp eax, 1
je 0x411927
cmp eax, edx
jne 0x411848
cmp dword [0x4190f4], 1
je 0x411927
cmp ecx, 0xfc
je 0x41194c
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411881
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040ee90
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00411760
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4118c3
lea eax, [ebp - 0x10c]
push eax
call fcn.00411760
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x417d18
push edi
call fcn.0040eb30
add esp, 0x10
push edi
call fcn.00411760
push dword [esi + 0x419144]
mov ebx, eax
call fcn.00411760
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00412260
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ee90
push edi
push ebx
call fcn.0040eea0
push 0x417cf8
push ebx
call fcn.0040eea0
push dword [esi + 0x419144]
push ebx
call fcn.0040eea0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004145c4
add esp, 0x2c
jmp 0x41194c
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x419144]
push dword [esi]
call fcn.00411760
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040f1d4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4144b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00412260
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414545
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x41d104]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x414545
cmp eax, 1
je 0x41455d
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414545
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41451a
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x414541
xor eax, eax
inc eax
jmp 0x414579
cmp esi, ebx
jae 0x414549
xor eax, eax
jmp 0x414579
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41d104]
jmp 0x41455f
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4145c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41d2c8], ebx
push esi
push edi
jne 0x414644
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41467f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41836c
push edi
call esi
test eax, eax
mov dword [0x41d2c8], eax
je 0x41467f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41d2cc], eax
call esi
cmp dword [0x41d104], 2
mov dword [0x41d2d0], eax
jne 0x414644
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41d2d8], eax
je 0x414644
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41d2d4], eax
mov eax, dword [0x41d2d4]
test eax, eax
je 0x414689
call eax
test eax, eax
je 0x414670
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41d2d8]
test eax, eax
je 0x414670
test byte [ebp - 8], 1
jne 0x414689
cmp dword [0x41d110], 4
jb 0x414683
or byte [ebp + 0x12], 0x20
jmp 0x4146a8
xor eax, eax
jmp 0x4146b8
or byte [ebp + 0x12], 4
jmp 0x4146a8
mov eax, dword [0x41d2cc]
test eax, eax
je 0x4146a8
call eax
mov ebx, eax
test ebx, ebx
je 0x4146a8
mov eax, dword [0x41d2d0]
test eax, eax
je 0x4146a8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41d2c8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415afc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00412260
mov eax, dword [0x419100]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x41e5a8]
mov dword [ebp - 4], eax
jae 0x415c3c
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x41e5c0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x415c3c
push 1
push esi
push ebx
call fcn.0040ff79
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x415c46
push 2
push esi
push ebx
call fcn.0040ff79
add esp, 0xc
cmp eax, 0xffffffff
je 0x415c46
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x415be9
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.00413970
push 0x8000
push ebx
call fcn.00416296
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x415ba8
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.0041094b
add esp, 0xc
cmp eax, 0xffffffff
je 0x415bc6
sub edi, eax
test edi, edi
jg 0x415b9d
jmp 0x415bdc
cmp dword [0x41d0fc], 5
jne 0x415bd9
mov dword [0x41d0f8], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00416296
pop ecx
pop ecx
jmp 0x415c29
jge 0x415c29
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040ff79
push ebx
call fcn.00413f52
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x415c29
mov dword [0x41d0f8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41d0fc], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0040ff79
add esp, 0xc
mov eax, esi
pop edi
jmp 0x415c49
mov dword [0x41d0f8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040f1d4
leave
ret

Function at 0x438c94
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
sub ecx, esi
add ecx, 1
add esi, esi
call fcn.00438cd4
mov ecx, esi
mov esi, 0x7c6c0fe0
sub esp, 4
mov dword [esp], ecx
pop ecx
xor dword [ebx], edx
and esi, ecx
and esi, esi
sub ecx, 0x7ebb3b5f
inc ebx
sub esi, 0x6599cdf
cmp ebx, eax
jne fcn.00438c94
or ecx, esi
ret
Function at 0x486070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x57000]
mov dword [edi + 0x6a354], 0x11f2bea0
push edi
or ebp, 0xffffffff
jmp 0x48609a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4860a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486090
mov eax, 1
add ebx, ebx
jne 0x4860b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4860c4
jne 0x4860e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4860e3
dec eax
add ebx, ebx
jne 0x4860d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4860a8
add ebx, ebx
jne 0x4860df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x486135
xor ecx, ecx
sub eax, 3
jb 0x4860fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48616a
sar eax, 1
mov ebp, eax
jmp 0x486106
add ebx, ebx
jne 0x486106
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4860d4
inc ecx
add ebx, ebx
jne 0x486114
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4860d4
add ebx, ebx
jne 0x486121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x486116
jne 0x486132
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x486116
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x486154
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x486146
jmp 0x486096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x486154
add edi, ecx
jmp 0x486096
pop esi
mov edi, esi
mov ecx, 0x3325
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x486172
cmp byte [edi], 0x14
jne 0x486172
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 0x486177
lea edi, [esi + 0x83000]
mov eax, dword [edi]
or eax, eax
je 0x4861ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x87a64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x87b04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4861a4
mov ecx, edi
jns 0x4861d3
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 + 0x87b08]
or eax, eax
je 0x4861e9
mov dword [ebx], eax
add ebx, 4
jmp 0x4861c1
call dword [esi + 0x87b10]
mov ebp, dword [esi + 0x87b0c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x486223
sub esp, 0xffffff80
jmp 0x401314
Function at 0x417b70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4947db
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.00488e7d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417bf2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004866cd
mov eax, dword [eax]
push 0x4dfd44
push eax
call fcn.00478424
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00489108
test bl, bl
je 0x417bf2
push 0x4dfd44
lea ecx, [esp + 0xc]
call fcn.00489498
push 0x4dfd50
lea ecx, [esp + 0xc]
call fcn.00489498
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 0x417c2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00489108
jmp 0x417cf9
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 0x417cb2
lea edx, [esp + 0x7c]
push 0x4dfd4c
push edx
call fcn.00478424
add esp, 8
test eax, eax
je 0x417cb2
lea eax, [esp + 0x7c]
push 0x4dfd48
push eax
call fcn.00478424
add esp, 8
test eax, eax
je 0x417cb2
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 0x417c42
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.00489108
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 0x4184f0
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 0x418552
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 0x418560
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49485b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4f3428]
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 0x418698
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4185c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00489108
xor eax, eax
jmp 0x41870f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00489245
push esi
lea ecx, [esp + 0xc]
call fcn.004894d4
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 0x4186ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004184f0
test eax, eax
jne 0x4186ed
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.004184f0
test eax, eax
jne 0x4186ed
lea eax, [esp + 0x14]
push 0x4dfd60
push eax
call fcn.00479530
mov esi, eax
add esp, 8
test esi, esi
jne 0x4186cc
lea ecx, [esp + 0x14]
push 0x4dfd5c
push ecx
call fcn.004794b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4186cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4186cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004891f5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4185de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00489108
xor eax, eax
jmp 0x41870f
mov byte [esi], 0
push 0x4dfd58
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.00489108
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 0x428d40
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x428dae
cmp si, 0x69
ja 0x428dae
add esi, 0xffd0
cmp si, 0x11
je 0x428d7e
push 0x11
call edi
test ax, ax
jge 0x428d7e
or esi, 0x2000
cmp si, 0x10
je 0x428d93
push 0x10
call edi
test ax, ax
jge 0x428d93
or esi, 0x4000
cmp si, 0x12
je 0x428da8
push 0x12
call edi
test ax, ax
jge 0x428da8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x428dbb
mov esi, 0xbd
jmp 0x428d6f
cmp si, 0x6e
jne 0x428dc8
mov esi, 0xbe
jmp 0x428d6f
cmp si, 0x6f
jne 0x428d69
mov esi, 0xbf
jmp 0x428d6f

Function at 0x42a620
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5046b8]
xor edx, edx
cmp eax, edx
jne 0x42a646
xor eax, eax
mov byte [eax + 0x5045b8], al
inc eax
cmp eax, 0x100
jl 0x42a62e
mov dword [0x5046b8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5045b8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42a6d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42a6aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x42a678
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42a750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x42a7a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42a78a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret