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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x419708
push dword [0x41defc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0x7f
mov ebx, 0x41dfc8
push ebx
push dword [0x41defc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
mov byte [eax + 0x41dfc8], 0
push 0xb
pop ecx
mov edi, str.MOTOR_ERROR
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x402cf1
push dword [0x41e058]
push dword [0x41df3c]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x10015
push 0x419740
push 0x419750
push dword [0x41df3c]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x402d1a
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str.OK_7f__7f__7f
push ebx
call fcn.00404ac0
add esp, 0x14
cmp eax, dword [0x41e05c]
je 0x402d44
xor eax, eax
jmp 0x402e11
push 0
push 2
pop eax
sub eax, dword [0x41df44]
imul eax, eax, 0xfa
push eax
push 1
push dword [0x41df3c]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x41e058], eax
jmp 0x402e0e
cmp dword [0x41e054], 5
jne 0x402d9f
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x419798
push dword [0x41defc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0x7f
push ebx
push dword [0x41defc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
mov byte [eax + 0x41dfc8], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push str._4f__4f__4f
push ebx
call fcn.00404ac0
add esp, 0x14
xor edi, edi
cmp dword [0x41e05c], edi
jbe 0x402e0e
mov ebx, 0x41df1c
mov esi, 0x41e064
lea ecx, [ebp + edi*4 - 0x10]
fld dword [ecx]
fld dword [esi - 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x402dd9
fld dword [ecx]
push dword [edi*4 + 0x41e0f8]
mov eax, edi
fstp dword [esi - 4]
call fcn.00401525
pop ecx
cmp dword [0x41e054], 5
jne 0x402dff
lea ecx, [ebp + edi*4 - 0x1c]
fld dword [ecx]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x402dff
fld dword [ecx]
push dword [ebx]
fstp dword [esi]
call fcn.00402f17
pop ecx
inc edi
add esi, 0x2c
add ebx, 0xc
cmp edi, dword [0x41e05c]
jb 0x402db3
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e16
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
and dword [esp], 0
cmp dword [0x41e05c], 0
push ebx
push esi
push edi
jbe 0x402f10
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, 0x41df14
mov esi, 0x41e074
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 4]
jne 0x402eaa
push 0x10
lea ecx, [esp + 0x14]
push ecx
push eax
call ebx
push esi
lea eax, [esp + 0x14]
push 0x4197a8
push eax
call fcn.00404ac0
add esp, 0xc
cmp eax, 1
jne 0x402e92
fld dword [esi]
fild dword [esi + 0xc]
fcompp
fnstsw ax
test ah, 0x41
je 0x402e92
fld dword [esi]
fild dword [esi + 0x10]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x402e92
call fcn.00403182
test eax, eax
je 0x402e9f
fld dword [esi - 0x14]
push 0x10
fstp dword [esi]
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 8]
cmp dword [0x41e054], 1
jbe 0x402ef6
cmp eax, dword [edi + 8]
jne 0x402ef6
push 0x10
lea ecx, [esp + 0x14]
push ecx
push eax
call ebx
lea eax, [esi - 0x10]
push eax
lea eax, [esp + 0x14]
push 0x4196c0
push eax
call fcn.00404ac0
add esp, 0xc
cmp eax, 1
jne 0x402ee6
call fcn.0040329f
test eax, eax
je 0x402eee
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add esi, 0x2c
add edi, 0xc
cmp eax, dword [0x41e05c]
jb 0x402e43
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402fda
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf
push dword [0x41defc]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
push esi
lea eax, [esp + 0x14]
push eax
push 2
push 0x419708
push dword [0x41defc]
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [esp + 0x14]
push eax
push 0x7f
mov edi, 0x41dfc8
push edi
push dword [0x41defc]
call ebx
mov eax, dword [esp + 0x10]
push 0x41e0b8
push 0x41e08c
push 0x41e060
push str.OK_7f__7f__7f
push edi
mov byte [eax + 0x41dfc8], 0
call fcn.00404ac0
add esp, 0x14
mov dword [0x41e05c], eax
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x403112
mov esi, 0x41e068
push dword [esp + 0x14]
push str.G_uI_r
push 0x20
push 0x41df48
call fcn.00404a1a
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push 0x41df48
push dword [0x41defc]
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 0x7f
push edi
push dword [0x41defc]
mov byte [0x41dfc8], 0
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esi + 4]
push edx
push esi
lea edx, [esi + 0x10]
push edx
mov byte [eax + 0x41dfc8], 0
lea edx, [esi + 8]
push edx
lea eax, [esi + 0x1c]
push eax
lea ecx, [esi + 0x18]
push ecx
push 1
lea eax, [esi + 0x14]
push eax
push 0x4197b4
push edi
call fcn.00404ac0
add esp, 0x28
cmp eax, 7
jne 0x403174
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
inc dword [esp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x14]
add esi, 0x2c
cmp eax, dword [0x41e05c]
jb 0x40306d
xor esi, esi
push esi
lea eax, [esp + 0x14]
push eax
push 2
push 0x419798
push dword [0x41defc]
call ebp
push esi
lea eax, [esp + 0x14]
push eax
push 0x7f
push edi
push dword [0x41defc]
call ebx
mov eax, dword [esp + 0x10]
push 0x41e0bc
push 0x41e090
push 0x41e064
push str._4f__4f__4f
push edi
mov byte [eax + 0x41dfc8], 0
call fcn.00404ac0
xor eax, eax
add esp, 0x14
mov dword [0x41e054], 5
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
mov dword [0x41e054], 3
xor eax, eax
jmp 0x40316d
Function at 0x403182
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
cmp dword [0x41e118], 0
push ebx
push ebp
push esi
push edi
je 0x403297
fld dword [0x41e074]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
fld st(0)
fld dword [0x41e060]
mov edi, 0x41df48
fucompp
mov esi, 0x41dfc8
fnstsw ax
fld dword [0x41e0a0]
test ah, 0x44
jp 0x4031d8
fld st(0)
fld dword [0x41e08c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x40322e
sub esp, 0x10
fstp qword [esp + 8]
fstp qword [esp]
push str.Q_4.2f__4.2f_r
push 0x20
push edi
call fcn.00404a1a
add esp, 0x1c
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [0x41defc]
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 0x7f
push esi
push dword [0x41defc]
mov byte [0x41dfc8], 0
call ebx
mov ecx, esi
mov ecx, dword [ecx]
mov eax, str.ACK_r
cmp ecx, dword [eax]
je 0x403232
xor eax, eax
inc eax
jmp 0x403299
fstp st(1)
fstp st(0)
fld dword [0x41e0cc]
fld st(0)
fld dword [0x41e0b8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x403295
push ecx
push ecx
fstp qword [esp]
push str.K_4.2f_r
push 0x20
push edi
call fcn.00404a1a
add esp, 0x14
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [0x41defc]
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 0x7f
push esi
push dword [0x41defc]
mov byte [0x41dfc8], 0
call ebx
mov ecx, dword [esi]
mov eax, str.ACK_r
cmp ecx, dword [eax]
je 0x403297
jmp 0x403229
fstp st(0)
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40329f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
fld dword [0x41e090]
push ebx
push ebp
push esi
push edi
sub esp, 0x10
fstp qword [esp + 8]
mov edi, 0x41df48
fld dword [0x41e064]
fstp qword [esp]
push str.X_3.1f__3.1f_r
push 0x20
push edi
call fcn.00404a1a
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x1c
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [0x41defc]
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 0x7f
mov esi, 0x41dfc8
push esi
push dword [0x41defc]
mov byte [0x41dfc8], 0
call ebx
mov ecx, esi
mov ecx, dword [ecx]
mov eax, str.ACK_r
cmp ecx, dword [eax]
je 0x40331c
xor eax, eax
inc eax
jmp 0x403377
cmp dword [0x41e05c], 2
jbe 0x403375
fld dword [0x41e0bc]
push ecx
push ecx
fstp qword [esp]
push str.V_3.1f_r
push 0x20
push edi
call fcn.00404a1a
add esp, 0x14
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [0x41defc]
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 0x7f
push esi
push dword [0x41defc]
mov byte [0x41dfc8], 0
call ebx
mov ecx, dword [esi]
mov eax, str.ACK_r
cmp ecx, dword [eax]
jne 0x403317
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40337d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x41970c
push dword [0x41defc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0x7f
mov esi, 0x41dfc8
push esi
push dword [0x41defc]
mov byte [0x41dfc8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 4
pop ecx
mov edi, str.ACK_r
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x4033d2
sbb eax, eax
sbb eax, 0xffffffff
leave
ret

Function at 0x40820b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41ca20]
jne 0x408215
repz ret
jmp fcn.0040e27b

Function at 0x4113f4
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.004063af
and dword [ebp - 4], 0
cmp dword [0x41ded4], 0
mov ebx, eax
jne 0x4114a5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411556
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419544
push edi
call esi
test eax, eax
je 0x411556
push eax
call fcn.0040633d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ded4], eax
call esi
push eax
call fcn.0040633d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ded8], eax
call esi
push eax
call fcn.0040633d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41dedc], eax
call esi
push eax
call fcn.0040633d
pop ecx
mov dword [0x41dee4], eax
test eax, eax
je 0x4114a5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040633d
pop ecx
mov dword [0x41dee0], eax
mov eax, dword [0x41dee0]
cmp eax, ebx
je 0x4114fd
cmp dword [0x41dee4], ebx
je 0x4114fd
push eax
call fcn.004063b8
push dword [0x41dee4]
mov esi, eax
call fcn.004063b8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4114fd
test edi, edi
je 0x4114fd
call esi
test eax, eax
je 0x4114f4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4114f4
test byte [ebp - 0xc], 1
jne 0x4114fd
or dword [ebp + 0x10], 0x200000
jmp 0x411536
mov eax, dword [0x41ded8]
cmp eax, ebx
je 0x411536
push eax
call fcn.004063b8
pop ecx
test eax, eax
je 0x411536
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411536
mov eax, dword [0x41dedc]
cmp eax, ebx
je 0x411536
push eax
call fcn.004063b8
pop ecx
test eax, eax
je 0x411536
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ded4]
call fcn.004063b8
pop ecx
test eax, eax
je 0x411556
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411558
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x980058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9801a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x98007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98006a
add dl, dl
jne 0x980089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9800dc
xor eax, eax
add dl, dl
jne 0x980096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98017d
add dl, dl
jne 0x9800a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9800b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9800bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9800c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9800d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x980075
mov eax, 1
add dl, dl
jne 0x9800ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9800f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9800e1
sub eax, ebx
mov ebx, 1
jne 0x980128
mov ecx, 1
add dl, dl
jne 0x98010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x980119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x980105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x980075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x98013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x98014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x980136
cmp eax, 0x7d00
jae 0x98016d
cmp eax, 0x500
jb 0x980168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x980075
cmp eax, 0x7f
ja 0x980170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x980075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x98019e
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 0x980075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x7666283
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4cf77c2
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x80d7f0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x80d7fa
or byte [eax], al
or byte [esi], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
pushal
call 0x80d800
pop ebp
sub ebp, 0x10
sub ebp, 0x40d7f0
jmp 0x80d816
mov eax, 0x40d7f0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f2
mov edx, 0x5e636597
xor byte [eax], dl
inc eax
dec ecx
jne 0x80d82d
jmp 0x80d840
sbb al, 0x5a
sbb al, 0x1e
stosd dword es:[edi], eax
xchg edi, eax
xchg edi, eax
xchg edi, eax
push ss
push esi
outsd dx, dword [esi]
xchg edi, eax
xchg edi, eax
xchg edi, eax
xchg esp, eax
pop edx
das
xchg edx, eax
xchg edi, eax
xchg edi, eax
xchg edi, eax
sub eax, 0x979797bf
pushal
jne 0x80d7f1
pop edi
sbb al, 0x16
wait
xchg edi, eax
xchg edi, eax
xchg edi, eax
xchg esp, eax
push edx
sbb dh, bl
mov bl, 0x6b
push ds
xchg ebx, eax
mov bl, 0xc7
call dword [ebx - 0x13]
cdq
xchg edi, eax
invalid
Function at 0x4079f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47dd4b
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.004729dd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407a72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00470757
mov eax, dword [eax]
push 0x511c54
push eax
call fcn.00463464
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00472c68
test bl, bl
je 0x407a72
push 0x511c54
lea ecx, [esp + 0xc]
call fcn.00472ff8
push 0x511c60
lea ecx, [esp + 0xc]
call fcn.00472ff8
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 0x407aae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00472c68
jmp 0x407b79
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 0x407b32
lea edx, [esp + 0x7c]
push 0x511c5c
push edx
call fcn.00463464
add esp, 8
test eax, eax
je 0x407b32
lea eax, [esp + 0x7c]
push 0x511c58
push eax
call fcn.00463464
add esp, 8
test eax, eax
je 0x407b32
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 0x407ac2
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.00472c68
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 0x408380
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 0x4083e2
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 0x4083f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ddcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x51b598]
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 0x408528
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408456
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00472c68
xor eax, eax
jmp 0x40859f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00472da5
push esi
lea ecx, [esp + 0xc]
call fcn.00473034
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x511c94
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40857d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00408380
test eax, eax
jne 0x40857d
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.00408380
test eax, eax
jne 0x40857d
lea eax, [esp + 0x14]
push 0x511c70
push eax
call fcn.004644e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40855c
lea ecx, [esp + 0x14]
push 0x511c6c
push ecx
call fcn.00464460
mov esi, eax
add esp, 8
test esi, esi
jne 0x40855c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40855f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00472d55
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40846e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00472c68
xor eax, eax
jmp 0x40859f
mov byte [esi], 0
push 0x511c68
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.00472c68
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 0x419c70
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 0x419cde
cmp si, 0x69
ja 0x419cde
add esi, 0xffd0
cmp si, 0x11
je 0x419cae
push 0x11
call edi
test ax, ax
jge 0x419cae
or esi, 0x2000
cmp si, 0x10
je 0x419cc3
push 0x10
call edi
test ax, ax
jge 0x419cc3
or esi, 0x4000
cmp si, 0x12
je 0x419cd8
push 0x12
call edi
test ax, ax
jge 0x419cd8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x419ceb
mov esi, 0xbd
jmp 0x419c9f
cmp si, 0x6e
jne 0x419cf8
mov esi, 0xbe
jmp 0x419c9f
cmp si, 0x6f
jne 0x419c99
mov esi, 0xbf
jmp 0x419c9f

Function at 0x41b4e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x52bce0]
xor edx, edx
cmp eax, edx
jne 0x41b506
xor eax, eax
mov byte [eax + 0x52bbe0], al
inc eax
cmp eax, 0x100
jl 0x41b4ee
mov dword [0x52bce0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x52bbe0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b597
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 0x41b56a
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 0x41b538
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b610
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 0x41b663
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 0x41b64a
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