joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006bffd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006c056
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1006bffd
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1006c00c
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10471caf
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1006c05d
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10052ed3
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1006c0fc
add edi, 4
add eax, 2
dec ecx
jne 0x1006c042
call 0x1006c0a9
loope 0x1006c09f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1006c0f9
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1006c10a
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1006c0bd
cmp eax, ecx
ja 0x1006c0bd
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1006c147
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1006c13d
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100533b2
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1006c00c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006c056
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1006bffd
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1006c00c
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10471caf
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1006c05d
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10052ed3
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1006c0fc
add edi, 4
add eax, 2
dec ecx
jne 0x1006c042
call 0x1006c0a9
loope 0x1006c09f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1006c0f9
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1006c10a
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1006c0bd
cmp eax, ecx
ja 0x1006c0bd
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1006c147
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1006c13d
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100533b2
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446004]
jne 0x401010
repz ret
jmp fcn.004017a2

Function at 0x407b95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405276
and dword [ebp - 4], 0
cmp dword [0x44825c], 0
mov ebx, eax
jne 0x407c46
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407cf7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407cf7
push eax
call fcn.00405204
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44825c], eax
call esi
push eax
call fcn.00405204
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x448260], eax
call esi
push eax
call fcn.00405204
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x448264], eax
call esi
push eax
call fcn.00405204
pop ecx
mov dword [0x44826c], eax
test eax, eax
je 0x407c46
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405204
pop ecx
mov dword [0x448268], eax
mov eax, dword [0x448268]
cmp eax, ebx
je 0x407c9e
cmp dword [0x44826c], ebx
je 0x407c9e
push eax
call fcn.0040527f
push dword [0x44826c]
mov esi, eax
call fcn.0040527f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407c9e
test edi, edi
je 0x407c9e
call esi
test eax, eax
je 0x407c95
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407c95
test byte [ebp - 0xc], 1
jne 0x407c9e
or dword [ebp + 0x10], 0x200000
jmp 0x407cd7
mov eax, dword [0x448260]
cmp eax, ebx
je 0x407cd7
push eax
call fcn.0040527f
pop ecx
test eax, eax
je 0x407cd7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407cd7
mov eax, dword [0x448264]
cmp eax, ebx
je 0x407cd7
push eax
call fcn.0040527f
pop ecx
test eax, eax
je 0x407cd7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44825c]
call fcn.0040527f
pop ecx
test eax, eax
je 0x407cf7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407cf9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebx], 0
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401fe4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
test eax, eax
je 0x401fdd
add eax, 2
push eax
call fcn.0040ca2a
mov dword [ebx], eax
mov ecx, dword [esi]
add ecx, 2
push ecx
push 0
push eax
call fcn.0040ef40
mov eax, dword [esi]
mov ecx, dword [ebx]
add esp, 0x10
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ecx
ret

Function at 0x401ff0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4251d0]
xor eax, esp
mov dword [esp + 0x414], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x20c]
push ecx
push 0
push 0x41e024
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea ecx, [esp + 0x210]
call fcn.00402500
mov ecx, dword [esp + 0x414]
xor ecx, esp
mov eax, esi
call fcn.0040cec7
add esp, 0x418
ret

Function at 0x4020e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4020f7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402128
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402124
cmp esi, eax
jae 0x402128
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402114
cmp esi, eax
jb 0x40212e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4026b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41b7a9
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4251d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.W3Client.0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov dword [esp + 0x14], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
lea eax, [esi + 0x88]
push eax
mov byte [esp + 0x18], 3
call fcn.00403700
lea ecx, [esi + 0xa4]
push ecx
mov byte [esp + 0x18], 4
call fcn.00403700
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4028a0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2218
call fcn.00419010
mov eax, dword [0x4251d0]
xor eax, esp
mov dword [esp + 0x2214], eax
xor eax, eax
test esi, esi
je 0x4029e9
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov dword [esp + 0x10], 1
mov word [esp + 0x18], ax
call fcn.0040ef40
xor edx, edx
push 0x1ffe
push edx
lea eax, [esp + 0x22a]
push eax
mov word [esp + 0x22c], dx
call fcn.0040ef40
add esp, 0x18
lea ecx, [esp]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Desktop.exe
push 0x80000002
mov dword [esp + 0x18], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40295c
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40295c
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.0040d75b
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x40298e
push 0x104
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.0040d75b
add esp, 8
xor edx, edx
mov word [eax + 2], dx
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402995
sub eax, edx
sar eax, 1
jne 0x4029bd
xor eax, eax
mov ecx, dword [esp + 0x2214]
xor ecx, esp
call fcn.0040cec7
add esp, 0x2218
ret
push 0x1000
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4029a6
lea eax, [esp + 0xc]
mov edx, esi
call fcn.00402840
mov eax, 1
mov ecx, dword [esp + 0x2214]
xor ecx, esp
call fcn.0040cec7
add esp, 0x2218
ret
Function at 0x402a00
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x41bac2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4251d0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov eax, dword [0x4251d0]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x228], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x4272cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4272cc
mov dword [esp + 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
push 0x206
lea ecx, [esp + 0x1a]
mov dword [esp + 0x22c], ebx
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], ax
call fcn.0040ef40
add esp, 0xc
lea esi, [esp + 0x14]
call fcn.004028a0
test eax, eax
je 0x402ad1
push str.360verify.dll
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ad1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402ab4
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x14]
mov ebx, eax
push ecx
mov eax, edi
call fcn.00402420
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040cec7
add esp, 0x220
ret
Function at 0x4034d0
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
push 0
push 0
push eax
push 0x403260
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403503
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x4045e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
cmp byte [esi + 0x38], 0
push edi
mov edi, 0x10
je 0x4046fe
cmp dword [esi + 0x34], edi
jb 0x404600
mov ecx, dword [esi + 0x20]
jmp 0x404603
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x40460d
mov eax, dword [esi + 4]
jmp 0x404610
lea eax, [esi + 4]
push ebp
mov ebp, dword [esp + 0x1c]
push ecx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push ebp
call fcn.0040d8e8
mov eax, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404632
mov ecx, dword [esi + 0x30]
add ecx, dword [esi + 0x14]
sub eax, edx
push ebx
lea ebx, [ecx + eax + 0x3c]
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x34], edi
jb 0x404654
mov esi, dword [esi + 0x20]
jmp 0x404657
add esi, 0x20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x40475b
cmp edi, 0xffffffff
je 0x40475b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea edx, [esp + 0x14]
push edx
push 0x400
add ebx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call ebp
test eax, eax
je 0x4046d7
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4046d7
cmp esi, dword [esp + 0x14]
ja 0x4046d7
push 0
add esi, eax
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esi + ebx]
push ecx
push edi
call ebp
test eax, eax
jne 0x4046b0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esi, edx
mov eax, 0xa0d
push edi
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
lea eax, [esi + 2]
pop esi
add esp, 0xc
ret 4
cmp dword [esi + 0x34], edi
jb 0x404708
mov ecx, dword [esi + 0x20]
jmp 0x40470b
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x404715
mov eax, dword [esi + 4]
jmp 0x404718
lea eax, [esi + 4]
mov edx, dword [esp + 0x18]
push ecx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push edx
call fcn.0040d8e8
mov eax, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
add esp, 0x14
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404740
mov ecx, dword [esi + 0x30]
sub eax, edx
add ecx, dword [esi + 0x14]
pop edi
lea eax, [ecx + eax + 0x31]
pop esi
add esp, 0xc
ret 4
mov eax, ebx
pop ebx
pop ebp
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x405770
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [edi + 0xa0], eax
jbe 0x405879
mov eax, dword [edi + 0x9c]
mov ecx, dword [eax]
mov ebx, dword [edi + 0x88]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], ecx
jmp 0x4057b0
mov esi, dword [edi + 0x9c]
mov eax, dword [edi + 0x88]
test ebx, ebx
je 0x4057c4
cmp ebx, eax
je 0x4057c9
call fcn.0040d44b
cmp dword [esp + 0x18], esi
je 0x405875
test ebx, ebx
jne 0x405804
call fcn.0040d44b
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x4057ec
call fcn.0040d44b
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
cmp byte [eax + 0x38], 0
je 0x405840
cmp dword [eax + 0x34], 0x10
jb 0x405808
mov eax, dword [eax + 0x20]
jmp 0x40580b
mov eax, dword [ebx]
jmp 0x4057de
add eax, 0x20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x405845
mov esi, 0x2000
add dword [esp + 0x10], esi
test ebx, ebx
jne 0x405871
call fcn.0040d44b
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x405862
call fcn.0040d44b
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
jmp 0x4057b0
mov eax, dword [ebx]
jmp 0x405854
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x405e30
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b680
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4251d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
cmp eax, ecx
jne 0x405e82
push 0x423100
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], str.connection_failed...
call fcn.0040ea9b
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x64
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405ec6
push 0x423100
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], str.response_failed...
call fcn.0040ea9b
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0xc], 0
mov eax, 0x405ec6
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x407d70
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.0040fe40
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x407d3f
sub eax, ebp
jmp 0x407d41
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x407d30
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x407d60
sub eax, ebp
jmp 0x407d62
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x407d51
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x407e2a
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x407d98
mov ebx, ecx
test ebx, ebx
je 0x407dec
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x407dba
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00406a20
jmp 0x407dd3
cmp eax, 2
jne 0x407dda
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x407dcc
xor eax, eax
jmp 0x407dd7
mov edx, ebx
call fcn.00406c80
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0040fe40
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x407e16
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x407e2a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x407cf0
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40a900
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp dword [esi + 0x4090], 0
je 0x40a9af
cmp dword [esi + 0x6c], 0
jbe 0x40a9af
push ebx
push ebp
mov ebp, 0xffffff78
push edi
lea edi, [esi + 0x88]
sub ebp, esi
jmp 0x40a930
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebx, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebx + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
shr eax, 8
xor byte [edi], al
inc edi
lea ecx, [edi + ebp]
cmp ecx, dword [esi + 0x6c]
jb 0x40a930
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x40a9da
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40b5b0
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40cec7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4251d0]
jne 0x40ced1
repz ret
jmp fcn.0040f1e5

Function at 0x418c76
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040f45a
and dword [ebp - 4], 0
cmp dword [0x427e00], 0
mov ebx, eax
jne 0x418d27
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418dd8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418dd8
push eax
call fcn.0040f3e8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427e00], eax
call esi
push eax
call fcn.0040f3e8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427e04], eax
call esi
push eax
call fcn.0040f3e8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427e08], eax
call esi
push eax
call fcn.0040f3e8
pop ecx
mov dword [0x427e10], eax
test eax, eax
je 0x418d27
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f3e8
pop ecx
mov dword [0x427e0c], eax
mov eax, dword [0x427e0c]
cmp eax, ebx
je 0x418d7f
cmp dword [0x427e10], ebx
je 0x418d7f
push eax
call fcn.0040f463
push dword [0x427e10]
mov esi, eax
call fcn.0040f463
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418d7f
test edi, edi
je 0x418d7f
call esi
test eax, eax
je 0x418d76
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418d76
test byte [ebp - 0xc], 1
jne 0x418d7f
or dword [ebp + 0x10], 0x200000
jmp 0x418db8
mov eax, dword [0x427e04]
cmp eax, ebx
je 0x418db8
push eax
call fcn.0040f463
pop ecx
test eax, eax
je 0x418db8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418db8
mov eax, dword [0x427e08]
cmp eax, ebx
je 0x418db8
push eax
call fcn.0040f463
pop ecx
test eax, eax
je 0x418db8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427e00]
call fcn.0040f463
pop ecx
test eax, eax
je 0x418dd8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418dda
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret