joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1062f5b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x1062f5d3
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.1062f1a0
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.1062f1f0
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.1062f290
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.1060d600
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x10600b54
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1062f67e
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.1062f480
test ax, ax
je 0x1062f67e
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x1062f67e
cmp byte [esp + eax + 0xa], 0x3a
jne 0x1062f67e
lea edx, [esp + eax + 0xb]
push esi
push edx
call fcn.1060d670
test al, al
je 0x1062f679
mov ax, word [esi]
cmp ax, 1
jl 0x1062f679
cmp ax, 7
jle 0x1062f67e
mov word [esi], 0
xor eax, eax
cmp word [esi], ax
pop esi
pop ebx
setne al
add esp, 0x40
ret 8

Function at 0x1062f690
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.1062f1a0
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.1062f1f0
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.1062f350
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.1062f310
lea ecx, [esp + 4]
lea edx, [esp + 0x34]
push ecx
push 0x10
push edx
lea eax, [esp + 0x20]
push 0x10600b54
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x1062f700
lea edx, [esp + 0x34]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.1060d4b0
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x50
ret 8

Function at 0x1062f710
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.1062f1a0
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.1062f1f0
lea edx, [esp + 0x10]
push 0x10
push edx
call fcn.1062f2d0
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
mov ecx, dword [esp + 0x34]
test eax, eax
setne dl
mov word [ecx], ax
mov al, dl
add esp, 0x30
ret 4
Function at 0x1062f770
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.1060d620
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.1062f1a0
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.1062f1f0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.1062f240
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.1062f3a0
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.1062f430
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.1062f3f0
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x10600b54
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1062f85e
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.1060d4b0
test al, al
je 0x1062f81f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push esp
and al, 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e004]
jne 0x40100a
repz ret
jmp fcn.00401221

Function at 0x4054dc
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.00402bfb
and dword [ebp - 4], 0
cmp dword [0x441df0], 0
mov ebx, eax
jne 0x40558d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40563e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40563e
push eax
call fcn.00402b89
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x441df0], eax
call esi
push eax
call fcn.00402b89
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x441df4], eax
call esi
push eax
call fcn.00402b89
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x441df8], eax
call esi
push eax
call fcn.00402b89
pop ecx
mov dword [0x441e00], eax
test eax, eax
je 0x40558d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402b89
pop ecx
mov dword [0x441dfc], eax
mov eax, dword [0x441dfc]
cmp eax, ebx
je 0x4055e5
cmp dword [0x441e00], ebx
je 0x4055e5
push eax
call fcn.00402c04
push dword [0x441e00]
mov esi, eax
call fcn.00402c04
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4055e5
test edi, edi
je 0x4055e5
call esi
test eax, eax
je 0x4055dc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4055dc
test byte [ebp - 0xc], 1
jne 0x4055e5
or dword [ebp + 0x10], 0x200000
jmp 0x40561e
mov eax, dword [0x441df4]
cmp eax, ebx
je 0x40561e
push eax
call fcn.00402c04
pop ecx
test eax, eax
je 0x40561e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40561e
mov eax, dword [0x441df8]
cmp eax, ebx
je 0x40561e
push eax
call fcn.00402c04
pop ecx
test eax, eax
je 0x40561e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441df0]
call fcn.00402c04
pop ecx
test eax, eax
je 0x40563e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405640
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4073ff
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1bb8304], 0x930
jne 0x40741c
push str.tahuzidovarinuvelegoritaxaxi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x1bb8304], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bb8148], eax
jne 0x40743c
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40288e
pop dword [ebp - 0x18]
mov eax, 0x40288e
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xc73adf0e
add dword [ebp - 0x28], 0x8717663d
mov dword [ebp - 0x24], 0x507a2888
add dword [ebp - 0x24], 0xe1b923bd
mov dword [ebp - 0x20], 0x64537c88
add dword [ebp - 0x20], 0xe7f8c7a6
mov dword [ebp - 0x1c], 0xc33c6813
add dword [ebp - 0x1c], 0x3cc397ed
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x462d8103
add dword [ebp - 0x28], 0x2e44e853
mov dword [ebp - 0x24], 0x78478111
add dword [ebp - 0x24], 0xc924e064
mov dword [ebp - 0x20], 0xa82810
add dword [ebp - 0x20], 0x62c7445c
mov dword [ebp - 0x1c], 0x5509af9b
add dword [ebp - 0x1c], 0xaaf65065
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x3a4e2541
add eax, 0xc5f25b93
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3943a
push 0
call eax
mov ecx, 0x52ac
xor esi, esi
add esi, eax
mov edx, 0xaa382113
add edx, 0x5608eeed
add edx, dword [ebp - 0x18]
mov edi, 0xef7ca4dc
sub edi, 0x545c240f
xor dword [ebp - 0x14], 0x1e5bd6ab
mov ebx, dword [edx]
add ebx, edi
add dword [ebp - 4], edx
mov dword [esi], ebx
xor dword [ebp - 0xc], 0x4ee278f9
add esi, 0x486ff576
add esi, 0xb7900a8e
add edx, 0x8c9148e5
add edx, 0x736eb71f
loop 0x4029a2
add eax, 0x927cb0bd
add eax, 0x6d848cc6
xor ebx, ebx
add ebx, eax
add eax, 0x44b26a7f
sub eax, 0x44b26a7a
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x416780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4314bb
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x453460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebx], 0
mov dword [ebp - 0x44], edx
mov dword [eax], 0
mov byte [edx], 0
mov edx, ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], eax
call fcn.00416640
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4167e1
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [0x433180]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x416814
push dword [ebp - 0x28]
call fcn.0041a286
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x416834
xor al, al
jmp 0x416981
push 0xc
call fcn.0041a2d6
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
mov edi, dword [0x43319c]
test eax, eax
je 0x41686e
mov dword [eax], 0x44c2a4
mov byte [ebp - 4], 2
mov dword [eax], 0x44c4c8
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov byte [ebp - 4], 1
jmp 0x416870
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 4
push 0
push 0
push 0
push 2
push 0
push esi
call dword [0x433068]
mov esi, eax
test esi, esi
jne 0x41689f
xor bl, bl
jmp 0x416970
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], esi
call fcn.00418700
mov byte [ebp - 4], 5
push 0
push 0
push 0
push 4
push esi
call dword [0x433118]
mov edi, eax
test edi, edi
jne 0x4168d1
xor bl, bl
jmp 0x416964
mov eax, dword [0x433114]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00418790
mov byte [ebp - 4], 6
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x41691d
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x41690b
mov dword [ebx], 1
jmp 0x416956
movzx eax, word [esi + 4]
cmp eax, 0x14c
je 0x416929
cmp eax, 0x8664
je 0x416921
xor bl, bl
jmp 0x416958
mov dword [ebx], 3
jmp 0x41694d
mov edx, edi
mov dword [ebx], 2
mov ecx, esi
call fcn.004169a0
test eax, eax
je 0x41694d
mov eax, dword [eax + 0x10]
test al, 1
je 0x41694d
test al, 2
jne 0x41694d
mov eax, dword [ebp - 0x44]
mov byte [eax], 1
mov ecx, dword [ebp - 0x34]
movzx eax, word [esi + 0x5c]
mov dword [ecx], eax
mov bl, 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.00411cf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00411cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00411cf0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419933
mov esp, ebp
pop ebp
ret
Function at 0x4169a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
test esi, esi
jne 0x4169b5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xec]
push edi
test eax, eax
je 0x416a19
mov edi, dword [esi + 0xe8]
test edi, edi
je 0x416a19
cmp eax, 0x48
jne 0x416a19
movzx eax, word [esi + 0x14]
lea edx, [esi + 0x18]
push ebx
movzx ebx, word [esi + 6]
add edx, eax
xor ecx, ecx
test ebx, ebx
je 0x4169fb
mov esi, dword [edx + 0xc]
cmp edi, esi
jb 0x4169f3
mov eax, dword [edx + 0x10]
add eax, esi
cmp edi, eax
jb 0x4169fb
inc ecx
add edx, 0x28
cmp ecx, ebx
jb 0x4169e3
cmp ebx, ecx
pop ebx
je 0x416a19
mov ecx, dword [edx + 0x14]
xor eax, eax
sub ecx, dword [edx + 0xc]
add ecx, edi
add ecx, dword [ebp - 4]
pop edi
pop esi
cmp dword [ecx], 0x48
cmove eax, ecx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406863
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068a1
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406877
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406872
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068ce
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068af
not eax
pop ebp
ret 0xc

Function at 0x7d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007d81a8
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 0x7d807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d806a
add dl, dl
jne 0x7d8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d80dc
xor eax, eax
add dl, dl
jne 0x7d8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d817d
add dl, dl
jne 0x7d80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7d80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7d8075
mov eax, 1
add dl, dl
jne 0x7d80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d80e1
sub eax, ebx
mov ebx, 1
jne 0x7d8128
mov ecx, 1
add dl, dl
jne 0x7d810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7d813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8136
cmp eax, 0x7d00
jae 0x7d816d
cmp eax, 0x500
jb 0x7d8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
cmp eax, 0x7f
ja 0x7d8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7d819e
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 0x7d8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406420
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48c95b
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.004818a5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4064a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047f7b7
mov eax, dword [eax]
push 0x4b5c60
push eax
call fcn.00472144
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00481b30
test bl, bl
je 0x4064a2
push 0x4b5c60
lea ecx, [esp + 0xc]
call fcn.00481ec0
push 0x4b5c6c
lea ecx, [esp + 0xc]
call fcn.00481ec0
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 0x4064de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00481b30
jmp 0x4065a9
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 0x406562
lea edx, [esp + 0x7c]
push 0x4b5c68
push edx
call fcn.00472144
add esp, 8
test eax, eax
je 0x406562
lea eax, [esp + 0x7c]
push 0x4b5c64
push eax
call fcn.00472144
add esp, 8
test eax, eax
je 0x406562
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 0x4064f2
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.00481b30
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 0x406db0
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 0x406e12
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 0x406e20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48c9db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c93a8]
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 0x406f58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406e86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00481b30
xor eax, eax
jmp 0x406fcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00481c6d
push esi
lea ecx, [esp + 0xc]
call fcn.00481efc
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 0x406fad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00406db0
test eax, eax
jne 0x406fad
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.00406db0
test eax, eax
jne 0x406fad
lea eax, [esp + 0x14]
push 0x4b5c7c
push eax
call fcn.004731c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x406f8c
lea ecx, [esp + 0x14]
push 0x4b5c78
push ecx
call fcn.00473140
mov esi, eax
add esp, 8
test esi, esi
jne 0x406f8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x406f8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00481c1d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406e9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00481b30
xor eax, eax
jmp 0x406fcf
mov byte [esi], 0
push 0x4b5c74
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.00481b30
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 0x4186c0
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 0x41872e
cmp si, 0x69
ja 0x41872e
add esi, 0xffd0
cmp si, 0x11
je 0x4186fe
push 0x11
call edi
test ax, ax
jge 0x4186fe
or esi, 0x2000
cmp si, 0x10
je 0x418713
push 0x10
call edi
test ax, ax
jge 0x418713
or esi, 0x4000
cmp si, 0x12
je 0x418728
push 0x12
call edi
test ax, ax
jge 0x418728
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41873b
mov esi, 0xbd
jmp 0x4186ef
cmp si, 0x6e
jne 0x418748
mov esi, 0xbe
jmp 0x4186ef
cmp si, 0x6f
jne 0x4186e9
mov esi, 0xbf
jmp 0x4186ef

Function at 0x419f50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d9b88]
xor edx, edx
cmp eax, edx
jne 0x419f76
xor eax, eax
mov byte [eax + 0x4d9a88], al
inc eax
cmp eax, 0x100
jl 0x419f5e
mov dword [0x4d9b88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d9a88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a007
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 0x419fda
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 0x419fa8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a080
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 0x41a0d3
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 0x41a0ba
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