joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bf60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44bf93
push esi
call fcn.0045a300
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44bf8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44c019
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44c002
mov eax, dword [esi + 8]
test eax, eax
je 0x44bfb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44bffe
cmp eax, 2
je 0x44c002
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44bfaa
cmp eax, 3
je 0x44bfdd
cmp eax, 1
jne 0x44bfaa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44bfaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44bfaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044c040
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44c028
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044c040
add esp, 4
pop esi
ret

Function at 0x44c8b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44c8d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44c8d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44c8d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x46c060
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
lea eax, [esp + 0xc]
push 7
and esi, 0xffff
push eax
push 0x1004
push esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.0046f5b8
add esp, 4
lea edx, [esp + 0x14c]
mov dword [edi + 4], eax
push 0x104
push edx
push 0x1002
push esi
call ebx
lea eax, [esp + 0x14c]
lea ecx, [edi + 0xc]
push eax
call fcn.00482050
lea ecx, [esp + 0xc]
push 7
push ecx
push 5
push esi
call ebx
lea edx, [esp + 0xc]
push edx
call fcn.0046f5b8
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [esp + 0x3c]
push 0x64
push eax
push 0x1003
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x14]
call fcn.00482050
lea edx, [esp + 0x3c]
push 0x64
push edx
push 0x20
push esi
call ebx
lea eax, [esp + 0x3c]
lea ecx, [edi + 8]
push eax
call fcn.00482050
lea ecx, [esp + 0x14]
push 7
push ecx
push 0x14
push esi
call ebx
lea edx, [esp + 0x14]
lea ecx, [edi + 0x18]
push edx
call fcn.00482050
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
lea ecx, [esp + 0x250]
push 0x104
and eax, 0xffff
push ecx
push eax
call sub.VERSION.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x46c164
lea edx, [esp + 0x250]
lea ecx, [edi + 0x1c]
push edx
call fcn.00482050
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x46c19f
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x1c]
push ecx
push 0x5bb9f8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x20]
push eax
call fcn.00482050
pop edi
pop esi
pop ebx
add esp, 0x348
ret

Function at 0x4842e1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x484319
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048236e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00482346
jmp 0x484325
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4859d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x485a18
call fcn.0048b48b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x485a18
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x485a0f
xor eax, eax
jmp 0x485a20
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00485a26
pop edi
pop esi
pop ebx
ret 4
Function at 0x48b9bb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48b9e9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ba07
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048b921
jmp 0x48ba07
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ba07
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048b921
test edi, edi
mov eax, edi
jne 0x48b9f1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x448], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xffffffffffffffff
mov dword [0x5110d0], eax
mov byte [0x5110d8], 1
mov dword [0x5110d4], eax
mov byte [0x511462], 1
mov dword [0x511634], eax
call sub.IMM32.dll_ImmDisableIME
push 1
call fcn.004a4a34
xor eax, eax
add esp, 4
cmp ax, word [0x51c1f8]
jne 0x401381
call fcn.00430710
push eax
push str.Local_sogoucloudinputagent_s
mov edx, 0x51c1f8
call fcn.0040c200
add esp, 8
lea ecx, [esp + 0x18]
push ecx
xor cl, cl
xor al, al
mov edx, 0x51c1f8
call fcn.0042dc80
cmp byte [esp + 0x1c], 0
jne 0x4014a8
lea esi, [esp + 0x10]
mov byte [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.00401030
test al, al
jne 0x4013f3
mov ecx, esi
call fcn.0042c930
cmp byte [esp + 0x227], 0
jne 0x4013d9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4013d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004a4a25
mov esp, ebp
pop ebp
ret 0x10
push 0x38
call fcn.004a5359
add esp, 4
test eax, eax
je 0x4014da
mov esi, eax
call fcn.00401590
mov edi, eax
test edi, edi
je 0x401417
call fcn.00401630
push 0
push 0
push 0
push 0x401160
push 0
push 0
call fcn.004a5022
push 0
push 0
push 0x40c100
call fcn.004a4d27
add esp, 0x24
push 0
push 0
push 0x404730
call fcn.004a4d27
add esp, 0xc
call fcn.0040f7e0
lea esi, [esp + 0x228]
call fcn.00465b40
mov edx, esi
push edx
call fcn.00465ca0
test edi, edi
je 0x401476
mov esi, edi
call fcn.004016e0
call fcn.00401600
lea eax, [esp + 0x228]
call fcn.00467810
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea esi, [esp + 0x35c]
mov edi, 0xa
push esi
call ebx
add esi, 0x18
sub edi, 1
jne 0x401494
lea ecx, [esp + 0x10]
call fcn.0042c930
cmp byte [esp + 0x227], 0
jne 0x4014c1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4014c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004a4a25
mov esp, ebp
pop ebp
ret 0x10
xor edi, edi
jmp 0x401417
Function at 0x401630
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
mov eax, 0x4010e0
test eax, eax
je 0x4016cd
cmp dword [esi + 8], 0
je 0x40164d
mov eax, 1
pop esi
ret
push ebx
push str.SPMonitorEvent
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
test ebx, ebx
je 0x4016cc
push edi
lea edi, [esi + 0x1c]
push edi
mov dword [esi + 0x34], 0x4010e0
mov dword [esi + 0x14], 0x1388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esi + 0xc]
push ecx
push 0
push esi
push 0x401800
push 0
push 0
call fcn.004a5022
add esp, 0x18
mov dword [esi + 8], eax
pop edi
test eax, eax
je 0x4016c0
push 0x3e8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop esi
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00401600
pop ebx
xor eax, eax
pop esi
ret

Function at 0x402740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c98f2
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esi], vtable.CTask.0
mov eax, dword [0x50de18]
lea edi, [esi + 0x28]
mov dword [edi], eax
mov dword [esp + 0x1c], 0
mov ecx, dword [0x50de18]
lea ebx, [esi + 0x2c]
mov dword [ebx], ecx
mov edx, dword [0x50de18]
lea ebp, [esi + 0x30]
mov dword [ebp], edx
mov eax, dword [0x50de18]
mov dword [esi + 0x34], eax
mov ecx, dword [0x50de18]
mov dword [esi + 0x38], ecx
mov edx, dword [0x50de18]
mov dword [esi + 0x3c], edx
mov byte [esp + 0x1c], 5
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
not eax
and eax, 1
mov dword [esi + 0x40], eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov eax, edi
call fcn.00402610
mov eax, ebx
call fcn.00402610
mov eax, ebp
call fcn.00402610
lea eax, [esi + 0x3c]
call fcn.00402610
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x402a20
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 8
push edi
mov edi, eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push edi
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402a77
mov ecx, dword [esi]
test ecx, ecx
je 0x402a68
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
mov edx, dword [esp + 4]
and edi, 0x300
mov dword [esi], edx
mov dword [esi + 4], edi
pop edi
add esp, 8
ret
Function at 0x402ba0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov eax, 0xf003f
lea esi, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00402a20
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x402bda
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402bed
push eax
jmp 0x402beb
mov esi, dword [esp + 0x10]
push str.BaiduPinyin
push esi
call edi
cmp esi, ebx
je 0x402bed
push esi
call ebp
mov eax, 0xf023f
lea esi, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00402a20
test eax, eax
je 0x402c1c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402c2f
push eax
call ebp
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x10]
push str.BaiduPinyin
push esi
call edi
cmp esi, ebx
je 0x402c2f
push esi
call ebp
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret

Function at 0x403c80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8b96
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push esi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], vtable.t_reg.0
call fcn.00430920
xor ebx, ebx
mov eax, str.CURRENT_USER
lea edx, [esp + 0x28]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], reloc.WS2_32.dll_accept
call fcn.00430b00
mov dword [esp + 0x160], ebx
mov byte [esp + 0x10], bl
mov dword [esp + 0xc], ebx
push 1
push 1
push 1
push 0x4eef0c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x174], 1
call fcn.00431bf0
lea ecx, [esp + 0xc]
test al, al
jne 0x403d70
call fcn.0042c930
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], vtable.t_reg.0
cmp eax, ebx
je 0x403d42
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], vtable.t_str.0
cmp byte [esp + 0x144], bl
jne 0x403d6c
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x403d6c
push eax
call fcn.004a4a7f
add esp, 4
xor eax, eax
jmp 0x403de4
push 4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
mov eax, esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 4
call fcn.00431db0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
call fcn.0042c930
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], vtable.t_reg.0
cmp eax, ebx
je 0x403db8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], vtable.t_str.0
cmp byte [esp + 0x144], bl
jne 0x403de2
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
cmp eax, edx
je 0x403de2
push eax
call fcn.004a4a7f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.004a4a25
mov esp, ebp
pop ebp
ret
Function at 0x405110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8af6
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], vtable.t_reg.0
call fcn.00430920
xor ebx, ebx
mov eax, str.CURRENT_USER
lea edx, [esp + 0x28]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], reloc.WS2_32.dll_accept
call fcn.00430b00
mov dword [esp + 0x160], ebx
mov byte [esp + 0x10], bl
mov dword [esp + 0xc], ebx
push 1
push 1
push 1
push 0x4eef0c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x174], 1
call fcn.00431bf0
test al, al
jne 0x4051fd
lea ecx, [esp + 0xc]
call fcn.0042c930
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], vtable.t_reg.0
cmp eax, ebx
je 0x4051cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], vtable.t_str.0
cmp byte [esp + 0x144], bl
jne 0x4051f9
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4051f9
push eax
call fcn.004a4a7f
add esp, 4
xor al, al
jmp 0x40525a
mov eax, dword [esi + 4]
push 4
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 4
call fcn.00431db0
lea ecx, [esp + 0xc]
test al, al
jne 0x405240
call fcn.0042c930
lea ecx, [esp + 0x1c]
call fcn.00431ba0
xor al, al
jmp 0x40525a
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
call fcn.0042c930
lea ecx, [esp + 0x1c]
call fcn.00431ba0
mov al, 1
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004a4a25
mov esp, ebp
pop ebp
ret
Function at 0x405b60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov bl, al
mov esi, ecx
je 0x405bf8
test edi, edi
je 0x405bf8
test esi, esi
je 0x405bf8
test bl, bl
jne 0x405bce
push 0
call fcn.004a5963
push eax
call fcn.004a5cec
add esp, 8
call fcn.004a5cfe
mov ebx, eax
and ebx, 0x800000ff
jns 0x405bae
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebx + str.:Fgd]
mov byte [esp + 0xf], al
lea ecx, [edi + 1]
mov eax, esi
mov dword [ebp], ecx
call fcn.00405e60
mov byte [eax], bl
mov bl, byte [esp + 0xf]
inc eax
jmp 0x405bda
mov ecx, edi
mov eax, esi
mov dword [ebp], edi
call fcn.00405e60
xor esi, esi
test edi, edi
jle 0x405bf1
mov ecx, dword [esp + 0x18]
mov dl, byte [esi + ecx]
xor dl, bl
mov byte [eax], dl
inc esi
inc eax
cmp esi, edi
jl 0x405be0
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x406020
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.ProxyServer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40608e
mov eax, dword [esp + 8]
cmp eax, 1
je 0x40605f
cmp eax, 2
jne 0x40607a
mov eax, dword [esp]
test esi, esi
je 0x406088
test eax, eax
je 0x406083
test al, 1
jne 0x40607a
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x406088
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4
Function at 0x407740
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push edi
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407764
xor eax, eax
pop edi
pop ecx
ret
push esi
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp byte [ebx + 0xc], 0
mov dword [esp + 8], 0
je 0x4077cd
mov ecx, dword [ebx + 0x128]
lea esi, [ebx + 0x10]
call fcn.00405eb0
cmp byte [esi + 0x114], 0
je 0x4077a3
add esi, 4
jmp 0x4077a5
mov esi, dword [esi]
mov edx, dword [ebx + 0x128]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
add esi, 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret
mov eax, dword [ebx]
mov esi, dword [fcn.0047b2b0]
push 0x407700
push 0x4e2b
push eax
call esi
mov ecx, dword [ebx]
push edi
push 0x2711
push ecx
call esi
mov edx, dword [ebx]
push edx
call dword [0x4fddc4]
add esp, 0x1c
test eax, eax
jne 0x407809
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret
Function at 0x40a2b0
Capabilities:
Create thread

Disassembly:
xor ecx, ecx
mov eax, 6
mov dword [0x513f70], eax
mov edx, 4
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.004a41a8
xor esi, esi
add esp, 4
cmp dword [0x513f70], esi
mov dword [0x513f6c], eax
jle 0x40a32e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [ebx]
push 0
push 0
push 0x513ef0
push 0x40a4b0
push 0
push 0
call fcn.004a5022
mov ecx, dword [0x513f6c]
mov dword [ecx + esi*4], eax
mov eax, dword [0x513f6c]
add esp, 0x18
cmp dword [eax + esi*4], 0
je 0x40a324
mov edx, dword [eax + esi*4]
push edx
call edi
inc esi
cmp esi, dword [0x513f70]
jl 0x40a2f0
pop edi
mov al, 1
pop esi
ret
Function at 0x40b1a0
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x4cc0f1
mov eax, dword fs:[0]
push eax
sub esp, 0xee8
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0xee4], eax
push esi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0xef0]
mov dword fs:[0], eax
cmp dword [0x513f84], 0
mov esi, ecx
jne 0x40b1e8
call fcn.0040f4e0
lea ecx, [esp + 0x44]
call fcn.00430920
mov dword [esp + 0xef8], 0
cmp byte [0x51409c], 0
mov eax, 0x513f8c
jne 0x40b20f
mov eax, dword [0x513f88]
add eax, 4
push eax
push esi
lea eax, [esp + 0x4c]
push 0x4ef5f8
push eax
call fcn.00430ed0
add esp, 0x10
lea ecx, [esp + 0x294]
push ecx
call fcn.00407110
cmp byte [esp + 0xf00], 0
mov byte [esp + 0xef8], 1
je 0x40b3b9
push 0x3c
lea edx, [esp + 0xc]
push 0
push edx
call fcn.004a7380
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4ee]
push ecx
mov dword [esp + 0x14], 0x3c
mov word [esp + 0x4f0], ax
call fcn.004a7380
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x6f6]
push eax
mov word [esp + 0x6f8], dx
call fcn.004a7380
lea ecx, [esp + 0x4f0]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x6f8]
add esp, 0xc
lea ecx, [esp + 0x16c]
mov dword [esp + 0x1c], 0x103
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0x3ff
call fcn.00430920
mov byte [esp + 0xef8], 2
test edi, edi
je 0x40b387
cmp word [edi], 0
je 0x40b387
cmp byte [0x51409c], 0
mov eax, 0x513f8c
jne 0x40b301
mov eax, dword [0x513f88]
add eax, 4
push eax
push edi
lea eax, [esp + 0x174]
push 0x4ef5f8
push eax
call fcn.00430ed0
add esp, 0x10
cmp byte [esp + 0x160], 0
lea eax, [esp + 0x50]
jne 0x40b32d
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
lea ecx, [esp + 8]
push ecx
push 0x10000000
push edx
add eax, 4
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40b387
cmp dword [esp + 0x170], 0
je 0x40b387
mov eax, dword [esp + 0xf04]
push 1
push 0xad
push eax
lea ecx, [esp + 0x178]
call fcn.00430e40
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2a4]
push edx
mov edx, eax
call fcn.00407820
cmp byte [esp + 0x288], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x40b3dd
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x178]
cmp eax, ecx
je 0x40b3dd
push eax
call fcn.004a4a7f
add esp, 4
jmp 0x40b3dd
cmp byte [esp + 0x160], 0
lea eax, [esp + 0x50]
jne 0x40b3cb
mov eax, dword [esp + 0x4c]
push 0
add eax, 4
push eax
lea ecx, [esp + 0x29c]
call fcn.00407440
lea esi, [esp + 0x294]
mov byte [esp + 0xef8], 0
call fcn.004071b0
cmp byte [esp + 0x160], 0
mov dword [esp + 0x44], vtable.t_str.0
jne 0x40b418
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x40b418
push eax
call fcn.004a4a7f
add esp, 4
mov ecx, dword [esp + 0xef0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xee4]
xor ecx, esp
call fcn.004a4a25
add esp, 0xef4
ret 8