joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4704c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00427420
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x429879
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00424880
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00424870
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00428ed0
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x4c]
call fcn.00468341
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.00438710
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00426e80
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, ebx
call fcn.004247f0
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x429944
push edi
mov ecx, esi
call fcn.00426f90
push eax
push ebp
mov ecx, esi
call fcn.00427150
cmp eax, dword [esp + 0x40]
jg 0x429940
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x42991e
mov eax, ebx
jmp 0x42994a
cmp edi, ebx
jl 0x429948
mov eax, ebx
jmp 0x42994a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x42995b
mov dword [esp + 0x30], eax
jmp 0x429966
cmp edi, ebx
jl 0x429961
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.004247b0
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x4299ad
push edi
mov ecx, esi
call fcn.00426eb0
push eax
push ebx
mov ecx, esi
call fcn.00427280
cmp eax, dword [esp + 0x44]
jg 0x4299a5
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x42997f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4299b7
cmp edi, ebp
jl 0x4299b1
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4299b7
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x4299c0
mov ecx, eax
jmp 0x4299c9
cmp edi, ebp
jl 0x4299c6
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00426ea0
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004683b3
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x42cb20
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4706e8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00427420
test eax, eax
je 0x42cc28
lea ecx, [esp + 0xc]
call fcn.00403090
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00427420
mov ecx, eax
call fcn.00424bf0
test eax, eax
je 0x42cc0f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42cc0f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42cc0f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00403290
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42cbf1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42cc0f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4a2e48]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x475170
call fcn.00403290
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42cc70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00427420
test eax, eax
je 0x42cd5f
mov ecx, edi
call fcn.00427420
mov ecx, eax
call fcn.00424aa0
test eax, eax
jne 0x42cd5f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42cd5f
mov eax, dword [0x4a2e48]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42ccd2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00427420
mov ecx, eax
call fcn.00424cd0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42cd5f
cmp ebx, eax
jne 0x42cd5f
cmp dword [esp + 0x10], eax
jne 0x42cd45
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42f990
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x470978
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42f9c9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42fadc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42f9dd
mov eax, 0xffffffc7
jmp 0x42fade
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42f9ee
cmp dword [esi + 8], eax
jne 0x42f9dd
cmp dword [esi + 8], eax
jne 0x42fa07
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42fa07
mov eax, 0xffffffc7
jmp 0x42fade
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42fa1b
push eax
mov ecx, ebx
call fcn.0042f1c0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00403090
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42fa4c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004030b0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042e930
test eax, eax
mov dword [esp + 0x38], eax
je 0x42fa7f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x475170
call fcn.00403290
mov eax, dword [esp + 0x38]
jmp 0x42fade
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042f7f0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42fac3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042f810
mov esi, eax
test esi, esi
jne 0x42faf3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042f7f0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42fa95
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x475170
call fcn.00403290
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x475170
call fcn.00403290
mov eax, esi
jmp 0x42fade

Function at 0x432bb0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x432c10
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x432c10
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x432c10
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x432c10
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x432c50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x438d70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470fa8
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.00468341
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00438710
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.0046826f
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.00464a59
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.00464a59
push 1
push 0
push 0
mov ecx, esi
call fcn.00464a01
push 1
push 0
push 1
mov ecx, esi
call fcn.00464a01
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004683b3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x438ef0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470fc8
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.00468341
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00438710
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.0046826f
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 0x438fb4
cmp dword [esp + 0x40], 1
jne 0x438fb2
cmp ecx, eax
jge 0x438fb4
mov eax, ecx
cmp eax, 0xc8
jge 0x438fc0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00438d70
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.004683b3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x439730
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x471033
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.00462e76
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.004685e9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00469b41
test eax, eax
je 0x43984c
mov ecx, dword [esp + 0x3c]
call fcn.00468616
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 0x439810
push edi
mov ecx, esi
call fcn.00465bd4
mov ecx, esi
call fcn.004399b0
cmp dword [esp + 0x38], 1
jne 0x439845
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.00465d3e
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 0x43c270
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c2a3
push esi
call fcn.0043f380
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c29c
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 0x43c329
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c312
mov eax, dword [esi + 8]
test eax, eax
je 0x43c2c7
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 0x43c30e
cmp eax, 2
je 0x43c312
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c2ba
cmp eax, 3
je 0x43c2ed
cmp eax, 1
jne 0x43c2ba
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 0x43c2ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c2ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c350
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c338
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c350
add esp, 4
pop esi
ret

Function at 0x463c6c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x463ca4
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.00461d23
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461cfb
jmp 0x463cb0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46535d
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 0x46539f
call fcn.0046b048
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46539f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x465396
xor eax, eax
jmp 0x4653a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004653ad
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b578
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 0x46b5a6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b5c4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b4de
jmp 0x46b5c4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b5c4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046b4de
test edi, edi
mov eax, edi
jne 0x46b5ae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40c4c7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c4e2
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c4ec
mov byte [eax], 0
test edi, edi
je 0x40c595
movzx eax, word [edi]
test ax, ax
je 0x40c595
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c525
cmp dword [ebp + 0xc], 0
je 0x40c531
test esi, esi
jne 0x40c531
test ebx, ebx
je 0x40c521
mov byte [ebx], 1
mov esi, edx
jmp 0x40c540
cmp ax, 0xd
je 0x40c553
cmp ax, 0xa
je 0x40c555
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c54b
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c505
jmp 0x40c555
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c555
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c590
mov word [ebx], ax
test esi, esi
je 0x40c590
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040ed1e
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c597
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c5dc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00412b76
cmp byte [0x424b15], 0
jne 0x40c66a
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407d04
push eax
call fcn.0040f6f6
test eax, eax
jne 0x40c66a
push 0x4137fc
call fcn.00412b63
lea eax, [ebp - 0x820]
push eax
call fcn.0040b257
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040aed1
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c735
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x4239f1], 1
cmp dword [0x423a00], ebx
je 0x40c75d
push 0x7d
call fcn.0040a53c
push eax
push 2
push dword [0x423a00]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x423a00]
mov dword [0x4239f4], ebx
mov byte [0x4239f0], 1
cmp eax, ebx
je 0x40c7be
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x424b24], ebx
jne 0x40c78c
cmp byte [0x424b14], bl
je 0x40c794
cmp dword [0x4239f8], ebx
jne 0x40c7b6
push ebx
push 1
push 0x111
push dword [0x423a00]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c7b6
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b70d
cmp dword [0x423a00], ebx
jne 0x40c7aa
cmp byte [0x423a08], bl
pop ebx
je 0x40c7cc
jmp fcn.0040c5dc
ret
Function at 0x40e4b6
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040f0cd
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42c4c8
call fcn.0040f7f3
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41e0e0
push edi
call fcn.0040aed1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e564
push eax
call fcn.0040c3a2
cmp byte [0x423a11], bl
je 0x40e556
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e54b
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e542
push esi
push eax
push edi
call fcn.0040aefe
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e564
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41d8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x417e74], edi
mov dword [0x417e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x417e78]
mov dword [0x41d8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41d8d8], eax
call fcn.00412be6
push esi
mov ecx, 0x417e88
call fcn.0040a525
lea ecx, [ebp - 0x5c]
call fcn.00406b7a
lea ecx, [ebp - 0x34]
call fcn.00406b7a
push 0x64
call fcn.0040ba16
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040ba16
push ebx
push 0x40dc9a
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41d0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x41d0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41d0d0], ebx
mov dword [0x41d0d4], ebx
call fcn.00406b9c
lea ecx, [ebp - 0x5c]
call fcn.00406b9c
lea ecx, [ebp - 0xc]
call fcn.00412c40
cmp byte [0x423a08], bl
je 0x40e643
call fcn.0040c5dc
push 0x100
push ebx
push 0x4238f0
call fcn.0040aed1
cmp dword [0x424b24], ebx
jbe 0x40e666
push dword [0x424b18]
call fcn.0040ae4d
push dword [0x41d8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41d8d8]
cmp eax, ebx
je 0x40e680
push eax
call esi
cmp dword [0x417e7c], ebx
jne 0x40e69f
cmp byte [0x4239f2], bl
je 0x40e69f
push 0xff
mov ecx, 0x417e7c
call fcn.004034dd
mov eax, dword [0x424b30]
mov byte [0x4239f2], 1
cmp eax, ebx
je 0x40e6b5
push eax
call fcn.0040c59d
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x424b2c]
cmp eax, ebx
ja 0x40e6c9
mov eax, dword [0x417e7c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]