joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465c81
mov eax, dword fs:[0]
push eax
sub esp, 0xc3c
mov eax, dword [0x47f5dc]
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 esi, ecx
cmp dword [esi + 0xe8], 0
jne 0x40d760
xor eax, eax
jmp 0x40d9bd
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x40d778
push eax
push 8
push 1
push esi
call fcn.0044e5ce
add esp, 0x10
mov eax, dword [esi + 0xe8]
xor ebx, ebx
mov dword [ebp - 0xc44], ebx
test eax, eax
je 0x40d7a4
push eax
push 4
lea eax, [ebp - 0xc44]
push 1
push eax
call fcn.0044e5ce
mov ebx, dword [ebp - 0xc44]
add esp, 0x10
mov edi, 0xc
test ebx, ebx
jle 0x40d835
push 0x3ff
lea eax, [ebp - 0xc0f]
mov byte [ebp - 0xc10], 0
push 0
push eax
lea edi, [ebx + 0xc]
call fcn.0044e8d0
mov eax, dword [esi + 0xe8]
add esp, 0xc
test eax, eax
je 0x40d7ee
push eax
push ebx
lea eax, [ebp - 0xc10]
push 1
push eax
call fcn.0044e5ce
add esp, 0x10
cmp byte [ebp - 0xc10], 0
je 0x40d835
lea eax, [ebp - 0xc10]
push eax
lea ecx, [ebp - 0xc28]
call fcn.00401700
push 0
lea edx, [esi + 0x60]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc28]
call fcn.004135d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc28]
call fcn.00401760
mov eax, dword [esi + 0xe8]
xor ebx, ebx
mov dword [ebp - 0xc44], ebx
test eax, eax
je 0x40d861
push eax
push 4
lea eax, [ebp - 0xc44]
push 1
push eax
call fcn.0044e5ce
mov ebx, dword [ebp - 0xc44]
add esp, 0x10
add edi, 4
test ebx, ebx
jle 0x40d8ef
push 0x3ff
lea eax, [ebp - 0x80f]
mov byte [ebp - 0x810], 0
push 0
push eax
add edi, ebx
call fcn.0044e8d0
mov eax, dword [esi + 0xe8]
add esp, 0xc
test eax, eax
je 0x40d8a8
push eax
push ebx
lea eax, [ebp - 0x810]
push 1
push eax
call fcn.0044e5ce
add esp, 0x10
cmp byte [ebp - 0x810], 0
je 0x40d8ef
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xc28]
call fcn.00401700
push 0
lea edx, [esi + 0x48]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc28]
call fcn.004135d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc28]
call fcn.00401760
mov eax, dword [esi + 0xe8]
xor ebx, ebx
mov dword [ebp - 0xc44], ebx
test eax, eax
je 0x40d91b
push eax
push 4
lea eax, [ebp - 0xc44]
push 1
push eax
call fcn.0044e5ce
mov ebx, dword [ebp - 0xc44]
add esp, 0x10
add edi, 4
test ebx, ebx
jle 0x40d9ac
push 0x3ff
lea eax, [ebp - 0x40f]
mov byte [ebp - 0x410], 0
push 0
push eax
add edi, ebx
call fcn.0044e8d0
mov eax, dword [esi + 0xe8]
add esp, 0xc
test eax, eax
je 0x40d962
push eax
push ebx
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0044e5ce
add esp, 0x10
cmp byte [ebp - 0x410], 0
je 0x40d9ac
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xc40]
call fcn.00401700
push 0
lea edx, [esi + 0x90]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xc40]
call fcn.004135d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc40]
call fcn.00401760
mov ecx, esi
mov dword [esi + 0x10], edi
call fcn.0040db30
xor eax, eax
test edi, edi
setg al
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.0044a781
mov esp, ebp
pop ebp
ret
Function at 0x40d9e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xdc]
sub eax, dword [edi + 0xd8]
mov ebx, dword [edi + 0x10]
sar eax, 5
mov dword [ebp - 4], eax
test ebx, ebx
jle 0x40db1c
cmp dword [edi + 0xe8], 0
je 0x40db1c
test eax, eax
je 0x40db1c
mov ecx, dword [edi + 0xe8]
mov eax, ebx
cdq
test ecx, ecx
je 0x40da59
cmp edx, 0xffffffff
jl 0x40da43
jg 0x40da36
cmp eax, 0xffffffff
jbe 0x40da43
push 0
push edx
push eax
push ecx
call fcn.0044d97f
add esp, 0x10
push dword [edi + 0xe8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.0044c7f5
add esp, 0x10
mov ecx, dword [edi + 0xe8]
lea eax, [ebx + 4]
cdq
lea esi, [edi + 8]
test ecx, ecx
je 0x40da9a
test esi, esi
je 0x40da9a
cmp edx, 0xffffffff
jl 0x40da87
jg 0x40da7a
cmp eax, 0xffffffff
jbe 0x40da87
push 0
push edx
push eax
push ecx
call fcn.0044d97f
add esp, 0x10
push dword [edi + 0xe8]
push 8
push 1
push esi
call fcn.0044c7f5
add esp, 0x10
mov esi, dword [edi + 0xd8]
add ebx, 0xc
cmp esi, dword [edi + 0xdc]
je 0x40dafb
jmp 0x40dab0
mov ecx, dword [edi + 0xe8]
mov eax, ebx
cdq
test ecx, ecx
je 0x40daed
test esi, esi
je 0x40daed
cmp edx, 0xffffffff
jl 0x40dada
jg 0x40dacd
cmp eax, 0xffffffff
jbe 0x40dada
push 0
push edx
push eax
push ecx
call fcn.0044d97f
add esp, 0x10
push dword [edi + 0xe8]
push 1
push 0x20
push esi
call fcn.0044c7f5
add esp, 0x10
add esi, 0x20
add ebx, 0x20
cmp esi, dword [edi + 0xdc]
jne 0x40dab0
mov eax, dword [edi + 0xe8]
test eax, eax
je 0x40db0e
push eax
call fcn.0044bf7e
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40db30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 4], ecx
push esi
push edi
test ebx, ebx
jle 0x40dd3b
cmp dword [ecx + 0xe8], 0
je 0x40dd3b
mov esi, dword [ecx + 0xe8]
lea edi, [ecx + 0x14]
mov eax, ebx
cdq
test esi, esi
je 0x40db9a
test edi, edi
je 0x40db9a
cmp edx, 0xffffffff
jl 0x40db84
jg 0x40db74
cmp eax, 0xffffffff
jbe 0x40db84
push 0
push edx
push eax
push esi
call fcn.0044d97f
mov ecx, dword [ebp - 4]
add esp, 0x10
push dword [ecx + 0xe8]
push 4
push 1
push edi
call fcn.0044e5ce
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edi, dword [ecx + 0xe8]
lea eax, [ebx + 4]
cdq
lea esi, [ecx + 8]
test edi, edi
je 0x40dbe1
test esi, esi
je 0x40dbe1
cmp edx, 0xffffffff
jl 0x40dbcb
jg 0x40dbbb
cmp eax, 0xffffffff
jbe 0x40dbcb
push 0
push edx
push eax
push edi
call fcn.0044d97f
mov ecx, dword [ebp - 4]
add esp, 0x10
push dword [ecx + 0xe8]
push 8
push 1
push esi
call fcn.0044e5ce
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ecx + 0xd8]
lea esi, [ecx + 0xd8]
xor edi, edi
mov dword [esi + 4], eax
add ebx, 0xc
mov dword [ebp - 8], edi
cmp dword [ecx + 0x14], edi
jle 0x40dd2f
mov edi, dword [ecx + 0xe8]
xorps xmm0, xmm0
mov eax, ebx
mov dword [ebp - 0xc], edi
test edi, edi
movlpd qword [ebp - 0x30], xmm0
mov edi, dword [ebp - 8]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
cdq
je 0x40dd22
cmp edx, 0xffffffff
jl 0x40dc4f
jg 0x40dc3d
cmp eax, 0xffffffff
jbe 0x40dc4f
push 0
push edx
push eax
push dword [ebp - 0xc]
call fcn.0044d97f
mov ecx, dword [ebp - 4]
add esp, 0x10
push dword [ecx + 0xe8]
lea eax, [ebp - 0x30]
push 1
push 0x20
push eax
call fcn.0044e5ce
add esp, 0x10
test eax, eax
jle 0x40dd1f
mov edx, dword [ebp - 0x30]
add ebx, 0x20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp edx, dword [ebp - 0x28]
jne 0x40dc90
cmp ecx, eax
jne 0x40dc90
mov dword [ebp - 0x18], 3
push eax
push dword [ebp - 0x28]
push ecx
push edx
push str.SpliteBlocks__I64u____I64u
push 0xca
push str.TransfersTransferInfo.cpp
call fcn.0040a560
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x30]
add esp, 0x1c
cmp eax, ecx
jae 0x40dcf4
mov eax, dword [esi]
lea edx, [ebp - 0x30]
cmp eax, edx
ja 0x40dcf4
mov edi, edx
sub edi, eax
cmp ecx, dword [esi + 8]
jne 0x40dcd1
push ecx
mov ecx, esi
call fcn.0040de90
mov eax, dword [esi + 4]
and edi, 0xffffffe0
add edi, dword [esi]
test eax, eax
je 0x40dcef
movdqu xmm0, xmmword [edi]
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [edi + 0x10]
movdqu xmmword [eax + 0x10], xmm0
mov edi, dword [ebp - 8]
jmp 0x40dd1b
cmp ecx, dword [esi + 8]
jne 0x40dd01
push ecx
mov ecx, esi
call fcn.0040de90
mov eax, dword [esi + 4]
test eax, eax
je 0x40dd1b
movdqu xmm0, xmmword [ebp - 0x30]
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [ebp - 0x20]
movdqu xmmword [eax + 0x10], xmm0
add dword [esi + 4], 0x20
mov ecx, dword [ebp - 4]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ecx + 0x14]
jl 0x40dc01
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40de10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x160], 0
jne 0x40de28
xor eax, eax
pop esi
pop ecx
pop ebp
ret 0x10
mov eax, dword [esi + 0x160]
test eax, eax
je 0x40de78
cmp dword [ebp + 0x10], 0
je 0x40de78
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jl 0x40de57
mov edx, dword [ebp + 8]
jg 0x40de4a
cmp edx, 0xffffffff
jbe 0x40de57
push 0
push ecx
push edx
push eax
call fcn.0044d97f
add esp, 0x10
push dword [esi + 0x160]
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
call fcn.0044c7f5
push dword [esi + 0x160]
call fcn.0044bf7e
add esp, 0x14
mov eax, 1
pop esi
pop ecx
pop ebp
ret 0x10

Function at 0x40e070
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x40e085
mov eax, dword [esi]
jmp 0x40e087
mov eax, esi
push eax
push str.CreateWinetSession_strSession_s
push 0xca
push str.HttpHttpWinet.cpp
call fcn.0040a560
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x40e0a7
mov esi, dword [esi]
push 0x10000000
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
push eax
push str.CreateWinetSession_m_hSession_08x
push 0xca
push str.HttpHttpWinet.cpp
mov dword [edi], eax
call fcn.0040a560
mov eax, dword [edi]
add esp, 0x10
test eax, eax
je 0x40e0ed
push 0x40e100
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
call fcn.0040fb50
mov dword [edi + 0x18], eax
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x40e6e0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push 1
push eax
mov eax, dword [esi + 4]
push eax
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], 0x28
mov dword [ebp - 0x14], 0x400
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x40e774
push str.HttpRecive__InternetReadFileEx_return_FALSE
push 0xca
push str.HttpHttpWinet.cpp
call fcn.0040a560
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
cmp eax, 0x3e5
jne 0x40e766
call fcn.0040e220
test eax, eax
je 0x40e7d0
mov ecx, esi
call fcn.0040e5b0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x14]
push str.HttpRecive__InternetReadFileEx_return_TRUE_NetBuf.dwBufferLength_d
push 0xca
push str.HttpHttpWinet.cpp
call fcn.0040a560
add esp, 0x10
xor eax, eax
cmp dword [ebp - 0x14], eax
mov ecx, 0x12c
cmove eax, ecx
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e7d0
mov ecx, esi
call fcn.0040e5b0
push str.HttpRecive__InternetReadFileEx_focus_Exist
push 0xca
push str.HttpHttpWinet.cpp
call fcn.0040a560
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push dword [ebp - 0x14]
push str.HttpRecive__InternetReadFileEx__recvlen_d__leftlen_d
push 0xca
push str.HttpHttpWinet.cpp
call fcn.0040a560
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
add eax, eax
mov dword [esi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0
push str.AutoConfigURL
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f8b2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40f8a9
cmp eax, 2
je 0x40f8a9
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x40f8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465d5b
mov eax, dword fs:[0]
push eax
mov eax, 0x1018
call fcn.0045f290
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x101c], esi
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push 0x473490
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x1014], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fa18
mov edi, dword [ebp - 0x1014]
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x101c], edi
push eax
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x1020], 4
push eax
push esi
push str.ProxyEnable
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f97f
cmp dword [ebp - 0x1018], 4
jne 0x40f97f
cmp dword [ebp - 0x1014], eax
je 0x40f97f
lea esi, [eax + 1]
jmp 0x40f9f3
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.0044e8d0
add esp, 0xc
mov dword [ebp - 0x1018], 0x7ff
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x1010]
push eax
push ecx
lea ecx, [ebp - 0x101c]
call fcn.0040f860
test eax, eax
jne 0x40f9f3
lea eax, [ebp - 0x1010]
push eax
push str.IsIEHasProxy__AutoConfigURL_s
push 0xca
push str.NetWorkHelper.cpp
call fcn.0040a560
add esp, 0x10
mov eax, 1
cmp word [ebp - 0x1010], 0
cmovne esi, eax
push esi
push str.IsIEHasProxy__bHasProxy_d
push 0xca
push str.NetWorkHelper.cpp
call fcn.0040a4e0
add esp, 0x10
test edi, edi
je 0x40fa31
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fa31
push 0
push str.IsIEHasProxy__read_reg_fail__bHasProxy_d
push 0xca
push str.NetWorkHelper.cpp
call fcn.0040a4e0
add esp, 0x10
mov eax, esi
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.0044a781
mov esp, ebp
pop ebp
ret
Function at 0x40fa50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0044e8d0
add esp, 0xc
lea eax, [ebp - 0x214]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fb21
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], 1
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push str.Version
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fb0c
lea eax, [ebp - 0x210]
push eax
push str.GetInternetExplorerVersion_is__s
push 0xca
push str.NetWorkHelper.cpp
call fcn.0040a4e0
add esp, 0x10
mov esi, 1
jmp 0x40fb15
xor eax, eax
mov word [ebp - 0x210], ax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0xff
push edi
call fcn.0044b6fa
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.0044a781
mov esp, ebp
pop ebp
ret
Function at 0x40fcb0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465d9b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
xor eax, eax
mov dword [ebp - 0x414], 7
push str.Accept:__r_n
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
call fcn.00409960
push 0xb
push 0x471c34
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.00405980
push 0x3a
push str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT_6.1__SSX1.0_
lea ecx, [ebp - 0x428]
call fcn.00405980
push 2
push 0x471cc8
lea ecx, [ebp - 0x428]
call fcn.00405980
push 0x17
push str.Connection:Keep_Alive_r_n
lea ecx, [ebp - 0x428]
call fcn.00405980
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x14], ebx
jb 0x40fe87
mov esi, dword [ebp + 8]
ja 0x40fd75
cmp dword [ebp + 0x10], esi
jbe 0x40fe87
push 0xd
push 0x4736d0
lea ecx, [ebp - 0x428]
call fcn.00405980
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0044e8d0
push 0xa
push pe_nt_image_headers32
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call fcn.0044d199
add esp, 0x20
cmp word [ebp - 0x210], 0
jne 0x40fdc8
xor ecx, ecx
jmp 0x40fde0
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fdd1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405980
push 1
push 0x4736ec
lea ecx, [ebp - 0x428]
call fcn.00405980
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.0044e8d0
push 0xa
push pe_nt_image_headers32
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0044d199
add esp, 0x20
cmp word [ebp - 0x410], 0
jne 0x40fe4a
xor ecx, ecx
jmp 0x40fe62
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe53
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405980
push 2
push 0x471cc8
lea ecx, [ebp - 0x428]
call fcn.00405980
push 2
push 0x471cc8
lea ecx, [ebp - 0x428]
call fcn.00405980
push 0x800
call fcn.0044a696
mov esi, eax
lea ecx, [ebp - 0x428]
xor eax, eax
mov word [esi], ax
cmp dword [ebp - 0x414], 8
push dword [ebp - 0x418]
cmovae ecx, dword [ebp - 0x428]
push ecx
push 0x400
push esi
call fcn.0044b6fa
add esp, 0x14
cmp dword [ebp - 0x414], 8
jb 0x40feea
push dword [ebp - 0x428]
call fcn.0044a77c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044a781
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411710
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x41181d
cmp word [ebx], 0
je 0x41181d
cmp word [ebx + 2], 0x3a
jne 0x41181d
cmp word [ebx + 4], 0x5c
jne 0x41181d
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x411746
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a696
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x411796
push 2
push 0x46f0d0
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp - 4], 1
push 0x5c
push eax
call fcn.0044d1b4
mov esi, eax
add esp, 8
test esi, esi
je 0x41180a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4117cc
test al, 0x10
jne 0x4117d5
push 0
push edi
call ebx
test eax, eax
je 0x411803
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.0044d1b4
mov esi, eax
add esp, 8
test esi, esi
jne 0x4117b7
push edi
call fcn.0044af4c
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
call fcn.0044af4c
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411830
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x411854
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
Function at 0x411f40
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465638
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x47f5dc]
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 edi, edx
mov ebx, ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push esi
push edi
push ebx
push str.CopyFile_lpExistingFileName_s_lpNewFileName_s_bResult_d
push 0xb4
push str.FileHandler.cpp
call fcn.0040a560
add esp, 0x18
test esi, esi
jne 0x41204f
lea ecx, [ebp - 0x28]
call fcn.00412110
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, eax
cmovae ecx, dword [ebp - 0x28]
push esi
push ecx
push str.CopyFile_strTempFile_s_bResult_d
push 0xb4
push str.FileHandler.cpp
call fcn.0040a560
add esp, 0x14
test esi, esi
je 0x41203e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
push 1
cmovae ebx, dword [ebp - 0x28]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
push esi
push edi
push ebx
push str.MoveFile_lpExistingFileName_s_lpNewFileName_s_bResult_d
push 0xb4
push str.FileHandler.cpp
call fcn.0040a560
add esp, 0x18
test esi, esi
jne 0x41203e
push 5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
cmp dword [ebp - 0x14], 8
jb 0x41204f
push dword [ebp - 0x28]
call fcn.0044a77c
add esp, 4
mov eax, esi
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.0044a781
mov esp, ebp
pop ebp
ret

Function at 0x412070
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
push 0
push 3
push 0
push 1
push connect
push ecx
mov ebx, edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412103
push edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4120bc
xor edi, edi
jmp 0x4120c3
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x4120fa
mov eax, dword [ebp - 8]
mov cl, 0x20
mov dword [ebx + 4], 0
mov edx, dword [ebx + 4]
call fcn.00464f80
add eax, edi
pop edi
adc edx, 0
mov dword [ebx], eax
pop esi
mov dword [ebx + 4], edx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x418], 0
push 0x206
push eax
mov word [ebp - 0x414], ax
mov esi, ecx
lea eax, [ebp - 0x412]
push eax
call fcn.0044e8d0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0044e8d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push str.Samson
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
je 0x4121cf
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4121c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00409960
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044a781
mov esp, ebp
pop ebp
ret