joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb4b5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4bb520
push 0x3d
push dword [ebp + 8]
call fcn.004bb7de
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4bb520
cmp dword [ebp + 8], esi
je 0x4bb520
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x52bc84]
cmp eax, dword [0x52bc88]
jne 0x4bb506
mov edi, eax
call fcn.004bb454
mov dword [0x52bc84], eax
cmp eax, ebx
jne 0x4bb55f
cmp dword [ebp + 0xc], ebx
je 0x4bb528
cmp dword [0x52bc8c], ebx
je 0x4bb528
call fcn.004bab75
test eax, eax
je 0x4bb55f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4bb663
push 4
call fcn.004b261a
cmp eax, ebx
pop ecx
mov dword [0x52bc84], eax
je 0x4bb520
mov dword [eax], ebx
cmp dword [0x52bc8c], ebx
jne 0x4bb55f
push 4
call fcn.004b261a
cmp eax, ebx
pop ecx
mov dword [0x52bc8c], eax
je 0x4bb520
mov dword [eax], ebx
mov ebx, dword [0x52bc84]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004bb407
mov edi, eax
test edi, edi
pop ecx
jl 0x4bb5b8
cmp dword [ebx], 0
je 0x4bb5b8
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004b262c
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4bb5a0
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4bb5ee
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4bb597
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004b4c28
test eax, eax
pop ecx
pop ecx
je 0x4bb5ee
jmp 0x4bb5e9
cmp dword [ebp - 4], 0
jne 0x4bb65c
test edi, edi
jge 0x4bb5c8
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004b4c28
test eax, eax
pop ecx
pop ecx
je 0x4bb520
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x52bc84], eax
cmp dword [ebp + 0xc], 0
je 0x4bb645
push dword [ebp + 8]
call fcn.004b34b0
inc eax
inc eax
push eax
call fcn.004b261a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4bb645
push dword [ebp + 8]
push esi
call fcn.004b44b0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4bb63e
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004b262c
pop ecx
cmp dword [ebp - 4], 0
je 0x4bb654
push dword [ebp + 8]
call fcn.004b262c
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4bb523
push esi
call fcn.004b262c
pop ecx
xor eax, eax
jmp 0x4bb523
Function at 0x4bbfc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cd549
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebp
mov ebp, ecx
push edi
mov dword [esp + 0xc], ebp
call fcn.00442890
lea eax, [esp + 0x10]
xor edi, edi
push eax
mov dword [esp + 0x98], edi
call fcn.00448be0
push 0x2c
call fcn.00442820
add esp, 8
mov dword [esp + 8], eax
cmp eax, edi
mov byte [esp + 0x94], 1
je 0x4bbdb4
push 0x2a
lea ecx, [ebp + 0x38]
push ecx
mov ecx, eax
call fcn.00446ec0
jmp 0x4bbdb6
xor eax, eax
push 0x1000
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 0
call fcn.00441f60
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov byte [esp + 0x94], 2
je 0x4bbdde
mov edi, dword [eax]
cmp edi, dword [ebp + 0x10]
je 0x4bbefc
push ebx
push esi
lea ebx, [edi + 0x24]
lea esp, [esp]
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00448270
mov ecx, dword [ebp + 4]
add esp, 8
cmp eax, ecx
jge 0x4bbee3
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0044c5d0
mov esi, eax
push 0x4ef1c8
lea ecx, [edi + 8]
push ecx
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0xb0], 3
call fcn.00401bb0
push esi
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0xbc], 4
call fcn.00401c60
add esp, 0x20
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 5
call fcn.004425f0
mov eax, dword [esp + 0x38]
mov esi, 0x10
cmp eax, esi
jb 0x4bbe74
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00442830
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jb 0x4bbe9c
mov edx, dword [esp + 0x5c]
push edx
call fcn.00442830
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0x9c], 2
jb 0x4bbecc
mov eax, dword [esp + 0x40]
push eax
call fcn.00442830
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jmp 0x4bbef1
push edi
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 8]
call fcn.004bb980
cmp edi, dword [ebp + 0x10]
jne 0x4bbdf0
pop esi
pop ebx
lea ecx, [esp + 0x6c]
mov byte [ebp + 0x34], 0
mov byte [esp + 0x94], 0
call fcn.00442040
mov ecx, ebp
mov dword [esp + 0x94], 0xffffffff
call fcn.004428a0
mov ecx, dword [esp + 0x8c]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x90
ret
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4bbfd3
mov al, byte [ecx + 0x34]
test al, al
je 0x4bbfd3
jmp 0x4bbd50
ret
Function at 0x41fd90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x4343a0]
test eax, eax
push esi
push edi
je 0x41fdeb
mov eax, dword [esp + 0x10]
mov edx, dword [0x433054]
mov ecx, dword [0x433058]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x41fdb6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x41fe5f
mov esi, dword [0x433050]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x433054]
add ecx, eax
pop edi
mov dword [0x433054], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call 0x43e775
mov edi, eax
mov eax, dword [0x434390]
add esp, 0x10
test eax, eax
je 0x41fe5d
test edi, edi
jle 0x41fe5d
mov edx, dword [0x4341fc]
mov eax, dword [0x4341e0]
lea ecx, [eax + edx]
mov edx, dword [0x4341ec]
mov eax, dword [0x4341e8]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x41fe5d
mov dl, byte [0x4341f4]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
xor bl, cl
sub bl, al
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x41fe47
pop ebp
mov byte [0x4341f4], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x4a05fb
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x10001170
push 0
push 0
call fcn.004a31bd
mov dword [0x1001d658], eax
add esp, 0x1c
ret
Function at 0x4a197b
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x4ce5ac
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0xd80dfc]
mov ecx, dword [eax + 0x228]
test ecx, ecx
je 0x4ce5c6
mov ecx, dword [esp + 4]
mov dword [eax + 0x22c], ecx
ret
push 0xd7e154
call fcn.004ce7ec
add esp, 4
mov ecx, dword [0xd80dfc]
mov eax, dword [ecx + 0x20]
cmp eax, 0x18
jge 0x4ce5ef
mov edx, dword [ecx + eax*4 + 0x24]
mov eax, dword [edx*4 + 0xd7d030]
push eax
jmp 0x4ce5f4
push 0xd7e150
call fcn.004ce7ec
add esp, 4
push esi
push 0xd7e198
push 0xa
call fcn.004d4464
mov ecx, dword [0xd80dfc]
add esp, 8
mov esi, dword [ecx + 0x20]
dec esi
js 0x4ce66a
push edi
lea edi, [esi*4 + 0x24]
push 0xd7e134
call fcn.004ce7ec
add esp, 4
cmp esi, 0x18
jge 0x4ce645
mov edx, dword [0xd80dfc]
mov eax, dword [edi + edx]
mov ecx, dword [eax*4 + 0xd7d030]
push ecx
jmp 0x4ce64a
push 0xd7e150
call fcn.004ce7ec
add esp, 4
push 0xd7e198
push 0xa
call fcn.004d4464
add esp, 8
dec esi
sub edi, 4
test esi, esi
jge 0x4ce620
pop edi
mov edx, dword [esp + 8]
pop esi
lea eax, [edx - 1]
cmp eax, 0x1b
ja 0x4ce764
jmp dword [eax*4 + 0xd7129c]
push 0xd7dda8
call fcn.004ce7ec
add esp, 4
push 0
call fcn.004d4362
cmpsb byte [esi], byte es:[edi]
adc edi, edx
add byte [eax - 0x45ff28ef], dh
adc edi, edx
add ah, al
adc edi, edx
add dh, cl
adc edi, edx
add al, bl
adc edi, edx
add dl, ah
adc edi, edx
add ah, ch
adc edi, edx
add dh, dh
adc edi, edx
add byte [eax], al
adc dl, bh
add byte [edx], cl
adc dl, bh
add byte [ecx], dl
adc dl, bh
add byte [eax], bl
adc dl, bh
add byte [edi], bl
adc dl, bh
add byte [esi], ah
adc dl, bh
add byte [0x3400d712], ch
adc dl, bh
add byte [ebx], bh
adc dl, bh
add byte [edx + 0x12], al
xlatb
add byte [ecx + 0x12], cl
xlatb
add byte [eax + 0x12], dl
xlatb
add byte [edi + 0x12], dl
xlatb
add byte [esi + 0x12], bl
xlatb
add byte [ebp + 0x12], ah
xlatb
add byte [edx + edx - 0x29], ch
add byte [ebx + 0x12], dh
xlatb
add byte [edx + 0x12], bh
xlatb
add byte [ecx - 0x6fff28ee], al
nop
nop
nop
Function at 0x4efaaf
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
cmp dword [ebp + 8], 0x60
jne 0x4efacc
mov eax, 0x302
jmp 0x4efe0a
cmp dword [ebp + 8], 0x7e
jne 0x4efae0
mov eax, 0x308
jmp 0x4efe0a
cmp dword [ebp + 8], 0x31
jne 0x4efaf4
mov eax, 0x30e
jmp 0x4efe0a
cmp dword [ebp + 8], 0x21
jne 0x4efb08
mov eax, 0x313
jmp 0x4efe0a
cmp dword [ebp + 8], 0x32
jne 0x4efb1c
mov eax, 0x318
jmp 0x4efe0a
cmp dword [ebp + 8], 0x40
jne 0x4efb30
mov eax, 0x31d
jmp 0x4efe0a
cmp dword [ebp + 8], 0x33
jne 0x4efb44
mov eax, 0x322
jmp 0x4efe0a
cmp dword [ebp + 8], 0x23
jne 0x4efb58
mov eax, 0x327
jmp 0x4efe0a
cmp dword [ebp + 8], 0x34
jne 0x4efb6c
mov eax, 0x32c
jmp 0x4efe0a
cmp dword [ebp + 8], 0x24
jne 0x4efb80
mov eax, 0x331
jmp 0x4efe0a
cmp dword [ebp + 8], 0x35
jne 0x4efb94
mov eax, 0x336
jmp 0x4efe0a
cmp dword [ebp + 8], 0x25
jne 0x4efba8
mov eax, 0x33b
jmp 0x4efe0a
cmp dword [ebp + 8], 0x36
jne 0x4efbbc
mov eax, 0x340
jmp 0x4efe0a
cmp dword [ebp + 8], 0x5e
jne 0x4efbd0
mov eax, 0x345
jmp 0x4efe0a
cmp dword [ebp + 8], 0x37
jne 0x4efbe4
mov eax, 0x34a
jmp 0x4efe0a
cmp dword [ebp + 8], 0x26
jne 0x4efbf8
mov eax, 0x34f
jmp 0x4efe0a
cmp dword [ebp + 8], 0x38
jne 0x4efc0c
mov eax, 0x354
jmp 0x4efe0a
cmp dword [ebp + 8], 0x2a
jne 0x4efc20
mov eax, 0x359
jmp 0x4efe0a
cmp dword [ebp + 8], 0x39
jne 0x4efc34
mov eax, 0x35e
jmp 0x4efe0a
cmp dword [ebp + 8], 0x28
jne 0x4efc48
mov eax, 0x363
jmp 0x4efe0a
cmp dword [ebp + 8], 0x30
jne 0x4efc5c
mov eax, 0x368
jmp 0x4efe0a
cmp dword [ebp + 8], 0x29
jne 0x4efc70
mov eax, 0x36d
jmp 0x4efe0a
cmp dword [ebp + 8], 0x2d
jne 0x4efc84
mov eax, 0x372
jmp 0x4efe0a
cmp dword [ebp + 8], 0x5f
jne 0x4efc98
mov eax, 0x378
jmp 0x4efe0a
cmp dword [ebp + 8], 0x3d
jne 0x4efcac
mov eax, 0x37e
jmp 0x4efe0a
cmp dword [ebp + 8], 0x2b
jne 0x4efcc0
mov eax, 0x384
jmp 0x4efe0a
cmp dword [ebp + 8], 0x5b
jne 0x4efcd4
mov eax, 0x38a
jmp 0x4efe0a
cmp dword [ebp + 8], 0x7b
jne 0x4efce8
mov eax, 0x390
jmp 0x4efe0a
cmp dword [ebp + 8], 0x5d
jne 0x4efcfc
mov eax, 0x396
jmp 0x4efe0a
cmp dword [ebp + 8], 0x7d
jne 0x4efd10
mov eax, 0x39c
jmp 0x4efe0a
cmp dword [ebp + 8], 0x5c
jne 0x4efd24
mov eax, 0x3a2
jmp 0x4efe0a
cmp dword [ebp + 8], 0x7c
jne 0x4efd38
mov eax, 0x3a8
jmp 0x4efe0a
cmp dword [ebp + 8], 0x3b
jne 0x4efd4c
mov eax, 0x3ae
jmp 0x4efe0a
cmp dword [ebp + 8], 0x3a
jne 0x4efd60
mov eax, 0x3b4
jmp 0x4efe0a
cmp dword [ebp + 8], 0x27
jne 0x4efd74
mov eax, 0x3ba
jmp 0x4efe0a
cmp dword [ebp + 8], 0x22
jne 0x4efd88
mov eax, 0x3c0
jmp 0x4efe0a
cmp dword [ebp + 8], 0x2c
jne 0x4efd9c
mov eax, 0x3c6
jmp 0x4efe0a
cmp dword [ebp + 8], 0x3c
jne 0x4efdb0
mov eax, 0x3cc
jmp 0x4efe0a
cmp dword [ebp + 8], 0x2e
jne 0x4efdc4
mov eax, 0x3d2
jmp 0x4efe0a
cmp dword [ebp + 8], 0x3e
jne 0x4efdd8
mov eax, 0x3d8
jmp 0x4efe0a
cmp dword [ebp + 8], 0x2f
jne 0x4efdec
mov eax, 0x3de
jmp 0x4efe0a
cmp dword [ebp + 8], 0x3f
jne 0x4efe00
mov eax, 0x3e4
jmp 0x4efe0a
mov eax, 0x8e
jmp 0x4efe0a
mov esp, ebp
pop ebp
ret 4
Function at 0x406510
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4624fb
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.00457375
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406592
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00455287
mov eax, dword [eax]
push 0x47ac40
push eax
call fcn.004481a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00457600
test bl, bl
je 0x406592
push 0x47ac40
lea ecx, [esp + 0xc]
call fcn.00457990
push 0x47ac4c
lea ecx, [esp + 0xc]
call fcn.00457990
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 0x4065ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00457600
jmp 0x406699
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 0x406652
lea edx, [esp + 0x7c]
push 0x47ac48
push edx
call fcn.004481a4
add esp, 8
test eax, eax
je 0x406652
lea eax, [esp + 0x7c]
push 0x47ac44
push eax
call fcn.004481a4
add esp, 8
test eax, eax
je 0x406652
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 0x4065e2
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.00457600
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 0x406ea0
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 0x406f02
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 0x406f10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46257b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x481410]
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 0x407048
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406f76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457600
xor eax, eax
jmp 0x4070bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045773d
push esi
lea ecx, [esp + 0xc]
call fcn.004579cc
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 0x40709d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00406ea0
test eax, eax
jne 0x40709d
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.00406ea0
test eax, eax
jne 0x40709d
lea eax, [esp + 0x14]
push 0x47ac5c
push eax
call fcn.004491e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40707c
lea ecx, [esp + 0x14]
push 0x47ac58
push ecx
call fcn.00449160
mov esi, eax
add esp, 8
test esi, esi
jne 0x40707c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40707f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004576ed
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406f8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457600
xor eax, eax
jmp 0x4070bf
mov byte [esi], 0
push 0x47ac54
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.00457600
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 0x417750
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 0x4177be
cmp si, 0x69
ja 0x4177be
add esi, 0xffd0
cmp si, 0x11
je 0x41778e
push 0x11
call edi
test ax, ax
jge 0x41778e
or esi, 0x2000
cmp si, 0x10
je 0x4177a3
push 0x10
call edi
test ax, ax
jge 0x4177a3
or esi, 0x4000
cmp si, 0x12
je 0x4177b8
push 0x12
call edi
test ax, ax
jge 0x4177b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4177cb
mov esi, 0xbd
jmp 0x41777f
cmp si, 0x6e
jne 0x4177d8
mov esi, 0xbe
jmp 0x41777f
cmp si, 0x6f
jne 0x417779
mov esi, 0xbf
jmp 0x41777f

Function at 0x418f10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x491aa8]
xor edx, edx
cmp eax, edx
jne 0x418f36
xor eax, eax
mov byte [eax + 0x4919a8], al
inc eax
cmp eax, 0x100
jl 0x418f1e
mov dword [0x491aa8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4919a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x418fc7
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 0x418f9a
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 0x418f68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419040
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 0x419093
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 0x41907a
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 0x41fd60
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 0x41fef8
cmp ebp, ebx
jle 0x41fef8
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 0x41fdbe
dec eax
or eax, 0xfffffff8
inc eax
je 0x41fdc5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x41fdd4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x41fddb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00457341
add esp, 4
cmp eax, ebx
je 0x41fdfc
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.00457341
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 0x41feee
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 0x41fed5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x41fec1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x41feb6
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 0x41fec4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x41fec4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x41fe60
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 0x41fe51
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