joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401930
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d068]
test esi, esi
jle 0x401a50
mov eax, dword [0x40d06c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401964
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019e7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401950
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a77
mov eax, dword [0x40d06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d06c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019e0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4019f0
add dword [0x40d068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d06c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40196e
mov eax, dword [0x40d06c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x401f90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d07c]
sub esp, 4
test ebx, ebx
je 0x401fe5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fde
test esi, esi
je 0x401fde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fc0
mov dword [esp], 0x40d084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402320
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402345
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402350
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402345
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402398
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40238e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40239a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402380
xor eax, eax
pop ebx
pop esi
ret
Function at 0x7bf901
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x7bf941
mov cl, byte [ebp + 0x14]
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
mov byte [edx + eax], cl
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x7bf913
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x7bf947
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x7bf984
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
xor cl, byte [ebp + 0x14]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x7bf959
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x5c33ec6
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x3e995341
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401469
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40147d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40149e
cmp esi, eax
jae 0x401477
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401490
cmp esi, eax
jae 0x401477
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401a70
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor esi, esi
mov si, ax
and esi, 0x3ff
call fcn.00433c7e
mov eax, dword [eax + 0xc]
push 0
push 0x4019f0
push 0x20
push 6
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
test eax, eax
je 0x401adb
mov eax, dword [0x44b19c]
push edi
mov edi, dword [0x44b1a4]
xor edx, edx
test edi, edi
jle 0x401ada
push ebp
mov ecx, eax
movzx ecx, word [ecx + 8]
mov eax, dword [eax]
mov ebp, ecx
and ebp, 0x3ff
cmp si, bp
je 0x401ad5
inc edx
cmp edx, edi
jl 0x401ab6
pop ebp
pop edi
pop esi
pop ebx
ret
mov word [ebx + 4], cx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4025d0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x44a2b0]
mov ecx, dword [esp + 0x2c4]
mov edx, dword [ecx]
push esi
push 0x200
mov dword [esp + 0x2c0], eax
push 0x2b4
lea eax, [esp + 0x10]
push eax
push 0
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [esp + 0x2c4]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004010e0
mov ecx, dword [esp + 0x2bc]
mov eax, esi
pop esi
call fcn.0041c960
add esp, 0x2bc
ret 8
Function at 0x4032b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x240
mov eax, dword [0x44a2b0]
push esi
push edi
mov dword [esp + 0x244], eax
xor eax, eax
mov ecx, 0x45
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x128]
push eax
mov dword [esp + 0x12c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40336c
cmp dword [esp + 0x12c], 5
jb 0x40336c
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov ax, word [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, 0x44b174
mov dword [esp + 8], 0x11c
mov dword [esp + 0x10], edx
mov word [esp + 0x11c], ax
call fcn.00401730
mov esi, eax
test esi, esi
je 0x40336c
push 3
push 2
push 0
push 0
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
mov ecx, 0x44b174
mov esi, eax
mov edi, edx
call fcn.00401710
test eax, eax
jne 0x403382
xor eax, eax
mov ecx, dword [esp + 0x244]
call fcn.0041c960
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push edi
push esi
push 0x23
lea ecx, [esp + 0x14]
push ecx
call eax
mov ecx, dword [esp + 0x244]
call fcn.0041c960
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4034b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x437898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov eax, dword [0x44a2b0]
push ebx
push edi
mov dword [esp + 0xc0], eax
push 0x12d
call fcn.00406b70
mov ecx, eax
call fcn.004069c0
mov eax, dword [0x43a830]
mov ecx, dword [0x43a834]
mov edx, dword [0x43a838]
mov dword [esp + 0x24], eax
mov ax, word [0x43a83c]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov word [esp + 0x30], ax
mov dword [esp + 8], 0xfffffff5
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x190
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 2
mov byte [esp + 0x22], 3
mov byte [esp + 0x23], 0x22
mov dword [esp + 0x2c], edx
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
stosw word es:[edi], ax
call fcn.00406220
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0xd0], ebx
call fcn.00406290
lea ecx, [esp + 0x64]
mov dword [esp + 0xcc], 0xffffffff
call fcn.00406250
mov ecx, dword [esp + 0xc4]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xbc]
pop ebx
call fcn.0041c960
add esp, 0xc8
ret
Function at 0x403d10
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x437970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
push edi
mov esi, ecx
call fcn.0042a8c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov ax, word [esi + 0x96]
test ax, ax
mov dword [esp + 0x34], 0
jne 0x403de2
mov eax, dword [esi + 0xa8]
test eax, eax
lea ecx, [esi + 0x98]
je 0x403dab
push 0
push 0x1ff
push 0x207
call fcn.00401590
or ebp, 0xffffffff
lea eax, [edi - 0x10]
mov dword [esp + 0x34], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x403d97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push 5
push 0x20a
push 0x207
mov dword [esi + 0xa8], 1
call fcn.00401590
or ebp, 0xffffffff
cmp eax, 4
lea eax, [edi - 0x10]
mov dword [esp + 0x34], ebp
lea ecx, [eax + 0xc]
jne 0x403d86
lock xadd dword [ecx], ebp
dec ebp
jmp 0x403ec7
movzx eax, ax
push eax
lea ecx, [esp + 0x10]
push 0x43aa20
push ecx
call fcn.004021e0
mov edi, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x403eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or ebp, 0xffffffff
cmp edi, 0x15
jne 0x403e45
push 5
push 0x20c
push 0x207
lea ecx, [esi + 0x98]
call fcn.00401590
mov esi, eax
jmp 0x403eab
call fcn.0042a8c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
push 0x43a970
push eax
mov byte [esp + 0x40], 1
call fcn.004021e0
add esp, 0xc
push 5
push 0x209
push 0x207
lea ecx, [esi + 0x98]
call fcn.00401590
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403eab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x34], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
cmp esi, 4
jne 0x403d8b
test ebp, ebp
jg 0x403ed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
or ebp, 0xffffffff
lea eax, [edi - 0x10]
mov dword [esp + 0x34], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x403f08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x404880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x437ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov dword [esp + 8], ecx
call fcn.0042a8c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov edi, 0x43a6d4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov esi, dword [0x4490c4]
mov dword [esp + 0x24], 0
call fcn.00433c7e
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + 0x40]
push esi
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004047a0
test eax, eax
je 0x40494a
call fcn.0042a8c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov esi, dword [0x4490c4]
mov byte [esp + 0x24], 1
call fcn.00433c7e
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 0x40]
push esi
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004047a0
test eax, eax
jne 0x404985
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40494a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404970
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
add ebx, 0xfffffff0
push ebx
call fcn.00401c70
lea edi, [eax + 0x10]
mov dword [esp + 0x3c], edi
mov ebp, dword [esp + 0x24]
add ebp, 0xfffffff0
push ebp
mov byte [esp + 0x34], 2
call fcn.00401c70
lea esi, [eax + 0x10]
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x18]
push edi
add eax, 4
push esi
push eax
mov byte [esp + 0x40], 3
call fcn.004021e0
lea eax, [esi - 0x10]
add esp, 0x14
mov byte [esp + 0x2c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x2c], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404a26
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov dword [esp + 0x2c], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404a45
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x404b40
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x405450
mov ecx, dword [0x44b25c]
test ecx, ecx
jne 0x405480
push 0x38
call fcn.0042a894
add esp, 4
test eax, eax
je 0x405471
mov ecx, eax
call fcn.00405ca0
jmp 0x405473
xor eax, eax
test eax, eax
mov ecx, eax
mov dword [0x44b25c], ecx
jne 0x405480
ret
jmp 0x405630
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4056a4
push str.SharedMemoryMutex_4B2AC445_33DD_409e_82F3_873B8379E7DD
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x20], eax
je 0x405674
push 0xf001f
push 4
push 0
lea eax, [esp + 0x10]
push eax
push 0x43b070
push 0x4000
mov ecx, esi
call fcn.00405500
test eax, eax
jge 0x405679
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
jne 0x4056a4
mov ecx, dword [esi + 0x20]
push edi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi]
xor eax, eax
mov ecx, 0x1000
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4060a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4060b3
mov eax, 0xfffffff5
pop ecx
ret 0xc
push esi
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4060cd
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
mov eax, dword [esp + 0xc]
movzx ecx, word [esp + 0x14]
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4060f8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 0xfffffffa
pop esi
pop ecx
ret 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4060e6
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x406125
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop edi
mov eax, 0xfffffffa
pop esi
pop ecx
ret 0xc
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40616e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop ebp
pop edi
mov eax, 0xfffffffe
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4061a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
mov eax, 0xfffffffc
pop esi
pop ecx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x407160
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x437cd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00431db2
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], method.CDC.virtual_0
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
lea edi, [esi + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x4071cf
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0x50]
jmp 0x4071e7
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40727c
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004321d2
mov ecx, dword [ebx + 8]
push 2
push edi
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.004324cf
test ebp, ebp
je 0x40723b
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.00432558
mov dword [esi + 0x18], eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.00431d0b
mov edx, dword [ebx + 8]
push 2
push edi
push edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov eax, dword [esi + 0x24]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00431f02
jmp 0x40728e
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call fcn.004335f6
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x40e560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00433c7e
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov edx, edi
push ecx
shr edx, 4
inc edx
movzx ecx, dx
push ecx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
je 0x40e5ac
call fcn.00433c7e
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40e5b4
pop edi
pop esi
xor al, al
pop ebx
ret 8
and edi, 0xf
mov eax, edi
movzx edi, word [esi]
add esi, 2
test eax, eax
je 0x40e5cf
lea esi, [esi + edi*2]
movzx edi, word [esi]
add esi, 2
dec eax
jne 0x40e5c3
mov eax, dword [ebx]
sub eax, 0x10
push ebp
mov ebp, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
mov edx, 1
sub edx, ebp
sub eax, ecx
or edx, eax
jge 0x40e5f3
push ecx
mov ecx, ebx
call fcn.00405fa0
mov ebp, dword [ebx]
push edi
push esi
push ebp
call fcn.0041d4b9
mov word [ebp + edi*2], 0
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
pop ebp
je 0x40e61b
push eax
call fcn.0041c01e
add esp, 4
test eax, eax
jl 0x40e635
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x40e635
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
pop edi
pop esi
mov word [ecx + eax*2], 0
mov al, 1
pop ebx
ret 8
push 0x80070057
call fcn.00401220
int3