joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053f1
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4c7e9c
call fcn.0045d534
sub esp, 0x40
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0xd], bl
mov byte [ebp - 0x4c], al
call fcn.00404df7
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x405434
push dword [ebp + 8]
call fcn.0045d7a0
pop ecx
push eax
lea ecx, [ebp - 0x4c]
push dword [ebp + 8]
call fcn.00404e8a
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.00404df7
cmp dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
je 0x405461
push dword [ebp + 0xc]
call fcn.0045d7a0
pop ecx
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
call fcn.00404e8a
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00404df7
push dword [0x4d3cf8]
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.00404cc0
push dword [0x4d3cf8]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.00405e7b
mov eax, dword [ebp - 0x28]
mov edi, 0x4d3cf4
cmp eax, ebx
jne 0x4054a4
mov eax, edi
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4054be
mov byte [ebp + 0xb], bl
jmp 0x405545
cmp dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x406
je 0x4054d0
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405536
mov eax, dword [ebp - 0x18]
push 2
pop ecx
cmp eax, ecx
je 0x405526
push 1
pop edx
cmp eax, edx
je 0x405526
cmp eax, 4
jne 0x40550c
mov byte [ebp - 0xd], dl
mov dword [esi + 0x40c], edx
jmp 0x405536
cmp eax, 3
jne 0x405536
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov dword [esi + 0x408], eax
mov dword [esi + 0x40c], ecx
jmp 0x405536
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov byte [eax + esi], bl
mov dword [esi + 0x40c], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0xd]
mov byte [ebp + 0xb], al
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00404df7
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00404df7
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x4c]
call fcn.00404df7
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x405582
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4c7ec0
call fcn.0045d534
sub esp, 0x38
mov al, byte [ebp + 0xb]
and byte [ebp - 0xd], 0
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x44]
push edi
mov byte [ebp - 0x44], al
call fcn.00404df7
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x4055c6
push dword [ebp + 8]
call fcn.0045d7a0
pop ecx
push eax
lea ecx, [ebp - 0x44]
push dword [ebp + 8]
call fcn.00404e8a
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.00404df7
cmp dword [ebp + 0xc], edi
mov byte [ebp - 4], 1
je 0x4055f3
push dword [ebp + 0xc]
call fcn.0045d7a0
pop ecx
push eax
lea ecx, [ebp - 0x24]
push dword [ebp + 0xc]
call fcn.00404e8a
mov al, byte [esi]
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.00404df7
push dword [0x4d3cf8]
lea ecx, [ebp - 0x34]
push edi
push esi
call fcn.00404cc0
push dword [0x4d3cf8]
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.00405e7b
mov eax, dword [ebp - 0x30]
cmp eax, edi
jne 0x405634
mov eax, 0x4d3cf4
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40564d
xor bl, bl
jmp 0x405708
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [edi + 0x40c], 3
jne 0x405690
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4d3cf4
test eax, eax
je 0x405676
mov dword [ebp + 8], eax
push edi
call ebx
inc eax
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x405690
mov byte [ebp - 0xd], 1
mov eax, dword [edi + 0x40c]
test eax, eax
jne 0x4056ba
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4d3cf4
test eax, eax
je 0x4056ab
mov dword [ebp + 8], eax
push edi
call ebx
inc eax
push eax
push edi
push 2
push 0
push dword [ebp + 8]
jmp 0x4056ef
cmp eax, 1
jne 0x4056d2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4056cb
mov eax, 0x4d3cf4
push 4
push edi
push 4
jmp 0x4056ec
cmp eax, 2
jne 0x4056fc
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4056e3
mov eax, 0x4d3cf4
push dword [edi + 0x408]
push edi
push 3
push 0
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4056fc
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0xd]
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00404df7
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00404df7
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.00404df7
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4059bb
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x4c7f00
call fcn.0045d534
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
je 0x405aa5
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00404df7
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0045d7a0
pop ecx
push eax
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
call fcn.00404e8a
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.00404df7
push dword [0x4d3cf8]
lea ecx, [ebp - 0x20]
push ebx
push esi
call fcn.00404cc0
push dword [0x4d3cf8]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00405e7b
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x405a3f
mov eax, 0x4d3cf4
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x405a56
mov byte [ebp + 0xb], bl
jmp 0x405a6a
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x405a8a
mov byte [ebp + 0xb], 1
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00404df7
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00404df7
mov al, byte [ebp + 0xb]
jmp 0x405aa7
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00404df7
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00404df7
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x407049
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x407060
cmp eax, 0xffffffff
je 0x407060
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x407063
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x4c8054
call fcn.0045d534
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
mov esi, ecx
je 0x407157
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00404df7
push dword [ebp + 8]
call fcn.0045d7a0
pop ecx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00404e8a
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x1c], al
call fcn.00404df7
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [ebp - 0x2c]
push edi
push ebx
push eax
mov byte [ebp - 4], 1
mov byte [ebp + 0xb], 0x5c
call fcn.0040745f
cmp eax, ebx
jge 0x40710b
add esi, 4
push 0x500988
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00405098
add esp, 0xc
push dword [0x4d3cf8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.00404cc0
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00404df7
push dword [0x4d3cf8]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.00405e7b
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x40712a
mov eax, 0x4d3cf4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40713a
cmp eax, 0xffffffff
jne 0x40713c
xor edi, edi
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00404df7
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404df7
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x407339
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.004072e0
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x407352
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
jbe 0x407362
mov ebx, ecx
cmp dword [ebp + 0xc], eax
jae 0x40739b
lea eax, [ebx + 1]
push eax
call fcn.004be426
pop ecx
mov edi, eax
push 0xffffffffffffffff
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004072f7
lea eax, [ebp - 4]
push 0
push eax
push ebx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4073a4
push edi
call fcn.004be44f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp - 4]
and byte [eax + edi], 0
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], edi
mov eax, edi
jmp 0x40739d
Function at 0x4077a1
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x4079b6
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebp
push esi
push edi
mov esi, ecx
push 0
mov ebp, str.Microsoft_Base_Cryptographic_Provider_v1.0
push 1
lea edi, [esi + 0x104]
push ebp
push 0
push edi
mov dword [esi], 0x4d3d44
call ebx
test eax, eax
jne 0x4079f0
push 8
push 1
push ebp
push eax
push edi
call ebx
test eax, eax
jne 0x4079f0
and dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x407af0
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x8004
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x8003
jne 0x407b19
mov dword [ebp - 8], 0x14
jmp 0x407b25
cmp dword [ebp + 8], ebx
jne 0x407b25
mov dword [ebp - 8], 0x10
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0045d740
add esp, 0xc
lea esi, [edi + 0x108]
push esi
push 0
push 0
push dword [ebp + 8]
push dword [edi + 0x104]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x407bb5
xor edi, edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x407ba9
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
push 2
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x407ba9
cmp dword [ebp + 0x14], edi
mov dword [ebp - 4], 1
je 0x407ba9
push dword [ebp - 8]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x14]
call fcn.0045dfd0
add esp, 0xc
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi], edi
jmp 0x407bef
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x407bd1
dec eax
jne 0x407bef
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00407bf9
jmp 0x407be1
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00407ca8
add esp, 0x10
test al, al
je 0x407bef
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x413b5e
Capabilities:
Check os version

Disassembly:
mov eax, 0x4c8fc0
call fcn.0045d534
sub esp, 0xa0
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.0045d740
add esp, 0xc
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x413bb6
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0x94
push eax
call esi
test eax, eax
je 0x413c13
cmp dword [ebp - 0xa8], 5
jne 0x413c13
cmp dword [ebp - 0xa4], 1
jne 0x413c13
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x10]
push eax
call fcn.004bdf30
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004be3c4
push str.service_pack_2
push dword [ebp - 0x10]
call fcn.0045ec94
pop ecx
test eax, eax
pop ecx
jne 0x413c07
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bdec2
push 1
pop eax
jmp 0x413c15
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bdec2
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x414731
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x414754
xor eax, eax
leave
ret
lea eax, [ebp - 4]
push esi
and byte [ebp - 0x108], 0
push eax
lea eax, [ebp - 0x108]
xor esi, esi
push eax
push 0x50dea8
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00464f70
pop ecx
test eax, eax
pop ecx
jne 0x414796
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x414f0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4c9104
call fcn.0045d534
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c43c0
mov esi, dword [eax + 8]
test esi, esi
je 0x41502a
mov eax, dword [ebp + 8]
push 6
shr eax, 4
inc eax
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x41502a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x10], 0
mov esi, eax
je 0x41502a
lea edi, [esi + 2]
lea eax, [edi + edi]
push eax
call fcn.004be426
push edi
xor edi, edi
mov ebx, eax
push edi
push ebx
call fcn.0045d740
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x415023
mov ecx, dword [ebp + 8]
and ecx, 0xf
jbe 0x414fa9
movzx edx, word [eax]
dec ecx
lea eax, [eax + edx*2 + 2]
jne 0x414f9f
movzx ecx, word [eax]
cmp ecx, esi
jl 0x414fb2
mov ecx, esi
add eax, 2
push ecx
push eax
push ebx
call fcn.0045f03e
mov al, byte [ebp + 0xb]
add esp, 0xc
lea ecx, [ebp - 0x20]
mov word [ebx + esi*2], di
push edi
mov byte [ebp - 0x20], al
call fcn.00404df7
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edi
push eax
push 0xffffffffffffffff
push ebx
push 0x3a8
call fcn.00414ea5
lea eax, [ebp - 0x20]
push eax
call fcn.00414d45
mov esi, eax
mov eax, dword [ebp - 0x1c]
add esp, 0x14
cmp eax, edi
jne 0x415001
mov eax, 0x4d3cf4
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004be04b
push ebx
call fcn.004be44f
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp - 0x20]
call fcn.00404df7
mov eax, esi
jmp 0x41502c
push ebx
call fcn.004be44f
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4151bf
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x4c9128
call fcn.0045d534
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0xffffffff
jne 0x41532d
xor ebx, ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4151f9
xor eax, eax
jmp 0x415332
push edi
lea ecx, [ebp - 0x1c]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 0x1c], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004bdf30
mov eax, dword [0x505810]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
cmp di, bx
jne 0x4152a5
push 0x3a
lea ecx, [ebp - 0x10]
call fcn.004be389
mov esi, eax
cmp esi, ebx
jle 0x415297
push esi
lea eax, [ebp + 0xc]
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004b7db1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004bdffb
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004bdec2
inc esi
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.004b7d8e
push dword [ebp + 8]
call fcn.0045d8ec
pop ecx
mov edi, eax
lea ecx, [ebp + 8]
call fcn.004bdec2
mov esi, dword [ebp - 0x18]
jmp 0x4152b1
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004bdffb
jmp 0x415292
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004bdffb
cmp di, bx
jne 0x4152b9
push 0x50
pop edi
push edi
mov word [ebp - 0x2c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x14]
mov word [ebp - 0x2a], ax
pop edi
movsx eax, byte [ecx]
cmp eax, 0x2f
jle 0x4152e7
cmp eax, 0x3a
jge 0x4152e7
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x28], eax
jmp 0x4152fe
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x4152fb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x4152e2
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
lea ecx, [ebp - 0x14]
neg esi
sbb esi, esi
mov byte [ebp - 4], bl
inc esi
call fcn.004bdec2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bdec2
jmp 0x415330
push 1
pop esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x41536c
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, 0x4c9144
call fcn.0045d534
sub esp, 0x810
mov eax, dword [0x505810]
push ebx
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x50
je 0x4153e0
push edi
push dword [ebp + 0x10]
call fcn.004151bf
test eax, eax
je 0x4154e9
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004be04b
cmp dword [ebp + 0xc], edi
je 0x415432
push dword [ebp + 0xc]
lea eax, [ebp - 0x81c]
push dword [ebp - 0x10]
push str.POST__s_HTTP_1.1_r_n_s_r_n
push eax
call fcn.0045d9d3
add esp, 0x10
jmp 0x415449
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004c3a4b
test eax, eax
je 0x4153bf
cmp dword [ebp + 8], 3
jne 0x415413
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.004151bf
test eax, eax
jne 0x4153bf
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bdec2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bdec2
xor eax, eax
jmp 0x415503
push dword [ebp - 0x10]
lea eax, [ebp - 0x81c]
push str.POST__s_HTTP_1.1_r_n_r_n
push eax
call fcn.0045d9d3
add esp, 0xc
lea eax, [ebp - 0x81c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
mov dword [ebp + 0x10], eax
jle 0x415490
mov eax, 0x1000
cmp dword [ebp + 0x10], eax
jg 0x415471
mov eax, dword [ebp + 0x10]
push 0
push eax
lea eax, [ebp + edi - 0x81c]
push eax
push dword [ebx + 4]
call esi
test eax, eax
jl 0x415490
sub dword [ebp + 0x10], eax
add edi, eax
cmp dword [ebp + 0x10], 0
jg 0x415464
mov eax, dword [ebp + 0x18]
xor edi, edi
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x4154c6
mov eax, 0x1000
cmp dword [ebp + 0x10], eax
jg 0x4154a9
mov eax, dword [ebp + 0x10]
push 0
push eax
mov eax, dword [ebp + 0x14]
add eax, edi
push eax
push dword [ebx + 4]
call esi
test eax, eax
jl 0x4154c6
sub dword [ebp + 0x10], eax
add edi, eax
cmp dword [ebp + 0x10], 0
jg 0x41549c
cmp dword [ebp + 0x10], 0
pop esi
jne 0x4154e6
mov ecx, ebx
call fcn.00415678
cmp eax, 0x64
mov dword [ebp - 0x18], eax
jne 0x4154e6
mov ecx, ebx
call fcn.00415678
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bdec2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bdec2
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x415513
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, 0x4c9160
call fcn.0045d534
sub esp, 0x810
mov eax, dword [0x505810]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x50
je 0x415587
push esi
push dword [ebp + 0x10]
call fcn.004151bf
test eax, eax
je 0x41564e
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004be04b
cmp dword [ebp + 0xc], esi
je 0x4155d9
push dword [ebp + 0xc]
lea eax, [ebp - 0x81c]
push dword [ebp - 0x10]
push str.GET__s_HTTP_1.1_r_n_s_r_n
push eax
call fcn.0045d9d3
add esp, 0x10
jmp 0x4155f0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004c3a4b
test eax, eax
je 0x415566
cmp dword [ebp + 0x10], 3
jne 0x4155ba
push dword [ebp - 0x1c]
mov ecx, edi
push dword [ebp - 0x14]
call fcn.004151bf
test eax, eax
jne 0x415566
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bdec2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bdec2
xor eax, eax
jmp 0x415668
push dword [ebp - 0x10]
lea eax, [ebp - 0x81c]
push str.GET__s_HTTP_1.1_r_n_r_n
push eax
call fcn.0045d9d3
add esp, 0xc
lea eax, [ebp - 0x81c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
jle 0x41562f
mov eax, 0x1000
cmp ebx, eax
jg 0x41560f
mov eax, ebx
push 0
push eax
lea eax, [ebp + esi - 0x81c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jl 0x41562d
add esi, eax
sub ebx, eax
jmp 0x415600
test ebx, ebx
pop ebx
jne 0x41564b
mov ecx, edi
call fcn.00415678
cmp eax, 0x64
mov dword [ebp - 0x18], eax
jne 0x41564b
mov ecx, edi
call fcn.00415678
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bdec2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bdec2
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc