joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027880
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x1003a0c4]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x100278c8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x100278a8
mov eax, 1
jmp 0x100278c3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10027999
mov eax, 2
mov dword [0x1003a0c4], eax
cmp eax, 1
jne 0x100278e8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x100279ab
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10027903
mov ecx, dword [0x10039e20]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x10027922
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.1001e1f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10027936
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10027990
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10027974
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x10027990
push edi
call fcn.1001e180
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x100279a0
push edi
call fcn.1001e180
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.1001e180
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100279b0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x1003a0c8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x100279f8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100279dc
mov eax, 1
jmp 0x100279f3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x10027ad8
mov eax, 2
mov dword [0x1003a0c8], eax
cmp eax, 2
jne 0x10027a18
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x10027aea
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10027a33
mov ecx, dword [0x10039e20]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x10027a52
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.1001e1f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10027a69
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10027acf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x10027ab0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10027acf
push esi
call fcn.1001e180
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x10027adf
push esi
call fcn.1001e180
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.1001e180
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10027df0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10027fae
push 0x3d
push edi
call fcn.1001eca0
mov esi, eax
add esp, 8
test esi, esi
je 0x10027fae
cmp edi, esi
je 0x10027fae
mov dl, byte [esi + 1]
mov ecx, dword [0x10039b14]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x10039b10]
cmp eax, ecx
jne 0x10027e47
push eax
call fcn.10028080
add esp, 4
mov dword [0x10039b10], eax
test eax, eax
jne 0x10027ec2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10027e6e
mov eax, dword [0x10039b18]
test eax, eax
je 0x10027e6e
call fcn.10027800
test eax, eax
je 0x10027ebd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10027e7a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.1001e1f0
add esp, 4
mov dword [0x10039b10], eax
test eax, eax
je 0x10027fae
mov dword [eax], 0
mov eax, dword [0x10039b18]
test eax, eax
jne 0x10027ebd
push 4
call fcn.1001e1f0
add esp, 4
mov dword [0x10039b18], eax
test eax, eax
je 0x10027fae
mov dword [eax], 0
mov eax, dword [0x10039b10]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.10028000
mov esi, eax
add esp, 8
test esi, esi
jl 0x10027fbf
cmp dword [ebx], 0
je 0x10027fbf
test ebp, ebp
je 0x10027fb7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.1001e180
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x10027f19
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x10027f08
lea eax, [esi*4]
push eax
push ebx
call fcn.10020b60
add esp, 8
test eax, eax
je 0x10027f33
mov dword [0x10039b10], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10027fa6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.1001e1f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10027fa6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.1001e180
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x10027f37
test ebp, ebp
jne 0x10027fa6
test esi, esi
jge 0x10027fc9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.10020b60
add esp, 8
test eax, eax
je 0x10027fae
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x10039b10], eax
jmp 0x10027f37
Function at 0x10028fe7
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
push esi
push edi
lea eax, [ebp - 0x230]
push str.RxFileMap
push eax
call fcn.10029ea0
push dword [0x1003a390]
lea eax, [ebp - 0x230]
push eax
call fcn.10029eb0
add esp, 0x10
lea eax, [ebp - 0x230]
xor edi, edi
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, edi
je 0x10029035
push eax
jmp 0x100291cb
lea eax, [ebp - 0x11c]
push str.EntryEvent
push eax
call fcn.10029ea0
push dword [0x1003a390]
lea eax, [ebp - 0x11c]
push eax
call fcn.10029eb0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 0x10
lea eax, [ebp - 0x11c]
mov esi, 0x10038888
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x1003a398], eax
je 0x100291b8
lea eax, [ebp - 0x11c]
push str.ExitEvent
push eax
call fcn.10029ea0
push dword [0x1003a390]
lea eax, [ebp - 0x11c]
push eax
call fcn.10029eb0
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x1003a39c], eax
je 0x100291b8
lea eax, [ebp - 0x230]
push eax
push 0x10000
push edi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [0x1003a3a0], eax
je 0x100291b8
push edi
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [0x1003a3b0], eax
je 0x100291b8
cmp word [ebp + 8], di
je 0x100291d1
push edi
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [ebp + 8], eax
je 0x100291b8
lea eax, [ebp - 0x344]
push str.ASCMutex
push eax
call fcn.10029ea0
push dword [0x1003a390]
lea eax, [ebp - 0x344]
push eax
call fcn.10029eb0
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, edi
mov dword [0x1003a3ac], eax
je 0x100291b8
lea eax, [ebp - 0x11c]
push str.ExitThreadEvent
push eax
call fcn.10029ea0
push dword [0x1003a390]
lea eax, [ebp - 0x11c]
push eax
call fcn.10029eb0
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x1003a3a4], eax
je 0x100291b8
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push edi
push eax
push 0x10029652
push edi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x1003a394], eax
jne 0x100291bd
xor ax, ax
jmp 0x100291d5
push dword [0x10038884]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100293ff
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push 1
pop esi
lea eax, [ebp - 0x114]
push str.ASCMutex
push eax
call fcn.10029ea0
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.10029eb0
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x1003a3a8], eax
je 0x10029458
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002945a
xor esi, esi
mov ax, si
pop esi
leave
ret

Function at 0x1002a060
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, eax
dec eax
test edx, edx
jbe 0x1002a0cd
push edi
mov edi, dword [esp + 0x14]
sub edi, ecx
push esi
mov esi, dword [esp + 0xc]
inc eax
push ebp
push ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
xor edx, edx
mov ebx, 0x7b
mov ebp, 0x7f
div ebx
xor eax, eax
mov al, byte [edx + esi]
xor edx, edx
mov ebx, eax
mov eax, ecx
div ebp
xor eax, eax
mov al, byte [edx + esi]
mov edx, ecx
xor ebx, eax
and edx, ebp
mov al, byte [ebx + 0x10031230]
mov bl, byte [edx + esi]
xor al, bl
mov bl, byte [ecx + edi]
xor bl, al
mov eax, dword [esp + 0x1c]
mov byte [ecx + edi], bl
inc ecx
dec eax
mov dword [esp + 0x1c], eax
jne 0x1002a082
pop ebx
pop ebp
pop esi
pop edi
mov eax, 0x3e9
ret

Function at 0x1002b420
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [esi], al
mov al, byte [ecx]
test al, al
je 0x1002b45a
mov edx, esi
push ebx
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc edi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
mov al, byte [ecx]
test al, al
jne 0x1002b43b
mov byte [edi + esi], 0
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
ret

Function at 0x1002b5a9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0x40
push 0
push dword [ebp + 8]
call fcn.1001de23
add esp, 0x10
test ax, ax
jne 0x1002b5e8
mov edi, 0xff
push 0x40
push edi
push esi
call fcn.10020b00
push 0xf8
push edi
push dword [ebp + 0x10]
call fcn.10020b00
add esp, 0x18
jmp 0x1002b628
cmp word [esi], 0x5a4d
mov ebx, dword [ebp + 0x10]
mov edi, 0xf8
jne 0x1002b619
push ebx
push edi
push dword [esi + 0x3c]
push dword [ebp + 8]
call fcn.1001de23
add esp, 0x10
test ax, ax
je 0x1002b619
xor eax, eax
cmp dword [ebx], 0x4550
sete al
jmp 0x1002b62b
push edi
push 0xff
push ebx
call fcn.10020b00
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x448f30
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
jmp 0x4490ed
push edi
or ebp, 0xffffffff
jmp 0x448f52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x448f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448f48
mov eax, 1
add ebx, ebx
jne 0x448f6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x448f7c
jne 0x448f9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448f9b
dec eax
add ebx, ebx
jne 0x448f88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x448f60
add ebx, ebx
jne 0x448f97
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x448fed
xor ecx, ecx
sub eax, 3
jb 0x448fb3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x449022
sar eax, 1
mov ebp, eax
jmp 0x448fbe
add ebx, ebx
jne 0x448fbe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448f8c
inc ecx
add ebx, ebx
jne 0x448fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448f8c
add ebx, ebx
jne 0x448fd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x448fce
jne 0x448fea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x448fce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44900c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x448ffe
jmp 0x448f4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44900c
add edi, ecx
jmp 0x448f4e
pop esi
mov edi, esi
mov ecx, 0x1419
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44902a
cmp byte [edi], 9
jne 0x44902a
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 0x44902f
lea edi, [esi + 0x45000]
mov eax, dword [edi]
or eax, eax
je 0x4490a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4b91c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4ba20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44905c
mov ecx, edi
jns 0x44908b
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 + 0x4ba24]
or eax, eax
je 0x4490a1
mov dword [ebx], eax
add ebx, 4
jmp 0x449079
call dword [esi + 0x4ba34]
mov ebp, dword [esi + 0x4ba28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4490db
sub esp, 0xffffff80
jmp 0x41e281
nop
nop
nop
nop
push esi
mov ecx, 0x77cc
mov edx, 0x5611f7f2
mov ebx, dword [esi]
xor ebx, edx
mov dword [esi], ebx
add esi, 4
dec ecx
cmp ecx, 0
jne 0x4490fc
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
lea edi, [esi - 0x2a000]
jmp 0x448f3c
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x71e746d1
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x24365613
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40d560
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fc2b
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.0046461a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d5e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00461ecd
mov eax, dword [eax]
push 0x494ca4
push eax
call fcn.00454d44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004648a5
test bl, bl
je 0x40d5e2
push 0x494ca4
lea ecx, [esp + 0xc]
call fcn.00464c35
push 0x494cb0
lea ecx, [esp + 0xc]
call fcn.00464c35
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 0x40d61e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004648a5
jmp 0x40d6e9
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 0x40d6a2
lea edx, [esp + 0x7c]
push 0x494cac
push edx
call fcn.00454d44
add esp, 8
test eax, eax
je 0x40d6a2
lea eax, [esp + 0x7c]
push 0x494ca8
push eax
call fcn.00454d44
add esp, 8
test eax, eax
je 0x40d6a2
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 0x40d632
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.004648a5
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 0x40def0
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 0x40df52
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 0x40df60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fcab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49b498]
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 0x40e098
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40dfc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004648a5
xor eax, eax
jmp 0x40e10f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004649e2
push esi
lea ecx, [esp + 0xc]
call fcn.00464c71
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 0x40e0ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040def0
test eax, eax
jne 0x40e0ed
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.0040def0
test eax, eax
jne 0x40e0ed
lea eax, [esp + 0x14]
push 0x494cc0
push eax
call fcn.00455d80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e0cc
lea ecx, [esp + 0x14]
push 0x494cbc
push ecx
call fcn.00455d00
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e0cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40e0cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00464992
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40dfde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004648a5
xor eax, eax
jmp 0x40e10f
mov byte [esi], 0
push 0x494cb8
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.004648a5
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 0x41e880
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 0x41e8ee
cmp si, 0x69
ja 0x41e8ee
add esi, 0xffd0
cmp si, 0x11
je 0x41e8be
push 0x11
call edi
test ax, ax
jge 0x41e8be
or esi, 0x2000
cmp si, 0x10
je 0x41e8d3
push 0x10
call edi
test ax, ax
jge 0x41e8d3
or esi, 0x4000
cmp si, 0x12
je 0x41e8e8
push 0x12
call edi
test ax, ax
jge 0x41e8e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41e8fb
mov esi, 0xbd
jmp 0x41e8af
cmp si, 0x6e
jne 0x41e908
mov esi, 0xbe
jmp 0x41e8af
cmp si, 0x6f
jne 0x41e8a9
mov esi, 0xbf
jmp 0x41e8af

Function at 0x420040
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4abbf8]
xor edx, edx
cmp eax, edx
jne 0x420066
xor eax, eax
mov byte [eax + 0x4abaf8], al
inc eax
cmp eax, 0x100
jl 0x42004e
mov dword [0x4abbf8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4abaf8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4200f7
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 0x4200ca
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 0x420098
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420170
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 0x4201c3
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 0x4201aa
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