joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78b2f392
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call sym.MSVCR100.dll__encoded_null
and dword [ebp - 0x14], 0
cmp dword [0x78b578d4], 0
mov dword [ebp - 0x18], eax
jne 0x78b2f445
push 0x78ae31dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x78b2f4ed
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x78b2f51c
push ebx
call edi
test eax, eax
je 0x78b2f4ed
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x78ae31cc
push ebx
mov dword [0x78b578d4], eax
call edi
push eax
call esi
push 0x78ae31b8
push ebx
mov dword [0x78b578d8], eax
call edi
push eax
call esi
push 0x78b2f500
push ebx
mov dword [0x78b578dc], eax
call edi
push eax
call esi
mov dword [0x78b578e4], eax
test eax, eax
je 0x78b2f445
push 0x78ae31a0
push ebx
call edi
push eax
call esi
mov dword [0x78b578e0], eax
mov eax, dword [0x78b578e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x78b2f49e
cmp dword [0x78b578e4], ecx
je 0x78b2f49e
push eax
call esi
push dword [0x78b578e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x78b2f49e
test ebx, ebx
je 0x78b2f49e
call edi
test eax, eax
je 0x78b2f495
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x78b2f495
test byte [ebp - 8], 1
jne 0x78b2f49e
or dword [ebp + 0x10], 0x200000
jmp 0x78b2f4d1
mov eax, dword [0x78b578d8]
cmp eax, dword [ebp - 0x18]
je 0x78b2f4d1
push eax
call esi
test eax, eax
je 0x78b2f4d1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x78b2f4d1
mov eax, dword [0x78b578dc]
cmp eax, dword [ebp - 0x18]
je 0x78b2f4d1
push eax
call esi
test eax, eax
je 0x78b2f4d1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x78b578d4]
call esi
test eax, eax
je 0x78b2f4ed
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x78b2f4ef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab07a7
leave
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x8d8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8d81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8d807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d806a
add dl, dl
jne 0x8d8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d80dc
xor eax, eax
add dl, dl
jne 0x8d8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d817d
add dl, dl
jne 0x8d80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8d80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8d8075
mov eax, 1
add dl, dl
jne 0x8d80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d80e1
sub eax, ebx
mov ebx, 1
jne 0x8d8128
mov ecx, 1
add dl, dl
jne 0x8d810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8d813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d8136
cmp eax, 0x7d00
jae 0x8d816d
cmp eax, 0x500
jb 0x8d8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d8075
cmp eax, 0x7f
ja 0x8d8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8d819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8d8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40a390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40a39f
pop dword [ebp - 0x38]
mov eax, 0x4a6de45e
sub eax, 0x4a2d40bf
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x9dade10f
add dword [ebp - 0x48], 0xb0a4643c
mov dword [ebp - 0x44], 0x539e4eb8
sub dword [ebp - 0x44], 0x216b0273
mov dword [ebp - 0x40], 0xcbbfb51d
sub dword [ebp - 0x40], 0x7f7370ef
mov dword [ebp - 0x3c], 0x3281d27d
sub dword [ebp - 0x3c], 0x3281d27d
lea eax, [ebp - 0x48]
push eax
mov eax, 0x1bd3dd8c
add eax, 0xe46d5304
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xf446ed8
sub dword [ebp - 0x48], 0x9ad20582
mov dword [ebp - 0x44], 0x8456de6
add dword [ebp - 0x44], 0x3926f38f
mov dword [ebp - 0x40], 0xedfb029a
sub dword [ebp - 0x40], 0x8a8b962e
mov dword [ebp - 0x3c], 0x83c2a6c9
sub dword [ebp - 0x3c], 0x83c2a6c9
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x5906ad24
add eax, 0xa73a8318
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3b440
push 0
call eax
mov ecx, 0x6d22203e
sub ecx, 0x6d21d557
mov esi, eax
mov edx, 0x41a000
add edx, dword [ebp - 0x38]
mov edi, 0xaee43d6b
sub edi, 0x1388592a
add dword [ebp - 0x1c], 0xe3f59ee
mov ebx, dword [edx]
xor ebx, edi
mov dword [ebp - 0x34], 0xea563d62
mov dword [esi], ebx
sub dword [ebp - 4], edx
add esi, 0xf832df94
sub esi, 0xf832df90
add edx, 0x7afca220
sub edx, 0x7afca21c
loop 0x40a4bb
add eax, 0x11e6f
mov ebx, eax
add eax, 5
mov ecx, 0xac60d57
add ecx, 0xf579f2a9
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x410280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41029c
mov dword [eax], ecx
jmp 0x41029e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410310
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x41b4cf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b56c
push ebx
push esi
call fcn.0041b498
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a11d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b519
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b56b
push edi
push eax
call fcn.00418162
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b539
call fcn.00414f3c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b56a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a11d
add esp, 0x20
test eax, eax
jne 0x41b558
push edi
call fcn.00414f3c
jmp 0x41b560
push ebx
call fcn.00414f3c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x422ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422d0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422d0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x58b888
push eax
push dword fs:[0]
pop eax
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xe7
mov dword [0x98c0ec09], eax
mov eax, dword [0xf6a8b15c]
jecxz 0x401003
xor dword [ecx], ecx
iretd
ljmp 0x2bdb:0xc41a7522
jne 0x40109c
invalid
mov ch, byte [edx + 0x477bf67f]
jle 0x4010d4
salc
rcr cl, 1
cwde
add al, 0x60
sub byte [ecx + 0x485b75a6], bh
adc byte [eax], cl
xor eax, 0x4156615a
clc
or edi, dword [esi + 0x54]
xchg byte [ebx + 0x456a3141], bl
adc dword [edx + 0x30], ecx
jno 0x401110
sbb ebx, edi
cmp al, 0x6e
jae 0x40107e
out dx, al
aad 0x69
sub dword [edi + 0x33], ebx
retf
push ebp
mov cs, edx
mov bl, byte [edx + 0x3812e7a7]
adc eax, 0x31bdc80d
movsd dword es:[edi], dword [esi]
fild qword [eax]
add ch, al
cmpsd dword [esi], dword es:[edi]
dec eax
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
mov ecx, 0x7a0917fb
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x59b3043d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x401330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40134b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401382
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40137e
jmp 0x401370
cmp esi, eax
jae 0x401382
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401370
cmp esi, eax
jb 0x401389
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x453d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi + 0x20]
lea edi, [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcW]
lea ebx, [esi + 0x54]
push ebx
push 0x445c9c
mov ecx, edi
mov dword [ebp - 0x21c], eax
call fcn.00401d10
test eax, eax
js 0x408397
mov edx, dword [ebx]
lea eax, [esi + 0x24]
cmp dword [eax + 0x28], 0xfefefefe
lea ecx, [eax + 0x28]
je 0x40838a
push 0x80004005
call fcn.00401240
push ecx
push 0x448e9c
push eax
push edx
call fcn.00401f50
mov ebx, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [edx + 0xf0]
push 0xffffffffffffffff
push ebx
call eax
lea ecx, [ebp - 0x214]
push ecx
xor ebx, ebx
push 0x445dec
mov ecx, edi
mov dword [ebp - 0x214], ebx
call fcn.00401ca0
test eax, eax
js 0x4083e7
mov eax, dword [ebp - 0x214]
mov edx, dword [eax]
push 0x4000c
push eax
mov eax, dword [edx + 0x64]
call eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x74]
push ebx
push eax
call edx
mov eax, dword [esi + 0x68]
mov ecx, dword [edi]
lea edx, [ebp - 0x210]
mov dword [eax + 0x2c], ecx
mov esi, dword [esi + 0x68]
push edx
push 0x4456a8
mov ecx, edi
mov dword [ebp - 0x210], ebx
call fcn.00401ca0
test eax, eax
js 0x40841e
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push eax
call edx
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x408430
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x218], 0x1b207
mov word [ebp - 0x20c], ax
call fcn.0042d580
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x210]
call fcn.00408290
mov esi, dword [ebp - 0x210]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea ecx, [ebp - 0x218]
push ecx
push 4
push esi
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push SysReAllocString
call edi
push 4
lea edx, [ebp - 0x218]
push edx
push 4
push esi
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x214]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x4084f8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
xor ecx, ebp
call fcn.0042d3b1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b920
Capabilities:
Create http request
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
jne 0x40b961
push str.Internet_open_failed_
push 0x4568a0
call fcn.0040ac80
push eax
call fcn.0040b8c0
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
push 0
push 0x102
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [esi + 8], eax
test eax, eax
jne 0x40b9ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Internet_open_url_failed__Error_code_
push 0x4568a0
call fcn.0040ac80
add esp, 8
mov ecx, eax
call fcn.0040a510
push eax
call fcn.0040b8c0
mov edx, dword [esi + 4]
add esp, 4
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
push 0
lea ecx, [ebp - 4]
push ecx
lea edi, [esi + 0xc]
push edi
push 0x20000013
push eax
mov dword [ebp - 4], 4
call ebx
mov edx, dword [edi]
push edx
push str.Status:
push 0x4568a0
call fcn.0040ac80
add esp, 8
mov ecx, eax
call fcn.0040a510
push eax
call fcn.0040b8c0
mov ecx, dword [esi + 8]
add esp, 4
push 0
lea eax, [ebp - 8]
push eax
lea edi, [esi + 0x10]
push edi
push 0x20000005
push ecx
mov dword [ebp - 8], 4
call ebx
mov edx, dword [edi]
push edx
push str.File_size:
push 0x4568a0
call fcn.0040ac80
add esp, 8
mov ecx, eax
call fcn.0040a330
push eax
call fcn.0040b8c0
mov eax, dword [ebp + 0x10]
add esp, 4
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
mov dword [esi + 0x14], eax
pop ebx
cmp eax, 0xffffffff
jne 0x40ba8b
push str.Create_file_failed_
push 0x4568a0
call fcn.0040ac80
push eax
call fcn.0040b8c0
mov ecx, dword [esi + 8]
add esp, 0xc
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e8b0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov word [ebp - 4], bx
mov byte [ebp - 2], al
mov byte [ebp - 1], 1
mov edx, dword [ebp - 4]
mov dword [edi + 0x1c], ecx
mov dword [edi + 8], edx
cmp dword [edi + 4], ebx
je 0x40e8f7
cmp dword [edi + 0x18], ebx
je 0x40e8f7
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, dword [edi + 0x10]
jg 0x40e8f7
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
cmp ecx, dword [edi + 0x14]
jle 0x40e90a
push 0
push 0
push 0
push 0x446408
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ebx, eax
cmp dword [edi + 4], 0
jne 0x40e924
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e91a
push eax
jmp 0x40e91b
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 4], eax
cmp dword [edi + 0x18], 0
je 0x40e957
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, dword [edi + 0x10]
jg 0x40e93f
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
cmp ecx, dword [edi + 0x14]
jle 0x40e9be
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xc
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x20
jne 0x40e97c
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [edi + 0x18], eax
cmp dword [edi + 0x18], 0
jne 0x40e99c
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
push 0x20
push eax
push ecx
call fcn.00414b50
add esp, 0xc
mov dword [edi + 0x18], eax
mov edx, dword [esi + 8]
sub edx, dword [esi]
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0xc]
mov edx, dword [edi + 4]
sub eax, dword [esi + 4]
push ecx
push edx
mov dword [edi + 0x14], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [edi + 0xc], eax
test ebx, ebx
je 0x40e9cb
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebx, ebx
cmp dword [edi + 0x1c], 0
jne 0x40ea01
mov edx, dword [ebp + 8]
test edx, edx
je 0x40ea1e
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esi + 0xc]
sub edx, eax
mov eax, dword [esi + 8]
push edx
sub eax, ecx
mov ecx, dword [edi + 4]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x40ea1e
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov ecx, dword [edi + 4]
push 0x42
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
test ebx, ebx
je 0x40ea29
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x415300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x415423
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x415423
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0042d050
add esp, 0xc
lea edx, [ebp + 0x10]
push edx
xor ebx, ebx
push ebx
push edi
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x415415
mov dword [ebp - 4], ebx
push 0x10
mov ebx, eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4153bc
lea eax, [ebp + 8]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov ecx, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x4153be
xor esi, esi
mov eax, dword [esi + 4]
push 0xff000000
lea edx, [ebp - 4]
push edx
push eax
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x4153d7
mov dword [esi + 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
test eax, eax
je 0x415407
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0xc]
push eax
call fcn.004150a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc