joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45acb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x451015
lea edi, [esi - 0x50015]
push edi
or ebp, 0xffffffff
jmp 0x45acd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45acd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45acc8
mov eax, 1
add ebx, ebx
jne 0x45aceb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45ace0
jne 0x45acfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45ace0
xor ecx, ecx
sub eax, 3
jb 0x45ad10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45ad82
mov ebp, eax
add ebx, ebx
jne 0x45ad1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45ad28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45ad4c
inc ecx
add ebx, ebx
jne 0x45ad38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45ad2d
jne 0x45ad49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45ad2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45ad6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45ad5d
jmp 0x45acce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45ad6c
add edi, ecx
jmp 0x45acce
pop esi
mov edi, esi
mov ecx, 0xbfd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45ad8a
cmp byte [edi], 5
jne 0x45ad8a
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 eax, ebx
loop 0x45ad8f
lea edi, [esi + 0x58000]
mov eax, dword [edi]
or eax, eax
je 0x45adfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5a104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45adbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5a108]
or eax, eax
je 0x45adf8
mov dword [ebx], eax
add ebx, 4
jmp 0x45add9
call dword [esi + 0x5a10c]
popal
jmp 0x4011cb
Function at 0x425c02
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x14], 0x41
mov byte [ebp - 0x13], 0x42
mov byte [ebp - 0x12], 0x45
mov byte [ebp - 0x11], 0x4c
mov byte [ebp - 0x10], 0x4c
mov byte [ebp - 0xf], 0xff
mov byte [ebp - 0xe], 0x54
mov byte [ebp - 0xd], 0x48
mov byte [ebp - 0xc], 0x2d
mov byte [ebp - 0xb], 0x33
mov byte [ebp - 0xa], 0x30
mov byte [ebp - 9], 0x37
mov byte [ebp - 8], 0x48
mov byte [ebp - 7], 0x2b
mov byte [ebp - 6], 0xff
mov byte [ebp - 5], 0xff
mov dword [ebp - 4], 0
jmp 0x425c5e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jge 0x425c85
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ebp + ecx - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [ecx + eax]
cmp edx, ebx
je 0x425c83
xor al, al
jmp 0x425c87
jmp 0x425c55
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436f0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push 0x4444a4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x4263a6
xor al, al
jmp 0x4264bf
push 2
push 0
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x426423
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x84]
call fcn.00426570
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x84]
call fcn.00427383
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x84]
call fcn.004273f6
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xa8]
push edx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp - 0x14], 0
je 0x4264bd
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4265f3
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], 0
mov esp, ebp
pop ebp
ret
Function at 0x42b2bc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push edi
mov dword [ebp - 0x514], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x50c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x50b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x514]
call fcn.00401750
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [ebp - 0x408], 0
jmp 0x42b33e
mov ecx, dword [ebp - 0x408]
add ecx, 1
mov dword [ebp - 0x408], ecx
cmp dword [ebp - 0x408], 0x400
jge 0x42b380
mov edx, dword [ebp - 0x408]
movsx eax, byte [ebp + edx - 0x404]
test eax, eax
jne 0x42b37e
mov ecx, dword [ebp - 0x408]
movsx edx, byte [ebp + ecx - 0x404]
mov eax, dword [ebp - 0x408]
movsx ecx, byte [ebp + eax - 0x403]
cmp edx, ecx
jne 0x42b37e
jmp 0x42b380
jmp 0x42b32f
mov edx, dword [ebp - 0x408]
add edx, 1
mov dword [ebp - 0x510], edx
mov ecx, dword [ebp + 8]
call fcn.0042b7c0
mov dword [ebp - 0x408], 0
jmp 0x42b3b2
mov eax, dword [ebp - 0x408]
add eax, 1
mov dword [ebp - 0x408], eax
mov ecx, dword [ebp - 0x408]
cmp ecx, dword [ebp - 0x510]
jge 0x42b420
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
mov cl, byte [ebp + eax - 0x404]
mov byte [ebp + edx - 0x50c], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x408]
movsx ecx, byte [ebp + eax - 0x404]
test ecx, ecx
jne 0x42b41e
lea edx, [ebp - 0x50c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0042b7e0
push 0x104
push 0
lea eax, [ebp - 0x50c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x42b3a3
mov ecx, dword [ebp + 8]
call fcn.0042b7a0
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x432ff7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43304f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x43bc1c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x433042
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x433051
xor eax, eax
pop esi
leave
ret 4
Function at 0x406e60
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esi], vtable.CAsyncWorker.0
test eax, eax
je 0x406e9e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x406e8e
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
test byte [ebp + 8], 1
je 0x406eaf
push 8
push esi
call fcn.00420a4c
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x407120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407139
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407176
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x407172
lea ebx, [ebx]
cmp esi, edx
jae 0x407176
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407160
cmp esi, edx
jb 0x40717d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408090
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436c94
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [ebp - 4], 2
mov dword [esi], vtable.CGoogleAnalyticsAsync.0
call fcn.00406c60
mov ecx, eax
test ecx, ecx
jne 0x4080e8
push 0x80004005
call fcn.00406fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 3
call fcn.00406c60
mov ecx, eax
test ecx, ecx
jne 0x40810c
push 0x80004005
call fcn.00406fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xa
lea eax, [esi + 0x28]
mov byte [ebp - 4], 5
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
push eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x408183
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40817b
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x408183
push eax
call fcn.00406fc0
lea eax, [ebp + 8]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 8]
call fcn.004085c0
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.004085c0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4081e2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4081d2
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
push 0
push 0
push esi
push 0x406f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov dword [esi + 4], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40821a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x408239
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408280
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436cb0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.CGoogleAnalyticsAsync.0
test eax, eax
je 0x4082e1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4082d5
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call edi
mov dword [esi + 4], 0
push dword [esi + 0x40]
call edi
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x10]
call fcn.00408760
mov edx, dword [esi + 0xc]
or ebx, 0xffffffff
sub edx, 0x10
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408315
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 8]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40832d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [esi], vtable.CAsyncWorker.0
test eax, eax
je 0x408361
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408355
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call edi
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b820
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push edi
push 0xf0000000
push 1
push 0
push 0
push eax
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40b8a9
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, eax
test esi, esi
je 0x40b89b
push 0
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
test esi, esi
je 0x40b892
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bb20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437500
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi + 4], 0
lea ecx, [ebp - 0x14]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov edx, dword [0x44b9b4]
call fcn.0040d8f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.004075c0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bb9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.net.dll
lea ecx, [ebp - 0x10]
call fcn.0040ad50
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bbf1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40bbf1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetCustomProxyExp
push eax
call esi
push str.UrlReadToString
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.PostExp
push dword [edi]
mov dword [edi + 8], eax
call esi
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40bc10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c071
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40c03f
cmp eax, 2
jne 0x40c05b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40c06b
test ecx, ecx
je 0x40c066
test cl, 1
jne 0x40c05b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40c06b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40c080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40c095
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x40c0a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c0a0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40c3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437638
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x40c43d
lea eax, [ebp + 0xc]
mov edx, 0x440204
push eax
lea ecx, [ebp - 0x14]
call fcn.00407320
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004085c0
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c43d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040d100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004074c0
add esp, 4
lea ecx, [ebp - 0x28]
push 0x2001f
push dword [eax]
push SysReAllocString
call fcn.0040bf50
mov edx, dword [ebp - 0x14]
test eax, eax
mov eax, edi
sete bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c4a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c4c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x28]
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40c51b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c512
cmp dword [ebp - 0x1c], 4
jne 0x40c512
test esi, esi
je 0x40c50a
push esi
call ebx
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x40c51b
test esi, esi
je 0x40c522
push esi
call ebx
xor esi, esi
test esi, esi
je 0x40c522
push esi
call ebx
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c540
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40c55f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437688
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebp + 0xc]
mov esi, 0x65b
cmp dword [eax - 0xc], 0
je 0x40c602
lea eax, [ebp + 0xc]
mov edx, 0x440204
push eax
lea ecx, [ebp - 0x10]
call fcn.00407320
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004085c0
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c602
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040d100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.004074c0
add esp, 4
lea ecx, [ebp - 0x24]
push 0x2001f
push dword [eax]
push SysReAllocString
call fcn.0040bf50
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, edi
sete bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c66b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c689
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40c6ed
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c6e6
cmp dword [ebp - 0x14], 3
jne 0x40c6e6
mov esi, dword [ebp - 0x18]
push ecx
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00407ed0
lea eax, [ebp - 0x10]
push eax
push dword [esi]
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40c6e6
cmp dword [ebp - 0x18], 3
mov eax, 0xd
cmovne esi, eax
test ebx, ebx
je 0x40c6fb
push ebx
jmp 0x40c6f5
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40c6fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c719
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40c738
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret