joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402590
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push str.CLASSPATH
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x4025e8
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.004020c4
mov edi, eax
push ebx
push str._Denv.class.path_s
push edi
call esi
push 0
push edi
call fcn.004017d4
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00403305
pop ecx
test al, al
pop ecx
jne 0x402612
push 1
push str.Cant_determine_application_home
call fcn.004035ac
pop ecx
xor al, al
pop ecx
jmp 0x402736
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.004020c4
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push str._Dapplication.home_s
push edi
call esi
push 0
push edi
call fcn.004017d4
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x408020
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, str._J_Dcom.sun.CORBA.activation.DbDir._orb.db
lea edx, [edx + ecx + 1]
jl 0x40265c
inc edx
push edx
call fcn.004020c4
mov edx, eax
mov esi, str._Djava.class.path
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0x10], 0x408028
rep movsb byte es:[edi], byte [esi]
jl 0x402696
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.004017d4
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x4029e6
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.004032c7
lea eax, [ebp - 0x184]
push 0x409444
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x402a3f
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x402a8f
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x402a83
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x402a59
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x403f52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 4], 0xffffffff
je 0x403fad
cmp dword [esi], 0xffffffff
je 0x403fad
push 0
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
test eax, eax
jl 0x403fad
mov eax, dword [esi + 4]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x403fad
mov edi, dword [esi + 4]
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, edi
je 0x403fb4
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x403fc4
and byte [edi + ebx], cl
mov eax, ebx
jmp 0x403faf
cmp eax, 8
jne 0x403fad
push 0x38
push 0x409cb4
lea eax, [ebp - 0x38]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
call fcn.00404a89
add esp, 0x10
test eax, eax
jl 0x403fa5
mov eax, dword [esi]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x403fa5
mov eax, dword [esi]
push 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00404b73
pop ecx
test eax, eax
pop ecx
jge 0x40402a
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
call esi
push edi
call esi
pop ecx
jmp 0x403fac
mov eax, dword [esi]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
and byte [eax + edi], 0
call esi
lea eax, [ebp - 0x38]
push eax
call fcn.00404a4b
pop ecx
test eax, eax
pop ecx
jge 0x404050
push edi
call esi
jmp 0x403fac
mov eax, edi
jmp 0x403faf
Function at 0x41bcb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
or ebp, 0xffffffff
jmp 0x41bcd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41bcd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41bcc8
mov eax, 1
add ebx, ebx
jne 0x41bceb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41bce0
jne 0x41bcfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41bce0
xor ecx, ecx
sub eax, 3
jb 0x41bd10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41bd82
mov ebp, eax
add ebx, ebx
jne 0x41bd1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41bd28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41bd4c
inc ecx
add ebx, ebx
jne 0x41bd38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41bd2d
jne 0x41bd49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41bd2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41bd6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41bd5d
jmp 0x41bcce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41bd6c
add edi, ecx
jmp 0x41bcce
pop esi
mov edi, esi
mov ecx, 0x1f9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41bd8a
cmp byte [edi], 7
jne 0x41bd8a
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 0x41bd8f
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x41be07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23378]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23418]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41bdbc
mov ecx, edi
jns 0x41bdeb
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 + 0x2341c]
or eax, eax
je 0x41be01
mov dword [ebx], eax
add ebx, 4
jmp 0x41bdd9
call dword [esi + 0x2342c]
mov ebp, dword [esi + 0x23420]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x41be3b
sub esp, 0xffffff80
jmp 0x403e3f
Function at 0x401070
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x2c
lea eax, [esp + 8]
push ebx
push esi
push edi
push ebp
push 0x22
push eax
call entry0
mov dx, 8
add esp, 8
movzx eax, dx
dec dx
mov ecx, dword [esp + 0x40]
mov ebx, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4]
sub dword [eax], ebx
cmp dx, 2
jae 0x40108a
mov si, 8
xor edi, edi
mov word [esp + 0x12], di
mov ebx, 0x80000000
mov eax, dword [esp + 0x12]
and eax, 0xffff
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + eax*4]
mov ecx, eax
and ecx, ebx
cmp ecx, 1
sbb dl, dl
xor cx, cx
inc dl
mov ebp, ebx
and ebp, eax
je 0x4010da
test dl, dl
je 0x4010ed
test ebp, ebp
jne 0x4010e2
test dl, dl
jne 0x4010ed
shr ebx, 1
inc cx
cmp cx, 0x20
jb 0x4010d0
shr cx, 2
mov bl, 7
sub bl, cl
movzx cx, bl
lea edx, [edx + ebx*2]
lea ecx, [ecx*4 + 4]
mov word [esp + 0x14], cx
mov byte [esp + 0x11], dl
xor dx, dx
mov bl, byte [esp + 0x11]
mov cl, 3
movzx ebp, di
sub cl, dl
shr bl, cl
and bl, 1
lea ecx, [esi - 1]
shl bl, cl
or byte [esp + ebp + 0x18], bl
dec si
jne 0x401132
mov si, 8
inc di
inc dx
cmp dx, 4
jb 0x40110f
xor dx, dx
cmp word [esp + 0x14], dx
je 0x401172
mov ebx, eax
mov cl, byte [esp + 0x14]
movzx ebp, di
sub cl, dl
dec cl
shr ebx, cl
and bl, 1
lea ecx, [esi - 1]
shl bl, cl
or byte [esp + ebp + 0x18], bl
dec si
jne 0x401169
mov si, 8
inc di
inc dx
cmp dx, word [esp + 0x14]
jb 0x401144
inc word [esp + 0x12]
cmp word [esp + 0x12], 9
jb 0x4010ad
cmp si, 8
je 0x40118b
inc di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x44]
push 0x28
mov dword [esp + 0x18], eax
push esi
call entry0
mov al, byte [esp + 0x1c]
add esp, 8
movzx ecx, di
mov edi, 0x26
mov byte [esi], al
xor eax, eax
sub edi, ecx
mov al, byte [esp + 0x15]
cdq
idiv edi
add dl, 2
mov al, byte [esp + 0x14]
sub al, dl
movzx bx, dl
movzx edx, bx
mov byte [esi + 1], al
lea edi, [ecx + edx]
cmp edi, edx
jle 0x4011e7
movzx eax, bx
inc bx
mov byte [eax + esi], 1
movzx ebp, bx
cmp ebp, edi
jl 0x4011d7
mov bx, 2
movzx eax, bx
lea edi, [eax + esi]
cmp byte [edi], 0
jne 0x4011fc
mov al, byte [esp + 0x16]
mov byte [edi], al
inc bx
cmp bx, 0x28
jb 0x4011eb
lea eax, [esp + 0x18]
push ecx
push eax
add edx, esi
push edx
call fcn.00401020
mov cx, 1
add esp, 0xc
movzx eax, cx
inc cx
add eax, esi
mov dl, byte [eax - 1]
xor byte [eax], dl
cmp cx, 0x28
jb 0x401219
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x442cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53ed28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x596a0c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
lea edi, [esi + 0x23c]
push eax
lea ecx, [esi + 0x240]
push edi
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x230]
push eax
push ecx
push edx
mov ecx, 0x599ae0
mov byte [esp + 0x38], 2
call fcn.00465b20
test eax, eax
jne 0x442d33
mov dword [edi], eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00442d90
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.00519976
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00519976
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00519976
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x5154f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.005031f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x5155bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x5155bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x51556e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x515579
or bh, 8
and edi, 0x8000000
je 0x515594
mov eax, dword [0x5aa25c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x5155bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51bcf5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51bd2d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00519dd1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00519da9
jmp 0x51bd39
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x415d81
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401080
Capabilities:
Enumerate internet cache

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x1000
mov dword [esp + 0x14], 0x1000
call fcn.004011c8
mov ebp, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
mov dword [esi], eax
call ebp
mov ebx, eax
test ebx, ebx
jne 0x4010f9
jmp 0x4010c0
mov edi, dword [esp + 0x10]
push esi
call fcn.004011ce
add esp, 4
call dword [0x402014]
cmp eax, 0x7a
jne 0x4011ad
push edi
call fcn.004011c8
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
push 0
mov dword [esi], edi
call ebp
mov ebx, eax
test ebx, ebx
je 0x4010c0
test dword [esi + 0xc], 0x100000
jne 0x401118
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call fcn.00401020
add esp, 0xc
push esi
call fcn.004011ce
mov ebp, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
add esp, 4
push 0x1000
mov dword [esp + 0x14], 0x1000
call fcn.004011c8
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push ebx
mov dword [esi], eax
call ebp
test eax, eax
jne 0x401183
mov edi, dword [esp + 0x10]
push esi
call fcn.004011ce
add esp, 4
call dword [0x402014]
cmp eax, 0x7a
jne 0x4011bb
push edi
call fcn.004011c8
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
push ebx
mov dword [esi], edi
call ebp
test eax, eax
je 0x401151
test dword [esi + 0xc], 0x100000
jne 0x4011a2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call fcn.00401020
add esp, 0xc
push esi
call fcn.004011ce
jmp 0x401124
push 0
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x409570
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fe0b
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.0046292f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4095f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004603ad
mov eax, dword [eax]
push 0x4891d0
push eax
call fcn.00453064
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00462bba
test bl, bl
je 0x4095f2
push 0x4891d0
lea ecx, [esp + 0xc]
call fcn.00462f96
push 0x48cd44
lea ecx, [esp + 0xc]
call fcn.00462f96
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 0x40962e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00462bba
jmp 0x4096f9
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 0x4096b2
lea edx, [esp + 0x7c]
push 0x48cd40
push edx
call fcn.00453064
add esp, 8
test eax, eax
je 0x4096b2
lea eax, [esp + 0x7c]
push 0x48cd3c
push eax
call fcn.00453064
add esp, 8
test eax, eax
je 0x4096b2
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 0x409642
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.00462bba
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 0x409ef0
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 0x409f52
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 0x409f60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fe8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x493c18]
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 0x40a098
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409fc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462bba
xor eax, eax
jmp 0x40a10f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00462d43
push esi
lea ecx, [esp + 0xc]
call fcn.00462fd2
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 0x40a0ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00409ef0
test eax, eax
jne 0x40a0ed
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 SysReAllocStringLen
mov ecx, edi
call fcn.00409ef0
test eax, eax
jne 0x40a0ed
lea eax, [esp + 0x14]
push 0x48cd58
push eax
call fcn.00454140
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a0cc
lea ecx, [esp + 0x14]
push 0x48cd54
push ecx
call fcn.004540c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a0cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a0cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00462cf3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409fde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462bba
xor eax, eax
jmp 0x40a10f
mov byte [esi], 0
push 0x48cd50
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.00462bba
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 0x41ab00
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 0x41ab6e
cmp si, 0x69
ja 0x41ab6e
add esi, 0xffd0
cmp si, 0x11
je 0x41ab3e
push 0x11
call edi
test ax, ax
jge 0x41ab3e
or esi, 0x2000
cmp si, 0x10
je 0x41ab53
push 0x10
call edi
test ax, ax
jge 0x41ab53
or esi, 0x4000
cmp si, 0x12
je 0x41ab68
push 0x12
call edi
test ax, ax
jge 0x41ab68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41ab7b
mov esi, 0xbd
jmp 0x41ab2f
cmp si, 0x6e
jne 0x41ab88
mov esi, 0xbe
jmp 0x41ab2f
cmp si, 0x6f
jne 0x41ab29
mov esi, 0xbf
jmp 0x41ab2f

Function at 0x41c1e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a49b8]
xor edx, edx
cmp eax, edx
jne 0x41c206
xor eax, eax
mov byte [eax + 0x4a48b8], al
inc eax
cmp eax, 0x100
jl 0x41c1ee
mov dword [0x4a49b8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a48b8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c297
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 0x41c26a
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 0x41c238
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c310
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 0x41c363
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 0x41c34a
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