joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051e6
Capabilities:
Create thread

Disassembly:
mov eax, 0x4c79ac
call fcn.0045d02c
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x24]
cmp edi, ebx
je 0x405209
inc dword [edi + 0x18]
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 0x405229
push dword [ebp + 8]
call fcn.0045d290
pop ecx
push eax
lea ecx, [esi + 8]
push dword [ebp + 8]
call fcn.00404dfb
mov ecx, esi
call fcn.0040514a
test eax, eax
jne 0x405256
mov dword [esi + 0x20], ebx
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x405271
push ebx
push ebx
call fcn.0045e1e5
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x405256
push 1
pop ebx
lea ecx, [ebp - 0x10]
call fcn.004051d3
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405371
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4c79dc
call fcn.0045d02c
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.00404d68
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x4053b4
push dword [ebp + 8]
call fcn.0045d290
pop ecx
push eax
lea ecx, [ebp - 0x4c]
push dword [ebp + 8]
call fcn.00404dfb
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.00404d68
cmp dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
je 0x4053e1
push dword [ebp + 0xc]
call fcn.0045d290
pop ecx
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
call fcn.00404dfb
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00404d68
push dword [0x4d3cf8]
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.00404c31
push dword [0x4d3cf8]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.00405dfb
mov eax, dword [ebp - 0x28]
mov edi, 0x4d3cf4
cmp eax, ebx
jne 0x405424
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 0x40543e
mov byte [ebp + 0xb], bl
jmp 0x4054c5
cmp dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x406
je 0x405450
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 0x4054b6
mov eax, dword [ebp - 0x18]
push 2
pop ecx
cmp eax, ecx
je 0x4054a6
push 1
pop edx
cmp eax, edx
je 0x4054a6
cmp eax, 4
jne 0x40548c
mov byte [ebp - 0xd], dl
mov dword [esi + 0x40c], edx
jmp 0x4054b6
cmp eax, 3
jne 0x4054b6
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov dword [esi + 0x408], eax
mov dword [esi + 0x40c], ecx
jmp 0x4054b6
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.00404d68
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00404d68
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x4c]
call fcn.00404d68
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 0x405502
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4c7a00
call fcn.0045d02c
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.00404d68
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x405546
push dword [ebp + 8]
call fcn.0045d290
pop ecx
push eax
lea ecx, [ebp - 0x44]
push dword [ebp + 8]
call fcn.00404dfb
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.00404d68
cmp dword [ebp + 0xc], edi
mov byte [ebp - 4], 1
je 0x405573
push dword [ebp + 0xc]
call fcn.0045d290
pop ecx
push eax
lea ecx, [ebp - 0x24]
push dword [ebp + 0xc]
call fcn.00404dfb
mov al, byte [esi]
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.00404d68
push dword [0x4d3cf8]
lea ecx, [ebp - 0x34]
push edi
push esi
call fcn.00404c31
push dword [0x4d3cf8]
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.00405dfb
mov eax, dword [ebp - 0x30]
cmp eax, edi
jne 0x4055b4
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 0x4055cd
xor bl, bl
jmp 0x405688
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 0x405610
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4d3cf4
test eax, eax
je 0x4055f6
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 0x405610
mov byte [ebp - 0xd], 1
mov eax, dword [edi + 0x40c]
test eax, eax
jne 0x40563a
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4d3cf4
test eax, eax
je 0x40562b
mov dword [ebp + 8], eax
push edi
call ebx
inc eax
push eax
push edi
push 2
push 0
push dword [ebp + 8]
jmp 0x40566f
cmp eax, 1
jne 0x405652
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40564b
mov eax, 0x4d3cf4
push 4
push edi
push 4
jmp 0x40566c
cmp eax, 2
jne 0x40567c
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x405663
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 0x40567c
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.00404d68
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00404d68
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.00404d68
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40593b
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x4c7a40
call fcn.0045d02c
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
je 0x405a25
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00404d68
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0045d290
pop ecx
push eax
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
call fcn.00404dfb
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.00404d68
push dword [0x4d3cf8]
lea ecx, [ebp - 0x20]
push ebx
push esi
call fcn.00404c31
push dword [0x4d3cf8]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00405dfb
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x4059bf
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 0x4059d6
mov byte [ebp + 0xb], bl
jmp 0x4059ea
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x405a0a
mov byte [ebp + 0xb], 1
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00404d68
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00404d68
mov al, byte [ebp + 0xb]
jmp 0x405a27
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00404d68
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00404d68
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x406fba
Capabilities:
Get file attributes

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

Disassembly:
mov eax, 0x4c7b94
call fcn.0045d02c
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
mov esi, ecx
je 0x4070c8
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00404d68
push dword [ebp + 8]
call fcn.0045d290
pop ecx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00404dfb
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x1c], al
call fcn.00404d68
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.004073d0
cmp eax, ebx
jge 0x40707c
add esi, 4
push 0x500988
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00405009
add esp, 0xc
push dword [0x4d3cf8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.00404c31
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00404d68
push dword [0x4d3cf8]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.00405dfb
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x40709b
mov eax, 0x4d3cf4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x4070ab
cmp eax, 0xffffffff
jne 0x4070ad
xor edi, edi
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00404d68
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404d68
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4072aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407251
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x4072c3
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
jbe 0x4072d3
mov ebx, ecx
cmp dword [ebp + 0xc], eax
jae 0x40730c
lea eax, [ebx + 1]
push eax
call fcn.004bdf6c
pop ecx
mov edi, eax
push 0xffffffffffffffff
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00407268
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 0x407315
push edi
call fcn.004bdf95
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 0x40730e
Function at 0x407712
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 0x407927
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 0x407961
push 8
push 1
push ebp
push eax
push edi
call ebx
test eax, eax
jne 0x407961
and dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x407a61
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 0x407a8a
mov dword [ebp - 8], 0x14
jmp 0x407a96
cmp dword [ebp + 8], ebx
jne 0x407a96
mov dword [ebp - 8], 0x10
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0045d230
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 0x407b26
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 0x407b1a
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 0x407b1a
cmp dword [ebp + 0x14], edi
mov dword [ebp - 4], 1
je 0x407b1a
push dword [ebp - 8]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x14]
call fcn.0045dac0
add esp, 0xc
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi], edi
jmp 0x407b60
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x407b42
dec eax
jne 0x407b60
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00407b6a
jmp 0x407b52
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00407c19
add esp, 0x10
test al, al
je 0x407b60
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x413a45
Capabilities:
Check os version

Disassembly:
mov eax, 0x4c8aec
call fcn.0045d02c
sub esp, 0xa0
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.0045d230
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 0x413a9d
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0x94
push eax
call esi
test eax, eax
je 0x413afa
cmp dword [ebp - 0xa8], 5
jne 0x413afa
cmp dword [ebp - 0xa4], 1
jne 0x413afa
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x10]
push eax
call fcn.004bda76
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004bdf0a
push str.service_pack_2
push dword [ebp - 0x10]
call fcn.0045e784
pop ecx
test eax, eax
pop ecx
jne 0x413aee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bda08
push 1
pop eax
jmp 0x413afc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bda08
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x4c8b54
call fcn.0045d02c
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 0x414408
lea eax, [ebp + 8]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x414408
xor eax, eax
jmp 0x4144f7
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x41448f
lea eax, [ebp + 0xc]
mov esi, 0x50dd88
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.0045d290
test eax, eax
pop ecx
jbe 0x414472
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
call fcn.004648c0
pop ecx
test eax, eax
pop ecx
je 0x414472
call fcn.004c3f08
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x110]
push ecx
push edi
push str.filetypes
mov ecx, eax
call fcn.004c1a65
push dword [ebp + 0x10]
call fcn.0045d290
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 0x4144ea
call fcn.004c3f08
mov eax, dword [eax + 4]
push ebx
push edi
lea ecx, [ebp + 0x10]
push str.filetypes
push ecx
mov ecx, eax
call fcn.004c4159
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [eax - 8]
cmp eax, ebx
je 0x4144de
inc eax
lea ecx, [ebp + 0x10]
push eax
push 1
call fcn.004bde38
push eax
push 1
push ebx
push 0x50dd88
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.004bde87
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004bda08
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 0x414505
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 0x414528
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 0x50dd88
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.004648c0
pop ecx
test eax, eax
pop ecx
jne 0x41456a
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x414bd2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4c8bdc
call fcn.0045d02c
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c3f08
mov esi, dword [eax + 8]
test esi, esi
je 0x414cee
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 0x414cee
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 0x414cee
lea edi, [esi + 2]
lea eax, [edi + edi]
push eax
call fcn.004bdf6c
push edi
xor edi, edi
mov ebx, eax
push edi
push ebx
call fcn.0045d230
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x414ce7
mov ecx, dword [ebp + 8]
and ecx, 0xf
jbe 0x414c6d
movzx edx, word [eax]
dec ecx
lea eax, [eax + edx*2 + 2]
jne 0x414c63
movzx ecx, word [eax]
cmp ecx, esi
jl 0x414c76
mov ecx, esi
add eax, 2
push ecx
push eax
push ebx
call fcn.0045e8c0
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.00404d68
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edi
push eax
push 0xffffffffffffffff
push ebx
push 0x3a8
call fcn.00414b69
lea eax, [ebp - 0x20]
push eax
call fcn.00414a09
mov esi, eax
mov eax, dword [ebp - 0x1c]
add esp, 0x14
cmp eax, edi
jne 0x414cc5
mov eax, 0x4d3cf4
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004bdb91
push ebx
call fcn.004bdf95
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp - 0x20]
call fcn.00404d68
mov eax, esi
jmp 0x414cf0
push ebx
call fcn.004bdf95
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 0x414e83
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x4c8c00
call fcn.0045d02c
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0xffffffff
jne 0x414ff1
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 0x414ebd
xor eax, eax
jmp 0x414ff6
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.004bda76
mov eax, dword [0x5056f0]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
cmp di, bx
jne 0x414f69
push 0x3a
lea ecx, [ebp - 0x10]
call fcn.004bdecf
mov esi, eax
cmp esi, ebx
jle 0x414f5b
push esi
lea eax, [ebp + 0xc]
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004b78f9
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004bdb41
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004bda08
inc esi
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.004b78d6
push dword [ebp + 8]
call fcn.0045d3dc
pop ecx
mov edi, eax
lea ecx, [ebp + 8]
call fcn.004bda08
mov esi, dword [ebp - 0x18]
jmp 0x414f75
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004bdb41
jmp 0x414f56
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004bdb41
cmp di, bx
jne 0x414f7d
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 0x414fab
cmp eax, 0x3a
jge 0x414fab
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x28], eax
jmp 0x414fc2
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x414fbf
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x414fa6
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.004bda08
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bda08
jmp 0x414ff4
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 0x415030
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, 0x4c8c1c
call fcn.0045d02c
sub esp, 0x810
mov eax, dword [0x5056f0]
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 0x4150a4
push edi
push dword [ebp + 0x10]
call fcn.00414e83
test eax, eax
je 0x4151ad
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004bdb91
cmp dword [ebp + 0xc], edi
je 0x4150f6
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.0045d4c3
add esp, 0x10
jmp 0x41510d
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.004c3593
test eax, eax
je 0x415083
cmp dword [ebp + 8], 3
jne 0x4150d7
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.00414e83
test eax, eax
jne 0x415083
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bda08
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bda08
xor eax, eax
jmp 0x4151c7
push dword [ebp - 0x10]
lea eax, [ebp - 0x81c]
push str.POST__s_HTTP_1.1_r_n_r_n
push eax
call fcn.0045d4c3
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 0x415154
mov eax, 0x1000
cmp dword [ebp + 0x10], eax
jg 0x415135
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 0x415154
sub dword [ebp + 0x10], eax
add edi, eax
cmp dword [ebp + 0x10], 0
jg 0x415128
mov eax, dword [ebp + 0x18]
xor edi, edi
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x41518a
mov eax, 0x1000
cmp dword [ebp + 0x10], eax
jg 0x41516d
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 0x41518a
sub dword [ebp + 0x10], eax
add edi, eax
cmp dword [ebp + 0x10], 0
jg 0x415160
cmp dword [ebp + 0x10], 0
pop esi
jne 0x4151aa
mov ecx, ebx
call fcn.0041533c
cmp eax, 0x64
mov dword [ebp - 0x18], eax
jne 0x4151aa
mov ecx, ebx
call fcn.0041533c
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bda08
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bda08
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14