joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f390
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00429b40
test eax, eax
je 0x42f47f
mov ecx, edi
call fcn.00429b40
mov ecx, eax
call fcn.00427090
test eax, eax
jne 0x42f47f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42f47f
mov eax, dword [0x4c4dd0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42f3f2
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.00429b40
mov ecx, eax
call fcn.004272c0
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 0x42f47f
cmp ebx, eax
jne 0x42f47f
cmp dword [esp + 0x10], eax
jne 0x42f465
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 0x4320a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468798
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 0x4320d9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4321ec
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4320ed
mov eax, 0xffffffc7
jmp 0x4321ee
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4320fe
cmp dword [esi + 8], eax
jne 0x4320ed
cmp dword [esi + 8], eax
jne 0x432117
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x432117
mov eax, 0xffffffc7
jmp 0x4321ee
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43212b
push eax
mov ecx, ebx
call fcn.004318d0
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.00401780
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43215c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004017a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00431040
test eax, eax
mov dword [esp + 0x38], eax
je 0x43218f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x49a740
call fcn.00401980
mov eax, dword [esp + 0x38]
jmp 0x4321ee
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00431f00
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4321d3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00431f20
mov esi, eax
test esi, esi
jne 0x432203
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00431f00
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4321a5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x49a740
call fcn.00401980
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], 0x49a740
call fcn.00401980
mov eax, esi
jmp 0x4321ee

Function at 0x435310
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435370
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435370
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435370
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435370
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 0x4353b0
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 0x43b2d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468dc8
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.00461ad3
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043ac70
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.00461a01
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.0045e2c5
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.0045e2c5
push 1
push 0
push 0
mov ecx, esi
call fcn.0045e26d
push 1
push 0
push 1
mov ecx, esi
call fcn.0045e26d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461b45
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43b450
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468de8
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.00461ad3
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043ac70
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.00461a01
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 0x43b514
cmp dword [esp + 0x40], 1
jne 0x43b512
cmp ecx, eax
jge 0x43b514
mov eax, ecx
cmp eax, 0xc8
jge 0x43b520
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043b2d0
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.00461b45
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43bca0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468e53
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.0045c6e5
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.00461d7b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00463297
test eax, eax
je 0x43bdbc
mov ecx, dword [esp + 0x3c]
call fcn.00461da8
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 0x43bd80
push edi
mov ecx, esi
call fcn.0045f410
mov ecx, esi
call fcn.0043bf20
cmp dword [esp + 0x38], 1
jne 0x43bdb5
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.0045f54b
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 0x43e7e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e813
push esi
call fcn.004418f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e80c
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 0x43e899
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e882
mov eax, dword [esi + 8]
test eax, eax
je 0x43e837
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 0x43e87e
cmp eax, 2
je 0x43e882
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e82a
cmp eax, 3
je 0x43e85d
cmp eax, 1
jne 0x43e82a
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 0x43e82a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e82a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e8c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e8a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e8c0
add esp, 4
pop esi
ret

Function at 0x45d4db
Capabilities:
Get graphical window text

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

Function at 0x45ebcd
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 0x45ec0f
call fcn.0046467d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45ec0f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45ec06
xor eax, eax
jmp 0x45ec17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045ec1d
pop edi
pop esi
pop ebx
ret 4

Function at 0x464bad
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 0x464bdb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x464bf9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464b13
jmp 0x464bf9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464bf9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464b13
test edi, edi
mov eax, edi
jne 0x464be3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x590
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x58c], eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [esp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push 0x80000002
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0x378
call ebp
test eax, eax
je 0x40105e
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x58c]
xor ecx, esp
call fcn.00401797
add esp, 0x590
ret
mov edx, dword [esp + 8]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x104
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x401143
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
call ebp
test eax, eax
jne 0x4010f3
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x228]
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call ebx
test eax, eax
jne 0x401138
cmp dword [esp + 0x14], 0x378
jne 0x401138
cmp dword [esp + 0x34c], 0x3e9
je 0x4010fa
mov ecx, dword [esp + 0x10]
push 0x104
lea eax, [esp + 0x20]
push eax
inc esi
push esi
push ecx
call edi
test eax, eax
je 0x401086
jmp 0x401143
mov edx, dword [esp + 0x10]
push edx
jmp 0x40113d
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x224]
mov byte [esp + eax + 0x120], cl
inc eax
test cl, cl
jne 0x401100
lea eax, [esp + 0x120]
push 0x5c
push eax
call fcn.00401830
push str.mswsock.dll
push eax
call fcn.00409cfa
add esp, 0x10
neg eax
sbb eax, eax
neg eax
jmp 0x401145
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x59c]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.00401797
add esp, 0x590
ret
Function at 0x401160
Capabilities:
Persist via windows service
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x48c
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x488], eax
push ebp
mov ebp, dword [esp + 0x494]
push esi
lea eax, [esp + 8]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push 0x80000002
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x378
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4011c3
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.00401797
add esp, 0x48c
ret
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
push 0x104
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x4012b6
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4011f0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012d4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4012f2
cmp dword [esp + 0x18], 0x378
jne 0x4012f2
mov eax, dword [esp + 0x248]
cmp eax, 0x3e9
jb 0x40129b
cmp eax, 0x3eb
ja 0x40129b
lea edx, [esp + 0x120]
mov eax, ebp
sub edx, ebp
jmp 0x401270
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401270
mov ecx, dword [esp + 0x14]
push 0x378
lea eax, [esp + 0x124]
push eax
push 3
push 0
push str.PackedCatalogItem
push ecx
call edi
test eax, eax
jne 0x4012e3
mov eax, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x20]
push edx
inc esi
push esi
push eax
call ebx
test eax, eax
je 0x4011f0
mov eax, 1
mov ecx, dword [esp + 0x498]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.00401797
add esp, 0x48c
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4012bb
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4012bb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4012bb
Function at 0x401310
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x40fb48
mov dword [esp + 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401391
push 0x40fb48
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401391
push 0x40fb48
lea eax, [esp + 8]
push 0x40c4c4
push eax
call fcn.004017a6
mov edx, dword [0x40fc4c]
add esp, 0xc
push 0
push str.Breezes_Kicker
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00401797
add esp, 0x10c
ret
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x40fb48
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4013ce
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00401797
add esp, 0x10c
ret
push ebx
push edi
push 0x40c4f0
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x114]
pop edi
pop ebx
pop esi
xor ecx, esp
mov eax, 1
call fcn.00401797
add esp, 0x10c
ret

Function at 0x401797
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e004]
jne 0x4017a1
repz ret
jmp fcn.00401a0e
Function at 0x406493
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004039cd
and dword [ebp - 4], 0
cmp dword [0x40fa54], 0
mov ebx, eax
jne 0x406544
push 0x40ba70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4065f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ba64
push edi
call esi
test eax, eax
je 0x4065f5
push eax
call fcn.0040395b
mov dword [esp], 0x40ba54
push edi
mov dword [0x40fa54], eax
call esi
push eax
call fcn.0040395b
mov dword [esp], 0x40ba40
push edi
mov dword [0x40fa58], eax
call esi
push eax
call fcn.0040395b
mov dword [esp], 0x40ba24
push edi
mov dword [0x40fa5c], eax
call esi
push eax
call fcn.0040395b
pop ecx
mov dword [0x40fa64], eax
test eax, eax
je 0x406544
push 0x40ba0c
push edi
call esi
push eax
call fcn.0040395b
pop ecx
mov dword [0x40fa60], eax
mov eax, dword [0x40fa60]
cmp eax, ebx
je 0x40659c
cmp dword [0x40fa64], ebx
je 0x40659c
push eax
call fcn.004039d6
push dword [0x40fa64]
mov esi, eax
call fcn.004039d6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40659c
test edi, edi
je 0x40659c
call esi
test eax, eax
je 0x406593
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406593
test byte [ebp - 0xc], 1
jne 0x40659c
or dword [ebp + 0x10], 0x200000
jmp 0x4065d5
mov eax, dword [0x40fa58]
cmp eax, ebx
je 0x4065d5
push eax
call fcn.004039d6
pop ecx
test eax, eax
je 0x4065d5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4065d5
mov eax, dword [0x40fa5c]
cmp eax, ebx
je 0x4065d5
push eax
call fcn.004039d6
pop ecx
test eax, eax
je 0x4065d5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40fa54]
call fcn.004039d6
pop ecx
test eax, eax
je 0x4065f5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4065f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10039f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ff0
push 0x1003c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x100532c], 0xffffffff
mov dword [0x1005330], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x1005320]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x100531c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x1005328], ecx
call fcn.01003c70
mov eax, dword [0x1005240]
test eax, eax
jne 0x1003a81
push 0x1003c60
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.01003c40
push 0x1005014
push 0x1005010
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x1005318]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x1005314]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x100500c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x1003b8f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x1003af5
cmp al, 0x22
jne 0x1003ae7
cmp byte [esi], 0x22
jne 0x1003afe
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x1003b0e
cmp al, 0x20
ja 0x1003b0e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x1003afe
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x1003b2f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x1003b34
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x1003b74
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x1003afe
inc esi
mov dword [ebp - 0x74], esi
jmp 0x1003b8f