joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4120e8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00407134
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x41210a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x415768
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4157a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004071e4
jmp 0x4157aa
mov eax, ebx
mov edx, esi
call fcn.004070a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4157b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4157d6
movzx eax, word [esp]
jmp 0x4157d8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x415f68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41608d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00415d78
mov esi, eax
mov eax, dword [0x4ae228]
cmp byte [eax], 0
je 0x416035
mov eax, dword [0x4adfd4]
call fcn.0040498c
call fcn.0040436c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x415f40]
call fcn.0040891c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4160a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416071
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4adf70]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b1c40]
call fcn.00408a10
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416094
lea eax, [ebp - 4]
mov edx, dword [0x415f40]
call fcn.00408928
ret
Function at 0x417244
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41731a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004070fc
lea eax, [ebp - 4]
call fcn.00407a94
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x417304
mov eax, ebx
call fcn.00404204
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4172fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4172e7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41732c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4172e7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417304
mov eax, dword [ebp - 0x10]
call fcn.00404220
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417321
lea eax, [ebp - 4]
call fcn.00407098
ret

Function at 0x418360
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406bd4
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41830a
mov eax, edi
add eax, eax
call fcn.00404204
mov esi, eax
jmp 0x41830c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418345
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41832f
mov eax, esp
cmp esi, eax
je 0x418352
mov eax, esi
call fcn.00404220
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41838c
cmp bl, 0
je 0x418388
cmp bl, 0x41
jl 0x418383
cmp bl, 0x5a
jg 0x418383
or bl, 0x20
xor al, bl
inc esi
jmp 0x418367
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4182cc
Function at 0x43b5a8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x43b646
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43b60a
cmp byte [ebx + 0x10], 0
jne 0x43b60a
cmp byte [ebx + 0x3c], 0
jne 0x43b60a
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x43b62b
lea edx, [ebp - 4]
mov eax, dword [0x4ae1cc]
call fcn.0040a204
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42bf6c]
call fcn.004160ac
call fcn.004060b0
jmp 0x43b62b
lea edx, [ebp - 8]
mov eax, dword [0x4ae1cc]
call fcn.0040a204
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42bf6c]
call fcn.004160ac
call fcn.004060b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b64d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004070a0
ret

Function at 0x43bec4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x43bf12
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0043b52c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43bf2b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x43bf34
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0043b52c
dec esi
jne 0x43bf56
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x43ddc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b3f90
cmp dword [edi], 0
jne 0x43de3c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b3f8c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ad034
mov ecx, 2
call fcn.004043c8
mov edx, 0x43dd98
lea eax, [esi + 5]
call fcn.0043ddb8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043ddb8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43de11
mov dword [0x4b3f8c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40c280
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c632d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 1
push ecx
push eax
push edx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push esi
call fcn.0040c590
test al, al
jne 0x40c31d
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi], 0
mov eax, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
jmp 0x40c442
push 0x1000
call fcn.00470500
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40c3fc
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40c3f1
cmp eax, 0x1000
jbe 0x40c378
push edi
call fcn.004704e5
push dword [ebp - 0x2c]
call fcn.00470500
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
push eax
mov eax, dword [ebp - 0x30]
push edi
push dword [eax + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40c3fc
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x38]
sub eax, esi
mov dword [ebp - 0x3c], ecx
push ecx
push edi
cmp ecx, eax
ja 0x40c3c5
lea eax, [esi + ecx]
cmp edx, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
add esi, eax
push esi
call fcn.00464650
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x40c3d5
mov byte [ebp - 0x34], 0
push dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404a40
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40c3fc
mov esi, dword [ebp - 0x18]
jmp 0x40c350
push edi
call fcn.004704e5
add esp, 4
jmp 0x40c41a
push edi
call fcn.004704e5
add esp, 4
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
mov eax, dword [ebp - 0x40]
movups xmm0, xmmword [ebp - 0x28]
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
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.0043c480
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40c460
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0
push 0
push 0x15
push dword [edi + 0x10]
xor bl, bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40c4da
push esi
push dword [ebp - 4]
call fcn.00470500
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0
push 0x15
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40c4d0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c4b5
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.004053d0
mov bl, 1
push esi
call fcn.004704e5
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c4f0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0x3c
push 0
push eax
mov esi, ecx
xor bl, bl
call fcn.00464bd0
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
lea eax, [ebp - 0x44]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 5
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40c56c
push 0xa
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0049911f
add esp, 0xc
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c480
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c480
mov esp, ebp
pop ebp
ret 4
Function at 0x40cb10
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c63cd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4fa534]
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, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
mov ebx, dword [ebp + 0xc]
lea ecx, [edi + 0x20]
push eax
call fcn.0040e8e0
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406250
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40cb94
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc3f
push edx
push ecx
call fcn.0043c464
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa0000000
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test esi, esi
jne 0x40cbb9
xor ecx, ecx
jmp 0x40cbc9
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cbc0
sub ecx, edx
mov eax, dword [edi + 0x10]
push 0
push ecx
push ecx
push esi
test ebx, ebx
jne 0x40cbd9
push ebx
push ebx
jmp 0x40cbdc
push 0xffffffffffffffff
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edx, dword [ebp - 0x14]
cmp eax, 1
sete bl
cmp edx, 8
jb 0x40cc1f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cc15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc44
push edx
push ecx
call fcn.0043c464
add esp, 8
mov al, bl
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.0043c480
mov esp, ebp
pop ebp
ret 8
call fcn.00470977
call fcn.00470977
int3
Function at 0x40cea0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x94], 0
je 0x40cf1a
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x40cfb3
mov eax, dword [esi + 0x9c]
lea edx, [esi + 0x84]
mov edi, dword [edx + 0x10]
mov dword [ebp + 0x10], eax
add eax, 0x400
sub edi, dword [ebp + 0x10]
cmp dword [edx + 0x10], eax
mov eax, 0x400
mov dword [ebp - 4], edx
cmova edi, eax
mov dword [ebx], edi
cmp dword [edx + 0x14], 0x10
jb 0x40cefa
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
add ecx, edx
test edi, edi
je 0x40cf3c
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40cf25
call fcn.00472c24
mov dword [eax], 0x16
call fcn.00470967
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
je 0x40cf74
cmp edi, 0x400
ja 0x40cf74
push edi
push ecx
push eax
call fcn.004640d0
add esp, 0xc
mov eax, dword [ebx]
add dword [esi + 0x9c], eax
mov eax, dword [esi + 0x9c]
cmp eax, dword [esi + 0x94]
jne 0x40cf66
mov dword [esi + 0xa0], 1
mov dword [esi + 0x9c], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 0
push eax
call fcn.00464bd0
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, dword [ebp + 0x10]
je 0x40cf0a
cmp edi, 0x400
jbe 0x40cf1a
call fcn.00472c24
mov dword [eax], 0x22
call fcn.00470967
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 1
jne 0x40cf66
cmp dword [esi + 0xb8], 8
xorps xmm0, xmm0
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0xa4]
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x14], xmm0
jb 0x40cfdf
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor eax, eax
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], eax
cmp edi, 0xffffffff
jne 0x40d00a
mov dword [ebx], eax
xor ecx, ecx
jmp 0x40d052
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40d046
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x400
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d046
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x10]
add dword [esi + 0x9c], ecx
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x9c], ecx
jne 0x40cf1c
pop edi
mov dword [esi + 0x9c], 0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40daf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6466
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fa534]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CHttpHeader.0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xf
mov byte [edi + 0x20], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
lea esi, [edi + 0x50]
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0043c434
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40dd70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6521
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fa534]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CHttpHeader.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xf
mov byte [edi + 0x20], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
lea esi, [edi + 0x50]
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0043c434
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040ecf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x411e63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x411e7c
mov eax, dword [ebp - 4]
jmp 0x411f56
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x411f31
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4cf5c0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4cf5c0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4cf5c0]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4cf5c0]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4cf5c0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4cf5c0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4cf5c0]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4cf5c0]
dec ebp
jne 0x411e9b
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x411f4d
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4cf5c0]
dec ecx
jne 0x411f3b
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425c56
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x264
mov eax, 0x4c830c
call fcn.0043c4f3
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x260]
mov ebx, dword [ebp + 8]
push 0x250
push 0
push eax
mov dword [ebp - 0x270], esi
call fcn.00464bd0
add esp, 0xc
lea ecx, [ebp - 0x26c]
push ebx
call fcn.0042180b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00421870
push 0x4d379c
push 0x104
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.0041364e
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x26c]
call fcn.0042b9cd
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x425d13
mov esi, dword [ebp - 0x268]
lea ecx, [esi - 0x10]
call fcn.004136c2
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.004136c2
xor eax, eax
call fcn.0043c4a2
ret
mov esi, dword [ebp - 0x270]
test ebx, ebx
jne 0x425d1b
xor eax, eax
jmp 0x425d22
push ebx
call fcn.004727f6
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x268]
call fcn.00413705
lea eax, [ebp - 0x234]
push eax
push 0x104
lea ecx, [ebp - 0x268]
call fcn.0041364e
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x268]
call fcn.0042b9cd
push esi
lea ecx, [ebp - 0x264]
call fcn.0042180b
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
push eax
push 0x104
lea ecx, [ebp - 0x264]
call fcn.0041364e
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x264]
call fcn.0042b9cd
test byte [ebp - 0x260], 0x10
mov esi, dword [ebp - 0x268]
je 0x425e2d
lea eax, [ebp - 0x234]
push 0x4d34d4
push eax
call fcn.0048ccd1
pop ecx
pop ecx
test eax, eax
je 0x425e3c
lea eax, [ebp - 0x234]
push 0x4d34d8
push eax
call fcn.0048ccd1
pop ecx
pop ecx
test eax, eax
je 0x425e3c
mov eax, dword [ebp - 0x260]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x425e3c
cmp dword [ebp + 0x10], 0
je 0x425e3c
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x425e09
push dword [ebp - 0x264]
call fcn.00425f2a
pop ecx
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x425e3c
push dword [ebp + 0x10]
push dword [ebp - 0x264]
push esi
call fcn.00425c56
add esp, 0xc
jmp 0x425e3c
push 0
push dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004136c2
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x425d0d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x425cef