joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b30
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x6bb107], 0
mov dl, 1
push ebx
push esi
push edi
xor ebx, ebx
movzx eax, dl
mov cl, dl
sar cl, 7
and cl, 0x1b
mov byte [ebx + 0x6bd328], dl
mov byte [eax + 0x6bb100], bl
mov al, dl
add al, al
inc ebx
xor cl, al
xor dl, cl
cmp ebx, 0x100
jb 0x409b44
mov byte [0x6bb101], 0
mov cl, 1
xor edx, edx
nop word [eax + eax]
movzx eax, cl
mov dword [edx + 0x6bb300], eax
mov al, cl
sar al, 7
add cl, cl
and al, 0x1b
add edx, 4
xor cl, al
cmp edx, 0x28
jb 0x409b80
xor ebx, ebx
nop
test ebx, ebx
je 0x409bb6
movzx eax, byte [ebx + 0x6bb100]
mov ecx, 0x6bd427
sub ecx, eax
mov dl, byte [ecx]
jmp 0x409bb8
xor dl, dl
mov cl, dl
rol cl, 1
xor dl, cl
rol cl, 1
xor dl, cl
rol cl, 1
mov al, cl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x6be428], al
movzx eax, al
mov byte [eax + 0x6bb200], bl
inc ebx
cmp ebx, 0x100
jb 0x409ba0
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 8], ebx
mov cl, byte [esi + 0x6be428]
movzx edi, cl
mov eax, edi
mov dword [esi*4 + 0x6bb328], edi
rol eax, 8
mov dword [esi*4 + 0x6bb728], eax
mov eax, edi
rol eax, 0x10
mov dword [esi*4 + 0x6bbb28], eax
mov eax, edi
rol eax, 0x18
mov dword [esi*4 + 0x6bbf28], eax
test cl, cl
je 0x409c5e
movzx ecx, byte [edi + 0x6bb100]
xor edx, edx
movzx eax, byte [0x6bb102]
add eax, ecx
div ebx
movzx eax, byte [0x6bb103]
add eax, ecx
mov ecx, 0xff
movzx ebx, byte [edx + 0x6bd328]
xor edx, edx
div ecx
movzx ecx, byte [edx + 0x6bd328]
jmp 0x409c62
xor ebx, ebx
xor ecx, ecx
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, ebx
mov eax, ecx
mov dword [esi*4 + 0x6ba100], ecx
rol eax, 8
mov dword [esi*4 + 0x6ba500], eax
mov eax, ecx
rol eax, 0x10
rol ecx, 0x18
mov dword [esi*4 + 0x6ba900], eax
mov dword [esi*4 + 0x6bad00], ecx
mov cl, byte [esi + 0x6bb200]
movzx edx, cl
mov eax, edx
mov dword [esi*4 + 0x6bd428], edx
rol eax, 8
mov dword [esi*4 + 0x6bd828], eax
mov eax, edx
rol eax, 0x10
mov dword [esi*4 + 0x6bdc28], eax
mov eax, edx
rol eax, 0x18
mov dword [esi*4 + 0x6be028], eax
test cl, cl
je 0x409d43
mov bl, byte [edx + 0x6bb100]
xor edx, edx
movzx ecx, byte [0x6bb10e]
movzx eax, bl
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [0x6bb109]
movzx ecx, bl
mov ebx, 0xff
add eax, ecx
movzx edi, byte [edx + 0x6bd328]
xor edx, edx
div ebx
movzx eax, byte [0x6bb10d]
add eax, ecx
movzx ebx, byte [edx + 0x6bd328]
xor edx, edx
div dword [ebp - 8]
movzx eax, byte [edx + 0x6bd328]
xor edx, edx
mov dword [ebp - 4], eax
movzx eax, byte [0x6bb10b]
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [edx + 0x6bd328]
jmp 0x409d4c
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
xor eax, eax
shl eax, 8
or eax, dword [ebp - 4]
shl eax, 8
or eax, ebx
mov ebx, 0xff
shl eax, 8
or eax, edi
mov ecx, eax
mov dword [esi*4 + 0x6bc328], eax
rol ecx, 8
mov dword [esi*4 + 0x6bc728], ecx
mov ecx, eax
rol ecx, 0x10
rol eax, 0x18
mov dword [esi*4 + 0x6bcb28], ecx
mov dword [esi*4 + 0x6bcf28], eax
inc esi
cmp esi, 0x100
jb 0x409bf0
pop edi
pop esi
mov dword [0x6ba0fc], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b449
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b449
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40b438
cmp esi, edx
jae 0x40b449
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40b426
cmp esi, edx
jae 0x40b449
cmp word [esi], 0
je 0x40b449
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x40e040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x40e090
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x40d590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x80], eax
test eax, eax
jne 0x40e090
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40e092
movzx eax, ax
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412140
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dfb19
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], 1
test ebx, ebx
je 0x4122fe
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
inc esi
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0xe], ah
mov byte [ebp + 0x13], dl
mov byte [ebp - 0xd], dh
cmp esi, 3
jne 0x412235
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
cmp dword [0x6b0c7c], 0x10
mov ecx, 0x6b0c68
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x6b0c68]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.004126e0
inc esi
cmp esi, 4
jl 0x412200
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dl, byte [ebp + 0x13]
mov dh, byte [ebp - 0xd]
test ebx, ebx
jne 0x4121a8
mov dword [ebp + 0xc], esi
test esi, esi
je 0x4122fe
mov eax, esi
cmp esi, 3
jge 0x41226e
cmp eax, 3
jae 0x412314
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x412252
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x412271
mov cl, byte [ebp - 0xe]
mov al, dh
xor ebx, ebx
shr al, 2
and dh, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x4122dc
mov esi, eax
nop dword [eax]
cmp dword [0x6b0c7c], 0x10
mov ecx, 0x6b0c68
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x6b0c68]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.004126e0
inc ebx
cmp ebx, esi
jl 0x4122b0
mov esi, dword [ebp + 0xc]
cmp esi, 3
jge 0x4122fe
mov ebx, 3
sub ebx, esi
nop dword [eax + eax]
push 0x3d
mov ecx, edi
call fcn.004126e0
sub ebx, 1
jne 0x4122f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0055faf0
int3
Function at 0x4131f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [0x6b6c18], 0
je 0x41324a
push 0x400
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, 0x200
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x40c]
call fcn.00413150
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret

Function at 0x413290
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x80004005
push str.MyDownLoad
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x218], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x41343f
push 0
push 0
push 3
push 0
push 0
push 0x50
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x413433
push 0
push 0x400000
push 0
push 0
push 0
push dword [ebp - 0x214]
push 0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x413425
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x413422
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x200
push eax
lea eax, [ebp - 0x204]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x413422
lea eax, [ebp - 0x204]
push eax
call fcn.005a74f4
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x210], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x4133a7
mov eax, dword [ecx]
push edx
call dword [eax]
mov edx, dword [ebp - 0x210]
cmp edx, 0xc8
jne 0x413422
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x200
push eax
lea eax, [ebp - 0x204]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x413422
lea eax, [ebp - 0x204]
push eax
call fcn.005a74f4
mov esi, dword [ebp - 0x20c]
add esp, 4
mov edx, eax
mov dword [ebp - 0x210], edx
mov ecx, dword [esi]
test ecx, ecx
je 0x41340b
mov eax, dword [ecx]
push edx
push dword [ebp - 0x214]
call dword [eax + 4]
mov edx, dword [ebp - 0x210]
push ecx
push edx
push dword [ebp - 0x218]
mov ecx, esi
push edi
call fcn.00413600
mov esi, eax
neg esi
sbb esi, esi
inc esi
push edi
call ebx
push dword [ebp - 0x21c]
call ebx
mov edi, dword [ebp - 0x20c]
push dword [ebp - 0x220]
call ebx
test esi, esi
je 0x41344e
mov ecx, dword [edi]
test ecx, ecx
je 0x41344e
mov eax, dword [ecx]
push 0x1f4
call dword [eax]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413470
Capabilities:
Move file
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x61a]
push esi
mov si, word [0x639ee0]
push edi
mov edi, dword [ebp + 8]
push 0x206
push 0
push eax
mov dword [ebp - 0x620], ecx
mov word [ebp - 0x61c], si
call fcn.00588800
push 0x206
lea eax, [ebp - 0x412]
mov word [ebp - 0x414], si
push 0
push eax
call fcn.00588800
add esp, 0x18
mov dword [ebp - 0x650], 0
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x64c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x414]
movlpd qword [ebp - 0x658], xmm0
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x65c]
push eax
push 0
push 0
push edi
movlpd qword [ebp - 0x644], xmm0
movlpd qword [ebp - 0x63c], xmm0
movlpd qword [ebp - 0x628], xmm0
mov dword [ebp - 0x65c], 0x3c
mov dword [ebp - 0x648], 0x104
mov dword [ebp - 0x62c], 0x104
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4135e8
mov ax, word [0x639ee0]
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..upd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ecx
mov ecx, dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00413290
test eax, eax
jne 0x4135e8
push 1
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4135e8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413600
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2038]
push 1
push eax
mov dword [ebp - 0x2010], ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x2038]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0
push 0x80
lea eax, [ebp - 0x2038]
mov dword [ebp - 0x2024], 0x14
push 2
mov dword [ebp - 0x2020], eax
lea eax, [ebp - 0x2024]
push eax
push 0
push 0x40000000
push esi
mov dword [ebp - 0x201c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x200c], ebx
cmp ebx, 0xffffffff
mov ebx, dword [ebp + 0x10]
je 0x413747
cmp edi, ebx
jae 0x41373b
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0
push eax
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2014]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x413711
push 0
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x2018], 0
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x200c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x413711
add edi, dword [ebp - 0x2008]
mov eax, dword [ebp - 0x2010]
mov ecx, dword [eax]
test ecx, ecx
je 0x413733
mov edx, dword [ecx]
xor eax, eax
push ebx
push edi
test esi, esi
push 0
sete al
push eax
call dword [edx + 8]
cmp eax, 1
je 0x41373b
test esi, esi
jne 0x4136a2
push dword [ebp - 0x200c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp edi, dword [ebp + 0x10]
sete bl
jne 0x413762
mov eax, dword [ebp - 0x2010]
mov ecx, dword [eax]
test ecx, ecx
je 0x413762
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413a10
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x28]
push 0
push ebx
push edi
push esi
mov dword [esp + 0x20], ecx
mov dword [ecx], vtable.CDiskMappingPointer.0
call fcn.005ddac0
sub esi, eax
mov eax, dword [esp + 0x10]
push 0
sbb edi, edx
push ebx
mov dword [eax + 0xc], edi
mov edi, dword [ebp + 0x10]
mov dword [eax + 8], esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov dword [eax + 0x20], ebx
mov dword [eax + 0x28], 1
call fcn.005ddac0
mov ebx, dword [esp + 0x10]
sub esi, eax
push 0
push 0
push 3
push 0
sbb edi, edx
mov dword [ebx + 0x40], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
mov dword [ebx + 0x44], edi
mov edi, dword [ebp + 8]
push SysReAllocString
push edi
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
call esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push edi
mov dword [ebx + 0x18], eax
call esi
mov dword [ebx + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x38], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
imul eax, dword [esp + 0x38], 0x1f4
mov dword [ebx + 0x10], eax
add eax, eax
push eax
mov dword [ebx + 0x14], 0
call fcn.00560596
add esp, 4
mov dword [ebx + 0x2c], eax
push 0
test eax, eax
je 0x413b60
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push dword [ebx + 0x18]
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00413e00
sub esp, 0xc
mov ecx, ebx
call fcn.00414270
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x50]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x54]
pop edi
mov dword [ebx + 0x74], eax
mov eax, ebx
pop esi
mov dword [ebx + 0x24], 1
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push 0x63d01c
push str.notEnoughMemory
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
call fcn.005a7a50
int3
Function at 0x413c10
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x34
push esi
mov esi, ecx
push 0
push 0x200
push dword [ebp + 0x10]
mov dword [esi], vtable.CDiskMappingPointer.0
push dword [ebp + 0xc]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0x200
mov dword [esi + 0x28], 0
call fcn.005dda10
mov ecx, dword [ebp + 0x18]
shld edx, eax, 9
mov dword [esi + 0x48], 0
shl eax, 9
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x44], edx
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x38], 0
test ecx, ecx
jne 0x413cb0
test eax, eax
jne 0x413cb0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
imul eax, dword [esp + 0x30], 0x1f4
jmp 0x413cdd
push 0
push 0x200
push eax
push ecx
call fcn.005dda10
add eax, 1
adc edx, 0
shld edx, eax, 9
shl eax, 9
test edx, edx
jb 0x413cdf
ja 0x413cd8
cmp eax, 0x6400000
jbe 0x413cdf
mov eax, 0x6400000
xor edx, edx
mov dword [esi + 0x10], eax
add eax, eax
push eax
mov dword [esi + 0x14], edx
call fcn.00560596
add esp, 4
mov dword [esi + 0x2c], eax
push 0
test eax, eax
je 0x413d60
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push ecx
push dword [esi + 0x18]
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00413e00
sub esp, 0xc
mov ecx, esi
call fcn.00414270
mov eax, dword [esi + 0x40]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x74], eax
mov eax, esi
mov dword [esi + 0x24], 1
pop esi
mov esp, ebp
pop ebp
ret 0x24
push 0x63d01c
push str.notEnoughMemory
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
call fcn.005a7a50
int3
Function at 0x413e00
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dfbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
jne 0x413e6c
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x34], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x7405c
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x413eb1
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x34], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 8], 1
jne 0x413f3e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x413f3e
push eax
lea ecx, [ebp + 8]
call fcn.0040c380
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
push 0x639ee0
push 0x63d048
call fcn.00414310
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x34], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413f27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x414270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x48]
add ecx, edx
mov eax, dword [edi + 0x44]
adc eax, dword [edi + 0x4c]
mov ebx, dword [edi + 0x34]
mov esi, dword [edi + 0x30]
mov dword [edi + 0x38], 0
cmp ebx, eax
jg 0x4142ab
jl 0x4142a0
cmp esi, ecx
ja 0x4142ab
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub esi, dword [edi + 0x40]
mov ecx, dword [edi + 0x14]
sbb ebx, dword [edi + 0x44]
sub esi, edx
mov eax, dword [edi + 0x10]
sbb ebx, dword [edi + 0x4c]
cmp ebx, ecx
jg 0x4142d6
jl 0x4142c6
cmp esi, eax
jae 0x4142d6
push 0
push dword [edi + 0x20]
push ebx
push esi
call fcn.005ddac0
sub esi, eax
jmp 0x4142db
mov esi, eax
mov dword [ebp - 4], ecx
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [edi + 0x2c]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
jne 0x4142fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x38], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4161c0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, ecx
push edi
test esi, esi
je 0x416210
test edx, edx
je 0x41621e
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4161e0
sub ecx, edi
sar ecx, 1
push 0
je 0x41622c
push 0
push 3
push 0
push 0
push dword [ebp + 8]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
je 0x416238
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
xor edx, edx
mov ecx, str.CHttpToolW::OpenConnection:_hInternet_can_not_be_NULL.
call fcn.00415e00
push 0
xor edx, edx
mov ecx, str.CHttpToolW::OpenConnection:_szServerAddr_can_not_be_NULL.
call fcn.00415e00
xor edx, edx
mov ecx, str.CHttpToolW::OpenConnection:_szServerAddr_can_not_be_an_empty_string.
call fcn.00415e00
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x193
call fcn.00415d30
int3