joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407098
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
invalid
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret

Function at 0x4240f4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4240fa
ret

Function at 0x472c58
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
xor eax, eax
push ebp
push 0x472d31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.00408d24
mov ebx, eax
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov dl, 1
mov eax, dword [0x418be4]
call fcn.00403bbc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x198]
mov edx, ebx
call fcn.00404bb8
mov eax, dword [ebp - 0x198]
call fcn.00404c80
push eax
push ebx
call sub.wsock32.dll_gethostname
push ebx
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x472d13
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x472d07
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call fcn.00404bb8
mov edx, dword [ebp - 0x19c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x472ce4
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472d38
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.004049e4
ret
Function at 0x4730fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x114], ecx
mov ebx, edx
xor ecx, ecx
push ebp
push 0x473306
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ecx, eax
cmp ecx, 6
ja case.0x473139.0
jmp dword [ecx*4 + 0x473140]
mov edx, 0x1a
jmp case.0x473139.0
mov edx, 0x1c
jmp case.0x473139.0
mov edx, 0x23
jmp case.0x473139.0
mov edx, 0x2e
jmp case.0x473139.0
mov edx, 5
jmp case.0x473139.0
xor edx, edx
cmp eax, 7
jne 0x4732b4
xor eax, eax
push ebp
push 0x4732a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x114]
call fcn.00472ef0
mov eax, dword [ebp - 0x114]
mov edx, 0x47331c
call fcn.00404dcc
je 0x4731fe
push 0x473320
call fcn.004071a8
mov edi, eax
push 0x47332c
push edi
call fcn.004070f0
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea edx, [ebp - 0x124]
mov eax, 0x47334c
call fcn.00408ca8
lea eax, [ebp - 0x124]
push eax
call esi
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404be8
jmp 0x47329e
lea eax, [ebp - 4]
push eax
push 5
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x10d]
call fcn.0040a174
mov eax, dword [ebp - 0x128]
mov edx, ebx
call fcn.00409d30
mov edx, dword [ebx]
lea eax, [ebp - 0x12c]
mov ecx, 0x47337c
call fcn.00404ccc
mov eax, dword [ebp - 0x12c]
call fcn.00409a58
test al, al
je 0x473268
mov eax, ebx
mov edx, 0x47337c
call fcn.00404c88
jmp 0x47329e
mov edx, dword [ebx]
lea eax, [ebp - 0x130]
mov ecx, 0x473390
call fcn.00404ccc
mov eax, dword [ebp - 0x130]
call fcn.00409a58
test al, al
je 0x473297
mov eax, ebx
mov edx, 0x473390
call fcn.00404c88
jmp 0x47329e
mov eax, ebx
call fcn.004049c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4732dd
lea eax, [ebp - 4]
push eax
push edx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [ebp - 0x10d]
call fcn.0040a174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47330d
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.004049e4
lea eax, [ebp - 0x114]
call fcn.004049c0
ret
Function at 0x473490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e70
mov eax, dword [ebp - 8]
call fcn.00404e70
xor eax, eax
push ebp
push 0x473564
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.004032b4
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 0x440
mov eax, dword [ebp - 4]
call fcn.00404e80
mov dword [ebp - 0x34], eax
cmp byte [ebp + 0xc], 0
je 0x4734f6
mov eax, 0x473574
mov dword [ebp - 0x38], eax
cmp dword [ebp - 8], 0
je 0x473507
mov eax, dword [ebp - 8]
call fcn.00404e80
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x473547
cmp byte [ebp + 8], 0
je 0x473542
cmp dword [ebp - 0xc], 0
je 0x473542
jmp 0x473530
push 0x32
call sub.kernel32.dll_Sleep_1
push 0x32
mov eax, dword [ebp - 0xc]
push eax
call fcn.00407280
cmp eax, 0x102
je 0x473529
mov ebx, dword [ebp - 0xc]
jmp 0x473549
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47356b
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049e4
ret

Function at 0x47357c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e70
mov eax, dword [ebp - 8]
call fcn.00404e70
xor eax, eax
push ebp
push 0x47365d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47363b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x431cf4]
call fcn.00431df4
mov dword [ebp - 0xc], eax
test bl, bl
je 0x4735d9
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00431e94
jmp 0x4735e6
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.00431e94
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xc], 0
xor ecx, ecx
mov edx, 0x473674
mov eax, dword [ebp - 0xc]
call fcn.00431ef8
cmp byte [ebp + 8], 0
je 0x473612
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0043226c
jmp 0x47361d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.004321d4
mov eax, dword [ebp - 0xc]
call fcn.00431e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473642
mov eax, dword [ebp - 0xc]
call fcn.00403bec
ret

Function at 0x474d34
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
xor eax, eax
mov dword [esp], eax
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret
Function at 0x494a18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
mov eax, ebp
mov edx, dword [esp]
call fcn.00404a14
mov esi, ebx
mov eax, dword [ebp]
call fcn.00404c80
test ax, ax
jbe 0x494a83
mov word [esp + 4], ax
mov bx, 1
mov eax, ebp
call fcn.00404ed8
movzx edi, bx
mov edx, dword [ebp]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [esp]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xce6d
add ax, 0x58bf
mov esi, eax
inc ebx
dec word [esp + 4]
jne 0x494a48
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40e6c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005e38a0
push ebx
push esi
mov esi, ecx
push esi
push edi
call fcn.00444970
push 0x62
push esi
mov ebx, eax
mov dword [ebp - 4], 1
call fcn.005e4b80
add esp, 0x10
test eax, eax
jne 0x40e6f7
mov dword [ebp - 4], 0x11
test ebx, ebx
jne 0x40e782
push 0x45
push str.....crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004058f0
push 0x692500
push esi
push 0x692504
push edi
push str.fopen_
push 5
call fcn.00406f60
add esp, 0x2c
call fcn.005e4c80
cmp dword [eax], 2
je 0x40e762
call fcn.005e4c80
cmp dword [eax], 6
je 0x40e762
push 0x4e
push str.....crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004058f0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4c
push str.....crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004058f0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x691b38
call fcn.0040d500
add esp, 4
mov esi, eax
push ebx
test esi, esi
jne 0x40e7a6
call fcn.005e2820
add esp, 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
push 0x6a
push esi
call fcn.0040dfe0
add esp, 0x10
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xc
call fcn.005e38a0
cmp dword [0x6d4d94], 0
push ebx
push esi
push edi
jne 0x41385f
push 0x30
push 0x6d47c8
push 0x699cac
mov dword [0x6d4d94], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x41383c
xor eax, eax
cmp word [0x6d47c8], 0x7e
sete al
mov edi, eax
lea ecx, [edi*2 + 0x6d47c8]
call fcn.00413640
mov esi, eax
mov ebx, edx
test edi, edi
je 0x4137a8
push 0x6d4f20
mov edi, esi
mov dword [esp + 0x18], ebx
call fcn.00587800
not esi
and esi, eax
not ebx
and edi, 0x1000000
xor eax, eax
add esp, 4
and ebx, edx
or edi, eax
je 0x4137c3
and ebx, 0xedfff7fd
jmp 0x4137c3
cmp word [0x6d47c8], 0x3a
jne 0x4137c3
push 0x6d4f20
call fcn.00587800
add esp, 4
mov esi, eax
mov ebx, edx
mov dx, word [0x6d47c8]
xor edi, edi
mov eax, 0x6d47c8
movzx ecx, dx
cmp dx, di
je 0x4137f2
lea esp, [esp]
cmp cx, 0x3a
je 0x413800
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4137e0
mov dword [0x6d4f28], edi
mov dword [0x6d4f2c], edi
jmp 0x41384d
cmp eax, edi
je 0x4137f2
xor ecx, ecx
cmp word [eax + 2], 0x7e
sete cl
mov edi, ecx
lea ecx, [eax + edi*2 + 2]
call fcn.00413640
test edi, edi
je 0x41382f
not eax
and dword [0x6d4f28], eax
not edx
and dword [0x6d4f2c], edx
jmp 0x41384d
mov dword [0x6d4f28], eax
mov dword [0x6d4f2c], edx
jmp 0x41384d
push 0x6d4f20
call fcn.00587800
add esp, 4
mov esi, eax
mov ebx, edx
or esi, 0x400
mov dword [0x6d4f20], esi
mov dword [0x6d4f24], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x84], 0xffffffff
jne 0x4318a9
pop edi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [eax]
push esi
mov esi, dword [ecx + 4]
mov dword [edx], esi
test ebx, ebx
je 0x43193c
mov eax, dword [edi + 0x84]
cmp eax, esi
jne 0x4318de
test esi, esi
jle 0x431917
mov ecx, ebx
lea eax, [edi + 4]
mov edx, esi
mov bl, byte [eax + 0x60]
xor bl, byte [eax]
inc eax
mov byte [ecx], bl
inc ecx
dec edx
jne 0x4318d0
jmp 0x431914
mov ecx, esi
sub ecx, eax
mov byte [eax + edi + 0x64], 0x80
cmp ecx, 1
jle 0x4318fd
dec ecx
push ecx
lea eax, [eax + edi + 0x65]
push 0
push eax
call fcn.005dd9b0
add esp, 0xc
test esi, esi
jle 0x431917
mov ecx, ebx
lea eax, [edi + 0x24]
mov edx, esi
mov bl, byte [eax + 0x40]
xor bl, byte [eax]
inc eax
mov byte [ecx], bl
inc ecx
dec edx
jne 0x431908
mov ebx, dword [ebp + 8]
mov edi, dword [edi]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x18]
push esi
push ebx
push ebx
push edi
call edx
add esp, 0x10
test eax, eax
jne 0x43193c
push esi
push ebx
call fcn.00587b20
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x433870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, byte [ebp + 0xc]
mov eax, edi
and eax, 1
add esi, ecx
add edx, ecx
test ecx, ecx
je 0x4338a3
push ebx
lea ebx, [ebx]
movzx ebx, byte [edx - 1]
dec edx
xor ebx, edi
add eax, ebx
dec esi
mov byte [esi], al
shr eax, 8
dec ecx
jne 0x433890
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x435330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
cmp eax, 0x1e
ja 0x435348
mov ecx, dword [eax*4 + 0x675b50]
jmp 0x43534a
xor ecx, ecx
test ecx, 0x2956
jne 0x43538f
mov edi, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push eax
call fcn.00449e50
add esp, 4
test eax, eax
je 0x435389
and dword [edi + 0xc], 0x80
mov ecx, dword [esi + 0xc]
and ecx, 0xffffff7f
or ecx, dword [edi + 0xc]
mov eax, 1
mov dword [edi + 0xc], ecx
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
lea edi, [ebx + 8]
push edi
mov ecx, esi
mov dword [ebx + 4], 0xc
call fcn.0045e6a0
add esp, 4
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4353b6
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov edx, dword [edi]
mov edi, eax
mov ecx, edx
test edi, edi
jle 0x4353f8
movzx eax, byte [ecx]
cmp eax, 0x7f
ja 0x4353d8
test byte [eax*2 + 0x684b50], 8
je 0x4353d8
dec edi
inc ecx
test edi, edi
jg 0x4353c0
test edi, edi
jle 0x4353f8
lea esi, [edi + ecx - 1]
movzx eax, byte [esi]
cmp eax, 0x7f
ja 0x4353f8
test byte [eax*2 + 0x684b50], 8
je 0x4353f8
dec edi
dec esi
test edi, edi
jg 0x4353e0
xor esi, esi
test edi, edi
jle 0x435458
mov edi, edi
mov bl, byte [ecx]
movzx eax, bl
test eax, 0xffffff80
je 0x435410
mov byte [edx], bl
jmp 0x43544e
cmp eax, 0x7f
ja 0x43544c
test byte [eax*2 + 0x684b50], 8
je 0x43543a
mov byte [edx], 0x20
inc edx
movzx eax, byte [ecx + 1]
inc ecx
inc esi
cmp eax, 0x7f
ja 0x435451
test byte [eax*2 + 0x684b50], 8
jne 0x435423
jmp 0x435451
cmp eax, 0x7f
ja 0x43544c
test byte [eax*2 + 0x684b50], 2
je 0x43544c
xor eax, 0x20
mov byte [edx], al
inc edx
inc ecx
inc esi
cmp esi, edi
jl 0x435400
mov ebx, dword [ebp + 8]
sub edx, dword [ebx + 8]
mov eax, 1
mov dword [ebx], edx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x443c20
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x42c
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x42c], eax
call fcn.00443430
cmp eax, 1
je 0x443c63
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
push 0x400
lea ecx, [ebp - 0x427]
push 0
push ecx
mov byte [ebp - 0x428], 0
call fcn.005dd9b0
xor eax, eax
add esp, 0xc
cmp word [esi], 2
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov byte [ebp - 0x24], 0
mov eax, 0x10
je 0x443cb2
mov eax, 0x1c
push edi
push 0xa
push 0x20
lea edx, [ebp - 0x24]
push edx
push 0x401
lea ecx, [ebp - 0x428]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov edi, eax
test edi, edi
je 0x443d31
push 0xd7
push str.....crypto_bio_b_addr.c
push 2
push 0x86
push 0x20
call fcn.004058f0
add esp, 0x14
push 0
push 0x400
push 0x6d60a0
push 0x400
push edi
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x6d60a0
push 1
call fcn.00406f60
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x24], 0
jne 0x443d70
movzx eax, word [esi]
cmp eax, 2
jne 0x443d45
movzx eax, word [esi + 2]
jmp 0x443d52
cmp eax, 0x17
jne 0x443d50
movzx eax, word [esi + 2]
jmp 0x443d52
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
push 0x699f10
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004295d0
add esp, 0x10
test ebx, ebx
je 0x443d8e
push 0xe9
push str.....crypto_bio_b_addr.c
lea edi, [ebp - 0x428]
call fcn.00427310
add esp, 8
mov dword [ebx], eax
mov esi, dword [ebp - 0x42c]
test esi, esi
je 0x443daf
push 0xeb
push str.....crypto_bio_b_addr.c
lea edi, [ebp - 0x24]
call fcn.00427310
add esp, 8
mov dword [esi], eax
test ebx, ebx
je 0x443db8
cmp dword [ebx], 0
je 0x443dc9
test esi, esi
je 0x443e6f
cmp dword [esi], 0
jne 0x443e6f
mov esi, dword [fcn.00413ef0]
test ebx, ebx
je 0x443e08
mov eax, dword [ebx]
test esi, esi
je 0x443df9
cmp esi, fcn.00413ef0
je 0x443df9
push 0xfa
push str.....crypto_bio_b_addr.c
push eax
call esi
mov esi, dword [fcn.00413ef0]
add esp, 0xc
jmp 0x443e02
push eax
call fcn.005dcea1
add esp, 4
mov dword [ebx], 0
mov edi, dword [ebp - 0x42c]
test edi, edi
je 0x443e41
mov eax, dword [edi]
test esi, esi
je 0x443e32
cmp esi, fcn.00413ef0
je 0x443e32
push 0xfe
push str.....crypto_bio_b_addr.c
push eax
call esi
add esp, 0xc
jmp 0x443e3b
push eax
call fcn.005dcea1
add esp, 4
mov dword [edi], 0
push 0x101
push str.....crypto_bio_b_addr.c
push 0x41
push 0x86
push 0x20
call fcn.004058f0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
Function at 0x444420
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.005e38a0
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, esi
sub eax, edi
mov dword [ebp - 4], edi
je 0x44446c
sub eax, 2
je 0x44446c
sub eax, 0x15
je 0x44446c
push 0x293
push str.....crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.004058f0
add esp, 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00443430
mov ecx, 1
cmp eax, ecx
jne 0x444464
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edi
cmp esi, edi
jne 0x4444a9
or eax, 0x400
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x10], ecx
jne 0x4444b3
or eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
push edx
push eax
call ebx
mov esi, eax
test esi, esi
je 0x444506
cmp esi, 8
je 0x444553
mov eax, dword [ebp - 0x24]
test eax, 0x400
je 0x444517
mov ecx, dword [ebp + 0x14]
and eax, 0xfffffbff
push ecx
mov ecx, dword [ebp + 8]
or eax, 4
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov edi, esi
call ebx
mov esi, eax
test esi, esi
jne 0x4444d2
pop ebx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x2d6
push str.....crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.004058f0
add esp, 0x14
test edi, edi
je 0x444538
mov esi, edi
push esi
call fcn.004439b0
push eax
push 1
call fcn.00406f60
mov eax, dword [ebp - 4]
add esp, 0xc
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x2c7
push str.....crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.004058f0
mov eax, dword [ebp - 4]
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x446050
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x68
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test esi, esi
jne 0x44607b
mov esi, 0x6d4a24
push 0x60
lea eax, [esp + 0xc]
push 0
push eax
call fcn.005dd9b0
add esp, 0xc
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
mov dword [esp + 0x18], 0xc3d2e1f0
test ebx, ebx
je 0x4460c7
push edi
mov ecx, ebx
lea edx, [esp + 0xc]
call fcn.0045a5f0
add esp, 4
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0045a700
lea edx, [esp + 0xc]
push 0x60
push edx
call fcn.00587b20
mov ecx, dword [esp + 0x78]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
Function at 0x446100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
movzx ebx, byte [eax + 5]
mov dword [ebp - 0x34], eax
inc eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x28], edx
movzx edx, byte [eax]
mov dword [ebp - 0x10], ecx
mov edi, dword [ecx]
movzx ecx, byte [eax - 1]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 3]
mov dword [ebp - 0x2c], eax
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 6]
movzx eax, byte [eax + 5]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xa], al
shl ebx, 0x10
or edx, ebx
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov byte [ebp - 0xc], cl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
test esi, esi
je 0x4462b4
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
sub eax, esi
mov dword [ebp - 0x14], eax
dec dword [ebp - 0x18]
test edi, edi
jne 0x446238
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00588da0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 8
mov byte [ebp - 0xb], bl
mov ebx, eax
mov ecx, eax
mov byte [ebp - 0xc], al
shr eax, 0x18
shr ebx, 0x10
mov byte [ebp - 9], al
mov eax, edx
mov byte [ebp - 0xa], bl
mov ebx, eax
shr ebx, 8
mov byte [ebp - 7], bl
mov ebx, eax
mov byte [ebp - 8], al
shr eax, 0x18
shr ebx, 0x10
add esp, 0x10
inc dword [ebp - 0x1c]
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x14]
mov byte [ebp - 6], bl
mov bl, byte [ebp + edi - 0xc]
xor bl, byte [esi]
inc edi
mov byte [eax + esi], bl
inc esi
and edi, 7
cmp dword [ebp - 0x18], 0
jne 0x4461d7
cmp dword [ebp - 0x1c], 0
je 0x44629e
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
mov byte [eax], cl
mov eax, ecx
shr eax, 8
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
shr ecx, 0x18
mov byte [esi + 2], cl
mov byte [esi + 3], dl
mov ecx, edx
shr ecx, 8
mov byte [esi + 4], cl
mov ecx, dword [ebp - 0x10]
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
shr edx, 0x18
mov byte [esi + 6], dl
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov dword [edx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret