joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009d6a0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x204
push ebp
push esi
push edi
mov edi, dword [esp + 0x214]
test edi, edi
jne 0x1009d6c1
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x204
ret
mov esi, dword [esp + 0x218]
test esi, esi
jg 0x1009d6db
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x204
ret
mov eax, dword [esp + 0x224]
test eax, eax
jne 0x1009d6f5
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
add esp, 0x204
ret
mov eax, dword [esp + 0x220]
test eax, eax
jg 0x1009d70f
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
add esp, 0x204
ret
mov ecx, dword [esp + 0x21c]
test ecx, ecx
jne 0x1009d729
pop edi
pop esi
mov eax, 0xfffffffb
pop ebp
add esp, 0x204
ret
mov ebp, dword [esp + 0x228]
test ebp, ebp
jg 0x1009d743
pop edi
pop esi
mov eax, 0xfffffffa
pop ebp
add esp, 0x204
ret
cmp eax, ebp
jge 0x1009d756
pop edi
pop esi
mov eax, 0xfffffff9
pop ebp
add esp, 0x204
ret
xor edx, edx
xor ecx, ecx
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x10], cl
mov byte [esp + ecx + 0x110], al
lea eax, [edx + 1]
cdq
idiv esi
inc ecx
cmp ecx, 0x100
jl 0x1009d75a
xor ecx, ecx
push ebx
xor eax, eax
xor edx, edx
xor ebx, ebx
mov dl, byte [esp + eax + 0x114]
mov bl, byte [esp + eax + 0x14]
add ecx, edx
add ecx, ebx
and ecx, 0x800000ff
jns 0x1009d79f
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + eax + 0x14]
mov dl, byte [esp + ecx + 0x14]
mov byte [esp + ecx + 0x14], bl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x100
jl 0x1009d77c
xor esi, esi
xor ecx, ecx
test ebp, ebp
jle 0x1009d83d
mov eax, dword [esp + 0x220]
mov edi, dword [esp + 0x228]
sub edi, eax
inc ecx
and ecx, 0x800000ff
jns 0x1009d7e0
dec ecx
or ecx, 0xffffff00
inc ecx
xor edx, edx
mov dl, byte [esp + ecx + 0x14]
add esi, edx
and esi, 0x800000ff
jns 0x1009d7f8
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x14]
mov bl, byte [esp + ecx + 0x14]
mov byte [esp + 0x10], dl
mov byte [esp + esi + 0x14], bl
mov ebx, dword [esp + 0x10]
mov byte [esp + ecx + 0x14], dl
xor edx, edx
and ebx, 0xff
mov dl, byte [esp + esi + 0x14]
add edx, ebx
and edx, 0x800000ff
jns 0x1009d82e
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [esp + edx + 0x14]
mov bl, byte [edi + eax]
xor dl, bl
mov byte [eax], dl
inc eax
dec ebp
jne 0x1009d7cf
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
Function at 0x1009d850
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x204
push ebp
push esi
push edi
mov edi, dword [esp + 0x214]
test edi, edi
jne 0x1009d871
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x204
ret
mov esi, dword [esp + 0x218]
test esi, esi
jg 0x1009d88b
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x204
ret
mov eax, dword [esp + 0x21c]
test eax, eax
jne 0x1009d8a5
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
add esp, 0x204
ret
mov eax, dword [esp + 0x220]
test eax, eax
jg 0x1009d8bf
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
add esp, 0x204
ret
mov ecx, dword [esp + 0x224]
test ecx, ecx
jne 0x1009d8d9
pop edi
pop esi
mov eax, 0xfffffffb
pop ebp
add esp, 0x204
ret
mov ebp, dword [esp + 0x228]
test ebp, ebp
jg 0x1009d8f3
pop edi
pop esi
mov eax, 0xfffffffa
pop ebp
add esp, 0x204
ret
cmp eax, ebp
jge 0x1009d906
pop edi
pop esi
mov eax, 0xfffffff9
pop ebp
add esp, 0x204
ret
xor edx, edx
xor ecx, ecx
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x10], cl
mov byte [esp + ecx + 0x110], al
lea eax, [edx + 1]
cdq
idiv esi
inc ecx
cmp ecx, 0x100
jl 0x1009d90a
xor ecx, ecx
push ebx
xor eax, eax
xor edx, edx
xor ebx, ebx
mov dl, byte [esp + eax + 0x114]
mov bl, byte [esp + eax + 0x14]
add ecx, edx
add ecx, ebx
and ecx, 0x800000ff
jns 0x1009d94f
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + eax + 0x14]
mov dl, byte [esp + ecx + 0x14]
mov byte [esp + ecx + 0x14], bl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x100
jl 0x1009d92c
xor esi, esi
xor ecx, ecx
test ebp, ebp
jle 0x1009d9ed
mov eax, dword [esp + 0x220]
mov edi, dword [esp + 0x228]
sub edi, eax
inc ecx
and ecx, 0x800000ff
jns 0x1009d990
dec ecx
or ecx, 0xffffff00
inc ecx
xor edx, edx
mov dl, byte [esp + ecx + 0x14]
add esi, edx
and esi, 0x800000ff
jns 0x1009d9a8
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x14]
mov bl, byte [esp + ecx + 0x14]
mov byte [esp + 0x10], dl
mov byte [esp + esi + 0x14], bl
mov ebx, dword [esp + 0x10]
mov byte [esp + ecx + 0x14], dl
xor edx, edx
and ebx, 0xff
mov dl, byte [esp + esi + 0x14]
add edx, ebx
and edx, 0x800000ff
jns 0x1009d9de
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [esp + edx + 0x14]
mov bl, byte [edi + eax]
xor dl, bl
mov byte [eax], dl
inc eax
dec ebp
jne 0x1009d97f
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
Function at 0x1009eef0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x9e84
call fcn.1007e490
mov eax, dword [esp + 0x9e90]
mov ecx, dword [esp + 0x9e8c]
push ebx
push ebp
push esi
and eax, 0xffff
push edi
push eax
push ecx
push 0x101370f4
lea edx, [esp + 0x28]
push 0x100
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
xor esi, esi
lea eax, [esp + 0x30]
push esi
push eax
mov byte [esp + 0x137], 0
call fcn.100a2140
mov edi, eax
add esp, 0x1c
cmp edi, esi
jl 0x1009f048
mov ebp, dword [esp + 0x9e98]
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x12c], 0x64
mov word [esp + 0x130], 0x18
mov word [esp + 0x132], si
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x11c]
push ecx
push 3
push edi
push ebp
call fcn.1009f090
add esp, 0x10
test eax, eax
jl 0x1009f02d
lea esi, [ebp + 0x2c]
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esi], 0
mov dword [ebp + 0x30], edi
mov ecx, dword [esi]
push 0
lea eax, [edi + 1]
inc ecx
push esi
push eax
mov dword [esi], ecx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
jle 0x1009f02d
push esi
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1009f02d
push 0
lea ecx, [esp + 0x4fdc]
push 0x4ebc
push ecx
push edi
call fcn.100a2240
add esp, 0x10
test eax, eax
jle 0x1009f02d
mov ecx, dword [ebp]
lea edx, [esp + 0x11c]
push edx
push eax
lea eax, [esp + 0x4fe0]
push eax
push ecx
call fcn.1009eab0
add esp, 0x10
test eax, eax
jl 0x1009f048
mov edx, dword [ebp + 0x134]
mov eax, dword [esp + 0x128]
cmp edx, eax
jne 0x1009f02d
cmp word [esp + 0x122], 4
je 0x1009f056
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x1009ef78
push edi
call fcn.100a1f20
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x9e84
ret
mov eax, dword [esp + 0x9e9c]
lea ecx, [esp + 0x12c]
push eax
push ecx
push ebp
call fcn.1009f130
push edi
mov esi, eax
call fcn.100a1f20
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9e84
ret
Function at 0x100a00b0
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push esi
call fcn.100a01d0
add esp, 4
test eax, eax
jne 0x100a01bc
push ebx
push ebp
push edi
lea ebx, [esi + 0x2c]
push esi
call fcn.100a0200
push esi
call fcn.1009fd40
xor edi, edi
lea eax, [esi + 0x1c]
push edi
push eax
call fcn.100a25a0
mov eax, dword [esi + 0x10]
add esp, 0x10
cmp eax, edi
mov dword [ebx], edi
mov dword [esp + 0x1c], edi
jle 0x100a0142
lea ebx, [esi + 0x2c]
mov edx, dword [ebx]
xor eax, eax
test edx, edx
jbe 0x100a0117
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + edi]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebp
je 0x100a0117
inc eax
add ecx, 4
cmp eax, edx
jb 0x100a010b
cmp eax, edx
jne 0x100a012f
cmp edx, 0x40
jae 0x100a012f
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + edi]
mov dword [esi + eax*4 + 0x30], ecx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
inc eax
add edi, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x100a00fa
mov eax, dword [esi + 0x130]
lea edx, [esp + 0x10]
xor edi, edi
push edx
push edi
push edi
inc eax
push ebx
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x100a01a1
mov eax, dword [esi + 0x10]
xor ebp, ebp
cmp eax, edi
jle 0x100a01a1
lea ebx, [esi + 0x2c]
mov ecx, dword [esi + 0x14]
push ebx
mov edx, dword [ecx + edi]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100a0196
mov eax, dword [esi + 0x14]
add eax, edi
push eax
push esi
call fcn.100a0480
add esp, 8
mov eax, dword [esi + 0x10]
inc ebp
add edi, 0x24
cmp ebp, eax
jl 0x100a0176
push esi
call fcn.100a01d0
add esp, 4
test eax, eax
je 0x100a00cf
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x100a1120
Capabilities:
Initialize winsock library

Disassembly:
xor ecx, ecx
sub esp, 0x190
mov ch, byte [esp + 0x198]
lea eax, [esp]
mov cl, byte [esp + 0x194]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret

Function at 0x100a1230
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100a124a
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2748
jne 0x100a125a
xor eax, eax
ret
cmp eax, 0x2733
je 0x100a126c
cmp eax, 0x2735
je 0x100a126c
or eax, 0xffffffff
ret
mov eax, 2
ret
Function at 0x100a1280
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
mov ecx, dword [esp + 0x218]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
push ebx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 4], edx
mov ebx, 0x3e8
cdq
idiv ebx
push esi
mov esi, dword [esp + 0x21c]
mov dword [esp + 0x118], esi
mov dword [esp + 0x114], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 1
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, 0xffffffff
mov dword [esp + 0xc], edx
jne 0x100a12ff
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x118]
push eax
push ecx
lea edx, [esi + 1]
push 0
push edx
jmp 0x100a1317
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x118]
push ecx
push edx
lea eax, [esi + 1]
push 0
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x100a132d
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x210
ret
jne 0x100a133d
pop esi
mov eax, 1
pop ebx
add esp, 0x210
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
pop esi
pop ebx
sbb eax, eax
add esp, 0x210
ret

Function at 0x100a1460
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x118]
test esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 1
je 0x100a14f5
cmp esi, 0xffffffff
lea ecx, [esp + 8]
jne 0x100a1493
xor ecx, ecx
jmp 0x100a14c4
mov eax, 0x10624dd3
push ebx
imul esi
sar edx, 6
mov eax, edx
mov ebx, 0x3e8
shr eax, 0x1f
add edx, eax
mov eax, esi
mov dword [esp + 0xc], edx
cdq
idiv ebx
pop ebx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 0xc], edx
push ecx
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [edi + 1]
push 0
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x100a14e8
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret
jne 0x100a14f5
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x100a1554
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x100a1538
call edi
cmp eax, 0x2733
je 0x100a1538
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x10c
ret
test esi, esi
je 0x100a1549
push 0x30d40
call fcn.100a2930
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
jne 0x100a155b
mov eax, 0xfffffffd
pop edi
pop esi
add esp, 0x10c
ret
Function at 0x100a16e0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x118]
test esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 1
je 0x100a1781
cmp esi, 0xffffffff
lea ecx, [esp + 8]
jne 0x100a1713
xor ecx, ecx
jmp 0x100a1744
mov eax, 0x10624dd3
push ebx
imul esi
sar edx, 6
mov eax, edx
mov ebx, 0x3e8
shr eax, 0x1f
add edx, eax
mov eax, esi
mov dword [esp + 0xc], edx
cdq
idiv ebx
pop ebx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 0xc], edx
push ecx
push 0
lea eax, [esp + 0x18]
push 0
lea ecx, [edi + 1]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x100a1774
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
sbb eax, eax
pop esi
add esp, 0x10c
ret
jne 0x100a1781
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x100a17e0
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x100a17c4
call edi
cmp eax, 0x2733
je 0x100a17c4
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x10c
ret
test esi, esi
je 0x100a17d5
push 0x186a0
call fcn.100a2930
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
jne 0x100a17e7
mov eax, 0xfffffffd
pop edi
pop esi
add esp, 0x10c
ret
Function at 0x100a19e0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x8c]
push edi
push 0x3a
push esi
mov word [ebx], 2
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x100a1a51
mov edx, eax
sub edx, esi
cmp edx, 0x80
jl 0x100a1a25
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret
mov ecx, edx
push ebp
mov ebp, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov byte [esp + edx + 0xc], 0
je 0x100a1a95
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
jmp 0x100a1a97
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x80
jb 0x100a1a72
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0xc]
mov word [ebx + 2], ax
push ecx
call fcn.100a19b0
add esp, 4
test eax, eax
je 0x100a1ad5
add ebx, 4
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.100a0e40
add esp, 8
test eax, eax
jne 0x100a1afb
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100a1af1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebx + 4], eax
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x80
ret

Function at 0x100a3eb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x100a3ed9
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a3ed9
mov eax, dword [esp + 0xc]
ret
or eax, 0xffffffff
ret
Function at 0x1593700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0159378f
jae 0x159370e
xor ecx, ecx
call fcn.0159378f
jae 0x159373d
xor eax, eax
call fcn.0159378f
jae 0x159374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0159378f
adc al, al
jae 0x159372f
jne 0x1593779
stosb byte es:[edi], al
jmp 0x1593711
call fcn.0159379b
sub ecx, ebx
jne 0x1593756
call fcn.01593799
jmp 0x1593775
lodsb al, byte [esi]
shr eax, 1
je 0x1593783
adc ecx, ecx
jmp 0x1593772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.01593799
cmp eax, 0x7d00
jae 0x1593772
cmp ah, 5
jae 0x1593773
cmp eax, 0x7f
ja 0x1593774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1593711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4184f5
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004186a5
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4185f3
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x418596
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4185d9
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4185ad
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4185c8
test al, 0x40
je 0x4185bf
mov ecx, dword [edi + 0x20]
jmp 0x4185c6
test al, 0x80
je 0x4185d9
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4185d9
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x418565
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x429210
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d792b
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.004cc014
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x429292
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c9c81
mov eax, dword [eax]
push 0x51fdbc
push eax
call fcn.004b83e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004cc29f
test bl, bl
je 0x429292
push 0x51fdbc
lea ecx, [esp + 0xc]
call fcn.004cc62f
push 0x51fdc8
lea ecx, [esp + 0xc]
call fcn.004cc62f
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 0x4292ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004cc29f
jmp 0x429399
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 0x429352
lea edx, [esp + 0x7c]
push 0x51fdc4
push edx
call fcn.004b83e4
add esp, 8
test eax, eax
je 0x429352
lea eax, [esp + 0x7c]
push 0x51fdc0
push eax
call fcn.004b83e4
add esp, 8
test eax, eax
je 0x429352
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 0x4292e2
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.004cc29f
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 0x429b90
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 0x429bf2
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 0x429c00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d79ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x56f728]
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 0x429d38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x429c66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004cc29f
xor eax, eax
jmp 0x429daf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004cc3dc
push esi
lea ecx, [esp + 0xc]
call fcn.004cc66b
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x51fdfc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x429d8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00429b90
test eax, eax
jne 0x429d8d
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.00429b90
test eax, eax
jne 0x429d8d
lea eax, [esp + 0x14]
push 0x51fdd8
push eax
call fcn.004b9530
mov esi, eax
add esp, 8
test esi, esi
jne 0x429d6c
lea ecx, [esp + 0x14]
push 0x51fdd4
push ecx
call fcn.004b94b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x429d6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x429d6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004cc38c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x429c7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004cc29f
xor eax, eax
jmp 0x429daf
mov byte [esi], 0
push 0x51fdd0
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.004cc29f
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