joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404529
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4a6793
call fcn.0043cb10
mov eax, 0x1002c
call fcn.0043d400
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
cmp edi, ebx
je 0x404573
mov eax, dword [edi + 0x18]
lea esi, [edi + 0x18]
cmp dword [eax - 8], ebx
jne 0x40456c
push str.Accept:___r_n_r_n
mov ecx, esi
call fcn.0049cb4d
mov eax, dword [esi]
mov ecx, dword [eax - 8]
jmp 0x40459a
mov esi, str.Accept:___r_n_r_n
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp + 0x14], eax
call fcn.0049ca32
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
jmp 0x40459c
mov eax, esi
mov eax, dword [eax]
push ebx
push 0x84000100
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00433cc8
add esp, 0x18
cmp eax, ebx
sete byte [ebp + 0x17]
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 0xc], eax
test byte [ebp - 0x18], 1
je 0x4045cf
lea ecx, [ebp - 0x24]
call fcn.0049c9c4
cmp byte [ebp + 0x17], bl
je 0x4045d8
push 1
jmp 0x404627
push 4
lea eax, [ebp - 0x2c]
pop esi
mov dword [ebp - 0x20], ebx
push ebx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], esi
push eax
push 0x20000013
push dword [ebp + 0xc]
call fcn.00433c80
add esp, 0x14
test eax, eax
je 0x404625
mov eax, dword [ebp - 0x20]
cmp edi, ebx
je 0x404608
mov dword [edi + 4], eax
cmp eax, 0xc8
jne 0x404625
push 0x4dc8c0
push dword [ebp + 0x10]
call fcn.0043d38f
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 0x14], eax
jne 0x40462d
push 2
pop eax
jmp 0x40471a
lea eax, [ebp - 0x30]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000005
push dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], ebx
xor esi, esi
call fcn.00433c80
add esp, 0x14
test eax, eax
jne 0x404655
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10038]
push 0x4000
push eax
push dword [ebp + 0xc]
call fcn.00433c3b
add esp, 0x10
test eax, eax
je 0x404704
cmp dword [ebp - 0x10], ebx
push dword [ebp + 0x14]
je 0x404709
push dword [ebp - 0x10]
lea eax, [ebp - 0x10038]
push 1
push eax
call fcn.0043d225
mov ecx, dword [ebp - 0x14]
add esi, dword [ebp - 0x10]
add esp, 0x10
cmp ecx, ebx
je 0x4046b8
cmp edi, ebx
je 0x4046b8
mov eax, esi
xor edx, edx
imul eax, eax, 0x64
div ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov dword [edi + 0x14], eax
fldz
fstp dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
je 0x4046e3
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
fild qword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
fmul dword [0x4b1cc8]
fidiv dword [ebp - 0x38]
fstp dword [ebp + 8]
cmp edi, ebx
je 0x404655
fld dword [ebp + 8]
call fcn.0043d430
mov dword [edi + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
test eax, eax
jne 0x404655
push 3
pop ebx
jmp 0x40470f
call fcn.0043d0bf
pop ecx
push dword [ebp + 0x14]
call fcn.0043d042
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404df8
Capabilities:
Create thread

Disassembly:
mov eax, 0x4a67fc
call fcn.0043cb10
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x24]
cmp edi, ebx
je 0x404e1f
mov eax, dword [edi + 0x18]
inc eax
mov dword [edi + 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x404e3f
push dword [ebp + 8]
call fcn.0043cd70
pop ecx
push eax
lea ecx, [esi + 8]
push dword [ebp + 8]
call fcn.00404a18
mov ecx, esi
call fcn.00404d67
test eax, eax
jne 0x404e6c
mov dword [esi + 0x20], ebx
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x404e87
push ebx
push ebx
call fcn.0043db85
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x404e6c
push 1
pop ebx
lea ecx, [ebp - 0x10]
call fcn.00404de1
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x404f73
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4a682c
call fcn.0043cb10
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.00404985
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x404fb6
push dword [ebp + 8]
call fcn.0043cd70
pop ecx
push eax
lea ecx, [ebp - 0x4c]
push dword [ebp + 8]
call fcn.00404a18
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.00404985
cmp dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
je 0x404fe3
push dword [ebp + 0xc]
call fcn.0043cd70
pop ecx
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
call fcn.00404a18
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00404985
push dword [0x4b1cc0]
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.0040484e
push dword [0x4b1cc0]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.004059e2
mov eax, dword [ebp - 0x28]
mov edi, 0x4b1cbc
cmp eax, ebx
jne 0x405026
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 0x405040
mov byte [ebp + 0xb], bl
jmp 0x4050da
cmp dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x800
je 0x405052
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 0x4050cb
mov ecx, dword [ebp - 0x18]
push 2
pop edx
cmp ecx, edx
je 0x4050bb
push 1
pop eax
cmp ecx, eax
je 0x4050bb
cmp ecx, 4
jne 0x405088
mov byte [ebp - 0xd], al
jmp 0x4050b3
push 3
pop eax
cmp ecx, eax
jne 0x4050a4
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov dword [esi + 0x800], eax
mov dword [esi + 0x804], edx
jmp 0x4050cb
cmp ecx, 7
jne 0x4050cb
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov byte [ecx + esi], bl
mov dword [esi + 0x804], eax
jmp 0x4050cb
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov byte [eax + esi], bl
mov dword [esi + 0x804], 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.00404985
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00404985
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x4c]
call fcn.00404985
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 0x405117
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4a6850
call fcn.0043cb10
sub esp, 0x38
mov al, byte [ebp + 0xb]
and byte [ebp - 0xd], 0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x44], al
call fcn.00404985
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x40515b
push dword [ebp + 8]
call fcn.0043cd70
pop ecx
push eax
lea ecx, [ebp - 0x44]
push dword [ebp + 8]
call fcn.00404a18
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.00404985
cmp dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
je 0x405188
push dword [ebp + 0xc]
call fcn.0043cd70
pop ecx
push eax
lea ecx, [ebp - 0x24]
push dword [ebp + 0xc]
call fcn.00404a18
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.00404985
push dword [0x4b1cc0]
lea ecx, [ebp - 0x34]
push ebx
push esi
call fcn.0040484e
push dword [0x4b1cc0]
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.004059e2
mov eax, dword [ebp - 0x30]
mov edi, 0x4b1cbc
cmp eax, ebx
jne 0x4051cb
mov eax, edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4051e4
xor bl, bl
jmp 0x405268
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x804]
cmp eax, ebx
jne 0x405207
cmp dword [ebp - 0x20], ebx
je 0x4051f9
mov edi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 2
jmp 0x405249
cmp eax, 1
jne 0x40521b
cmp dword [ebp - 0x20], ebx
je 0x405214
mov edi, dword [ebp - 0x20]
push 4
push esi
push 4
jmp 0x405249
cmp eax, 2
jne 0x405233
cmp dword [ebp - 0x20], ebx
je 0x405228
mov edi, dword [ebp - 0x20]
push dword [esi + 0x800]
push esi
push 3
jmp 0x405249
cmp eax, 3
jne 0x40525c
cmp dword [ebp - 0x20], ebx
je 0x405240
mov edi, dword [ebp - 0x20]
push dword [esi + 0x800]
push esi
push 7
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40525c
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.00404985
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00404985
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.00404985
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40551f
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x4a6890
call fcn.0043cb10
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
je 0x405609
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00404985
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0043cd70
pop ecx
push eax
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
call fcn.00404a18
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.00404985
push dword [0x4b1cc0]
lea ecx, [ebp - 0x20]
push ebx
push esi
call fcn.0040484e
push dword [0x4b1cc0]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.004059e2
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x4055a3
mov eax, 0x4b1cbc
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4055ba
mov byte [ebp + 0xb], bl
jmp 0x4055ce
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4055ee
mov byte [ebp + 0xb], 1
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00404985
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00404985
mov al, byte [ebp + 0xb]
jmp 0x40560b
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00404985
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00404985
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x406b71
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x4a69e4
call fcn.0043cb10
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
mov esi, ecx
je 0x406c65
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00404985
push dword [ebp + 8]
call fcn.0043cd70
pop ecx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00404a18
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x1c], al
call fcn.00404985
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.00406d41
cmp eax, ebx
jge 0x406c19
add esi, 4
push 0x4dc90c
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00404c26
add esp, 0xc
push dword [0x4b1cc0]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.0040484e
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00404985
push dword [0x4b1cc0]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.004059e2
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x406c38
mov eax, 0x4b1cbc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x406c48
cmp eax, 0xffffffff
jne 0x406c4a
xor edi, edi
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00404985
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404985
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40fdbe
Capabilities:
Check os version

Disassembly:
mov eax, 0x4a74a0
call fcn.0043cb10
sub esp, 0xa0
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.0043cd10
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 0x40fe16
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0x94
push eax
call esi
test eax, eax
je 0x40fe73
cmp dword [ebp - 0xa8], 5
jne 0x40fe73
cmp dword [ebp - 0xa4], 1
jne 0x40fe73
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x10]
push eax
call fcn.0049ca32
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0049ce52
push str.service_pack_2
push dword [ebp - 0x10]
call fcn.0043e124
pop ecx
test eax, eax
pop ecx
jne 0x40fe67
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049c9c4
push 1
pop eax
jmp 0x40fe75
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049c9c4
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x410734
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x4a7508
call fcn.0043cb10
sub esp, 0x104
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov esi, SysReAllocStringLen
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x410775
lea eax, [ebp + 8]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x410775
xor eax, eax
jmp 0x410864
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x4107fc
lea eax, [ebp + 0xc]
mov esi, 0x4e7dd8
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp + 8]
mov byte [ebp - 0x110], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x110]
push eax
call fcn.0043cd70
test eax, eax
pop ecx
jbe 0x4107df
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
call fcn.00444830
pop ecx
test eax, eax
pop ecx
je 0x4107df
call fcn.004a2d8b
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x110]
push ecx
push edi
push str.filetypes
mov ecx, eax
call fcn.004a0994
push dword [ebp + 0x10]
call fcn.0043cd70
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x410857
call fcn.004a2d8b
mov eax, dword [eax + 4]
push ebx
push edi
lea ecx, [ebp + 0x10]
push str.filetypes
push ecx
mov ecx, eax
call fcn.004a2fdc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [eax - 8]
cmp eax, ebx
je 0x41084b
inc eax
lea ecx, [ebp + 0x10]
push eax
push 1
call fcn.0049cd80
push eax
push 1
push ebx
push 0x4e7dd8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.0049cdcf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0049c9c4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x410872
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 0x410895
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 0x4e7dd8
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.00444830
pop ecx
test eax, eax
pop ecx
jne 0x4108d7
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x410f3f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4a7590
call fcn.0043cb10
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004a2d8b
mov esi, dword [eax + 8]
test esi, esi
je 0x41105b
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 0x41105b
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 0x41105b
lea edi, [esi + 2]
lea eax, [edi + edi]
push eax
call fcn.0049ceb4
push edi
xor edi, edi
mov ebx, eax
push edi
push ebx
call fcn.0043cd10
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x411054
mov ecx, dword [ebp + 8]
and ecx, 0xf
jbe 0x410fda
movzx edx, word [eax]
dec ecx
lea eax, [eax + edx*2 + 2]
jne 0x410fd0
movzx ecx, word [eax]
cmp ecx, esi
jl 0x410fe3
mov ecx, esi
add eax, 2
push ecx
push eax
push ebx
call fcn.0043e3f5
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.00404985
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edi
push eax
push 0xffffffffffffffff
push ebx
push 0x3a8
call fcn.00410ed6
lea eax, [ebp - 0x20]
push eax
call fcn.00410d76
mov esi, eax
mov eax, dword [ebp - 0x1c]
add esp, 0x14
cmp eax, edi
jne 0x411032
mov eax, 0x4b1cbc
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0049cb4d
push ebx
call fcn.0049cedd
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp - 0x20]
call fcn.00404985
mov eax, esi
jmp 0x41105d
push ebx
call fcn.0049cedd
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 0x4111f0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x4a75b4
call fcn.0043cb10
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0xffffffff
jne 0x41135e
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 0x41122a
xor eax, eax
jmp 0x411363
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.0049ca32
mov eax, dword [0x4df718]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
cmp di, bx
jne 0x4112d6
push 0x3a
lea ecx, [ebp - 0x10]
call fcn.0049ce17
mov esi, eax
cmp esi, ebx
jle 0x4112c8
push esi
lea eax, [ebp + 0xc]
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00496905
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0049cafd
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0049c9c4
inc esi
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.004968e2
push dword [ebp + 8]
call fcn.0043ce76
pop ecx
mov edi, eax
lea ecx, [ebp + 8]
call fcn.0049c9c4
mov esi, dword [ebp - 0x18]
jmp 0x4112e2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.0049cafd
jmp 0x4112c3
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.0049cafd
cmp di, bx
jne 0x4112ea
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 0x411318
cmp eax, 0x3a
jge 0x411318
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x28], eax
jmp 0x41132f
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x41132c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x411313
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.0049c9c4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049c9c4
jmp 0x411361
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 0x41139d
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, 0x4a75d0
call fcn.0043cb10
sub esp, 0x810
mov eax, dword [0x4df718]
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 0x411411
push edi
push dword [ebp + 0x10]
call fcn.004111f0
test eax, eax
je 0x41151a
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0049cb4d
cmp dword [ebp + 0xc], edi
je 0x411463
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.0043cff0
add esp, 0x10
jmp 0x41147a
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.004a2416
test eax, eax
je 0x4113f0
cmp dword [ebp + 8], 3
jne 0x411444
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.004111f0
test eax, eax
jne 0x4113f0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0049c9c4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049c9c4
xor eax, eax
jmp 0x411534
push dword [ebp - 0x10]
lea eax, [ebp - 0x81c]
push str.POST__s_HTTP_1.1_r_n_r_n
push eax
call fcn.0043cff0
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 0x4114c1
mov eax, 0x1000
cmp dword [ebp + 0x10], eax
jg 0x4114a2
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 0x4114c1
sub dword [ebp + 0x10], eax
add edi, eax
cmp dword [ebp + 0x10], 0
jg 0x411495
mov eax, dword [ebp + 0x18]
xor edi, edi
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x4114f7
mov eax, 0x1000
cmp dword [ebp + 0x10], eax
jg 0x4114da
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 0x4114f7
sub dword [ebp + 0x10], eax
add edi, eax
cmp dword [ebp + 0x10], 0
jg 0x4114cd
cmp dword [ebp + 0x10], 0
pop esi
jne 0x411517
mov ecx, ebx
call fcn.004116a9
cmp eax, 0x64
mov dword [ebp - 0x18], eax
jne 0x411517
mov ecx, ebx
call fcn.004116a9
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0049c9c4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049c9c4
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14