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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10020d4d
pop dword [ebp - 0x40]
mov eax, 0xa47e029a
sub eax, 0x947bf54d
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x735ea269
add dword [ebp - 0x50], 0xdaf3a2e2
mov dword [ebp - 0x4c], 0x226bbea5
sub dword [ebp - 0x4c], 0xf0387260
mov dword [ebp - 0x48], 0x396aaf8a
sub dword [ebp - 0x48], 0xed1e6b5c
mov dword [ebp - 0x44], 0xe35488b1
sub dword [ebp - 0x44], 0xe35488b1
lea eax, [ebp - 0x50]
push eax
mov eax, 0x5ab483f2
sub eax, 0x4ab132da
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x8ced6a31
add dword [ebp - 0x50], 0xe784ff25
mov dword [ebp - 0x4c], 0x27598ea8
sub dword [ebp - 0x4c], 0xe5ed2d33
mov dword [ebp - 0x48], 0x8255b89b
add dword [ebp - 0x48], 0xe119b3d1
mov dword [ebp - 0x44], 0x23618952
sub dword [ebp - 0x44], 0x23618952
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x539981fb
sub eax, 0x43963097
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3e8a9
push 0
call eax
mov ecx, 0x25425123
add ecx, 0xdabe04c6
xor esi, esi
add esi, eax
mov edi, 0x10088400
add edi, dword [ebp - 0x40]
mov edx, 0xeaca0cfc
sub edx, 0x6dd923fa
mov ebx, dword [edi]
add dword [ebp - 4], 0x3219196b
sub ebx, edx
xor dword [ebp - 8], 0x7c628a64
mov dword [esi], ebx
sub dword [ebp - 0x18], 0x6301d0df
add esi, 0x3dfff735
add esi, 0xc20008cf
add edi, 4
loop 0x10020e6b
add eax, 0xe06b7165
add eax, 0x1f95d912
mov ebx, eax
add eax, 0x35c88e52
sub eax, 0x35c88e4d
mov ecx, 0x57d4b416
sub ecx, 0x47d4b416
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4879af
Capabilities:
Encrypt data using rc4 prga

Disassembly:
ret
jg 0x4591e1
mov eax, 0x7190d9a1
movsx ecx, ax
mov ecx, dword [eax + edi - 0x7190d9a1]
btc eax, eax
inc eax
mov al, byte [eax + edi - 0x7190d9a0]
call fcn.00493583
jno 0x461a95
cmp cl, 0x2d
jb 0x494615
push esi
not dh
stc
cwde
movzx esi, cl
test edi, ebp
stc
mov eax, 0x6c16c16d
mul esi
nop
sub eax, eax
mov eax, esi
sub eax, edx
movzx esi, di
bt esi, esi
shr eax, 1
lea eax, [eax + edx]
rol dl, cl
shr eax, 5
cwd
movzx eax, al
inc esi
mov edx, eax
pop esi
cmc
cmp ecx, ebp
add cl, 0xd3
test bp, bp
cmp dl, 0x96
sub eax, 1
jmp 0x49460c
jne 0x4879f4
mov dword [edi + 8], edx
mov dword [edi + 4], 0
cmc
cmp cl, 9
jmp 0x4c1adb
jne 0x4c1b1a
mov dword [edi + 4], edx
bsf eax, ebp
rcl ah, cl
movzx eax, cl
mov dword [edi], eax
clc
cmc
test esp, edi
xor eax, eax
jmp 0x45d519
jb 0x4af4be
movzx edx, cl
add eax, 0xc8068501
mov eax, 0x38e38e39
mul edx
sbb ax, 0x20a
sal ax, cl
shr edx, 1
adc al, ch
sal ah, 0x8b
or ah, 0xae
movzx eax, dl
movsx edx, di
xadd dx, dx
mov edx, ebp
mov edx, eax
cmp bp, 0x9497
stc
lea ecx, [ecx]
clc
cmc
add cl, 0xf7
clc
sub eax, 1
jmp 0x4af4b0

Function at 0x4e19d1
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x14]
jne 0x4e0c53
pop edi
call fcn.0049e785
cmc
mov edx, 0xeeb7a5a4
push cs
invalid
jmp 0x4d895a
Function at 0x401060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov ecx, dword [esp + 0x410]
push esi
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x420]
push eax
push 1
push 0
push ecx
push 0x80000002
mov dword [esp + 0x20], 0x400
mov byte [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4010ef
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x420]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4010e2
push ebx
mov ebx, dword [esp + 0x428]
lea ecx, [esp + 0x18]
push ebx
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [edi + ebx], 0
pop ebx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
pop esi
sete al
add esp, 0x40c
ret

Function at 0x401100
Capabilities:
Set registry value

Disassembly:
sub esp, 0x404
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x408]
push ebx
push esi
mov esi, dword [esp + 0x418]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x10]
mov ebx, ecx
inc ebx
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0x20006
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401183
mov ecx, dword [esp + 0x418]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push ebx
push eax
push 1
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
pop esi
sete al
pop ebx
add esp, 0x404
ret

Function at 0x401190
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub esp, 0x400
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x408]
push 0x400
push ecx
push 0x407754
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
add esp, 4
test edx, edx
je 0x4011fc
push esi
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
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
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x400
ret
mov eax, edx
add esp, 0x400
ret
Function at 0x401580
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__access]
push 0
push esi
xor bl, bl
call edi
add esp, 8
test eax, eax
je 0x4015a1
pop edi
pop esi
mov al, 1
pop ebx
ret
push 2
push esi
call edi
add esp, 8
test eax, eax
je 0x4015c0
push 0x80
push esi
call dword [sym.imp.MSVCRT.dll__chmod]
add esp, 8
test eax, eax
jne 0x4015d0
push esi
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
test eax, eax
mov al, 1
je 0x4015d2
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x403edd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405148
push 0x40401c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x407778], 0xffffffff
or dword [0x40777c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x407770]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40776c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x407774], eax
call fcn.0040401b
cmp dword [0x407680], 0
jne 0x403f60
push 0x404018
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00404006
push 0x406018
push 0x406014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x407768]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x407764]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x406010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00403980
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x417f2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x417f3d
pop dword [ebp - 0x3c]
mov eax, 0x417f3d
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3bd20
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x21790004
sub ecx, 0x2178acee
mov edi, eax
mov ebx, 0x436e00
add ebx, dword [ebp - 0x3c]
mov edx, 0xcd91f4a6
mov esi, dword [ebx]
xor dword [ebp - 0xc], 0x59bd717e
xor esi, edx
add dword [ebp - 4], 0x4f1b8790
mov dword [edi], esi
add edi, 4
add ebx, 0xd92564e9
add ebx, 0x26da9b1b
loop 0x417f86
add eax, 0x13f2b
xor ebx, ebx
add ebx, eax
add eax, 0xb846390f
add eax, 0x47b9c6f6
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x41e7e0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp ax, 6
je 0x41e81d
push str.SetDefaultDllDirectories
push 0x429a14
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x41e81d
push 0xc00
call eax
test eax, eax
jne 0x41e8b6
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41e8b6
cmp eax, 0x104
ja 0x41e8b6
cmp word [esp + eax*2 + 6], 0x5c
je 0x41e84c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x41e8b6
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x41e88b
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x41e877
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x41e86c
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x47a120
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0x17
mov edx, 0xaa7d7ed3
lea edi, [edx - 0x65]
cli
test eax, 0xcd2a2507
pushal
fnsave dword [esi - 0x19cee003]
add edx, edi
push 0xffffffffffffffde
cmp eax, 0xfd696e8f
stosb byte es:[edi], al
pop ebp
wait
add ebp, dword [ebx + 0x7f8369b5]
stosd dword es:[edi], eax
mov ch, 0x69
cmp dword [edi - 0x43], 0x19
mov eax, 0xe22290a5
mov ebp, 0x90a5b819
and ah, dl
insd dword es:[edi], dx
das
or al, 0x7b
mov ecx, 0x425f1169
jl 0x47a0aa
in eax, 0xd
sub eax, 0x80f3055c
fst dword [edi - 0x5178709]
add ecx, ecx
lahf
cmp bl, byte [ebx - 0x13e572d6]
mov ebx, 0x4af5b640
sub eax, 0x6bcfd1fe
invalid
jp 0x47a0ce
cmp edx, dword [ebp + 0x72d6bcde]
sbb dl, byte [ebx - 0x74]
cmp al, 0x88
sub eax, 0xf8b075fd
push esi
dec esp
inc eax
jbe 0x47a0d3
jl 0x47a15b
imul edi, dword [ebx - 0x30929e7b], 0xffffffa8
push 0x8a5bf5c9
lodsd eax, dword [esi]
pop ss
cmp byte [esi], al
hlt
test al, 0x68
leave
cmc
pop ebx
mov ch, byte [ebp - 0xbf9c7e9]
mov ebx, 0x534d3f7a
je 0x47a17c
mov ebp, 0x619d970
cmp al, 0x46
mov bl, 0xd5
push 0xffffffffffffffdc
sbb ch, byte [edx + 0x4d86816a]
imul esi, dword [eax - 0x1e0c54d4], 0xffffffd6
fcomp qword [edx]
stosb byte es:[edi], al
push 0xffffffffffffff81
xchg byte [ebp + 0x6b], cl
mov al, 0x2c
stosd dword es:[edi], eax
loope 0x47a13f
and byte [ecx - 0x759e06ee], ch
jp 0x47a1d7
mov word [esp + ebx*8], fs
pop ebp
pop ebp
inc edx
or esi, ebx
cmp ah, bl
hlt
and edi, dword [ebx - 0x16d558eb]
mov edx, dword [ecx + 0x351a39d6]
stosb byte es:[edi], al
aam 0xed
pop ebp
sti
add esp, dword [edx - 0xc168f99]
ljmp 0xdb43
fbld tbyte [edx]
mov esi, 0xcfe4d633
sbb edi, dword [ecx + 0x27f41afb]
xor edi, esp
stc
cmp al, 0x3c
add dword [esi + 0x56dd5ccd], ebx
sbb byte [esi - 0x15], ch
jbe 0x47a1e8
cmp al, 1
sahf
int 0x5c
fst qword [esi + 0x18]
outsb dx, byte [esi]
jmp 0x47a269
dec ecx
xor byte [esi], ch
fcomp qword [edx]
adc dword [edi], edi
dec eax
lodsd eax, dword [esi]
movsb byte es:[edi], byte [esi]
and al, 0xe3
mov bh, 0xc
cli
cmp al, 0x85
sbb eax, 0x4335c22a
pushfd
xor edx, dword [edx + 0x3bd313fd]
popfd
push ss
pop eax
push ds
stosb byte es:[edi], al
int3
dec eax
cmp al, 0xbc
aas
popfd
ret 0xcb4b

Function at 0x4cc490
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
mov edx, 0xc81f99f4
add al, 0x38
xor dword [edx + edi*8 + 0x72669b7f], eax
invalid
dec byte es:[esi + ebx*8 + 0x2b]
rol byte [edi + 0x2a7a2647], cl
std
in al, 0x48
sub edx, dword [ebx + eax*4]
xlatb
and byte [eax], ah
inc esi
cmp eax, 0x55864624
adc eax, 0x59b85534
push es
push ds
sbb dl, al
xor ebx, ecx
loop 0x4cc470
invalid
Function at 0x100036f2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esp
push dword [ebp + 8]
xor eax, eax
call dword [0x10051b13]
nop
nop
cmp dword [ebp - 4], esp
je 0x10003727
push 0x2b
push 0x4029890
push 6
call fcn.10027465
add esp, 0xc
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x10050566]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.100026e4
mov dword [0x10051ae7], eax
push 0x80000301
push 0
push dword [0x10051ae7]
push 1
mov ebx, 0x184
call fcn.100279c0
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ebx, dword [0x10051aeb]
test ebx, ebx
je 0x10003782
push ebx
call fcn.10027453
add esp, 4
pop eax
mov dword [0x10051aeb], eax
mov dword [ebp - 4], esp
push dword [0x10051ae7]
push dword [0x10051aeb]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
cmp dword [ebp - 4], esp
je 0x100037c0
push 0x84
push 0x4029890
push 6
call fcn.10027465
add esp, 0xc
mov eax, dword [0x10051aeb]
test eax, eax
je 0x100037de
push eax
mov ebx, eax
call fcn.10001219
inc eax
push eax
call fcn.10027459
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100037e3
mov esp, ebp
pop ebp
ret 4
Function at 0x1002a470
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1002a502
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x1002a4f4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1002a4ec
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x1002a4b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x1002b3d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x1002b3f1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1002b44b
inc edi
cmp edi, esi
jl 0x1002b3e5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x1002b480
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1002b43a
cmp byte [eax], bl
je 0x1002b455
cmp byte [eax + 1], bl
je 0x1002b45e
cmp byte [eax + 2], bl
je 0x1002b468
cmp byte [eax + 3], bl
je 0x1002b474
add eax, 4
cmp eax, edi
jb 0x1002b411
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x1002c690
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x1002c6f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x1002c6f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x1002c6d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x1002d230
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.1002d380
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x1002d250
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WSOCK32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x1002d231
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.1002d380
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x1002d250
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WSOCK32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x1002d280
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WSOCK32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1002d2d7
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x1002d2ed
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.1002d310
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x1002d310
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WSOCK32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x1002d3a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x1002d3e9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x1002d860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10048600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.1002d410
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.1002d490
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.1002d490
lea ecx, [esi + 0xc]
call fcn.100406f6
lea ecx, [esi + 0x10]
call fcn.100406f6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.1002fcd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.1002fcd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.1002fcd0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.1004076b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1004076b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1002e508
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10048828
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x1002e518
call fcn.1002ea30
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x1002e5fb
cmp byte [edi], 0
je 0x1002e5fb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x1002e53d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.1002d230
test eax, eax
jne 0x1002e55d
push 0x10052338
lea ecx, [esi + 0x38]
call fcn.100408a8
jmp 0x1002e5fb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.1002d280
test eax, eax
jne 0x1002e58c
mov ecx, esi
call fcn.1002d380
push edi
add esi, 0x38
push 0x10052314
push esi
call fcn.1003efd3
add esp, 0xc
jmp 0x1002e5fb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.1002f2c0
test eax, eax
je 0x1002e5f4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WSOCK32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.1002e6d0
test eax, eax
jne 0x1002e610
push edi
lea eax, [esi + 0x38]
push 0x100522f0
push eax
call fcn.1003efd3
add esp, 0xc
mov ecx, esi
call fcn.1002ea30
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x1002e6b8
mov ecx, dword [0x100542e0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.1003efd3
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.1002d330
test eax, eax
jne 0x1002e67a
push 0x100522d4
lea ecx, [esi + 0x38]
call fcn.100408a8
jmp 0x1002e68a
push 0xfa
mov ecx, esi
call fcn.1002f2c0
test eax, eax
jne 0x1002e6a7
mov ecx, esi
call fcn.1002ea30
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.1004076b
jmp 0x1002e5fb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.1004076b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x100310e0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x10052674]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x100310f3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x10031134
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x1005271c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x10031166
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1003116a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x1003115b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x10031188
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1003118c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x1003117d
xor ecx, ecx
mov eax, 0x10052684
xor ebx, ebx
mov bl, byte [ecx + 0x1005272c]
cmp byte [esp + ebx + 0x14], 0
je 0x100311b7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x10052744]
cmp byte [esp + ebx + 0x14], 0
je 0x100311ce
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x1003119e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x10031127
lea edx, [esp + 0x84]
push edx
call fcn.10031210
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret