joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e98
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004073ac
mov eax, dword [ebp - 0x21c]
call fcn.004073ac
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a037
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004073c4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407450
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409f38
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409f4a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409f35
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a003
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409f73
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004099e8
cmp dword [ebp - 0x220], 0
je 0x409fab
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409d8c
pop ecx
mov ebx, eax
jmp 0x40a003
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004095c4
mov eax, dword [ebp - 0x224]
call fcn.00409d8c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409ff6
cmp byte [0x48db58], 0
jne 0x409ff6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004095c4
mov eax, dword [ebp - 0x228]
call fcn.00409d8c
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a003
push ebp
call fcn.00409e3c
pop ecx
mov ebx, eax
test bl, bl
je 0x40a019
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004075c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a03e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004073bc
ret

Function at 0x40a854
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40c848
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407450
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c861
test al, 0x10
jne 0x40c865
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40c89c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48dc60
cmp dword [edi], 0
jne 0x40c918
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48dc5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x488a10
mov ecx, 2
call fcn.004046e4
mov edx, 0x40c87c
lea eax, [esi + 5]
call fcn.0040c874
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0040c874
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 0x40c8ed
mov dword [0x48dc5c], 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 0x40db84
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xe], 1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, ebx
call fcn.0040d988
pop ebx
ret

Function at 0x40dba4
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.0040d988
dec esi
jne 0x40dbc6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x410168
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x48dc8c
push 0xa
push 0x4101fc
mov eax, dword [0x48dc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x41018c
call fcn.0041c0d8
push ebx
mov eax, dword [0x48dc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x4101a3
call fcn.0041c0d8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4101b5
call fcn.0041c0d8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x48dc90], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x48dc94], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x48dc98], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x48dc9c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x48dca0], ecx
add edx, dword [eax + 0x14]
mov dword [0x48dca4], edx
pop esi
pop ebx
ret
Function at 0x413ffc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4140a5
test eax, edx
je 0x4140a8
push 0
push 0
cmp word [eax - 0xa], 2
je 0x414025
push edx
mov edx, eax
mov eax, esp
call fcn.004075e0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41403b
push eax
lea eax, [esp + 8]
call fcn.004075e0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41404a
movzx eax, word [eax]
sub eax, ecx
jmp 0x414071
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41408b
add ecx, 4
js 0x414062
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x414088
push eax
mov eax, ecx
mov edx, 2
call fcn.0040647c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41406f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x414071
xor eax, eax
ret
test eax, eax
je 0x4140b8
test edx, edx
jne 0x41400c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4152d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407450
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4152f6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x415317
cmp ebx, 3
je 0x415317
cmp ebx, 0x7b
je 0x415317
mov eax, esi
call fcn.00415298
test al, al
jne 0x41531b
xor eax, eax
jmp 0x41531d
mov al, 1
pop esi
pop ebx
ret

Function at 0x415320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407450
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415339
test al, 0x10
jne 0x41533d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x418df8
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 0x418e31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407500
jmp 0x418e3a
mov eax, ebx
mov edx, esi
call fcn.004073c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418e44
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 0x418e66
movzx eax, word [esp]
jmp 0x418e68
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x419748
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 0x41986d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00419558
mov esi, eax
mov eax, dword [0x48a2d8]
cmp byte [eax], 0
je 0x419815
mov eax, dword [0x48a0ec]
call fcn.004049d4
call fcn.00404694
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 [0x419720]
call fcn.00408d70
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 0x419888
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419851
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x48a0ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48dc40]
call fcn.00408f48
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 0x419874
lea eax, [ebp - 4]
mov edx, dword [0x419720]
call fcn.00408e90
ret

Function at 0x41bf80
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.004067c0
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 0x41bf2a
mov eax, edi
add eax, eax
call fcn.0040452c
mov esi, eax
jmp 0x41bf2c
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 0x41bf65
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 0x41bf4f
mov eax, esp
cmp esi, eax
je 0x41bf72
mov eax, esi
call fcn.00404548
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 0x41bfac
cmp bl, 0
je 0x41bfa8
cmp bl, 0x41
jl 0x41bfa3
cmp bl, 0x5a
jg 0x41bfa3
or bl, 0x20
xor al, bl
inc esi
jmp 0x41bf87
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41beec
Function at 0x41fde8
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004073ac
xor eax, eax
push ebp
push 0x41ffa5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.004073c4
lea eax, [ebx + 0x14]
xor edx, edx
call fcn.004073c4
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404aa8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x41fe90
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x41fe90
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406608
mov esi, eax
test esi, esi
je 0x41fe9b
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x40]
push eax
push 0
push esi
mov eax, dword [ebp - 4]
call fcn.00407450
push eax
call sub.wininet.dll_InternetCrackUrlW
test eax, eax
jne 0x41fed8
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov edx, 0x41ffc0
call fcn.00407898
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x40b960]
call fcn.0040cae0
call fcn.00405c4c
cmp dword [ebp - 0x30], 0
je 0x41fee4
cmp dword [ebp - 0x3c], 0
jne 0x41ff08
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 4]
mov edx, 0x41ffc0
call fcn.00407898
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x40b960]
call fcn.0040cae0
call fcn.00405c4c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x3c]
call fcn.00407570
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x38]
mov edx, 1
call fcn.00407b04
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0040c7a8
mov eax, dword [ebp - 0x4c]
mov edx, 0x41ffe8
call fcn.00407a9c
jne 0x41ff47
mov byte [ebx + 0x55], 1
jmp 0x41ff4b
mov byte [ebx + 0x55], 0
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x30]
call fcn.00407570
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x2c]
mov edx, 1
call fcn.00407b04
movzx eax, word [ebp - 0x28]
mov dword [ebx + 0x10], eax
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x41ff82
lea eax, [ebx + 0x14]
mov edx, esi
call fcn.00407570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ffac
lea eax, [ebp - 0x58]
mov edx, 6
call fcn.004073bc
lea eax, [ebp - 4]
call fcn.004073b4
ret
Function at 0x420730
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
xor edx, edx
call fcn.004073c4
mov eax, dword [ebx + 4]
call fcn.0040ca90
test al, al
je 0x4207dc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebx + 4]
call fcn.00407450
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4207dc
xor eax, eax
push ebp
push 0x4207d5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
jbe 0x4207be
mov eax, esi
mov edx, ebx
call fcn.00407740
push 0
lea eax, [ebp - 4]
push eax
push ebx
mov eax, esi
call fcn.00407ca4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4207dc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4207e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebx + 4]
call fcn.00407450
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x420885
xor edx, edx
push ebp
push 0x42087e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 8]
test eax, eax
je 0x420831
sub eax, 4
mov eax, dword [eax]
mov esi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebx + 8]
call fcn.00407ca4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
cmp esi, dword [ebp - 4]
je 0x420867
mov ecx, 0x420898
mov dl, 1
mov eax, dword [0x40b960]
call fcn.0040cae0
call fcn.00405c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420885
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4208d4
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
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4208dd
mov eax, dword [ebp - 4]
add esp, 0xffffffe8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x201c], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x10]
xor eax, eax
push ebp
push 0x420b03
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x420b1c
mov eax, dword [ebp - 4]
call fcn.00420c98
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x420ae3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00407450
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x420983
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x201c]
mov edx, 0x420b6c
call fcn.00407898
mov ecx, dword [ebp - 0x201c]
mov dl, 1
mov eax, dword [0x40b960]
call fcn.0040cae0
call fcn.00405c4c
xor eax, eax
push ebp
push 0x420a62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
push ebx
push 0x1000
lea eax, [ebp - 0x2018]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp dword [ebx], 0
je 0x420a4b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x54], 0
jne 0x420a4b
mov eax, dword [ebx]
mov edx, dword [ebp - 4]
add dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x4209fe
lea ecx, [ebp - 0x15]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
test edx, edx
jns 0x4209f2
add edx, 0xfff
sar edx, 0xc
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
cmp byte [ebp - 0x15], 0
jne 0x420a4b
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0x2018]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x14]
je 0x420a41
mov eax, dword [ebp - 4]
mov byte [eax + 0x54], 1
mov ecx, 0x420ba8
mov dl, 1
mov eax, dword [0x40b960]
call fcn.0040cae0
call fcn.00405c4c
cmp byte [ebp - 5], 0
jne 0x420999
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420a69
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x420d04
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1020], edx
mov dword [ebp - 0x1024], edx
mov dword [ebp - 0x101c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x420ee0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407418
mov edx, 0x420efc
mov eax, edi
call fcn.00420c98
xor eax, eax
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1015]
push eax
mov eax, dword [edi + 0x30]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp dword [ebp - 0x10], 0
je 0x420dc7
mov eax, dword [ebp - 0x10]
add dword [edi + 0x1c], eax
cmp dword [ebp - 0x10], 0
jbe 0x420dc1
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x420dc1
inc esi
lea ebx, [ebp - 0x1015]
lea eax, [ebp - 0x101c]
movzx edx, byte [ebx]
mov ecx, 0
call fcn.004066f0
mov edx, dword [ebp - 0x101c]
lea eax, [ebp - 4]
call fcn.004067e8
inc ebx
dec esi
jne 0x420d9c
cmp byte [ebp - 9], 0
jne 0x420d59
cmp byte [ebp - 9], 0
jne 0x420dd4
mov eax, edi
call fcn.0041fb9c
lea eax, [ebp - 0x1024]
mov edx, dword [ebp - 4]
call fcn.004075e0
mov eax, dword [ebp - 0x1024]
lea edx, [ebp - 0x1020]
call fcn.0040c7a8
mov eax, dword [ebp - 0x1020]
lea edx, [ebp - 8]
call fcn.0040e524
mov edx, dword [ebp - 8]
mov eax, 0x420f48
call fcn.00407cf0
mov esi, eax
test esi, esi
jg 0x420e23
mov edx, dword [ebp - 8]
mov eax, 0x420f64
call fcn.00407cf0
mov esi, eax
mov edx, dword [ebp - 8]
mov eax, 0x420f84
call fcn.00407cf0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x420e50
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x420e50
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406608
test eax, eax
je 0x420e59
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x420e64
test esi, esi
setg al
jmp 0x420e66
xor eax, eax
test al, al
je 0x420e72
cmp esi, dword [ebp - 0x14]
setl al
jmp 0x420e74
xor eax, eax
mov ebx, eax
test bl, bl
je 0x420e8d
lea eax, [edi + 0x50]
push eax
mov ecx, dword [ebp - 0x14]
sub ecx, esi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00407b04
test bl, bl
jne 0x420ea7
mov ecx, 0x420fa4
mov dl, 1
mov eax, dword [0x40b960]
call fcn.0040cae0
call fcn.00405c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420ee7
lea eax, [ebp - 0x1024]
mov edx, 2
call fcn.004073bc
lea eax, [ebp - 0x101c]
call fcn.00406458
lea eax, [ebp - 8]
call fcn.004073b4
lea eax, [ebp - 4]
call fcn.00406458
ret

Function at 0x421750
Capabilities:
Read file on windows

Disassembly:
push ebx
push ecx
mov ebx, eax
push 2
push 0
push 0xffffffffffffffe0
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 4]
push eax
push 0x20
lea eax, [ebx + 8]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [esp], 0x20
je 0x421784
xor eax, eax
pop edx
pop ebx
ret
mov al, 1
pop edx
pop ebx
ret
Function at 0x42178c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push ecx
mov esi, ecx
mov ebx, eax
push 0
push 0
imul eax, edx, 0x32
add eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 4]
push eax
push 0x32
push esi
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [esp], 0x32
je 0x4217c4
xor eax, eax
jmp 0x4217c6
mov al, 1
pop edx
pop esi
pop ebx
ret
Function at 0x44b18c
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xfffffeec
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x114
call fcn.00404aa8
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x44b1c8
cmp dword [esp + 0x10], 2
jne 0x44b1c2
cmp dword [esp + 4], 6
jae 0x44b1c6
xor ebx, ebx
jmp 0x44b1c8
mov bl, 1
mov eax, ebx
add esp, 0x114
pop ebx
ret

Function at 0x4812cc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
xor edx, edx
mov dword [ebp - 0x58], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x481373
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xc]
call fcn.0040ca90
test al, al
jne 0x48130b
push 0
push 0x481380
push 0x4813c4
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_MessageBoxW
jmp 0x48135d
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x10
call fcn.00404aa8
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetStartupInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x58]
mov dl, 1
mov eax, ebx
call fcn.00481764
mov eax, dword [ebp - 0x58]
call fcn.00407450
push eax
push 0
push 8
push 0
push 0
push 0
push 0x4814f0
mov eax, dword [ebx + 0xc]
call fcn.00407450
push eax
call sub.kernel32.dll_CreateProcessW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48137a
lea eax, [ebp - 0x58]
call fcn.004073b4
ret

Function at 0x481568
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x481631
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov dl, 1
mov eax, ebx
call fcn.00481764
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xc]
mov ecx, 0x48164c
call fcn.00407898
lea eax, [ebp - 8]
call fcn.00480a34
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
add eax, 0x30
mov ecx, 0x481674
call fcn.00407898
mov eax, dword [ebx + 0x14]
add eax, 0x5c
mov edx, dword [ebx + 0xc]
call fcn.004073c4
lea ecx, [ebp - 0xc]
mov dl, 1
mov eax, ebx
call fcn.00481764
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x14]
add eax, 0x48
mov ecx, 0x4816b4
call fcn.00407898
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x44], ebx
mov dword [eax + 0x40], 0x4814f4
mov dword [eax + 0x64], ebx
mov dword [eax + 0x60], 0x481540
mov dword [eax + 0x54], ebx
mov dword [eax + 0x50], 0x4816d0
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x38], 0x481750
call fcn.0040dba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481638
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004073bc
ret