joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4890d0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header
Write file on windows

Disassembly:
sub esp, 0xa28
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0xa20], eax
mov eax, dword [str.GetExternalIPAddress]
push ebp
mov ebp, dword [esp + 0xa34]
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [0x60df08]
mov edi, ecx
mov ecx, dword [0x60df00]
mov esi, edx
mov edx, dword [0x60df04]
push 0x200
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [0x60df0c]
mov dword [esp + 0x1c], edx
mov dl, byte [0x60df10]
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x30], dl
call fcn.004f9940
add esp, 0xc
push 0x400
lea ecx, [esp + 0x62c]
push 0
push ecx
call fcn.004f9940
add esp, 0xc
push 0x400
lea edx, [esp + 0x22c]
push 0
push edx
call fcn.004f9940
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, eax
push ecx
push str.__xml_version_1.0____s:Envelope_r_n____xmlns:s_http:__schemas.xmlsoap.org_soap_envelope___r_n____s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____r_n___s:Body__r_n_____u:_s_xmlns:u__s___r_n__u:_s__r_n____s:Body__r_n__s:Envelope__r_n_r_n
lea edx, [esp + 0x38]
push 0x200
push edx
call fcn.004f5e00
mov edx, dword [esp + 0xa50]
lea ecx, [esp + 0x28]
push ecx
push esi
push eax
push edx
push edi
push 0x6411d8
push str.POST__s_HTTP_1.1_r_nHOST:__s:_d_r_nContent_Length:__d_r_nContent_Type:_text_xml__charset_utf_8__r_nSOAPAction:___s_s__r_n_r_n
lea eax, [esp + 0x65c]
push 0x400
push eax
call fcn.004f5e00
add esp, 0x3c
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
push 0x604f14
lea edx, [esp + esi + 0x630]
push 0x200
push edx
call fcn.004f5e00
add esp, 0x10
add esi, eax
je 0x4892c6
push 0
push esi
lea eax, [esp + 0x630]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4892c6
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push str.C:GetExternalIPAddress.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4892c6
lea ecx, [esp + 0x228]
push 0x400
push ecx
mov eax, ebx
xor esi, esi
call fcn.00488900
add esp, 8
test eax, eax
jle 0x4892c6
jmp 0x489250
add esi, eax
lea edx, [esp + esi + 0x228]
push 0x400
push edx
mov eax, ebx
call fcn.00488900
add esp, 8
test eax, eax
jg 0x489250
test esi, esi
je 0x4892c6
push 0
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x234]
push ecx
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x228]
push edx
mov ecx, ebp
call fcn.00488990
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa20]
xor ecx, esp
call fcn.004f2a78
add esp, 0xa28
ret
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004f2a78
add esp, 0xa28
ret
Function at 0x489580
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0xa18
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0xa14], eax
mov eax, dword [str.DeletePortMapping]
push esi
push edi
mov edi, edx
mov edx, dword [0x60df74]
mov esi, ecx
mov ecx, dword [0x60df70]
push 0x200
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x60df78]
mov dword [esp + 0x10], ecx
mov cx, word [0x60df7c]
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x24], cx
call fcn.004f9940
push 0x400
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.004f9940
push 0x400
lea ecx, [esp + 0x638]
push 0
push ecx
call fcn.004f9940
mov edx, dword [esp + 0xa4c]
push esi
push edx
push str._NewRemoteHost___NewRemoteHost__NewExternalPort__d__NewExternalPort__NewProtocol__s__NewProtocol_
lea eax, [esp + 0x4c]
push 0x200
push eax
call fcn.004f5e00
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x58]
push edx
push edi
mov eax, ecx
push eax
push str.__xml_version_1.0____s:Envelope_r_n____xmlns:s_http:__schemas.xmlsoap.or_soap_envelope___r_n____s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____r_n___s:Body__r_n_____u:_s_xmlns:u__s___r_n_s______u:_s__r_n____s:Body__r_n__s:Envelope__r_n_r_n
lea ecx, [esp + 0x668]
push 0x400
push ecx
call fcn.004f5e00
add esp, 0x54
lea edx, [esp + 8]
push edx
push edi
mov esi, eax
mov eax, dword [esp + 0xa34]
push esi
push eax
push ebx
push 0x6411d8
push str.POST__s_HTTP_1.1_r_nHOST:__s:_d_r_nContent_Length:__d_r_nContent_Type:_text_xml__charset_utf_8__r_nSOAPAction:___s_s__r_n_r_n
lea ecx, [esp + 0x238]
push 0x400
push ecx
call fcn.004f5e00
mov edi, eax
push esi
lea edx, [esp + 0x644]
push edx
lea eax, [esp + edi + 0x248]
push eax
call fcn.004ffc50
add esp, 0x30
test edi, edi
jle 0x4896bf
mov edx, dword [esp + 0xa24]
push 0
add esi, edi
push esi
lea ecx, [esp + 0x224]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
xor ecx, esp
call fcn.004f2a78
add esp, 0xa18
ret

Function at 0x48a660
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0x2048
push 0
push esi
mov dword [esp + 0xc], 0
call fcn.004f9940
mov eax, dword [esp + 0x14]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push connect
push eax
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x48a6a7
xor eax, eax
pop ecx
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0x2030
lea edx, [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp], 0x2030
jne 0x48a6a3
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop ecx
ret
Function at 0x48a6e0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0xc]
push eax
push 0xe
lea ebx, [esi + 0x2038]
push ebx
push ecx
mov dword [esp + 0x1c], 0
call ebp
cmp dword [esp + 8], 0xe
jae 0x48a713
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x203a]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push edi
push ecx
call ebp
mov edx, dword [esp + 8]
cmp edx, dword [esi + 0x203a]
jb 0x48a70d
mov bl, byte [ebx]
test bl, 0x18
jne 0x48a76b
test bl, 7
jbe 0x48a76b
movzx eax, byte [edi + 0xf]
movzx ecx, byte [edi + 0x10]
mov dl, byte [edi + 0x11]
not al
not cl
mov byte [edi + 0xf], al
movzx eax, byte [edi + 0x12]
mov byte [edi + 0x10], cl
movzx ecx, byte [edi + 0x13]
not dl
not al
not cl
mov byte [edi + 0x11], dl
mov byte [edi + 0x12], al
mov byte [edi + 0x13], cl
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x48a840
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0x3048
push 0
push esi
mov dword [esp + 0xc], 0
call fcn.004f9940
mov eax, dword [esp + 0x14]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push connect
push eax
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x48a887
xor eax, eax
pop ecx
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0x3030
lea edx, [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp], 0x3030
jne 0x48a883
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop ecx
ret

Function at 0x48a8e0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push 0
lea eax, [esp + 0xc]
push eax
push 0xe
lea esi, [edi + 0x3038]
push esi
push ecx
mov dword [esp + 0x1c], 0
call ebx
cmp dword [esp + 8], 0xe
je 0x48a913
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
call ebx
mov ecx, dword [esp + 8]
xor eax, eax
cmp ecx, dword [esi]
pop esi
sete al
pop ebx
pop ecx
ret
Function at 0x48ab60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x520
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x51c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x38]
push esi
lea esi, [eax + eax*4]
mov eax, dword [ebp + 8]
shl esi, 5
cdq
idiv esi
xor edx, edx
push edi
mov dword [esp + 0xc], edx
test eax, eax
jle 0x48ac53
mov edi, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jmp 0x48abb4
mov edi, dword [esp + 0x14]
cmp dword [ebx + 0x38], 1
jne 0x48abdc
xor esi, esi
lea esp, [esp]
mov cl, byte [edi + esi]
xor edx, edx
xor cl, 0x80
mov dh, cl
add esi, 1
cmp esi, 0xa0
mov word [esp + esi*2 + 0x1e], dx
jl 0x48abc0
jmp 0x48abeb
mov esi, dword [esp + 0x10]
mov ecx, 0x50
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.0050e3c0
mov ecx, dword [ebx + 0x24]
push ebx
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0050e190
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov edx, 0x2800
sub edx, esi
push edx
add eax, esi
push eax
push ebx
call fcn.0050e4a0
add dword [esp + 0x30], 0xa0
add dword [esp + 0x2c], 0x140
add esi, eax
add esp, 0x1c
sub dword [esp + 0x18], 1
mov dword [esp + 0xc], esi
jne 0x48abb0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x51c]
xor ecx, esp
call fcn.004f2a78
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x524]
pop edi
pop esi
xor ecx, esp
mov eax, edx
call fcn.004f2a78
mov esp, ebp
pop ebp
ret
Function at 0x48ad90
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push 0x3048
push ebx
push esi
mov dword [esp + 0x10], ebx
call fcn.004f9940
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push eax
mov dword [esi + 0x3038], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x3038], eax
je 0x48ae9b
mov cl, byte [esp + 0x24]
mov dl, byte [esp + 0x34]
mov byte [esi + 0xa], cl
mov cx, word [esp + 0x28]
mov word [esi + 0xc], cx
mov cl, byte [esp + 0x30]
mov byte [esi + 0xf], cl
mov ecx, dword [esp + 0x14]
mov byte [esi + 0xb], dl
mov dl, byte [esp + 0x2c]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x1c]
push edi
mov byte [esi + 0xe], dl
mov edx, dword [esp + 0x14]
mov byte [esi + 0x19], cl
mov ecx, dword [esp + 0x3c]
push ebx
mov dword [esi + 0x10], edx
mov dl, byte [esp + 0x20]
mov dword [esi + 0x24], ecx
lea ecx, [esp + 0xc]
push ecx
mov byte [esi + 0x18], dl
mov dl, byte [esp + 0x2c]
push 0x3030
lea edi, [esi + 8]
mov byte [esi + 0x1a], dl
mov edx, dword [esp + 0x4c]
push edi
push eax
mov byte [edi], 2
mov byte [esi + 9], bl
mov byte [esi + 0x1b], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3034], ebx
mov dword [esi], 0x3030
mov dword [esi + 0x303c], ebx
mov dword [esi + 0x3040], 0x7d0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 8], 0x3030
pop edi
je 0x48aea0
mov edx, dword [esi + 0x3038]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3038], 0xffffffff
xor eax, eax
pop ebx
pop ecx
ret
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x48af50
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
cmp dword [esi + 0x3038], 0xffffffff
mov al, byte [esp + 0x18]
push edi
mov edi, edx
je 0x48b00b
mov dl, byte [esi + 0x3044]
test dl, dl
jne 0x48af92
cmp dword [esp + 0x18], 0
je 0x48b085
test dl, dl
jne 0x48af92
mov dword [esi + 4], edi
mov byte [esi + 0x3044], 1
xor eax, eax
mov dl, byte [esp + 0x18]
and al, 1
add al, al
and dl, 1
or al, dl
shl al, 5
or al, 2
mov byte [ecx + 8], al
mov byte [ecx + 9], 0
mov dword [ecx], ebp
mov eax, dword [esi + 4]
cmp edi, eax
jb 0x48afb8
sub edi, eax
jmp 0x48afc0
sub edi, eax
add edi, 0x5265c00
mov dword [esi + 0x1c], edi
mov dword [ecx + 4], edi
add dword [esi + 0x20], 1
mov eax, dword [esi + 0x20]
lea edi, [ebp + 0xe]
mov dword [ecx + 0xa], eax
xor ebp, ebp
push ebp
lea eax, [esp + 0x10]
push eax
push edi
push ecx
mov ecx, dword [esi + 0x3038]
push ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xc], edi
je 0x48b012
mov edx, dword [esi + 0x3038]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3038], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
cmp dword [esp + 0x18], 1
jne 0x48b052
mov eax, dword [esi + 0x3034]
mov ecx, dword [esi]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x34], ecx
mov eax, dword [esi + 0x3034]
add eax, 4
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x1c]
mov dword [esi + edx*4 + 8], eax
mov eax, dword [esi + 0x3034]
mov edx, dword [esi + 0x20]
lea ecx, [eax + eax*2]
mov dword [esi + ecx*4 + 0x3c], edx
add dword [esi + 0x3034], 1
add dword [esi + 0x303c], 1
mov eax, dword [esi + 0x303c]
add dword [esi], edi
cmp eax, dword [esi + 0x3040]
jbe 0x48b085
call fcn.0048aeb0
mov eax, dword [esi + 0x3038]
push 2
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x303c], ebp
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x48b090
Capabilities:
Write file on windows

Disassembly:
push ecx
xor edx, edx
cmp byte [edi + 0x3044], dl
push esi
je 0x48b0ef
push ebx
mov bl, byte [eax + 8]
push edx
mov dword [eax], ecx
lea esi, [ecx + 0xe]
lea ecx, [esp + 0xc]
push ecx
and bl, 0xea
push esi
or bl, 0xa
mov byte [eax + 8], bl
mov dword [eax + 4], edx
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0x3038]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 8], esi
pop ebx
je 0x48b0ed
mov eax, dword [edi + 0x3038]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3038], 0xffffffff
xor eax, eax
pop esi
pop ecx
ret
add dword [edi], esi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x48b3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cd688
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push 0x378
lea ebx, [esi + 8]
push 0
mov dword [esp + 0x1c], 0
push ebx
mov dword [esi], vtable.CVideoDecoder.0
call fcn.004f9940
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, 0xd
mov dword [esi + 0xf8], ecx
mov dword [esi + 0xf4], 0
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov eax, dword [0x648028]
add esp, 0xc
test eax, eax
je 0x48b425
cmp dword [eax + 0x1c], 0
je 0x48b41e
cmp dword [eax + 8], ecx
je 0x48b427
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x48b413
xor eax, eax
push eax
call fcn.0048be20
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0xc

Function at 0x48b770
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push eax
push 1
push ecx
call fcn.004f680f
push esi
mov edi, eax
call fcn.004f6518
add esp, 0x14
mov eax, edi
pop edi
ret

Function at 0x48b7f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push 0x2050
push ebx
push esi
mov dword [esp + 0x10], ebx
call fcn.004f9940
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push eax
mov dword [esi + 0x2040], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x2040], eax
jne 0x48b83c
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x28]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x14]
push edi
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x24]
push ebx
mov byte [esi + 0x12], cl
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x24], edx
lea edx, [esp + 0xc]
push edx
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x28]
push 0x2030
lea edi, [esi + 0x10]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x34]
push edi
push eax
mov byte [edi], 1
mov byte [esi + 0x11], bl
mov byte [esi + 0x13], bl
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x203c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov dword [esi + 0x2044], ebx
mov dword [esi], 0x2030
mov dword [esi + 0x2048], 0x7d0
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x48b920
Capabilities:
Write file on windows

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, edx
mov dl, byte [edi + 0x204c]
test dl, dl
push esi
mov esi, dword [esp + 0x18]
jne 0x48b95e
test ebx, ebx
je 0x48ba96
test dl, dl
jne 0x48b95e
mov eax, dword [ecx]
mov dword [edi + 8], eax
mov edx, dword [ecx + 4]
mov dword [edi + 0xc], edx
mov byte [edi + 0x204c], 1
xor eax, eax
and al, 1
add al, al
mov dl, bl
and dl, 1
or al, dl
shl al, 5
or al, 1
mov byte [esi], al
mov byte [esi + 1], 0
mov dword [esi + 2], ebp
mov eax, dword [ecx]
sub eax, dword [edi + 8]
mov ecx, dword [ecx + 4]
sbb ecx, dword [edi + 0xc]
push 0
push 0x2710
push ecx
push eax
call fcn.00500d80
mov dword [edi + 0x28], eax
mov dword [esi + 6], eax
movzx edx, byte [esi + 0x1d]
movzx eax, byte [esi + 0x1e]
movzx ecx, byte [esi + 0x1f]
not dl
not al
mov byte [esi + 0x1d], dl
movzx edx, byte [esi + 0x20]
mov byte [esi + 0x1e], al
movzx eax, byte [esi + 0x21]
not cl
push 0
mov byte [esi + 0x1f], cl
lea ecx, [esp + 0x10]
push ecx
not dl
add ebp, 0xe
not al
push ebp
mov byte [esi + 0x20], dl
mov byte [esi + 0x21], al
mov edx, dword [edi + 0x2040]
push esi
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, byte [esi + 0x1d]
movzx ecx, byte [esi + 0x1e]
movzx edx, byte [esi + 0x1f]
not al
mov byte [esi + 0x1d], al
movzx eax, byte [esi + 0x20]
not cl
mov byte [esi + 0x1e], cl
movzx ecx, byte [esi + 0x21]
not al
mov byte [esi + 0x20], al
mov eax, 1
cmp ebx, eax
not dl
not cl
mov byte [esi + 0x1f], dl
mov byte [esi + 0x21], cl
jne 0x48ba39
mov edx, dword [edi + 0x203c]
mov ecx, dword [edi]
mov dword [edi + edx*8 + 0x3c], ecx
mov edx, dword [edi + 0x203c]
mov ecx, dword [edi + 0x28]
mov dword [edi + edx*8 + 0x40], ecx
add dword [edi + 0x203c], eax
add dword [edi + 0x2044], eax
mov eax, dword [edi + 0x2044]
add dword [edi], ebp
cmp eax, dword [edi + 0x2048]
jbe 0x48ba96
mov edx, dword [edi + 0x2040]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x20], ebx
call esi
mov edx, dword [edi + 0x2040]
push ebx
lea eax, [esp + 0x14]
push eax
push 0x2030
lea ecx, [edi + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 0x2040]
push 2
push ebx
push ebx
push eax
call esi
mov dword [edi + 0x2044], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x48baa0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov dl, byte [eax]
and dl, 0xe8
push edi
or dl, 8
mov byte [eax], dl
xor edx, edx
push edx
mov dword [eax + 2], ecx
lea edi, [ecx + 0xe]
lea ecx, [esp + 8]
push ecx
push edi
mov dword [eax + 6], edx
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x2040]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esi], edi
xor eax, eax
pop edi
pop ecx
ret
Function at 0x4a0380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
imul eax, edx
push ebx
push ebp
push esi
mov ebp, 0x5ff0e0
push edi
xor edi, edi
add eax, ecx
mov ebx, ebp
xor esi, esi
test ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], edi
je 0x4a03d6
cmp eax, 1
jl 0x4a03d6
mov ebp, dword [esp + 0x24]
mov ebx, eax
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp - 0x124]
cmp ebx, 3
je 0x4a03ca
cmp ebx, 4
jne 0x4a03d0
lea esi, [ebp - 0xbc]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
cmp eax, edx
jl 0x4a0400
mov ebp, dword [esp + 0x24]
mov ebx, eax
sub ebx, edx
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp]
cmp ebx, 3
je 0x4a03f7
cmp ebx, 4
jne 0x4a03fa
lea edi, [ebp + 0x68]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
test ecx, ecx
je 0x4a0433
lea ecx, [edx + 1]
cmp eax, ecx
jl 0x4a0433
mov ecx, eax
sub ecx, edx
mov edx, dword [esp + 0x24]
imul ecx, ecx, 0x124
add edx, ecx
mov ecx, dword [edx - 0x124]
cmp ecx, 3
je 0x4a042b
cmp ecx, 4
jne 0x4a0433
add edx, 0xffffff44
jmp 0x4a0437
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
imul eax, eax, 0x124
lea eax, [eax + ecx + 0x68]
mov ecx, dword [esp + 0x28]
cmp ecx, 5
ja case.default.0x4a0452
jmp dword [ecx*4 + 0x4a0568]
test esi, esi
je 0x4a0460
lea ebx, [esi + 0x1e]
test edi, edi
je 0x4a0467
lea ebp, [edi + 0x3c]
test edx, edx
je case.default.0x4a0452
add edx, 0x5a
jmp 0x4a04d5
test edi, edi
mov ebx, eax
je case.default.0x4a0452
lea ebp, [edi + 0x5a]
add edi, 0x3c
mov dword [esp + 0x10], edi
jmp case.default.0x4a0452
test esi, esi
je 0x4a0490
lea ebx, [esi + 0x5a]
add esi, 0x1e
mov dword [esp + 0x10], esi
mov ebp, eax
jmp case.default.0x4a0452
lea ebx, [eax + 0x3c]
lea ebp, [eax + 0x1e]
mov dword [esp + 0x10], eax
jmp case.default.0x4a0452
test esi, esi
je 0x4a04a7
lea ebx, [esi + 0x78]
test edi, edi
je 0x4a04ae
lea ebp, [edi + 0x78]
test edx, edx
je case.default.0x4a0452
add edx, 0x78
jmp 0x4a04d5
test esi, esi
je 0x4a04c1
lea ebx, [esi + 0x96]
test edi, edi
je 0x4a04cb
lea ebp, [edi + 0x96]
test edx, edx
je case.default.0x4a0452
add edx, 0x96
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
movsx ecx, word [edx]
movzx ebp, word [ebp]
movzx ebx, word [ebx]
movsx edi, bp
mov eax, ecx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x24], eax
movsx esi, bx
mov eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
mov ecx, dword [esp + 0x2c]
jge 0x4a0530
test bp, bp
jle 0x4a052c
mov eax, ecx
sar eax, 1
add eax, edi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, edi
jmp 0x4a054f
test bx, bx
jle 0x4a054d
mov eax, ecx
sar eax, 1
add eax, esi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, esi
mov edx, ecx
sar edx, 1
sub eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
Function at 0x4a8710
Capabilities:
Check mutex on windows
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d5d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
lea eax, [esi + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x7c]
push ecx
xor ebx, ebx
push 0x202
mov dword [esp + 0x228], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4a87e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
mov ecx, 0xf
mov dword [esp + 0x18], vtable.CUDTException.0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jne 0x4a87d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x619850
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
call fcn.004fa80b
cmp byte [esi + 0x50], bl
je 0x4a8803
cmp edi, 0xffffffff
je 0x4a87fc
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x4a884e
push ebx
push ebx
push ebx
mov byte [esi + 0x40], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push 0x4ab810
push ebx
push ebx
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp edi, 0xffffffff
mov dword [esi + 0x54], eax
mov byte [esi + 0x50], 1
je 0x4a884c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.004f2a78
mov esp, ebp
pop ebp
ret