joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4765c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4b000]
push edi
or ebp, 0xffffffff
jmp 0x4765e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4765e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4765d8
mov eax, 1
add ebx, ebx
jne 0x4765fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47660c
jne 0x47662b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47662b
dec eax
add ebx, ebx
jne 0x476618
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4765f0
add ebx, ebx
jne 0x476627
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47667d
xor ecx, ecx
sub eax, 3
jb 0x476643
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4766b2
sar eax, 1
mov ebp, eax
jmp 0x47664e
add ebx, ebx
jne 0x47664e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47661c
inc ecx
add ebx, ebx
jne 0x47665c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47661c
add ebx, ebx
jne 0x476669
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47665e
jne 0x47667a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47665e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47669c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47668e
jmp 0x4765de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47669c
add edi, ecx
jmp 0x4765de
pop esi
mov edi, esi
mov ecx, 0x2aee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4766ba
cmp byte [edi], 0x26
jne 0x4766ba
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 al, bl
loop 0x4766bf
lea edi, [esi + 0x73000]
mov eax, dword [edi]
or eax, eax
je 0x476737
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x779d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x77ae8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4766ec
mov ecx, edi
jns 0x47671b
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 + 0x77aec]
or eax, eax
je 0x476731
mov dword [ebx], eax
add ebx, 4
jmp 0x476709
call dword [esi + 0x77af4]
mov ebp, dword [esi + 0x77af0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47676b
sub esp, 0xffffff80
jmp 0x4422e4
Function at 0x4fe530
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa7000]
push edi
jmp 0x4fe54a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fe551
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe540
mov eax, 1
add ebx, ebx
jne 0x4fe563
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fe574
jne 0x4fe593
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe593
dec eax
add ebx, ebx
jne 0x4fe580
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fe558
add ebx, ebx
jne 0x4fe58f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fe5e5
xor ecx, ecx
sub eax, 3
jb 0x4fe5ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fe61a
sar eax, 1
mov ebp, eax
jmp 0x4fe5b6
add ebx, ebx
jne 0x4fe5b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe584
inc ecx
add ebx, ebx
jne 0x4fe5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe584
add ebx, ebx
jne 0x4fe5d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fe5c6
jne 0x4fe5e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fe5c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fe604
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fe5f6
jmp 0x4fe546
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fe604
add edi, ecx
jmp 0x4fe546
pop esi
mov edi, esi
mov ecx, 0x3e8b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fe622
cmp byte [edi], 0x11
jne 0x4fe622
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 al, bl
loop 0x4fe627
lea edi, [esi + 0xfa000]
mov eax, dword [edi]
or eax, eax
je 0x4fe69f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x128710]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1288b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fe654
mov ecx, edi
jns 0x4fe683
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 + 0x1288bc]
or eax, eax
je 0x4fe699
mov dword [ebx], eax
add ebx, 4
jmp 0x4fe671
call dword [esi + 0x1288b8]
mov ebp, dword [esi + 0x1288c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fe6d3
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401087
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
mov eax, ebx
lea ecx, [ebp - 0x10c]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401070
test dl, dl
je 0x40106c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401070
add ecx, 2
add eax, 2
test dl, dl
jne 0x401050
xor eax, eax
jmp 0x401075
sbb eax, eax
or eax, 1
test eax, eax
je 0x4010a1
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x401046
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401540
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401540
mov esp, ebp
pop ebp
ret
Function at 0x4056b8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00405378
Function at 0x4011e0
Capabilities:
Resume thread

Disassembly:
mov dword [ecx], 0
jmp fcn.00401100

Function at 0x4014a0
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 0x4014bb
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 0x4014f2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4014ee
jmp 0x4014e0
cmp esi, eax
jae 0x4014f2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014e0
cmp esi, eax
jb 0x4014f9
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 0x403450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568809
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov edi, 1
mov dword [ebp - 4], edi
call fcn.0044c93b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4034a1
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
call fcn.0044c93b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4034ce
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x5e3c90
mov dword [ebp - 0x14], edi
call fcn.004261a0
mov edi, dword [eax]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov byte [ebp - 4], 3
jge 0x40351a
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00401de0
mov esi, dword [ebp - 0x10]
mov eax, 0x400
cmp dword [esi - 8], eax
jge 0x40352e
push 0x80070057
call fcn.00401330
push edi
push eax
push esi
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + 0x800], dx
mov eax, dword [ebp + 0xc]
push 0x580060
push eax
push str.Images
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403574
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0054d87f
add esp, 8
test eax, eax
js 0x403524
cmp eax, dword [esi - 8]
jg 0x403524
xor ecx, ecx
mov dword [esi - 0xc], eax
lea edx, [ebp - 0x18]
mov word [esi + eax*2], cx
push edx
mov ecx, 0x5e3c90
call fcn.004276d0
mov eax, dword [eax]
push esi
push eax
push 0x580044
push ebx
mov byte [ebp - 4], 4
call fcn.00403430
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40361d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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 0x403da0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5e2500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.004016c0
mov ecx, dword [esi + 0xb8]
xor edi, edi
cmp ecx, edi
je 0x403dd8
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0xb8], edi
mov ecx, dword [esi + 0x1f8]
cmp ecx, edi
je 0x403df0
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x1f8], edi
mov eax, dword [esi + 0x1c4]
push edi
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
call fcn.00454c09
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403e3b
mov edx, dword [esi + 0x1c4]
push edx
call ebx
mov eax, dword [esi + 0x1c8]
push edi
lea ecx, [ebp - 0x230]
push ecx
push eax
call fcn.00454c09
test eax, eax
je 0x403e5c
mov edx, dword [esi + 0x1c8]
push edx
call ebx
mov dword [esi + 0x50], edi
cmp dword [0x5e3990], edi
jle 0x403e71
mov ecx, 0x5e3984
call fcn.004039a0
push edi
push 0x212
mov ecx, 0x5e3e78
call fcn.0042d7b0
push str.___________End____________n
push 0x5e3e78
call fcn.0042bca0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054dc83
mov esp, ebp
pop ebp
ret
Function at 0x404b70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x580060
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call fcn.00404670
push str.GetCheckAdmin
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00404670
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x5e3c90
mov byte [ebp - 4], 1
call fcn.004261a0
mov esi, dword [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
mov byte [ebp - 4], 2
jge 0x404bfd
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00401de0
mov edx, dword [ebp - 0x10]
cmp dword [edx - 8], 0x400
mov eax, edx
jge 0x404c12
push 0x80070057
call fcn.00401330
push esi
push 0x400
push eax
push 0x580060
mov dword [edx - 0xc], 0x400
mov edx, dword [ebp - 0x10]
push 0x58034c
xor ecx, ecx
push 0x580298
mov word [edx + 0x800], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0054d87f
add esp, 8
test eax, eax
js 0x404c08
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x404c08
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x10]
mov ecx, 0x580348
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404cba
test dx, dx
je 0x404cb6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404cba
add eax, 4
add ecx, 4
test dx, dx
jne 0x404c94
xor eax, eax
jmp 0x404cbf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x404ce7
mov eax, dword [ebp - 0x14]
push str.Admin_rights_needed_for_extraction
push eax
push 8
push 0x5e3e78
mov esi, 1
call fcn.0042b490
add esp, 0x10
jmp 0x404cea
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4069f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568d18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.BOTTOMImage
call fcn.00404670
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00403450
mov ecx, dword [ebp - 0x10]
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404670
push str.temp
mov byte [ebp - 4], 1
call fcn.0054de3f
add esp, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.00403c60
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
push eax
add esi, 0x1c8
push 0x580834
push esi
mov byte [ebp - 4], 2
call fcn.00403430
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406aa5
lea edx, [ebp - 0x10]
push edx
mov ecx, esi
call fcn.00403380
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406aeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406b30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568d18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.TopImage
call fcn.00404670
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00403450
mov ecx, dword [ebp - 0x10]
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404670
push str.temp
mov byte [ebp - 4], 1
call fcn.0054de3f
add esp, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.00403c60
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
push eax
add esi, 0x1c4
push 0x580834
push esi
mov byte [ebp - 4], 2
call fcn.00403430
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406be5
lea edx, [ebp - 0x10]
push edx
mov ecx, esi
call fcn.00403380
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409c10
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5692d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00453018
call fcn.0045f83d
mov eax, dword [eax + 8]
push 0x390
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov eax, dword [esi + 0x20]
push edi
push 0
push 0x80
push eax
call ebx
mov ecx, dword [esi + 0x20]
push edi
push 1
push 0x80
push ecx
call ebx
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x5e3c90
call fcn.00426320
mov eax, dword [eax]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0045e5ce
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409cba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.00409a90
mov ecx, dword [esi + 0xb4]
push 0
push 0x32
push 0xc5
push ecx
call ebx
lea ecx, [esi + 0x94]
call fcn.0045e8ba
push 0x41e
mov ecx, esi
call fcn.0045e48e
mov ecx, eax
call fcn.0045e8ba
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e470
Capabilities:
Suspend thread

Disassembly:
mov ecx, 0x5e3a5c
jmp fcn.00401030

Function at 0x40e490
Capabilities:
Resume thread

Disassembly:
mov ecx, 0x5e3a5c
jmp fcn.00401040
Function at 0x420ba0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b400
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00453018
call fcn.0045f83d
mov eax, dword [eax + 8]
push 0x390
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [esi + 0x20]
push ebx
push 0
push 0x80
push eax
call edi
mov ecx, dword [esi + 0x20]
push ebx
push 1
push 0x80
push ecx
call edi
push 0x5e3afc
lea ebx, [esi + 0x94]
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, ebx
call fcn.004522ed
push 0x416
mov ecx, esi
call fcn.0045e48e
test ebx, ebx
jne 0x420c34
xor ecx, ecx
jmp 0x420c37
mov ecx, dword [ebx + 4]
mov edx, dword [eax + 0x20]
push 1
push ecx
push 0x30
push edx
call edi
cmp dword [esi + 0x9c], 1
jne 0x420d01
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x5e3c90
call fcn.00426320
mov eax, dword [eax]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0045e5ce
mov eax, dword [ebp - 0x14]
or ebx, 0xffffffff
add eax, 0xfffffff0
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420c92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x13c]
push 0x640000
push 0
push 0x401
push ecx
call edi
mov edx, dword [esi + 0x13c]
push 0
push 1
push 0x402
push edx
call edi
push 0x1fb
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x5e3c90
call fcn.00426f10
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [esi + 0xa8]
mov dword [ebp - 4], 1
call fcn.0045e5ce
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x420d01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.00420900
mov eax, 1
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4210c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4211d5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4211d5
mov edx, dword [ebp + 0x10]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4211d5
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0xbc], eax
test eax, eax
je 0x4211d5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4211be
push ebx
push edi
push eax
call fcn.0054eee0
mov ecx, dword [esi + 0xbc]
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
xor edi, edi
push edi
push ecx
mov dword [ebp + 0x10], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4211b1
mov edx, dword [ebp + 0x10]
push edi
push edx
call fcn.00421060
mov dword [esi + 0xb8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, dword [esi + 0xb8]
cmp eax, edi
je 0x4211b1
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
jne 0x421199
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
mov ecx, dword [esi + 0xb8]
cmp ecx, edi
je 0x4211ab
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0xb8], edi
mov eax, dword [esi + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi + 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0xbc], 0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc