joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435630
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0xc
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebp
add edi, 0x64
mov ebp, dword [esi]
mov eax, dword [esi + 4]
sub ebp, dword [edi]
mov edx, eax
shr edx, 7
mov ebx, ebp
and dl, 0x1f
mov cl, 0x20
sub cl, dl
sub edi, 8
shl ebx, cl
mov cl, dl
shr ebp, cl
or ebx, ebp
mov cl, 0x20
xor ebx, eax
mov eax, ebx
mov dword [esi], ebx
shr eax, 4
mov edx, dword [edi + 4]
add edx, dword [esi + 4]
and al, 0x1f
mov ebp, edx
sub cl, al
shl ebp, cl
mov cl, al
shr edx, cl
or ebp, edx
xor ebp, ebx
dec dword [esp + 0x10]
mov dword [esi + 4], ebp
jne 0x43564a
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
mov ecx, dword [eax + 4]
sub dword [esi], ecx
mov edx, dword [eax]
sub dword [esi + 4], edx
pop esi
pop ebx
add esp, 4
ret

Function at 0x436310
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 0
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x436339
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
inc esi
push esi
call fcn.004311a0
mov dword [esp + 0x10], eax
add esp, 4
test eax, eax
jne 0x436354
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [esp + 0xc]
push esi
push eax
push ebx
call edi
test eax, eax
jne 0x43636a
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x43a06e
Capabilities:
Query environment variable

Disassembly:
add esp, 4
add esp, 4
test eax, eax
jb 0x462955
jne 0x43a0c5
shr bp, 0x40
je 0x43a092
nop
cpuid
ret
shr bx, 0x40
mov al, byte [esi + edi + 1]
inc edi
test al, al
jb 0x43d9c4
mov dx, dx
jne 0x450412
je 0x43a0b2
nop
cpuid
ret
mov dl, dl
xchg dh, cl
xchg cl, dh
mov eax, edi
mov bp, bp
pop edi
jmp 0x45bf29
cmp al, 0xf9
xchg bh, bl
xchg bl, bh
jmp fcn.0046186d
pop esi
pop ebp
ret
Function at 0x44c1c5
Capabilities:
Get file size

Disassembly:
mov cx, cx
jmp 0x45ad3f
push edx
pop edx
push ebp
mov ecx, dword [esp + 8]
shr dl, 0x40
mov ebp, esp
sub esp, 4
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], 0
mov ecx, 0xffffffff
xchg di, ax
xchg di, ax
jne 0x45ad7f
xchg dx, ax
xchg dx, ax
je 0x45ad7d
int 0xed
outsd dx, dword [esi]
mov ecx, eax
mov eax, ecx
mov esp, ebp
xchg bp, di
xchg di, bp
pop ebp
ret

Function at 0x45147a
Capabilities:
Encrypt data using speck

Disassembly:
add esp, 4
add esp, 4
call fcn.00441852
fidivr dword [ebx + 0x424648d]
lea esp, [esp + 4]
or ebx, eax
jb 0x45eaeb
shr ch, 0x40
je 0x467eb0
jne 0x4514a8
jae 0x4514c6
sahf
lea eax, es:[ebx - 1]
lea eax, [ebx - 1]
cmp dword [edi + 4], eax
ja 0x467eb0
jbe 0x4514ba
pop ds
outsb dx, byte [esi]
cmc
and byte [edi], cl
xchg dword [eax + 0x7600013d], esp
add esi, ebp
ja 0x465260
jbe 0x4514c5
cmc
sal edx, 0xf
jbe 0x465260
xchg byte [ebp - 0x7dfffec3], dl
pop ebp
xor bl, 0x5d
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
push eax
call fcn.00447636
add esp, 4
shl edi, 0x20
mov eax, dword [esi]
push 0x1b
jno 0x467e90
jo 0x465282
mul dword [esi]
sal ebp, 0xf
or byte [eax], 0x2c
add byte [eax], al
jo 0x467e90
shr ebx, 0x40
jmp 0x467e94
push eax
call fcn.0043b4a9
add esp, 8
mov cx, cx
pop edi
pop esi
shr eax, 0x40
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [ebx]
lea eax, [ebp - 0x1c]
shr si, 0x40
lea ecx, [ebp - 0x28]
push eax
lea ebp, [ebp]
lea edx, [ebp - 0x24]
push ecx
push edx
call fcn.0044357f
add esp, 0xc
cmp dword [ebp - 0x1c], 0x7cf
xchg cl, dh
xchg dh, cl
jge 0x467ef4
jl 0x467ee6
invalid
mov dword [ebp - 0x10], 0
jmp 0x462b6b
mov eax, dword [ebp - 0x1c]
jmp 0x452270
Function at 0x462b59
Capabilities:
Encrypt data using speck

Disassembly:
jl 0x46539a
jge 0x439c1b
invalid
mov ebx, 0xffffff9c
mov eax, esi
cdq
idiv ebx
jne 0x467a06
je 0x439c2f
push esi
ror byte [edi], 0x84
rcr ebp, 1
add al, byte [eax]
je 0x467a06
add eax, 0x5a18e9a7
add dword [eax], eax
ror dword [ebp - 0x133f1278], 0x40
add esp, 8
mov ecx, dword [esi]
push ebx
jmp 0x448498
push ecx
jmp fcn.00462fcb
push 0
mov eax, dword [esi]
push eax
mov dh, dh
call fcn.00445916
add esp, 8
mov eax, dword [esi]
mov cx, cx
push 0
push eax
call fcn.00464573
mov bx, word [edi + 8]
add esp, 8
mov eax, dword [esi]
js 0x462fc6
jns 0x4484dd
cpuid
ret
jns 0x462fc6
xor al, 0x9e
shl ecx, 4
or ax, ax
and dl, 0xf
jb 0x45bb0d
cmp dl, 9
jbe 0x44850b
ja 0x448501
push es
cmp al, byte [eax + 0x5e937c2]
add byte [eax], al
add byte [ebx - 0x4d], ch
add dl, 0x37
jmp 0x44850e
add dl, 0x30
mov byte [esi + eax], dl
inc eax
cmp eax, 8
jb 0x454fee
mov edi, edi
jae 0x448523
xlatb
js 0x4484e3
mov edi, 5
add eax, 0x66000000
mov ecx, 0x810f000a
cmpsb byte [esi], byte es:[edi]
inc ebp
add byte [eax], al
neg byte [ebx]
jmp dword [esi]
loopne 0x45baeb
mov cx, cx
mov ebx, dword [esi + 4]
lea esi, [esi + 8]
sub ebx, 0
jae 0x45bb20
jae 0x44a5b7
call fcn.00464573
mov al, al
mov bx, word [ebx + 8]
jne 0x44848d
je 0x461823
cpuid
in al, 0xc3
je 0x44848d
and byte [0x810efbc3], 0xf9
or al, 0
add byte [eax], al
jg 0x46539a
lea esi, [esi]
jle 0x461840
fsubr dword [ecx + eax*4 - 7]
add eax, dword [eax]
add byte [eax], al
cmp ecx, 3
jno 0x439c0f
jo 0x461850
push ss
je 0x461860
jo 0x439c0f
cmp byte [ecx + 0x35fffd83], 0x41
xor eax, 0x85e8b41
jbe 0x46186e
test ecx, esi
pushal
invalid
pop dword [esp - 4]
call fcn.0046231e
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dx, dx
test ebx, ebx
jb 0x464d44
je 0x4484a4
shr di, 0x40
jne 0x462b84
invalid
lea eax, [ebx + ebx*2]
lea ebx, [edi + eax*4]
lea eax, [eax]
mov eax, dword [esi]
mov ecx, dword [ebx]
shr al, 0x40
push ecx
push eax
call fcn.00445916
add esp, 8
mov ecx, dword [esi]
push 0
shr dx, 0x40
push ecx
js 0x46180c
jns 0x462bb6
push esp
or dl, dh
mov byte [0xec50890f], al
invalid
jns 0x46180c
fld dword [edx - 0x77]
in eax, 0x81
in al, dx
or al, 0
add byte [eax], al
cmp dh, dh
stc
cmp dword [0x487fb2], 0
push ebx
push esi
shl cx, 0x20
jmp 0x462bdb
push edi
call fcn.00453b51
insd dword es:[edi], dx
adc dword [esi - 0x3f], esp
jmp 0xd3cb5c8d
mov eax, 0xffffffff
pop edi
xchg dl, bl
xchg bl, dl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468d24
Capabilities:
Packed with generic packer

Disassembly:
test eax, eax
jb 0x46a74a
jmp 0x43d4b3
push ebx
mov esi, esi
push esi
jmp 0x43d4b9
push edi
je 0x43d4ca
jne 0x43d4c5
invalid
mov word [eax], 6
cmp dword [ebp + 0x10], 6
jae 0x43d4ed
mov bp, bp
jb 0x43d4e0
pop esi
mov esp, 0xb86669d3
sbb byte [eax], al
mov ax, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
ja 0x44971b
xchg si, dx
xchg dx, si
jbe 0x43d4ff
into
mov ebp, 0x860fc5a0
push ss
ret 0
jbe 0x44971b
and eax, 0x30658951
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 2]
jmp 0x443e02
push ecx
push 1
and eax, 0xffff
jb 0x4449f0
sub eax, 4
mov bl, bl
mov ecx, dword [ebp - 0xc]
jmp 0x443e1c
push eax
jmp 0x443e1f
push ebx
xchg ebp, eax
xchg ebp, eax
mov eax, dword [esi]
add eax, 0x74
push eax
push ecx
call fcn.0046b8f0
add esp, 0x18
test ax, ax
jb 0x4449f9
je 0x4520d0
jne 0x443e4d
loop 0x443e6d
sbb dword [eax], ebx
mov eax, dword [ebp - 0xc]
push eax
push ecx
pop ecx
call fcn.00447636
call fcn.0043fbb0
fcomp dword [esi - 0x75f7a175]
inc esp
add eax, 0xc768d00
add byte [eax], al
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0044961b
add esp, 0xc
mov esi, dword [ebp + 8]
push 1
mov di, di
jmp 0x449738
push esi
call fcn.0043c150
add esp, 8
call 0x462bfa
and eax, 0x8d1c6aef
add byte [edx], ch
mov eax, dword [ebp - 0x28]
jmp 0x4520d4
push esi
push edx
pop edx
push 0xa
mov dword [ebx + 6], eax
jmp 0x4520de
push ebx
call fcn.00442ac2
mov bx, ax
add esp, 0xc
ja 0x46692d
jbe 0x4520f9
movsb byte es:[edi], byte gs:[esi]
test eax, 0x482e860f
add dword [eax], eax
jbe 0x46692d
fimul dword [ebx]
mov eax, dword [esp + 0x14]
mov ebp, esp
and edx, edx
sub esp, 0x40
jno 0x43d4aa
jo 0x4594c2
mov dl, 0xbb
sub dword [edi], ecx
and dl, 0x3f
invalid
jo 0x43d4aa
add eax, 0x24648d36
add al, 0xff
invalid
test bx, bx
jb 0x4687e6
je 0x46698c
jne 0x466942
nop
cpuid
ret 0x458b
mov eax, dword [ebp - 0xc]
mov dl, dl
push eax
call fcn.00447636
add esp, 4
mov esi, esi
mov eax, dword [ebp - 8]
push eax
call fcn.00447636
sub ebp, 0
add esp, 4
mov eax, dword [esi]
push ebx
shl cx, 0x20
push eax
mov ah, ah
call fcn.0043b4a9
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov eax, eax
ret
push ebp
jno 0x4594a9
shr bh, 0x40
jo 0x468d34
cld
and dword [ecx + 0xf], esp
sub byte [edi + 7], 0xff
push dword [esi + esi*8]
jo 0x4594a9
xor al, 0xf6
sbb dword [edi + 0x44970468], eax
add bl, al
jmp 0x46a753
push edx
call fcn.0044f6b3
add esp, 0x18
js 0x443dfb
jns 0x46a76a
and dh, al
jns 0x443dfb
and eax, 0xc35b53fe
stosb byte es:[edi], al
das
Function at 0x474fd6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x401b18
call fcn.00476a68
mov edi, 0x94
mov eax, edi
call fcn.00474d40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x48bff4], ecx
mov eax, dword [esi + 4]
mov dword [0x48c000], eax
mov edx, dword [esi + 8]
mov dword [0x48c004], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x48bff8], esi
cmp ecx, 2
je 0x475036
or esi, 0x8000
mov dword [0x48bff8], esi
shl eax, 8
add eax, edx
mov dword [0x48bffc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x475071
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x475071
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x475089
cmp eax, 0x20b
je 0x475076
mov dword [ebp - 0x1c], esi
jmp 0x47509d
cmp dword [ecx + 0x84], 0xe
jbe 0x475071
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x475097
cmp dword [ecx + 0x74], 0xe
jbe 0x475071
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00476c19
pop ecx
test eax, eax
jne 0x4750c9
cmp dword [0x48bfe4], 1
jne 0x4750b6
call fcn.00478932
push 0x1c
call fcn.004787bb
push 0xff
call fcn.00475ca5
pop ecx
pop ecx
call fcn.004790db
mov dword [ebp - 4], esi
call fcn.00478f30
test eax, eax
jge 0x4750e2
push 0x1b
call fcn.00474fb1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x48eed8], eax
call fcn.00478e0e
mov dword [0x48bfdc], eax
call fcn.00478d6c
test eax, eax
jge 0x475108
push 8
call fcn.00474fb1
pop ecx
call fcn.00478b39
test eax, eax
jge 0x475119
push 9
call fcn.00474fb1
pop ecx
push 1
call fcn.00475cd5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x47512f
push eax
call fcn.00474fb1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00478adc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x475150
movzx eax, word [ebp - 0x40]
jmp 0x475153
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406040
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x475171
push edi
call fcn.00475e00
call fcn.00475e22
jmp 0x4751a3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00476aa3
ret
Function at 0x401b80
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x402588
call fcn.00401d94
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x401bd3
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x401bd3
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x401beb
cmp ecx, 0x20b
je 0x401bd8
mov dword [ebp - 0x1c], ebx
jmp 0x401bff
cmp dword [eax + 0x84], 0xe
jbe 0x401bd3
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x401bf9
cmp dword [eax + 0x74], 0xe
jbe 0x401bd3
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x403340], edi
mov dword [0x403344], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x403334]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x403330]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40333c], eax
call fcn.00401d8e
cmp dword [0x403250], ebx
jne 0x401c5c
push fcn.00401d8e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00401d7c
push 0x40223c
push 0x402238
call sub.msvcrt.dll__initterm
mov eax, dword [0x40332c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x403328]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x402234
push 0x402228
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x401ce7
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x401cc7
cmp cl, 0x22
jne 0x401cb8
cmp byte [eax], 0x22
jne 0x401cd0
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x401cdb
cmp cl, 0x20
jbe 0x401ccc
test byte [ebp - 0x54], 1
je 0x401cf2
movzx ecx, word [ebp - 0x50]
jmp 0x401cf5
cmp byte [eax], 0x20
jbe 0x401cd0
inc eax
mov dword [ebp - 0x20], eax
jmp 0x401ce7
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00401dec
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x401d13
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x401d4f
mov eax, esi
jmp 0x401d63
call fcn.00401dcf
ret
Function at 0x4128f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4789cb
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.0046d4d4
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x412972
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046acc4
mov eax, dword [eax]
push 0x4931e0
push eax
call fcn.0045da34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046d75f
test bl, bl
je 0x412972
push 0x4931e0
lea ecx, [esp + 0xc]
call fcn.0046daef
push 0x496d48
lea ecx, [esp + 0xc]
call fcn.0046daef
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 0x4129ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046d75f
jmp 0x412a79
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 0x412a32
lea edx, [esp + 0x7c]
push 0x496d44
push edx
call fcn.0045da34
add esp, 8
test eax, eax
je 0x412a32
lea eax, [esp + 0x7c]
push 0x496d40
push eax
call fcn.0045da34
add esp, 8
test eax, eax
je 0x412a32
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 0x4129c2
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.0046d75f
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 0x413270
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 0x4132d2
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 0x4132e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x478a4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49d688]
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 0x413418
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413346
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d75f
xor eax, eax
jmp 0x41348f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046d89c
push esi
lea ecx, [esp + 0xc]
call fcn.0046db2b
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 0x41346d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00413270
test eax, eax
jne 0x41346d
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 SysReAllocString
mov ecx, edi
call fcn.00413270
test eax, eax
jne 0x41346d
lea eax, [esp + 0x14]
push 0x496d5c
push eax
call fcn.0045eb40
mov esi, eax
add esp, 8
test esi, esi
jne 0x41344c
lea ecx, [esp + 0x14]
push 0x496d58
push ecx
call fcn.0045eac0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41344c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41344f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046d84c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41335e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d75f
xor eax, eax
jmp 0x41348f
mov byte [esi], 0
push 0x496d54
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.0046d75f
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 0x4252c0
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 0x42532e
cmp si, 0x69
ja 0x42532e
add esi, 0xffd0
cmp si, 0x11
je 0x4252fe
push 0x11
call edi
test ax, ax
jge 0x4252fe
or esi, 0x2000
cmp si, 0x10
je 0x425313
push 0x10
call edi
test ax, ax
jge 0x425313
or esi, 0x4000
cmp si, 0x12
je 0x425328
push 0x12
call edi
test ax, ax
jge 0x425328
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42533b
mov esi, 0xbd
jmp 0x4252ef
cmp si, 0x6e
jne 0x425348
mov esi, 0xbe
jmp 0x4252ef
cmp si, 0x6f
jne 0x4252e9
mov esi, 0xbf
jmp 0x4252ef

Function at 0x426b80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4add90]
xor edx, edx
cmp eax, edx
jne 0x426ba6
xor eax, eax
mov byte [eax + 0x4adc90], al
inc eax
cmp eax, 0x100
jl 0x426b8e
mov dword [0x4add90], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4adc90
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x426c37
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 0x426c0a
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 0x426bd8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x426cb0
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 0x426d03
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 0x426cea
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
Function at 0x42d740
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x42d8d8
cmp ebp, ebx
jle 0x42d8d8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42d79e
dec eax
or eax, 0xfffffff8
inc eax
je 0x42d7a5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x42d7b4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42d7bb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0046d4a0
add esp, 4
cmp eax, ebx
je 0x42d7dc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0046d4a0
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42d8ce
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x42d8b5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x42d8a1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x42d896
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x42d8a4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x42d8a4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x42d840
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x42d831
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret