joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417750
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x507a74]
xor eax, esp
mov dword [esp + 0x14], eax
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xd8]
push 1
push 0
push esi
call fcn.0040dc00
add esp, 0xc
test eax, eax
jge 0x41779d
push str.Timed_out_before_server_could_connect_to_us
push ebp
call fcn.0040d820
add esp, 8
pop edi
mov eax, 0x1c
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a81b0
add esp, 0x18
ret
push eax
push 0xffffffffffffffff
push edi
call fcn.0041eb90
add esp, 0xc
cmp eax, 0xffffffff
je 0x41787b
test eax, eax
je 0x417857
push ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4177f6
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x417827
push str.Error_accept__ing_server_connect
push ebp
call fcn.0040d820
add esp, 8
pop ebx
pop edi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a81b0
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.0040d790
push 1
push ebx
mov dword [esi + 0xd8], ebx
call fcn.00422fa0
add esp, 0x10
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a81b0
add esp, 0x18
ret
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.0040d820
add esp, 8
pop edi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a81b0
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.0040d820
mov ecx, dword [esp + 0x24]
add esp, 8
pop edi
pop ebp
xor ecx, esp
mov eax, 0x1e
call fcn.004a81b0
add esp, 0x18
ret
Function at 0x419ce0
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x419d1a
push str.Couldnt_set_desired_mode
push edi
call fcn.0040d820
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x419d31
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.0040d790
add esp, 0xc
cmp ebp, 0x13
jne 0x419d44
mov eax, ebx
call fcn.004193a0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x419d55
call fcn.004193f0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x419d68
mov eax, ebx
call fcn.00417e50
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x419d76
mov eax, ebx
call fcn.00417e60
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x41a320
Capabilities:
Check http status code

Disassembly:
cmp byte [esp + 4], 0
push ebx
sete bl
lea ebx, [ebx*8 + 0x41]
cmp byte [esi + 0x338], bl
jne 0x41a352
mov eax, edi
mov ecx, esi
call fcn.00417e10
pop ebx
mov dword [esp + 4], edi
mov ecx, 0xc8
mov eax, esi
jmp fcn.00419ce0
movsx eax, bl
push eax
push str.TYPE__c
push esi
call fcn.00418400
add esp, 0xc
test eax, eax
jne 0x41a379
mov eax, edi
mov ecx, esi
call fcn.00417e10
mov byte [esi + 0x338], bl
xor eax, eax
pop ebx
ret
Function at 0x41eb90
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebx, 0xffffffff
jne 0x41ebd0
cmp ebp, ebx
jne 0x41ebd0
mov eax, dword [esp + 0x334]
call fcn.0041eb70
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x41ebeb
mov esi, edi
call fcn.0041fdb0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
cmp ebx, 0xffffffff
je 0x41ec1f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
mov dword [esp + 0x228], eax
cmp ebp, 0xffffffff
je 0x41ec63
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x41ec4c
cmp dword [esp + eax*4 + 0x24], ebp
je 0x41ec4c
inc eax
cmp eax, ecx
jb 0x41ec41
cmp eax, ecx
jne 0x41ec5d
cmp ecx, 0x40
jae 0x41ec5d
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x41ec63
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
dec ebx
and ebx, eax
xor eax, eax
cmp edi, eax
jle 0x41eca5
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x41ecaf
jne 0x41ecaf
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x41ed19
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x41ece2
cmp eax, 0x2714
jne 0x41ed1d
test edi, edi
jle 0x41ec74
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0041fdb0
push edx
push eax
call fcn.0041fde0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x41ec74
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x41ed2b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x41ed3a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x41ed71
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41ed5f
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41ed71
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x41eda4
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41ed92
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41eda4
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x41f240
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.0041fdb0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0041fde0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x41f2f5
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.0041eb90
add esp, 0xc
test eax, eax
jle 0x41f2f5
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.0040d490
add esp, 0x10
test eax, eax
jne 0x41f2f8
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x41f300
test eax, eax
je 0x41f2f5
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.0041fdb0
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0041fde0
add esp, 0x10
cmp eax, ebx
jle 0x41f290
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x41fe50
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x507a74]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004ac57f
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x41feb5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x41feb5
lea edx, [esp]
push edx
call dword [0x5010a0]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a81b0
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004a81b0
add esp, 0x108
ret
jmp 0x41fe50

Function at 0x41fed0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x507a74]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004ac57f
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x41feb5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x41feb5
lea edx, [esp]
push edx
call dword [0x5010a0]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a81b0
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004a81b0
add esp, 0x108
ret
jmp 0x41fe50
Function at 0x4231a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004a8cc0
mov eax, dword [0x507a74]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x4231e7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004a81b0
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.004ac71c
add esp, 8
test eax, eax
jl 0x4231d0
mov eax, 8
call fcn.004a8cc0
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.00423010
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x4231d0
push 0x4c5614
push esi
call fcn.004a8391
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x4232c1
jmp 0x423244
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x423252
cmp ebx, 0x400
mov esi, ebx
jl 0x423257
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.004a9cce
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x4232a5
fild dword [esp + 0x44]
mov eax, 8
call fcn.004a8cc0
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.00423010
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x423240
sub ebx, esi
test ebx, ebx
jg 0x423240
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a8d62
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.0043d630
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a81b0
mov esp, ebp
pop ebp
ret
Function at 0x42af40
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x74
call fcn.004a8cc0
mov eax, dword [0x507a74]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x42af78
call fcn.0043dc70
test eax, eax
jg 0x42b0c1
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
mov ebx, eax
push edi
mov dword [esp + 0x48], ebx
call esi
push 0xa
push edi
mov dword [esp + 0x4c], eax
call esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
push 0x10
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x50], esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x50]
push ecx
push 0x18
push esi
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
movzx esi, word [esp + 0x60]
imul esi, dword [esp + 0x58]
imul esi, dword [esp + 0x5c]
push 0x306
push str..crypto_rand_rand_win.c
push esi
call fcn.0042d040
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x42b0a2
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
xor ebx, ebx
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x42b095
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push 0xcc0020
push ebx
push 0
push edi
push 0x10
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
push ecx
push esi
push edx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push 0
call fcn.00446340
mov ecx, dword [esp + 0x40]
push eax
push 0
lea eax, [esp + 0x74]
push eax
push esi
push ecx
call fcn.00444290
add esp, 0x18
mov eax, 8
call fcn.004a8cc0
fldz
fstp qword [esp]
lea edx, [esp + 0x70]
push 0x14
push edx
call fcn.00423010
add ebx, 0x10
add esp, 0x10
cmp ebx, dword [esp + 0x38]
jl 0x42b01d
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042d1f0
mov ebx, dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a81b0
mov esp, ebp
pop ebp
ret
Function at 0x42b8d0
Capabilities:
Capture screenshot

Disassembly:
call fcn.0042b0e0
jmp fcn.0042af40

Function at 0x43a350
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
sete bl
test bl, bl
je 0x43a375
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0xc]
push eax
push ebp
push 1
push edi
call ecx
jmp 0x43a3a7
cmp dword [esi + 8], 0
jne 0x43a39a
mov edx, dword [eax + 8]
push 0x4c5614
push edx
call fcn.004a8391
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x43a39a
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esi + 8]
push eax
push ebp
push 1
push edi
call fcn.004a9cce
mov edi, eax
add esp, 0x10
test edi, edi
je 0x43a3b4
cmp edi, ebp
jbe 0x43a3d1
test bl, bl
jne 0x43a3cb
mov ecx, dword [esi + 8]
push ecx
call fcn.004a8d62
add esp, 4
mov dword [esi + 8], 0
mov edx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebp
pop ebx
ret
Function at 0x43be60
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.004a92e0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x43dd50
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004a8cc0
mov eax, dword [0x507a74]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x43ddb5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x43ddb5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004a9ecf
add eax, 0x40
push eax
call fcn.004adff7
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a81b0
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004adebf
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x43de44
call fcn.0043dc70
test eax, eax
jle 0x43de44
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a81b0
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a81b0
add esp, 0x108
ret

Function at 0x43e280
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x43e2c7
mov al, byte [edx]
test al, al
je 0x43e2c7
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x43e297
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x43ea20
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.004263f0
add esp, 8
test esi, esi
jg 0x43ea7e
je 0x43ea5c
cmp esi, 0xffffffff
jne 0x43ea7e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x43ea73
cmp eax, 0xb
je 0x43ea73
cmp eax, 0x2733
jne 0x43ea7e
push 0xa
push edi
call fcn.00426410
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x447c70
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call fcn.004a8391
mov edi, eax
add esp, 8
test edi, edi
jne 0x447d06
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0042aa00
push 0x4c9558
push esi
push 0x4d8afc
push ebx
push str.fopen_
push 5
call fcn.0042a5e0
add esp, 0x2c
call fcn.004abb83
cmp dword [eax], 2
jne 0x447ce8
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0042aa00
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x83
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0042aa00
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x501668
call fcn.004269b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x447d28
push edi
call fcn.004a8d62
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.004263f0
push edi
push 1
push 0x6a
push esi
call fcn.00426750
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x473200
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x473214
mov dword [esp + 0x18], fcn.00473ad0
jmp 0x494180
mov dword [esp + 0x18], fcn.00474090
jmp 0x494320
Function at 0x473880
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.00473350
add esp, 0xc
test eax, eax
jl 0x473ac8
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x4738fd
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x4738c0
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x473ac4
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x4e76e0]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x4e76e0]
and esi, 0xff
mov esi, dword [esi*4 + 0x4e82e0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4e8ae0]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4e76e0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4e8ee0]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x4e76e0]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4e86e0]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x4e76e0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x4e76e0]
and esi, 0xff
mov esi, dword [esi*4 + 0x4e82e0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4e8ae0]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x4e76e0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4e86e0]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4e76e0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4e8ee0]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x4e76e0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x4e76e0]
and esi, 0xff
mov esi, dword [esi*4 + 0x4e82e0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4e8ae0]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x4e76e0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4e86e0]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4e76e0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4e8ee0]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x4e76e0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x4e76e0]
and esi, 0xff
mov esi, dword [esi*4 + 0x4e82e0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4e8ae0]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x4e76e0]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4e76e0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4e86e0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4e8ee0]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x473911
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x475070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.004a8cc0
mov eax, dword [0x507a74]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
movzx edx, byte [edi + 1]
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
shl edx, 8
or ecx, edx
lea eax, [edi + 1]
movzx edx, byte [eax + 1]
mov dword [esp + 0x28], eax
inc eax
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax]
inc eax
mov ebp, dword [esp + 0x40]
inc eax
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
shl ebx, 0x10
or edx, ebx
mov byte [esp + 0x2d], al
mov eax, ecx
mov ebx, ecx
mov byte [esp + 0x2c], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x30], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
cmp dword [esp + 0x44], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x47523a
dec dword [esp + 0x18]
test esi, esi
jne 0x4751aa
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00474630
mov ebx, dword [esp + 0x24]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x28]
mov byte [esp + 0x36], cl
mov byte [esp + 0x37], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x38], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
add esp, 8
inc dword [esp + 0x10]
mov byte [esp + 0x2c], bl
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], al
mov cl, byte [esp + esi + 0x2c]
mov eax, dword [esp + 0x3c]
xor cl, byte [eax]
inc esi
mov byte [ebp], cl
inc eax
inc ebp
and esi, 7
cmp dword [esp + 0x18], 0
mov dword [esp + 0x3c], eax
jne 0x475148
cmp dword [esp + 0x10], 0
je 0x475221
mov eax, dword [esp + 0x28]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
inc eax
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov edx, ecx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004a81b0
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004a81b0
add esp, 0x28
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a81b0
add esp, 0x28
ret