joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00412420
push 0xff
lea eax, [ebp - 0x213]
push ebx
push eax
mov byte [ebp - 0x214], bl
call fcn.00412420
lea eax, [ebp - 0x10]
push eax
call fcn.00411f70
lea eax, [ebp - 0x10]
push eax
call fcn.00411f49
add esp, 0x20
cmp eax, ebx
je 0x40107c
push eax
call fcn.0041223c
pop ecx
cmp eax, ebx
je 0x40107c
push eax
push 0x42c494
lea eax, [ebp - 0x214]
push 0x100
push eax
call fcn.00411fc1
add esp, 0x10
mov edi, 0x104
push edi
lea eax, [ebp - 0x114]
push eax
push 0x42c49c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
lea eax, [ebp - 0x114]
jne 0x4010ae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4010b6
push 0x42c4a4
push eax
call esi
push 0x42c4a8
lea eax, [ebp - 0x114]
push eax
call esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x40113a
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
push eax
lea eax, [ebp - 0x214]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40113f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.00412420
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40127c
cmp eax, edi
ja 0x40127c
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00412420
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x42c4f0
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00411fc1
add esp, 0x20
cmp eax, ebx
jg 0x40120c
mov esi, 0x7ff
push esi
lea eax, [ebp - 0xa0b]
push ebx
push eax
mov byte [ebp - 0xa0c], bl
call fcn.00412420
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str._snprintf_failed.__ErrorCode:__d
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.00411fc1
mov byte [ebp + eax - 0xa0c], bl
jmp 0x4012bb
mov byte [ebp + eax - 0x108], bl
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x401278
mov esi, 0x7ff
push esi
lea eax, [ebp - 0xa0b]
push ebx
push eax
mov byte [ebp - 0xa0c], bl
call fcn.00412420
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str.LoadLibrary__s__failed.__ErrorCode:__d
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.00411fc1
mov byte [ebp + eax - 0xa0c], bl
lea eax, [ebp - 0xa0c]
push eax
call section..text
add esp, 0x18
mov eax, edi
jmp 0x4012cc
mov esi, 0x7ff
push esi
lea eax, [ebp - 0xa0b]
push ebx
push eax
mov byte [ebp - 0xa0c], bl
call fcn.00412420
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xa0c]
push str.GetSystemDirectory_failed.__Return_Code:__d__ErrorCode:__d
push esi
push eax
call fcn.00411fc1
mov byte [ebp + eax - 0xa0c], bl
lea eax, [ebp - 0xa0c]
push eax
call section..text
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4013e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x4013fa
push 0x80004005
call fcn.004012df
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x401449
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x401447
cmp dword [ebp + 0x10], ebx
jbe 0x401444
cmp dword [ebp + 0x10], 2
jbe 0x401450
cmp dword [ebp + 0x10], 7
jne 0x401444
cmp ecx, 1
jb 0x401444
lea edx, [ecx + esi]
cmp byte [edx - 1], bl
jne 0x401444
cmp ecx, 1
jbe 0x401449
cmp byte [edx - 2], bl
je 0x401449
push 0xd
pop eax
mov byte [esi], bl
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp byte [ecx + esi - 1], bl
jmp 0x401442
Function at 0x401e3b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa60
push ebx
push esi
push edi
xor ebx, ebx
push 0x207
lea eax, [ebp - 0x25f]
push ebx
push eax
mov byte [ebp - 0x260], bl
call fcn.00412420
push 0x44
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00412420
push dword [ebp + 0x10]
xor eax, eax
push dword [ebp + 0xc]
lea edi, [ebp - 0x14]
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
xor edi, edi
lea eax, [ebp - 0x260]
mov dword [ebp - 0x58], esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str._s_s__s
inc edi
push eax
mov dword [ebp - 0x2c], edi
call esi
add esp, 0x2c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000000
push edi
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x3ff
mov edi, eax
lea eax, [ebp - 0x65f]
push ebx
push eax
mov byte [ebp - 0x660], bl
call fcn.00412420
add esp, 0xc
cmp edi, ebx
jne 0x401f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push ebx
lea eax, [ebp - 0x660]
push str._nReturn:_d_Error:_d
push eax
call esi
add esp, 0x10
mov dword [ebp - 4], edi
jmp 0x401f0b
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
push 0x3ff
lea eax, [ebp - 0xa5f]
push ebx
push eax
mov byte [ebp - 0xa60], bl
call fcn.00412420
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0xa60]
push str.Started_JavaFX_Update_process_Command:_s__s_n
push eax
call esi
lea eax, [ebp - 0xa60]
push eax
call fcn.0040fb5b
push 0x42cc30
push str.LastUpdateInvokedTime
push 0x80000001
call fcn.0040f420
mov eax, dword [ebp - 4]
add esp, 0x2c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402034
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], 2
push edi
mov dword [ebp - 4], esi
jae 0x40205d
push str.jusched_Error:_Events_array_too_small
call fcn.0040fb5b
pop ecx
mov dword [ebp - 4], 0xffffff9d
mov edi, dword [ebp + 8]
mov dword [edi], esi
call fcn.0040f701
mov dword [edi], eax
cmp eax, esi
jne 0x40207f
push str.ERROR:_ShutdownEvent_handle_is_NULL
call fcn.0040fb5b
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov ebx, dword [ebp + 0x14]
push esi
push ebx
call fcn.0040f2c1
pop ecx
pop ecx
test eax, eax
jne 0x4020a2
push str.jusched_ERROR:_Could_not_open_Policy_key_for_reading
call fcn.0040fb5b
mov dword [ebp - 4], 0xfffffffd
jmp 0x4020c2
push dword [ebx]
call fcn.00401fae
pop ecx
mov dword [edi + 4], eax
cmp eax, esi
jne 0x4020c3
push str.jusched_main:_ERROR_creating_registry_watch_event_notifier
call fcn.0040fb5b
mov dword [ebp - 4], 0xfffffffe
pop ecx
mov esi, dword [ebp + 0x10]
and dword [esi], 0
push str.SunJavaUpdateSchedulerMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
jne 0x402146
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
mov dword [ebp + 8], eax
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00412420
add esp, 0xc
cmp dword [ebp + 8], 0xb7
lea eax, [ebp - 0x404]
jne 0x402123
push str.Error:_Scheduler_Mutex_already_exists_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x402135
push dword [ebp + 8]
push str.Error:_Error_creating_scheduler_mutex:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call fcn.0040fb5b
or dword [ebp - 4], 0xffffffff
pop ecx
cmp dword [ebp - 4], 0
je 0x402162
push dword [esi]
push dword [ebp + 0xc]
push edi
call fcn.00402000
add esp, 0xc
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4021fd
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
push 0x42d158
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.004107ae
add esp, 0xc
cmp dword [ebp - 8], esi
jbe 0x402281
lea eax, [ebp - 4]
push 1
push eax
mov dword [ebp - 4], esi
call fcn.0040f2c1
pop ecx
pop ecx
test eax, eax
je 0x402276
dec dword [ebp - 8]
jne 0x40224a
push 0x42d168
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40225d
push dword [ebp - 8]
push str.StartupDelay
push dword [ebp - 4]
call fcn.0040f3bc
add esp, 0xc
push str.jusched:_STARTUP_DELAY_exists__decrementing_it_and_returning_JUS_ERROR_STARTUP_DELAY_n
call fcn.0040fb5b
pop ecx
push 0xfffffffffffffffa
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4022d4
push str.jusched:_STARTUP_DELAY_exists__but_could_not_open_JavaUpdate_key_for_ALL_ACCESS_n
call fcn.0040fb5b
pop ecx
push str.Checking_OOB_Delay_value
call fcn.00410f3c
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call fcn.004119d3
pop ecx
pop ecx
test eax, eax
je 0x4022cb
cmp dword [ebp - 4], 0xa
jbe 0x4022a6
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
jbe 0x4022cb
dec dword [ebp - 4]
push dword [ebp - 4]
call fcn.004112dd
pop ecx
test eax, eax
je 0x4022cb
push str.jusched:_OOB_DELAY_exists__decrementing_it_and_returning_JUS_ERROR_OOB_DELAY_n
call fcn.0040fb5b
pop ecx
push 0xfffffffffffffff9
pop esi
jmp 0x4022d4
push esi
push esi
call fcn.0041181f
pop ecx
pop ecx
mov eax, esi
pop esi
leave
ret
Function at 0x402f27
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x402f3a
push 0xd
pop eax
jmp 0x402f62
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x402f3d
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4034fa
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push dword [ebp + 8]
xor esi, esi
push dword [edi]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00401392
mov ebx, eax
cmp ebx, esi
je 0x403540
lea ecx, [ebp - 0x10]
call fcn.00401377
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40355b
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x10]
call fcn.004034fa
cmp eax, esi
jne 0x403590
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 4], 0x100
call ebx
test eax, eax
je 0x403548
lea ecx, [ebp - 0x10]
call fcn.00401377
push dword [ebp + 8]
mov ecx, edi
call fcn.00402e1b
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00401377
mov eax, esi
jmp 0x403539
Function at 0x4055cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42b097
call fcn.00413008
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 8], ebx
je 0x405662
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402ade
add esp, 0xc
test eax, eax
js 0x405662
mov esi, dword [ebp - 0x14]
cmp esi, 0x400
jg 0x405646
push esi
call fcn.00403488
pop ecx
test al, al
je 0x405646
mov eax, esi
call fcn.004135f0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x405652
push esi
lea ecx, [ebp - 0x18]
call fcn.00403607
mov edi, dword [ebp - 0x18]
push 3
push esi
push dword [ebp + 8]
push eax
call fcn.00402bc4
cmp eax, ebx
jne 0x405694
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x405686
lea ecx, [ebp - 0x424]
call fcn.004033ed
jmp 0x405686
push edi
mov edi, dword [edi]
call fcn.004132a0
pop ecx
cmp edi, ebx
jne 0x40567d
mov eax, 0x8007000e
jmp 0x405792
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x4056b3
call fcn.00402c7f
mov esi, eax
jmp 0x405768
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4056d0
call fcn.00402c7f
jmp 0x40575d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4056c6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp + 8], esi
cmp eax, esi
jae 0x4056fa
mov esi, 0x8007000e
jmp 0x40575f
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.004049ec
mov dword [ebp - 4], 1
jmp 0x405726
cmp dword [ebp - 0x424], 0
je 0x4056f3
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x424]
call fcn.00402c60
mov eax, dword [ebp - 0x424]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], 0
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.004054d0
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40578c
lea ecx, [ebp - 0x424]
call fcn.004033ed
jmp 0x40578c
push edi
mov edi, dword [edi]
call fcn.004132a0
pop ecx
test edi, edi
jne 0x405783
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40622e
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x4000000
push edi
push 0x42dc92
mov esi, ecx
push 0x42e02c
lea eax, [esi + 0x960]
push eax
push dword [ebp + 8]
push dword [esi + 0x808]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x80c], eax
cmp eax, edi
jne 0x4062ab
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406c13
test eax, eax
je 0x406298
push str.Unable_to_perform_HttpOpenRequest
push 0x42e05c
push 0x58
push 0x42e084
push dword [esi + 0x810]
call fcn.0040b769
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040612c
jmp 0x406359
push 0x42e0a8
push dword [ebp + 8]
call fcn.00413aa6
pop ecx
pop ecx
test eax, eax
je 0x40630f
push edi
push edi
push edi
push edi
push dword [esi + 0x80c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x406357
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406c13
test eax, eax
je 0x406298
push 0x60
push 0x42e0b0
push str.Unable_to_perform_HttpGet_HeadRequest__s_line__d
push 0x42e108
push 0x60
push 0x42e130
push dword [esi + 0x810]
call fcn.0040b769
add esp, 0x1c
jmp 0x406298
push dword [esi + 0x800]
push esi
push edi
push edi
push dword [esi + 0x80c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x406357
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406c13
test eax, eax
je 0x406298
push 0x68
push 0x42e154
push str.Unable_to_perform_HttpPostRequest__s_line__d
push str._SendRequest_HTMLwrappers__QAEHPBD_Z
push 0x68
push 0x42e1d0
jmp 0x4062ff
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x40635f
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0x20000013
push dword [esi + 0x80c]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4063c3
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406c13
test eax, eax
je 0x40644f
push 0x79
push 0x42e1f4
push str.Unable_to_get_header_information__s_line__d
push 0x42e244
push 0x79
push 0x42e268
jmp 0x406441
cmp dword [ebp - 8], 0xc8
mov dword [ebp - 4], ebx
jne 0x406415
mov edi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
jmp 0x4063f8
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
push dword [esi + 0x80c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40644f
cmp dword [ebp - 0x14], ebx
je 0x40640c
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x80c]
call edi
test eax, eax
jne 0x4063d7
jmp 0x40644f
mov eax, dword [ebp - 4]
mov byte [eax + esi], bl
push ebx
jmp 0x406456
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406c13
test eax, eax
je 0x40644f
mov eax, 0x9f
push eax
push 0x42e28c
push str.Error_getting_response__s_line__d
push str._GetResponse_HTMLwrappers__QAEHXZ
push eax
push 0x42e2f8
push dword [esi + 0x810]
call fcn.0040b769
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040612c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4064da
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
mov esi, ecx
call fcn.0040612c
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
jne 0x406529
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406c13
test eax, eax
je 0x406521
push str.URL_specified_is_empty
push 0x42ddc0
push 0x29
push 0x42dd9c
push dword [esi + 0x810]
call fcn.0040b769
add esp, 0x14
xor eax, eax
inc eax
jmp 0x40667e
push ebx
push 0x3c
lea ebx, [esi + 0x814]
push 0
push ebx
call fcn.00412420
lea eax, [esi + 0x850]
mov dword [esi + 0x818], eax
add esp, 0xc
lea eax, [esi + 0x860]
mov dword [esi + 0x824], eax
push 0x10
mov eax, 0x100
pop ecx
lea edx, [esi + 0x960]
mov dword [ebx], 0x3c
mov dword [esi + 0x81c], ecx
mov dword [esi + 0x828], eax
mov dword [esi + 0x840], edx
mov dword [esi + 0x844], eax
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], ecx
jb 0x40658b
mov edi, dword [edi]
push ebx
xor ebx, ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4065da
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406c13
test eax, eax
je 0x4065d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_Cracking_the_URL__d
push 0x42de68
push 0x38
push 0x42de44
push dword [esi + 0x810]
call fcn.0040b769
add esp, 0x18
xor eax, eax
inc eax
jmp 0x40667d
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x804], eax
cmp eax, ebx
jne 0x406615
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406c13
test eax, eax
je 0x40666b
push str.Unable_to_perform_InternetOpen
push 0x42def0
push 0x41
push 0x42df58
jmp 0x40665d
movzx ecx, word [esi + 0x82c]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
lea ecx, [esi + 0x860]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x808], eax
cmp eax, ebx
jne 0x40667b
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406c13
test eax, eax
je 0x40666b
push str.Unable_to_perform_InternetConnect
push str._InitConnection_HTMLwrappers__QAEHABV__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__PBD_Z
push 0x4a
push 0x42e008
push dword [esi + 0x810]
call fcn.0040b769
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040612c
jmp 0x40667d
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x409c17
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42b2ad
call fcn.00413008
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x409d0c
cmp byte [esi + 0x49], bl
je 0x409d0c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409c4f
xor al, al
jmp 0x409d0e
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00408eb3
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409caf
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x409cb4
dec eax
je 0x409cb8
dec eax
dec eax
je 0x409d08
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406684
mov al, bl
pop edi
jmp 0x409d0e
mov edx, dword [ebp - 0x2c]
jmp 0x409c79
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409cc4
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x409cea
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409cd7
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00414d97
add esp, 0x10
cmp edi, eax
jne 0x409c9c
cmp byte [esi + 0x49], 0
je 0x409d08
test edi, edi
jne 0x409c6b
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408940
jmp 0x409c6b
mov bl, 1
jmp 0x409c9e
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a42e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42b32c
call fcn.00413008
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40a43a
xor eax, eax
jmp 0x40a462
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x40a472
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40a472
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x40a492
mov ecx, esi
call fcn.00406cfa
cmp dword [esi + 0x44], edi
jne 0x40a497
push dword [esi + 0x54]
push ebx
call fcn.0040809d
pop ecx
pop ecx
test al, al
jne 0x40a45f
or eax, 0xffffffff
jmp 0x40a461
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00408eb3
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40a54a
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x40a568
cmp eax, 1
jg 0x40a552
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40a4fe
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x40a524
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40a511
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00414d97
add esp, 0x10
cmp edi, eax
jne 0x40a568
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x40a57e
test edi, edi
jne 0x40a4b6
cmp dword [ebp - 0x24], 0x20
jae 0x40a568
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.00408940
jmp 0x40a4b6
mov edx, dword [ebp - 0x34]
jmp 0x40a4c8
cmp eax, 3
jne 0x40a568
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.0040809d
pop ecx
pop ecx
test al, al
jne 0x40a57e
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00406684
mov eax, esi
jmp 0x40a461
mov esi, dword [ebp + 8]
jmp 0x40a56b