joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410cf0
Capabilities:
Connect socket
Create raw socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41f384]
cmp eax, 0x41f380
push ebx
mov bx, word [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
je 0x410d2c
jmp 0x410d10
mov ecx, dword [eax + 8]
cmp word [ecx + 0x40], bx
jne 0x410d22
cmp dword [ecx + 0x44], edi
je 0x410e3b
mov eax, dword [eax + 4]
cmp eax, 0x41f380
jne 0x410d10
push esi
push 0x50
call fcn.004028e0
mov esi, eax
add esp, 4
test esi, esi
je 0x410e32
push fcn.00410cc0
push 0x410ba0
push esi
call fcn.004075c0
mov eax, dword [ebp + 8]
mov cx, word [ebp + 0x14]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], esi
mov word [esi + 0x40], bx
mov dword [esi + 0x44], edi
mov word [esi + 0x48], cx
mov edx, dword [0x41f380]
add esp, 0xc
lea eax, [esi + 0x30]
mov dword [eax], edx
mov dword [eax + 4], 0x41f380
mov ecx, dword [0x41f380]
push 0x2f
push 3
mov dword [ecx + 4], eax
push 2
mov dword [0x41f380], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x410e29
push 4
lea edx, [ebp - 4]
push edx
mov eax, 1
mov byte [esi + 0x1c], al
push 2
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x410e29
mov ecx, dword [esi + 0x20]
push ecx
call fcn.00405670
add esp, 4
push 0x10
lea edx, [ebp - 0x18]
mov word [ebp - 0x18], 2
mov dword [ebp - 0x14], edi
mov word [ebp - 0x16], 0
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x410e29
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 8], 0x10
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x410e29
mov ecx, dword [ebp - 0x24]
push esi
mov dword [esi + 0x4c], ecx
call fcn.004072b0
add esp, 4
test eax, eax
je 0x410e43
push esi
call fcn.00410cc0
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x21
call fcn.00410a90
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4159f5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x421f08]
mov eax, dword [0x41f180]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x415bbb
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x421f20]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x415bbb
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x415a5f
xor eax, eax
jmp 0x415bcf
test al, 0x20
je 0x415a70
push 2
push edi
push edi
push ecx
call fcn.00416a1b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x415b45
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x415b8c
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x415ad2
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x415ac3
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x415aa5
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415b12
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x415b1e
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x415a99
jmp 0x415b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x415bb6
cmp dword [ebp + 0x3a4], edi
je 0x415b8c
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x415b7e
mov dword [0x41fc10], eax
jmp 0x415bc2
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415b70
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x415b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x415b20
push dword [ebp + 0x3a4]
call fcn.00415c3c
pop ecx
jmp 0x415bcc
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x415ba4
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x415a58
mov dword [0x41fc0c], 0x1c
mov dword [0x41fc10], edi
jmp 0x415bcc
sub eax, dword [ebp - 0x7c]
jmp 0x415bcf
and dword [0x41fc10], 0
mov dword [0x41fc0c], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004023fc
add ebp, 0x39c
leave
ret
Function at 0x4167e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x421f08]
push edi
jae 0x4169be
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x421f20]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4169be
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x416894
test dl, 2
jne 0x416894
test dl, 0x48
je 0x41685e
cmp byte [eax + 5], 0xa
je 0x41685e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4168a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x41688f
mov dword [0x41fc10], ecx
jmp 0x4169c5
cmp eax, 0x6d
jne 0x41689b
xor eax, eax
jmp 0x4169d2
push eax
call fcn.00415c3c
pop ecx
jmp 0x4169cf
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x4169b9
test eax, eax
je 0x4168ce
cmp byte [ebx], 0xa
jne 0x4168ce
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4168d7
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4169b3
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4169a3
cmp al, 0xd
je 0x416909
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x416995
dec ecx
cmp dword [ebp - 8], ecx
jae 0x416923
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x41691e
add dword [ebp - 8], 2
jmp 0x416977
mov dword [ebp - 8], eax
jmp 0x416991
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41694b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416991
cmp dword [ebp - 0x10], 0
je 0x416991
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41696c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x416977
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x416994
cmp ebx, dword [ebp + 0xc]
jne 0x41697c
cmp byte [ebp - 1], 0xa
jne 0x41697c
mov byte [ebx], 0xa
jmp 0x416994
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415731
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x416995
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4168ed
jmp 0x4169b3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4169b3
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4169d2
and dword [0x41fc10], 0
mov dword [0x41fc0c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416aba
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00401f10
mov eax, dword [0x41f180]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x421f08]
mov dword [ebp - 4], eax
jae 0x416bfd
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x421f20]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x416bfd
push 1
push esi
push ebx
call fcn.00415731
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x416c07
push 2
push esi
push ebx
call fcn.00415731
add esp, 0xc
cmp eax, 0xffffffff
je 0x416c07
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x416ba7
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00404690
push 0x8000
push ebx
call fcn.004174e3
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x416b66
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004159f5
add esp, 0xc
cmp eax, 0xffffffff
je 0x416b84
sub edi, eax
test edi, edi
jg 0x416b5b
jmp 0x416b9a
cmp dword [0x41fc10], 5
jne 0x416b97
mov dword [0x41fc0c], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004174e3
pop ecx
pop ecx
jmp 0x416be7
jge 0x416be7
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00415731
push ebx
call fcn.00415e29
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x416be7
mov dword [0x41fc0c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41fc10], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00415731
add esp, 0xc
mov eax, esi
pop edi
jmp 0x416c0a
mov dword [0x41fc0c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004023fc
leave
ret
Function at 0x417e4f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415c3c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x417e90
test byte [esp + 8], 2
je 0x417e90
mov dword [0x41fc0c], 0xd
mov dword [0x41fc10], 5
jmp 0x417e6b
xor eax, eax
ret

Function at 0x41836e
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x41d520
call fcn.00401db0
mov eax, dword [0x41f180]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x418412
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00401f10
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x4183ff
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x418412
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x41842d
cmp byte [edi + 1], 0x3a
jne 0x41842d
movzx eax, byte [edi]
push eax
call fcn.00418c22
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x41843d
push edi
call fcn.00402836
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.004023fc
call fcn.00401deb
ret

Function at 0x418af1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x418b1f
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x418b24
cmp eax, 1
je 0x418b24
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x418b28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41f180]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x418b9e
push ebx
call fcn.00418af1
test eax, eax
pop ecx
jne 0x418b6d
mov dword [0x41fc10], 0xf
mov dword [0x41fc0c], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004023fc
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x418bb0
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x418b60
inc eax
cmp eax, 0x104
ja 0x418b60
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x418be7
cmp eax, dword [ebp + 0x10]
jg 0x418bcb
mov eax, dword [ebp + 0x10]
push eax
call fcn.004028e0
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x418bfb
mov dword [0x41fc0c], 0xc
jmp 0x418b60
cmp eax, dword [ebp + 0x10]
jle 0x418bfb
mov dword [0x41fc0c], 0x22
jmp 0x418b60
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00402110
pop ecx
pop ecx
jmp 0x418b62
Function at 0x419366
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41937f
or eax, 0xffffffff
jmp 0x4193e0
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4193dc
push 0x3d
push esi
call fcn.0041953b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4193dc
cmp esi, eax
je 0x4193dc
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x41fc38]
sete cl
cmp eax, dword [0x41fc3c]
mov dword [ebp - 8], ecx
jne 0x4193c2
mov edi, eax
call fcn.00419305
mov dword [0x41fc38], eax
cmp eax, ebx
jne 0x41941b
cmp dword [ebp + 0xc], ebx
je 0x4193e4
cmp dword [0x41fc40], ebx
je 0x4193e4
call fcn.00418e88
test eax, eax
je 0x41941b
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4193ed
xor eax, eax
jmp 0x4193df
push 4
call fcn.004028e0
cmp eax, ebx
pop ecx
mov dword [0x41fc38], eax
je 0x4193dc
mov dword [eax], ebx
cmp dword [0x41fc40], ebx
jne 0x41941b
push 4
call fcn.004028e0
cmp eax, ebx
pop ecx
mov dword [0x41fc40], eax
je 0x4193dc
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x41fc38]
call fcn.004192b8
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41947c
cmp dword [esi], ebx
je 0x41947c
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00402836
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41945f
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4194bd
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x419456
mov eax, edi
shl eax, 2
push eax
push dword [0x41fc38]
call fcn.00403a77
cmp eax, ebx
pop ecx
pop ecx
je 0x4194bd
jmp 0x4194b8
cmp dword [ebp - 8], ebx
jne 0x419528
cmp edi, ebx
jge 0x41948b
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x41fc38]
call fcn.00403a77
cmp eax, ebx
pop ecx
pop ecx
je 0x4193dc
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x41fc38], eax
cmp dword [ebp + 0xc], ebx
je 0x419512
push dword [ebp - 4]
call fcn.00402340
inc eax
inc eax
push eax
call fcn.004028e0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x419512
push dword [ebp - 4]
push esi
call fcn.00402110
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
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 0x41950b
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00402836
pop ecx
cmp dword [ebp - 8], ebx
je 0x419520
push dword [ebp - 4]
call fcn.00402836
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4193df
push dword [ebp - 4]
call fcn.00402836
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4193e9
Function at 0x40a390
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a96b
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.0045f5a6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a412
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d037
mov eax, dword [eax]
push 0x7c01c0
push eax
call fcn.0044ff34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f831
test bl, bl
je 0x40a412
push 0x7c01c0
lea ecx, [esp + 0xc]
call fcn.0045fbc1
push 0x7c3d28
lea ecx, [esp + 0xc]
call fcn.0045fbc1
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 0x40a44e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f831
jmp 0x40a519
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 0x40a4d2
lea edx, [esp + 0x7c]
push 0x7c3d24
push edx
call fcn.0044ff34
add esp, 8
test eax, eax
je 0x40a4d2
lea eax, [esp + 0x7c]
push 0x7c3d20
push eax
call fcn.0044ff34
add esp, 8
test eax, eax
je 0x40a4d2
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 0x40a462
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.0045f831
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 0x40ad10
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 0x40ad72
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 0x40ad80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a9eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x7ca1ec]
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 0x40aeb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ade6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f831
xor eax, eax
jmp 0x40af2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045f96e
push esi
lea ecx, [esp + 0xc]
call fcn.0045fbfd
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 0x40af0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040ad10
test eax, eax
jne 0x40af0d
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 accept
mov ecx, edi
call fcn.0040ad10
test eax, eax
jne 0x40af0d
lea eax, [esp + 0x14]
push 0x7c3d3c
push eax
call fcn.00450f70
mov esi, eax
add esp, 8
test esi, esi
jne 0x40aeec
lea ecx, [esp + 0x14]
push 0x7c3d38
push ecx
call fcn.00450ef0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40aeec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40aeef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045f91e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40adfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f831
xor eax, eax
jmp 0x40af2f
mov byte [esi], 0
push 0x7c3d34
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.0045f831
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 0x41bdc0
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 0x41be2e
cmp si, 0x69
ja 0x41be2e
add esi, 0xffd0
cmp si, 0x11
je 0x41bdfe
push 0x11
call edi
test ax, ax
jge 0x41bdfe
or esi, 0x2000
cmp si, 0x10
je 0x41be13
push 0x10
call edi
test ax, ax
jge 0x41be13
or esi, 0x4000
cmp si, 0x12
je 0x41be28
push 0x12
call edi
test ax, ax
jge 0x41be28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41be3b
mov esi, 0xbd
jmp 0x41bdef
cmp si, 0x6e
jne 0x41be48
mov esi, 0xbe
jmp 0x41bdef
cmp si, 0x6f
jne 0x41bde9
mov esi, 0xbf
jmp 0x41bdef

Function at 0x41d4e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7da8b0]
xor edx, edx
cmp eax, edx
jne 0x41d506
xor eax, eax
mov byte [eax + 0x7da7b0], al
inc eax
cmp eax, 0x100
jl 0x41d4ee
mov dword [0x7da8b0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7da7b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d597
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 0x41d56a
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 0x41d538
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d610
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 0x41d663
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 0x41d64a
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