joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e870
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4970d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0048dea9
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0045e210
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048ddd7
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048a5be
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048a5be
push 1
push 0
push 0
mov ecx, esi
call fcn.0048a566
push 1
push 0
push 1
mov ecx, esi
call fcn.0048a566
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048df1b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x45e9f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4970f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0048dea9
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0045e210
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048ddd7
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x45eab4
cmp dword [esp + 0x40], 1
jne 0x45eab2
cmp ecx, eax
jge 0x45eab4
mov eax, ecx
cmp eax, 0xc8
jge 0x45eac0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0045e870
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048df1b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x45f240
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497163
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004889de
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048e151
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048f6a9
test eax, eax
je 0x45f35c
mov ecx, dword [esp + 0x3c]
call fcn.0048e17e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x45f320
push edi
mov ecx, esi
call fcn.0048b742
mov ecx, esi
call fcn.0045f4c0
cmp dword [esp + 0x38], 1
jne 0x45f355
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048b8ac
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x461d80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x461db3
push esi
call fcn.00464e80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x461dac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x461e39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x461e22
mov eax, dword [esi + 8]
test eax, eax
je 0x461dd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x461e1e
cmp eax, 2
je 0x461e22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x461dca
cmp eax, 3
je 0x461dfd
cmp eax, 1
jne 0x461dca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x461dca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x461dca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00461e60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x461e48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00461e60
add esp, 4
pop esi
ret

Function at 0x4897d4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48980c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00487861
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00487839
jmp 0x489818
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48aec6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48af08
call fcn.00490bab
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48af08
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48aeff
xor eax, eax
jmp 0x48af10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048af16
pop edi
pop esi
pop ebx
ret 4

Function at 0x4910db
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x491109
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x491127
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00491041
jmp 0x491127
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491127
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00491041
test edi, edi
mov eax, edi
jne 0x491111
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x66edc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12e000]
push edi
or ebp, 0xffffffff
jmp 0x66ede2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x66ede9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66edd8
mov eax, 1
add ebx, ebx
jne 0x66edfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x66ee0c
jne 0x66ee2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66ee2b
dec eax
add ebx, ebx
jne 0x66ee18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x66edf0
add ebx, ebx
jne 0x66ee27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x66ee7d
xor ecx, ecx
sub eax, 3
jb 0x66ee43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x66eeb2
sar eax, 1
mov ebp, eax
jmp 0x66ee4e
add ebx, ebx
jne 0x66ee4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66ee1c
inc ecx
add ebx, ebx
jne 0x66ee5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66ee1c
add ebx, ebx
jne 0x66ee69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x66ee5e
jne 0x66ee7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x66ee5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x66ee9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x66ee8e
jmp 0x66edde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x66ee9c
add edi, ecx
jmp 0x66edde
pop esi
mov edi, esi
mov ecx, 0x3813
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x66eeba
cmp byte [edi], 0x13
jne 0x66eeba
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 0x66eebf
lea edi, [esi + 0x26b000]
mov eax, dword [edi]
or eax, eax
je 0x66ef37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x296510]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29663c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x66eeec
mov ecx, edi
jns 0x66ef1b
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 + 0x296640]
or eax, eax
je 0x66ef31
mov dword [ebx], eax
add ebx, 4
jmp 0x66ef09
call dword [esi + 0x296650]
mov ebp, dword [esi + 0x296644]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x66ef6b
sub esp, 0xffffff80
jmp 0x473148
Function at 0x4015f0
Capabilities:
Get file version info
Read file on windows

Disassembly:
sub esp, 0x178
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push ebp
mov ebp, dword [esp + 0x184]
push esi
mov esi, ecx
test esi, esi
push edi
je 0x4017dd
cmp word [esi], 0
je 0x4017dd
test ebp, ebp
je 0x4017dd
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push esi
mov word [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x4017dd
push 0
push esi
mov dword [esp + 0x20], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4016de
push edi
call fcn.0041a249
add esp, 4
mov ebx, eax
push ebx
push edi
xor edi, edi
push edi
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4016d5
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x42de4c
push ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4016d5
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push 0x42de50
push 0x78
push ebp
call fcn.0041a3b6
add esp, 0x1c
mov dword [esp + 0x18], 1
push ebx
call fcn.0041a487
add esp, 4
mov eax, ebp
mov word [ebp + 0xee], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4016f0
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push 0x40
lea edx, [esp + 0x14c]
push edx
sar eax, 1
push esi
mov ebx, eax
call edi
test eax, eax
je 0x4017d0
cmp dword [esp + 0x14], 0x40
jne 0x4017d0
mov eax, dword [esp + 0x17c]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0xf8
lea edx, [esp + 0x54]
push edx
push esi
call edi
test eax, eax
je 0x4017d0
cmp dword [esp + 0x14], 0xf8
jne 0x4017d0
cmp ebx, 0x78
jae 0x4017d0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
call fcn.0041a601
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x48]
push edx
add eax, 1
push eax
add ecx, 0x76c
push ecx
mov edx, 0x78
push str.__04d__02d__02d__02d:_02d:_02d_GMT
sub edx, ebx
push edx
lea eax, [ebp + ebx*2]
push eax
call fcn.0041a3b6
mov esi, dword [esp + 0x48]
add esp, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x4017df
xor eax, eax
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a2d1
add esp, 0x178
ret
Function at 0x402610
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
mov eax, 0x1074
call fcn.0042a400
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x1070], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1080]
push esi
xor eax, eax
push edi
xor ebx, ebx
push 0x5c
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov word [esp + 0x81], ax
mov byte [esp + 0x83], al
lea eax, [esp + 0x18]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x7c], bl
call fcn.0041c410
push 0x42e208
push esi
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x80], ebx
call fcn.0041aa9f
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x4026ff
push esi
push 0x1000
lea ecx, [esp + 0x88]
push 1
push ecx
call fcn.0041ad4e
add esp, 0x10
cmp eax, ebx
je 0x4026f6
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x88]
call fcn.00410790
push esi
push 0x1000
lea eax, [esp + 0x90]
push 1
push eax
call fcn.0041ad4e
add esp, 0x18
cmp eax, ebx
jne 0x4026c8
push esi
call fcn.0041addb
add esp, 4
lea ecx, [esp + 0x70]
push ecx
lea esi, [esp + 0x18]
call fcn.00410a60
push ebx
push 0x10
push ebp
lea edi, [esp + 0x80]
call fcn.004024f0
mov ecx, dword [esp + 0x1090]
add esp, 0x10
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a2d1
add esp, 0x1074
ret
Function at 0x405a20
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x405d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push 0x42df14
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405dde
mov eax, dword [esp + 8]
cmp eax, 1
je 0x405daf
cmp eax, 2
jne 0x405dca
test esi, esi
mov eax, dword [esp]
je 0x405dd8
test eax, eax
je 0x405dd3
test al, 1
jne 0x405dca
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x405dd8
mov eax, 0xd
pop ecx
ret 4
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4
Function at 0x405ec0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42ac30
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
push 0xc
push 0
mov dword [esi], vtable.CDlgBase.0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0x40
push 0xc
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x405e50
sub ecx, edi
sub ecx, 0xa
mov byte [edi], 0xb9
mov byte [edi + 5], 0xe9
mov dword [edi + 1], esi
mov dword [edi + 6], ecx
mov dword [esi + 8], edi
mov dword [esp + 0x20], 0
mov dword [esi], vtable.CBugWarningDlg.0
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x20], 1
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x20], 2
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x20], 3
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
lea ebp, [esi + 0x18]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x20], 4
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
lea ebx, [esi + 0x1c]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x20], 5
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
call eax
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [esp + 0x20], 6
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
call eax
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [esp + 0x20], 7
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
lea edi, [esi + 0x30]
call eax
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x20], 8
call fcn.00401b40
mov eax, dword [esp + 0x30]
lea edi, [esi + 0x2c]
call fcn.00401b40
mov eax, dword [esp + 0x34]
mov edi, ebp
mov byte [esi + 0x27], 0
mov byte [esi + 0x25], 1
mov byte [esi + 0x24], 1
mov byte [esi + 0x26], 0
call fcn.00401b40
mov eax, dword [esp + 0x38]
mov edi, ebx
call fcn.00401b40
mov eax, dword [esp + 0x3c]
lea edi, [esi + 0x20]
mov dword [esi + 0x28], 0
call fcn.00401b40
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
Function at 0x4066a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041b98e
add esp, 4
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.0041c410
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.0041a66a
add esp, 8
test eax, eax
je 0x40671c
mov word [eax], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00406370
mov esi, eax
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041a2d1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406770
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42b240
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push str..txt
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call entry0
add esp, 8
push ebx
push 0x80
push 2
push ebx
push 1
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x28]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40685e
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x24], ebx
call sym.bugreport.exe_class_ATL::CStringT_char__class_ATL::StrTraitATL_char__class_ATL::ChTraitsCRT_char______cdecl_Util::Convert::Utf8FromWS_wchar_t_const___int_
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 3
push 0x42ed54
mov byte [esp + 0x38], 1
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0xc]
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401da0
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40686d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40686d
mov esi, dword [esp + 0x30]
push esi
mov ecx, 0x42deb0
call fcn.004043b0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret