joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac370
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x74
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [esp + 0x80]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [edi], ebx
mov dword [edi + 0x14], ebx
mov byte [edi + 0x18], bl
cmp esi, ebx
je 0x4ac524
push 0x418900
push esi
call fcn.004cf5c0
add esp, 8
test eax, eax
je 0x4ac489
push esi
push 0x42029c
lea eax, [esp + 0x44]
push 0x40
push eax
call fcn.004ce16a
lea ecx, [esp + 0x4c]
push 0x41c8b4
push ecx
mov byte [esp + 0x93], bl
call fcn.004cf5c0
add esp, 0x18
cmp eax, ebx
je 0x4ac3e3
mov byte [eax], bl
xor eax, eax
push 0x17
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.004abd80
add esp, 4
cmp eax, 1
jne 0x4ac524
mov edx, 0x17
push 0x41c8b4
push esi
mov word [esp + 0x28], dx
call fcn.004cf5c0
add esp, 8
cmp eax, ebx
je 0x4ac478
add eax, 1
mov dword [esp + 0xc], ebx
je 0x4ac472
lea ecx, [esp + 0xc]
push ecx
push 0x420690
push eax
call fcn.004ce7b7
add esp, 0xc
cmp eax, 1
jne 0x4ac472
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov dword [esp + 0x3c], eax
call fcn.004ac260
jmp 0x4ac524
xor eax, eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.004ac260
jmp 0x4ac524
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push 0x420554
push esi
call fcn.004ce7b7
add esp, 0x18
cmp eax, 4
jne 0x4ac4f8
mov ebx, dword [esp + 0x1c]
cmp ebx, 0x100
jae 0x4ac524
mov edx, dword [esp + 0x18]
cmp edx, 0x100
jae 0x4ac524
mov ecx, dword [esp + 0x10]
cmp ecx, 0x100
jae 0x4ac524
mov eax, dword [esp + 0x14]
cmp eax, 0x100
jae 0x4ac524
mov byte [esp + 0xe], cl
push 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], al
push ecx
jmp 0x4ac51d
cmp byte [esi], bl
je 0x4ac524
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
cmp eax, ebx
je 0x4ac524
cmp word [eax + 8], 2
jne 0x4ac524
cmp word [eax + 0xa], 4
jne 0x4ac524
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push 4
push eax
mov ecx, edi
call fcn.004abfa0
cmp byte [edi + 0x18], 0
je 0x4ac54c
mov edi, dword [edi]
cmp edi, 1
je 0x4ac536
cmp edi, 2
jne 0x4ac54c
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x74
ret 4
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.004cb3aa
add esp, 0x74
ret 4
Function at 0x4aca10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xf8
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xfc]
push ebx
push ebp
mov ebp, dword [esp + 0x114]
mov ebx, ecx
mov ecx, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x10c]
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
call fcn.0048e930
mov eax, 0x20
cmp dword [esp + 0x118], eax
mov byte [esp + 0x13], 4
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 1
jle 0x4aca89
mov dword [esp + 0x118], eax
push 1
lea edx, [esp + 0x17]
push edx
lea ecx, [esp + 0x2c]
call fcn.0048ed10
lea eax, [esp + 0x90]
push eax
push esi
mov ecx, ebx
call fcn.004add50
push 0x38
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0048ed10
test ebp, ebp
je 0x4acaee
push 0x40
push 0
push ebp
call fcn.004caf20
mov ecx, 7
lea esi, [esp + 0x9c]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x20]
mov ecx, 7
lea esi, [esp + 0xb8]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov ecx, 7
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
push 0
lea edx, [esp + 0xcc]
push edx
add esi, 0x20
mov ecx, 7
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x98]
push eax
push ecx
mov ecx, ebx
call fcn.004ade10
push 0x1c
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x2c]
call fcn.0048ed10
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.0048ed10
lea ecx, [esp + 0xe4]
push ecx
lea ecx, [esp + 0x28]
call fcn.0048ee30
mov esi, dword [esp + 0x118]
test esi, esi
jle 0x4acb8b
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xe4]
sub ecx, eax
nop
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub esi, 1
jne 0x4acb80
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0xf8
ret 0x14
Function at 0x4adab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
push ebx
push esi
mov esi, dword [esp + 0xd8]
push 0x1c
lea eax, [esp + 0xa0]
push esi
push eax
mov ebx, ecx
call fcn.004af810
mov ecx, dword [esp + 0xe8]
push 0x1c
add esi, ecx
lea edx, [esp + 0xc8]
push esi
push edx
call fcn.004af810
push 7
lea eax, [esp + 0xb8]
push 0x41656c
push eax
call fcn.004af600
add esp, 0x24
cmp eax, 1
jne 0x4adb13
pop esi
xor al, al
pop ebx
add esp, 0xcc
ret 8
push 7
lea ecx, [esp + 0xbc]
push 0x41656c
push ecx
call fcn.004af600
add esp, 0xc
cmp eax, 1
je 0x4adb06
push ebp
push edi
push 7
push 7
lea edx, [esp + 0xac]
push edx
push ebx
call fcn.004afbc0
push 7
push 7
lea eax, [esp + 0xd8]
push eax
lea ebp, [ebx + 0x20]
push ebp
call fcn.004afbc0
mov ecx, 7
mov esi, ebx
lea edi, [esp + 0x70]
push 7
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ebx
push ecx
call fcn.004afab0
push 0x41656c
push 7
push ebx
mov eax, 0xe
lea esi, [esp + 0xa4]
call fcn.004acbb0
push 7
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0xac]
push ebx
push eax
call fcn.004af990
add esp, 0x48
push 0x41656c
push 7
push ebx
mov eax, 0xe
lea esi, [esp + 0x78]
call fcn.004acbb0
push 7
lea ecx, [esp + 0x60]
push 0x41656c
push ecx
call fcn.004af6c0
mov edi, 1
push edi
push 7
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x38], 3
call fcn.004afbc0
push 7
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.004af990
push 0x41656c
lea ecx, [esp + 0x70]
push 7
push ecx
lea eax, [edi + 0xd]
lea esi, [esp + 0xb0]
call fcn.004acbb0
add esp, 0x44
push 7
lea edx, [esp + 0x38]
push edx
push ebx
mov dword [esp + 0x3c], 0
call fcn.004af710
add esp, 0xc
test al, al
je 0x4adc46
add dword [esp + 0x30], edi
push 7
push 0x416550
push ebx
call fcn.004af710
add esp, 0xc
test al, al
je 0x4adc5e
add dword [esp + 0x30], edi
cmp dword [esp + 0x30], 0
je 0x4adcc0
mov ecx, 7
mov esi, ebx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
jmp 0x4adc80
push 7
lea eax, [esp + 0x18]
push 0x41656c
push eax
call fcn.004af670
add esp, 0xc
test al, al
jne 0x4adc99
dec esi
test esi, esi
jne 0x4adc80
push 7
lea ecx, [esp + 0x18]
push 0x41656c
push ecx
call fcn.004af760
push 0x1c
lea edx, [esp + 0x24]
push edx
push ebx
call fcn.004cb570
add esp, 0x18
jmp 0x4adcd0
push 7
push 0x41656c
push ebx
call fcn.004af760
add esp, 0xc
push 7
lea eax, [esp + 0x70]
push ebp
push eax
call fcn.004afab0
push 0x41656c
push 7
push ebp
mov eax, 0xe
lea esi, [esp + 0x84]
call fcn.004acbb0
push 7
push ebp
push ebx
call fcn.004af600
add esp, 0x24
pop edi
pop ebp
cmp eax, 3
pop esi
sete al
pop ebx
add esp, 0xcc
ret 8

Function at 0x4af380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test ecx, ecx
je 0x4af3af
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4166f0]
dec ecx
inc edx
test ecx, ecx
jne 0x4af395
pop edi
pop ebx
mov dword [esi], eax
pop esi
ret 0xc
Function at 0x4b0680
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [ebp + 0x10]
cmp edi, dword [ebp + 0x14]
jbe 0x4b0693
call fcn.004caf0d
mov esi, dword [ebp + 4]
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x10], ebx
jbe 0x4b06a3
call fcn.004caf0d
mov eax, dword [ebp + 4]
test esi, esi
je 0x4b06ae
cmp esi, eax
je 0x4b06b3
call fcn.004caf0d
cmp edi, ebx
je 0x4b0707
test esi, esi
jne 0x4b06ed
call fcn.004caf0d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4b06cc
call fcn.004caf0d
mov eax, dword [edi]
cmp byte [eax], 0xcc
je 0x4b06f5
test esi, esi
jne 0x4b06f1
call fcn.004caf0d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4b06e8
call fcn.004caf0d
add edi, 4
jmp 0x4b0696
mov eax, dword [esi]
jmp 0x4b06c2
mov eax, dword [esi]
jmp 0x4b06de
call fcn.0042b470
pop edi
pop esi
pop ebp
mov dword [eax], 0xb
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x4b44f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ecbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x417270]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edx, ecx
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
sub esp, 0x3c
mov edi, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
mov ecx, 0xf
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
call fcn.004b43f0
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x48
ret 4
Function at 0x4bf2b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edi, edi
mov dword [0x5406c4], edi
mov dword [0x5406c8], edi
mov dword [0x5406d0], edi
mov dword [0x5406cc], edi
test eax, eax
jns 0x4bf22a
cmp al, 4
jae 0x4bf21b
mov dword [0x5406c8], 1
pop edi
add esp, 0x24
ret
mov dword [0x5406c4], 1
pop edi
add esp, 0x24
ret
xor eax, eax
push esi
mov dword [esp + 8], eax
push 0x420658
mov dword [0x5406d0], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0xc], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x4bf28f
push 0x4206ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4bf288
lea ecx, [esp + 8]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ax, word [esp + 8]
pop esi
cmp ax, 6
je 0x4bf2a1
cmp ax, 9
jne 0x4bf2ab
mov dword [0x5406cc], 1
pop edi
add esp, 0x24
ret
jmp 0x4bf1e0

Function at 0x4c1de0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
je 0x4c1e28
push esi
mov esi, dword [esp + 8]
push edi
movzx ecx, byte [esi]
mov edi, ecx
xor edi, eax
shr eax, 4
and eax, 0xfff
and edi, 0xf
xor eax, dword [edi*4 + 0x416e00]
shr ecx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xfff
xor eax, dword [ecx*4 + 0x416e00]
dec edx
inc esi
test edx, edx
jne 0x4c1df0
pop edi
pop esi
ret 8

Function at 0x4c5540
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
add eax, esi
movzx eax, ax
test edx, edx
jbe 0x4c5576
mov edi, edi
xor byte [ecx], al
mov si, ax
shr si, 0xf
add eax, eax
add si, ax
movzx eax, si
mov si, ax
add eax, eax
shr si, 0xf
add si, ax
inc ecx
sub edx, 1
movzx eax, si
jne 0x4c5550
pop esi
ret 4
Function at 0x4c5730
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LockFile]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], 0x19
xor ebx, ebx
cmp ebx, 6
jge 0x4c587a
mov eax, dword [esi + 0x20]
push 0
push 0x24
push 0
push 0x3c
push eax
call ebp
mov edi, eax
test edi, edi
jne 0x4c5789
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x10]
lea eax, [edx + edx]
mov dword [esp + 0x10], eax
inc ebx
test edi, edi
je 0x4c5756
push 0x40
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esi + 0x24], 1
call fcn.004caf20
add esp, 0xc
lea edx, [esp + 0x30]
mov edi, 0x24
push edx
lea eax, [edi + 0x18]
call fcn.004c55e0
test eax, eax
je 0x4c5846
lea eax, [esp + 0x36]
lea ecx, [esi + 0x76]
mov edi, 8
lea esp, [esp]
movzx edx, byte [ecx - 2]
add byte [eax - 2], dl
movzx edx, byte [ecx - 1]
add byte [eax - 1], dl
movzx edx, byte [ecx]
add byte [eax], dl
movzx edx, byte [ecx + 1]
add byte [eax + 1], dl
add eax, 4
add ecx, 4
sub edi, 1
jne 0x4c57d0
mov edx, dword [esp + 0x32]
mov eax, dword [esp + 0x30]
add eax, edx
lea ecx, [esp + 0x34]
movzx eax, ax
lea edx, [edi + 0x20]
lea esp, [esp]
xor byte [ecx], al
mov di, ax
shr di, 0xf
add eax, eax
add di, ax
movzx eax, di
mov di, ax
add eax, eax
shr di, 0xf
add di, ax
inc ecx
sub edx, 1
movzx eax, di
jne 0x4c5810
cmp dword [esp + 0x50], edx
je 0x4c58a1
mov dword [0x416fac], 0x65
cmp dword [esi + 0x24], 0
je 0x4c5865
mov ecx, dword [esi + 0x20]
push 0
push 0x24
push 0
push 0x3c
push ecx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov dword [esi + 0x24], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x48
ret
test edi, edi
jne 0x4c578e
pop edi
pop esi
pop ebp
mov dword [0x416fac], 0x64
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x48
ret
movzx edx, word [esp + 0x36]
movzx eax, word [esp + 0x38]
mov cl, byte [esp + 0x3a]
mov dword [esi + 0x40], edx
movzx edx, word [esp + 0x34]
pop edi
mov byte [esi + 0x50], cl
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x44], eax
mov dword [esi + 4], edx
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004cb3aa
add esp, 0x48
ret
Function at 0x4c59a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x40
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
push edi
lea eax, [esp + 0xf]
mov esi, ecx
push eax
mov eax, dword [esi + 0x5c]
mov edi, 1
mov ebx, edx
call fcn.004c55e0
test eax, eax
je 0x4c59dc
cmp byte [esp + 0xf], 0xfa
jbe 0x4c59f2
mov dword [0x416fac], 0x67
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x40
ret 4
push ebp
push 0x38
xor ebp, ebp
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.004caf20
mov eax, dword [esi + 0x60]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
add eax, 0x14
lea edi, [ebp + 0x1d]
call fcn.004c55e0
test eax, eax
je 0x4c5b7c
mov edx, dword [esp + 0x2a]
mov eax, dword [esp + 0x28]
add eax, edx
lea ecx, [esp + 0x2c]
movzx eax, ax
lea edx, [ebp + 0x18]
xor byte [ecx], al
mov di, ax
shr di, 0xf
add eax, eax
add di, ax
movzx eax, di
mov di, ax
add eax, eax
shr di, 0xf
add di, ax
inc ecx
sub edx, 1
movzx eax, di
jne 0x4c5a34
cmp dword [esp + 0x40], ebp
je 0x4c5a81
pop ebp
pop edi
pop esi
mov dword [0x416fac], 0x65
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x40
ret 4
mov cx, word [esp + 0x2c]
cmp cx, word [esi + 0x54]
je 0x4c5aad
pop ebp
pop edi
pop esi
mov dword [0x416fac], 0x67
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x40
ret 4
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4c5abc
push eax
call fcn.004c45e0
mov ebp, eax
test ebx, ebx
je 0x4c5b1a
test ebp, ebp
je 0x4c5b1a
cmp dword [ebp + 0x10], 1
jne 0x4c5b1a
cmp byte [esp + 0x13], 0xfa
jae 0x4c5b1a
cmp byte [esp + 0x44], 0
jne 0x4c5af8
test byte [ebp + 0x28], 0x80
jne 0x4c5af8
mov eax, dword [esi + 0x64]
mov edx, dword [ebp + 0x2c]
add eax, dword [esi + 0x60]
mov edi, dword [ebp + 0x34]
push edx
call fcn.004c55e0
test eax, eax
je 0x4c5b7c
movzx eax, byte [esp + 0x44]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], 2
mov dword [ebp + 0x18], ecx
mov dword [esi + 0x6c], 0
mov dword [ebx], ebp
mov edi, dword [esp + 0x54]
test edi, edi
je 0x4c5b9a
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x44]
xor edx, edx
cmp ecx, eax
jbe 0x4c5b3f
mov ebx, dword [esi + 0x40]
cmp ebx, dword [esi + 0x38]
jbe 0x4c5b43
sub eax, ecx
add eax, 0xa8c0
jmp 0x4c5b41
sub eax, ecx
mov edx, eax
lea eax, [edx + edx]
test eax, eax
jge 0x4c5b4e
xor eax, eax
jmp 0x4c5b5a
cmp eax, 0xffff
mov ecx, 0xffff
jg 0x4c5b5d
movzx ecx, ax
cmp ecx, edi
jae 0x4c5b93
mov eax, edi
sub eax, ecx
xor edx, edx
div dword [esi + 0x34]
mov dword [esi + 0x14], eax
cmp eax, 1
jbe 0x4c5b9a
mov dword [0x416fac], 0x63
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x40
ret 4
mov dword [esi + 0x14], 0
mov ecx, dword [esp + 0x4c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004cb3aa
add esp, 0x40
ret 4
Function at 0x4c5bc0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push esi
mov esi, ecx
mov cx, word [esi + 0x40]
push edi
lea edi, [eax + 0x14]
mov word [edi], cx
movzx edx, word [esi + 0x44]
mov word [eax + 0x16], dx
lea ecx, [eax + 0x18]
mov ax, word [esi + 0x54]
mov word [ecx], ax
movzx edx, word [esi + 0x44]
add dx, word [esi + 0x40]
push ebx
movzx eax, dx
mov edx, 0x18
xor byte [ecx], al
mov bx, ax
shr bx, 0xf
add eax, eax
add bx, ax
movzx eax, bx
mov bx, ax
add eax, eax
shr bx, 0xf
add bx, ax
inc ecx
sub edx, 1
movzx eax, bx
jne 0x4c5bf2
mov eax, dword [esi + 0x60]
push edi
add eax, 0x14
lea edi, [edx + 0x1c]
call fcn.004c56b0
pop ebx
test eax, eax
jne 0x4c5c30
pop edi
pop esi
pop ecx
ret
cmp dword [esi + 0x6c], 0
je 0x4c5c3d
mov byte [esp + 0xb], 0xfa
jmp 0x4c5c44
mov cl, byte [esi + 0x50]
mov byte [esp + 0xb], cl
mov eax, dword [esi + 0x5c]
lea edx, [esp + 0xb]
push edx
mov edi, 1
call fcn.004c56b0
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ecx
ret
Function at 0x4c7020
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x220
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
mov esi, dword [esp + 0x228]
push 0x100
lea eax, [esp + 0x124]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x4c706d
xor al, al
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x220
ret 4
lea ecx, [esp + 0x120]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4c7053
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ebx
mov ebx, dword [eax]
push 1
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x14], 0x10c
call fcn.004c3980
test eax, eax
jne 0x4c70bc
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x4c70bc
lea ecx, [esp + 0x1c]
nop
cmp dword [ecx], ebx
je 0x4c70c3
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x4c70b0
xor al, al
jmp 0x4c7187
lea eax, [eax + eax*2]
mov ecx, dword [esp + eax*8 + 0x24]
test ecx, ecx
je 0x4c70bc
mov edx, ebx
shr edx, 0x18
mov byte [esp + 8], dl
mov eax, ebx
shr eax, 0x10
mov byte [esp + 9], al
movzx eax, byte [esi + 7]
mov byte [esp + 0xc], al
movzx eax, byte [esi + 5]
mov edx, ebx
shr edx, 8
mov byte [esp + 0xa], dl
movzx edx, byte [esi + 6]
mov byte [esp + 0xd], dl
movzx edx, byte [esi + 4]
mov byte [esp + 0xe], al
mov eax, dword [esi + 4]
and eax, ecx
mov byte [esp + 0xf], dl
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x10], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x11], dl
not ecx
mov edx, eax
mov byte [esp + 0x13], al
mov eax, ecx
shr edx, 8
shr ecx, 0x18
mov byte [esp + 0x12], dl
mov byte [esp + 0x14], cl
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esp + 0x15], dl
mov edx, dword [esp + 0xc]
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x14]
or eax, ecx
push edi
mov byte [esp + 0xf], bl
cmp edx, ecx
jbe 0x4c7177
cmp edx, eax
jae 0x4c7175
mov edi, dword [esp + 0xc]
cmp edi, ecx
jbe 0x4c7175
cmp edi, eax
jb 0x4c717d
cmp edx, ecx
je 0x4c71a0
cmp edx, eax
je 0x4c71a0
mov dword [esi + 8], 1
mov al, 1
pop edi
mov ecx, dword [esp + 0x224]
pop ebx
pop esi
xor ecx, esp
call fcn.004cb3aa
add esp, 0x220
ret 4
mov dword [esi + 8], 0
xor al, al
jmp 0x4c7186

Function at 0x4c71b0
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [0x5406b8]
xor ebx, ebx
xor al, al
mov byte [esp + 0xb], al
cmp esi, ebx
je 0x4c71fb
cmp byte [esi + 0xc], bl
lea eax, [esi + 0xc]
je 0x4c71f1
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
je 0x4c71f1
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push esi
mov dword [esi + 4], edx
call fcn.004c7020
or byte [esp + 0xb], al
mov esi, dword [esi]
cmp esi, ebx
jne 0x4c71c5
mov al, byte [esp + 0xb]
pop esi
pop ebx
pop ecx
ret
Function at 0x4c7200
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x20
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
xor ebx, ebx
cmp dword [0x53f8cc], ebx
jne 0x4c73f2
mov eax, dword [0x5406b8]
push ebp
push esi
cmp eax, 0x417034
je 0x4c7241
cmp eax, ebx
je 0x4c7241
nop
mov esi, dword [eax]
push eax
call fcn.004cb4e1
add esp, 4
mov eax, esi
cmp esi, ebx
jne 0x4c7230
mov esi, 1
push 0x100
mov dword [0x5406b8], ebx
mov dword [0x53f8cc], esi
mov byte [0x53f8d0], bl
call fcn.004cce67
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4c73c4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x5406b8
push edi
lea esp, [esp]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x24]
push 0x4225d0
push ecx
mov dword [esp + 0x1c], ebx
call esi
push 0x4186a1
push 0x42029c
push ebp
call esi
push 0xff
push ebp
lea edx, [esp + 0x40]
push edx
push 9
call fcn.004c8be0
add esp, 0x28
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebp
call fcn.004c41a0
mov ecx, dword [esp + 0x10]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4c72d4
sub eax, esi
mov edi, eax
lea eax, [edi + ecx - 1]
cmp eax, ecx
jbe 0x4c72ff
mov dl, byte [eax]
cmp dl, 0x20
je 0x4c72f3
cmp dl, 9
jne 0x4c72ff
mov byte [eax], bl
mov ecx, dword [esp + 0x10]
dec eax
dec edi
cmp eax, ecx
ja 0x4c72e7
cmp edi, ebx
je 0x4c73ba
push ecx
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x4c7349
mov eax, dword [esp + 0x10]
mov ecx, 0x4225c0
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c7340
cmp dl, bl
je 0x4c733c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c7340
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4c7320
xor eax, eax
jmp 0x4c7345
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c734b
xor edi, edi
lea ecx, [edi + 0xd]
push ecx
call fcn.004cce67
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4c73ba
mov dword [esi + 8], ebx
cmp edi, ebx
je 0x4c738f
mov edx, dword [esp + 0x10]
inc edi
push edi
push edx
lea eax, [esi + 0xc]
push eax
call fcn.004cb570
mov edx, dword [esp + 0x24]
add esp, 0xc
inc dword [esp + 0x14]
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [edx], esi
mov dword [esp + 0x18], esi
jmp 0x4c7280
mov ecx, dword [esp + 0x1c]
push esi
mov dword [esi + 4], ecx
mov byte [esi + 0xc], bl
call fcn.004c7020
mov edx, dword [esp + 0x18]
or byte [0x53f8d0], al
inc dword [esp + 0x14]
mov dword [esi], ebx
mov dword [edx], esi
mov dword [esp + 0x18], esi
jmp 0x4c7280
push ebp
call fcn.004cb4e1
add esp, 4
pop edi
pop esi
pop ebp
cmp dword [0x5406b8], ebx
je 0x4c73e8
call fcn.004c71b0
mov al, byte [0x53f8d0]
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x20
ret
mov dword [0x5406b8], 0x417034
mov ecx, dword [esp + 0x20]
mov al, byte [0x53f8d0]
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0x20
ret