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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1301b9be
xor ebx, ebx
cmp dword [0x13037450], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x13026339
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x13026419
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x13026419
push eax
call fcn.1301b950
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x13037450], eax
call esi
push eax
call fcn.1301b950
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x13037454], eax
call esi
push eax
call fcn.1301b950
mov dword [0x13037458], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1301ee22
test eax, eax
pop ecx
pop ecx
je 0x13026307
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.130175b6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x13026339
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1301b950
cmp eax, ebx
pop ecx
mov dword [0x13037460], eax
je 0x13026339
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1301b950
pop ecx
mov dword [0x1303745c], eax
mov eax, dword [0x1303745c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x130263be
cmp dword [0x13037460], ecx
je 0x130263be
push eax
call fcn.1301b9c7
push dword [0x13037460]
mov esi, eax
call fcn.1301b9c7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x130263be
cmp edi, ebx
je 0x130263be
call esi
cmp eax, ebx
je 0x1302638b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1302638b
test byte [ebp - 0x18], 1
jne 0x130263be
lea eax, [ebp - 0x10]
push eax
call fcn.1301ee59
test eax, eax
pop ecx
je 0x130263a6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.130175b6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x130263b5
or dword [ebp + 0x10], 0x200000
jmp 0x130263f9
or dword [ebp + 0x10], 0x40000
jmp 0x130263f9
mov eax, dword [0x13037454]
cmp eax, dword [ebp - 8]
je 0x130263f9
push eax
call fcn.1301b9c7
cmp eax, ebx
pop ecx
je 0x130263f9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x130263f9
mov eax, dword [0x13037458]
cmp eax, dword [ebp - 8]
je 0x130263f9
push eax
call fcn.1301b9c7
cmp eax, ebx
pop ecx
je 0x130263f9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x13037450]
call fcn.1301b9c7
cmp eax, ebx
pop ecx
je 0x13026419
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1302641b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5e8
mov al, byte [esp + 0xb9]
push ebx
mov bl, byte [esp + 0xf6]
lea ecx, [esp + 0x12c]
not al
mov byte [esp + 0xbc], al
mov al, byte [esp + 0xf5]
and al, bl
mov dword [esp + 0x168], ecx
mov ecx, dword [esp + 0xb4]
mov byte [esp + 0xbd], al
mov eax, dword [esp + 0x150]
mov ebx, dword [esp + 0x104]
sub ecx, eax
lea edx, [esp + 0xf4]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x134]
imul ecx, eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x128], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0xe8]
and edx, ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
mov esi, dword [esp + 0x150]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x104]
push edi
add ecx, eax
xor edi, edi
add ebp, 4
or edx, esi
mov dword [esp + 0xec], ecx
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0xfe
mov dword [esp + 0x144], ebp
mov dword [esp + 0xb4], edx
call fcn.00401fd0
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov al, byte [esp + 0x19d]
mov ecx, ebx
shl ebp, cl
and al, byte [esp + 0x1a9]
mov byte [esp + 0x1bd], al
lea ecx, [esp + 0x1d0]
call fcn.00405de0
lea ecx, [esp + 0x1d0]
call fcn.00405dc0
lea ecx, [esp + 0x54]
call fcn.00401000
mov esi, dword [edi + 0x4585fe]
lea ecx, [esp + 0x450]
call fcn.004021b0
lea ecx, [esi + 1]
mov dl, byte [esp + 0x1bd]
mov eax, ecx
shr eax, 0x17
shl ecx, 9
or eax, ecx
mov ecx, eax
shl ecx, 0x1d
shr eax, 3
or ecx, eax
mov al, byte [esp + 0x19c]
or al, dl
not ecx
mov byte [esp + 0x19c], al
mov esi, ecx
mov eax, ebp
mov ecx, ebx
shr eax, cl
mov ebx, eax
lea eax, [ebp + ebp]
test ebx, ebx
je 0x408de8
xor edx, edx
div ebx
mov eax, edx
mov cl, byte [esp + 0x18]
mov dl, byte [esp + 0x19]
not eax
or cl, dl
mov ebp, eax
mov al, cl
mov dword [esp + 0x10], 0x24
sub al, dl
mov dword [esp + 0x10], 0
not al
not cl
mov dl, al
mov al, cl
sub al, dl
and al, cl
add cl, al
and al, cl
lea ecx, [esp + 0x304]
shl al, 1
mov byte [esp + 0x19], al
not al
mov byte [esp + 0x18], al
call fcn.00407b40
mov dl, byte [esp + 0x27]
lea ecx, [esp + 0x4d]
not dl
lea eax, [esp + 0x27]
mov dword [esp + 0x38], ecx
mov cl, byte [esp + 0x4c]
mov byte [esp + 0x4a], dl
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x24]
mov edx, esi
add cl, al
shr edx, 0x14
shl esi, 0xc
mov byte [esp + 0x27], cl
or edx, esi
not al
lea ecx, [esp + 0x260]
mov byte [esp + 0x24], al
mov dword [edi + 0x4585fe], edx
call fcn.00406b00
add edi, 4
cmp edi, 0x2ca8
jl 0x408d6d
lea ecx, [esp + 0x51c]
call fcn.00404b20
lea ecx, [esp + 0x208]
call fcn.00405940
push 0x458a16
lea ecx, [esp + 0x58]
call fcn.00401310
push 0x4585fe
lea ecx, [esp + 0x58]
call fcn.00401350
mov al, byte [esp + 0x3c]
mov cl, byte [esp + 0x48]
add al, cl
mov cl, byte [esp + 0x4b]
not cl
mov byte [esp + 0x4b], cl
lea ecx, [esp + 0x398]
mov byte [esp + 0x30], al
call fcn.00403a60
lea ecx, [esp + 0x208]
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0xff
call fcn.00405930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5e8
ret
Function at 0x43f15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x43f168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x43f14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x43f145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x43f145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret

Function at 0x41c230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41c252
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41c259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41c248
mov eax, 1
add ebx, ebx
jne 0x41c26b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41c260
jne 0x41c27c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c260
xor ecx, ecx
sub eax, 3
jb 0x41c290
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41c302
mov ebp, eax
add ebx, ebx
jne 0x41c29b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41c2a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41c2cc
inc ecx
add ebx, ebx
jne 0x41c2b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41c2ad
jne 0x41c2c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c2ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41c2ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41c2dd
jmp 0x41c24e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41c2ec
add edi, ecx
jmp 0x41c24e
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41c30a
cmp byte [edi], 5
jne 0x41c30a
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 0x41c30f
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41c387
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21bac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21be8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41c33c
mov ecx, edi
jns 0x41c36b
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 + 0x21bec]
or eax, eax
je 0x41c381
mov dword [ebx], eax
add ebx, 4
jmp 0x41c359
call dword [esi + 0x21bf0]
popal
jmp 0x401150
Function at 0x4341b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f000]
push edi
or ebp, 0xffffffff
jmp 0x4341d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4341d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4341c8
mov eax, 1
add ebx, ebx
jne 0x4341eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4341e0
jne 0x4341fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4341e0
xor ecx, ecx
sub eax, 3
jb 0x434210
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x434282
mov ebp, eax
add ebx, ebx
jne 0x43421b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x434228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43424c
inc ecx
add ebx, ebx
jne 0x434238
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43422d
jne 0x434249
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43422d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43426c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43425d
jmp 0x4341ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43426c
add edi, ecx
jmp 0x4341ce
pop esi
mov edi, esi
mov ecx, 0x23b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43428a
cmp byte [edi], 1
jne 0x43428a
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 0x43428f
lea edi, [esi + 0x32000]
mov eax, dword [edi]
or eax, eax
je 0x434307
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x39c58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x39d0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4342bc
mov ecx, edi
jns 0x4342eb
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 + 0x39d10]
or eax, eax
je 0x434301
mov dword [ebx], eax
add ebx, 4
jmp 0x4342d9
call dword [esi + 0x39d14]
popal
jmp 0x4030c4
Function at 0xb97d34
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00b97d34
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x407229
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x569901
call fcn.005110cc
push str.xundupdf_screencapture
lea ecx, [ebp - 0x10]
call fcn.0040941c
and dword [ebp - 4], 0
mov eax, dword [0x5dd2c8]
cmp dword [eax - 0xc], 0
jle 0x40725d
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040826d
push dword [ebp - 0x10]
xor esi, esi
inc esi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x40727d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40727f
xor esi, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00409cc2
mov eax, esi
call fcn.00511095
ret
Function at 0x40c1bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x569bfd
call fcn.0051116e
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40c23a
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40c23a
call fcn.0040a70e
mov esi, eax
jmp 0x40c311
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40c25d
call fcn.0040a70e
jmp 0x40c304
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x40c253
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40c28d
mov esi, 0x8007000e
jmp 0x40c306
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040a6e0
jmp 0x40c2b3
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40c286
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40c253
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040c081
mov esi, eax
test edi, edi
je 0x40c311
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40c32a
lea ecx, [ebp - 0x418]
call fcn.0040a681
mov eax, esi
call fcn.005110bb
ret 0x10
Function at 0x40c698
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, ecx
call fcn.0040c62e
mov ecx, dword [ebp + 0xc]
xor edi, edi
test ecx, ecx
je 0x40c776
mov edx, ecx
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x40c6b8
sub edx, esi
sar edx, 1
je 0x40c775
push 0x83e
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x40c736
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40c736
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push eax
push esi
call fcn.00513de0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edi, edi
cmp dword [ebx + 0xc], 0
je 0x40c775
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 1
push dword [ebx + 0xc]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40c775
cmp dword [ebp + 8], eax
je 0x40c775
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x40c770
push ecx
push dword [ebp + 8]
mov ecx, eax
call fcn.0040cbbd
jmp 0x40c772
mov eax, edi
mov dword [ebx + 0x14], eax
pop esi
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x40c79a
call fcn.0040cb96
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 4], eax
call fcn.0040cb6f
mov dword [ebx + 8], eax
xor eax, eax
cmp dword [ebx + 4], edi
setg al
jmp 0x40c79c
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d334
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], edx
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push ecx
mov esi, 0xfa000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d366
xor eax, eax
jmp 0x40d3b3
mov eax, dword [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push 0
cmp edi, 0xfa000
lea ecx, [ebp - 8]
push ecx
cmovb esi, edi
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d3a9
cmp esi, edi
je 0x40d39d
mov eax, dword [ebp - 4]
sub edi, 0xfa000
add eax, esi
mov dword [ebp - 4], eax
jmp 0x40d36d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x40d3b2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dd6c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
jne 0x40dd81
push 0x83e
jmp 0x40dd84
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x5cbd80]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40de72
push esi
push dword [0x5cbd80]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40de72
push esi
push dword [0x5cbd80]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push eax
push esi
call fcn.00513de0
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 4]
test esi, esi
je 0x40de72
lea eax, [ebp + 0xc]
xor edi, edi
push eax
push 1
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40de31
cmp dword [ebp + 0xc], ebx
je 0x40de31
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x40de31
push ecx
push dword [ebp + 0xc]
mov ecx, eax
call fcn.0040e4ae
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x40de72
mov dword [ebp + 8], edi
mov eax, dword [ebx + 8]
mov dword [ebx + 8], edi
test eax, eax
jne 0x40de65
push edi
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x40de65
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [ebp + 8]
jmp 0x40de74
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e612
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5b3074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0
push 0x100
push 0
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.0040e9fb
lea edi, [esi + 0x28]
push 1
mov ecx, edi
call fcn.0041c4d9
push dword [ebx]
call fcn.0041b99f
push 0xd
push str.IDB_PNG2
push ecx
mov ecx, edi
call fcn.0041b9f2
cmp dword [0x5cbf9c], 0
mov eax, dword [0x5dd2c4]
je 0x40e6aa
cmp dword [eax - 0xc], 0
jne 0x40e692
mov ecx, dword [esi + 0xdc]
xor eax, eax
test ecx, ecx
mov edx, 0x5b7000
setne al
add eax, 0xc
push eax
mov eax, 0x5ba5a0
test ecx, ecx
cmovne eax, edx
jmp 0x40e6ec
mov ecx, dword [0x5cbd84]
test ecx, ecx
push 0xb
pop eax
push 2
pop edx
cmovne eax, edx
mov edx, 0x5b42a0
jmp 0x40e6e3
cmp dword [eax - 0xc], 0
jne 0x40e6cd
mov ecx, dword [esi + 0xdc]
xor eax, eax
test ecx, ecx
mov edx, 0x5c0480
setne al
add eax, 0xc
push eax
mov eax, 0x5c3a20
jmp 0x40e68b
mov ecx, dword [0x5cbd84]
test ecx, ecx
push 0xb
pop eax
push 2
pop edx
cmovne eax, edx
mov edx, 0x5bd720
push eax
mov eax, 0x5b3a60
cmove eax, edx
push eax
mov ecx, edi
call fcn.0041b769
push 0x1b
pop ecx
push 6
push ecx
xor edx, edx
mov dword [esi + 0xc4], eax
push eax
push edx
push edx
push edx
push dword [ebx]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0041c036
push 1
mov ecx, edi
call fcn.0041c4cc
push 0
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0xd8], 0
xor eax, eax
mov ecx, dword [ebp - 4]
inc eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00510219
mov esp, ebp
pop ebp
ret 4
Function at 0x40f995
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5b3074]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x228], eax
je 0x40fb53
xor ecx, ecx
mov dword [ebx + 0x228], eax
inc ecx
xor edi, edi
cmp eax, ecx
je 0x40fa98
cmp eax, 3
je 0x40fa98
cmp eax, 2
jne 0x40fb48
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [ebx + 0x22c]
call esi
push 5
push dword [ebx + 0x230]
call esi
push edi
lea ecx, [ebx + 0x3c]
call fcn.0041c4cc
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, 0xc8
push 4
push edi
push 0x3c
push 7
push 0x1e
push 0
push dword [ebx + 0x230]
call esi
push 4
push edi
push 0x2b
push 7
push 0x64
xor edi, edi
push edi
push dword [ebx + 0x22c]
call esi
movaps xmm0, xmmword [0x593730]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x174]
movups xmmword [ebp - 0x18], xmm0
call fcn.0041c036
movaps xmm0, xmmword [0x593690]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0xd8]
movups xmmword [ebp - 0x28], xmm0
call fcn.0041c036
push 0x22
push 0xb2
push 5
push 0x96
lea eax, [ebx + 0x214]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 6
push 0x27
push 0x144
push edi
push edi
push edi
push dword [ebx + 4]
call esi
jmp 0x40fb45
push ecx
lea ecx, [ebx + 0x3c]
call fcn.0041c4cc
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebx + 0x22c]
call esi
push 0
push dword [ebx + 0x230]
call esi
movaps xmm0, xmmword [0x593720]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0x174]
movups xmmword [ebp - 0x28], xmm0
call fcn.0041c036
movaps xmm0, xmmword [0x593680]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0xd8]
movups xmmword [ebp - 0x18], xmm0
call fcn.0041c036
push 0x22
push 0x76
push 5
push 0x5a
lea eax, [ebx + 0x214]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
cmp dword [ebp + 8], 1
push ecx
setne al
lea ecx, [ebx + 0x3c]
add eax, 0x500
push eax
call fcn.0041c29c
push 0xa
pop eax
xor ecx, ecx
push 6
inc ecx
cmp dword [ebp + 8], ecx
push 0x27
push 0x108
cmove eax, ecx
xor edi, edi
push edi
push edi
push edi
push dword [ebx + 4]
mov dword [ebx + 0x224], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor ecx, ecx
inc ecx
push ecx
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00510219
mov esp, ebp
pop ebp
ret 4