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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ec98
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 0x440a09
inc eax
mov dword [esi + 0x10], eax
jmp 0x440b1c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x440a1d
mov eax, 0xffffffc7
jmp 0x440b1e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x440a2e
cmp dword [esi + 8], eax
jne 0x440a1d
cmp dword [esi + 8], eax
jne 0x440a47
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x440a47
mov eax, 0xffffffc7
jmp 0x440b1e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x440a5b
push eax
mov ecx, ebx
call fcn.00440200
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.0040bdb0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x440a8c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0040bdd0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0043f970
test eax, eax
mov dword [esp + 0x38], eax
je 0x440abf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x550fa0
call fcn.0040bfb0
mov eax, dword [esp + 0x38]
jmp 0x440b1e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00440830
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x440b03
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00440850
mov esi, eax
test esi, esi
jne 0x440b33
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00440830
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x440ad5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x550fa0
call fcn.0040bfb0
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], 0x550fa0
call fcn.0040bfb0
mov eax, esi
jmp 0x440b1e

Function at 0x443c40
Capabilities:
Create thread

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

Disassembly:
push 0xffffffffffffffff
push 0x47f2c8
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.00477292
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004497a0
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.004771c0
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.00473a7e
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.00473a7e
push 1
push 0
push 0
mov ecx, esi
call fcn.00473a26
push 1
push 0
push 1
mov ecx, esi
call fcn.00473a26
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00477304
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x449f80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f2e8
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.00477292
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004497a0
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.004771c0
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 0x44a044
cmp dword [esp + 0x40], 1
jne 0x44a042
cmp ecx, eax
jge 0x44a044
mov eax, ecx
cmp eax, 0xc8
jge 0x44a050
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00449e00
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.00477304
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44a7d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f353
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.00471e9f
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.0047753a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00478b50
test eax, eax
je 0x44a8ec
mov ecx, dword [esp + 0x3c]
call fcn.00477567
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 0x44a8b0
push edi
mov ecx, esi
call fcn.00474bc9
mov ecx, esi
call fcn.0044aa50
cmp dword [esp + 0x38], 1
jne 0x44a8e5
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.00474d04
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 0x44d310
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44d343
push esi
call fcn.00450400
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44d33c
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 0x44d3c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44d3b2
mov eax, dword [esi + 8]
test eax, eax
je 0x44d367
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 0x44d3ae
cmp eax, 2
je 0x44d3b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44d35a
cmp eax, 3
je 0x44d38d
cmp eax, 1
jne 0x44d35a
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 0x44d35a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44d35a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044d3f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44d3d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044d3f0
add esp, 4
pop esi
ret

Function at 0x459e80
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x459f23
test eax, eax
jbe 0x459f23
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x459f23
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x459ece
xor esi, esi
jmp 0x459ed4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x459eff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0045b9b0
add esi, eax
push esi
mov ebx, esi
call fcn.0045b9b0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x459ee0
pop ebp
test edi, edi
pop edi
jne 0x459f23
test ebx, ebx
je 0x459f23
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00460bb0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45a065
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45a17d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45a17d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004722f1
mov esi, eax
test esi, esi
je 0x45a17d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45a17d
mov ecx, esi
call fcn.00459fd0
cmp edi, eax
jge 0x45a17d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45a103
mov dword [esp + 0x34], 1
jmp 0x45a15e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45a17d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00458860
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45bd50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45bdb6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45bdb6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45bd97
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x45c140
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45c178
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45cda0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45cde9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45d260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47fb20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045ce10
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045ce90
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045ce90
lea ecx, [esi + 0xc]
call fcn.0047084e
lea ecx, [esi + 0x10]
call fcn.0047084e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045e430
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045e430
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045e430
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004708c3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004708c3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x472c94
Capabilities:
Get graphical window text

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

Function at 0x474386
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 0x4743c8
call fcn.0047a1fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4743c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4743bf
xor eax, eax
jmp 0x4743d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004743d6
pop edi
pop esi
pop ebx
ret 4

Function at 0x47a72c
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 0x47a75a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47a778
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047a692
jmp 0x47a778
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47a778
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047a692
test edi, edi
mov eax, edi
jne 0x47a762
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012a6
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
push esi
push edi
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
lea eax, [ebp - 0x4c0]
mov dword [esp], 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b4]
mov dword [esi], eax
push dword [ebp - 0x2b4]
call section..text
pop ecx
mov dword [esi + 4], eax
push dword [ebp - 0x2b4]
push 1
push 0xf7
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push 0xffffffffffffffeb
push ebx
call edi
push 0x4011a2
push 0xfffffffffffffffc
push ebx
call edi
push 1
push 0
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
leave
ret
Function at 0x40137c
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x401511
cmp dword [ebp - 4], 0x40
jne 0x401511
cmp word [ebp - 0x140], 0x5a4d
jne 0x401511
mov eax, dword [ebp - 0x104]
push ebx
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x401511
cmp dword [ebp - 4], 0xf8
jne 0x401511
cmp dword [ebp - 0x140], 0x4550
jne 0x401511
movzx eax, word [ebp - 0x128]
cmp eax, 0x10b
mov dword [esi + 0x1c], ebx
je 0x40144a
cmp eax, 0x20b
jne 0x401511
mov dword [esi + 0x10], 2
lea eax, [ebp - 0xa8]
jmp 0x401457
mov dword [esi + 0x10], 1
lea eax, [ebp - 0xb8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x12c]
push ebx
push ebx
lea eax, [eax + ecx + 0x18]
push eax
push dword [ebp + 8]
call edi
movzx edi, word [ebp - 0x13a]
cmp edi, ebx
mov dword [esi + 0x14], ebx
jbe 0x4014da
push ebx
lea eax, [ebp - 4]
push eax
push 0x28
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x401511
cmp dword [ebp - 4], 0x28
jne 0x401511
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
add eax, ecx
cmp eax, dword [esi + 0x14]
jbe 0x4014b5
mov dword [esi + 0x14], eax
test dword [ebp - 0x14], 0x20000020
jne 0x4014c9
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x2c]
jne 0x4014d5
cmp ecx, dword [ebp - 0x30]
jae 0x4014d5
mov dword [esi + 0x1c], 1
dec edi
jne 0x401487
jmp 0x4014dd
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
cmp dword [edx], eax
mov edi, dword [esi + 0x14]
mov dword [esi + 0x18], edi
jne 0x401506
mov eax, dword [ebp - 8]
lea ecx, [ecx + eax - 1]
neg eax
and ecx, eax
mov eax, dword [edx + 4]
cmp ecx, eax
jbe 0x401506
sub eax, ecx
add eax, edi
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
inc dword [eax + 4]
xor eax, eax
inc eax
jmp 0x401513
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x401517
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x204
push ebx
push ebp
push edi
xor ebp, ebp
push ebp
push ebp
push ebp
push dword [esp + 0x220]
mov edi, 0x200
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x21c]
sub eax, edi
push eax
push dword [esp + 0x224]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x401604
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x401604
sub eax, edi
add eax, 0x200
mov ebx, eax
lea edi, [esp + 0x10]
jmp 0x4015d9
push 6
push 0x40a0ac
push edi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x401597
cmp byte [edi + 0x1a], al
jne 0x401597
cmp byte [edi + 0x1b], al
je 0x401610
push 7
push 0x40a0a0
push edi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40161b
push 4
push str.0SCF
push edi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4015cb
cmp byte [edi + 0x18], 3
jne 0x4015cb
cmp byte [edi + 0x19], 1
je 0x40162a
mov edx, edi
call fcn.0040265c
test eax, eax
jne 0x40163d
dec ebx
inc edi
inc ebp
cmp ebx, 0x1c
jae 0x401579
test ebx, ebx
je 0x401604
push ebx
lea eax, [esp + 0x14]
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov edi, 0x200
add esp, 0xc
sub edi, ebx
cmp ebp, 0x200000
jb 0x401537
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x204
ret
xor eax, eax
inc eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], ebp
jmp 0x401606
mov dword [esi + 0xc], 2
mov dword [esi + 0x20], ebp
xor eax, eax
inc eax
jmp 0x401606
mov eax, dword [edi + 8]
and dword [esi + 0x2c], 0
mov dword [esi + 0xc], 3
mov dword [esi + 0x28], eax
jmp 0x401622
mov eax, dword [esp + 0x214]
push ebp
mov dword [esi + 0xc], 4
mov dword [esi + 0x20], ebp
call fcn.004026cd
pop ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
jmp 0x401625
Function at 0x401bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x401bf0
push edi
push 2
push 0x8001
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x84]
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x401c29
push dword [esi + 0x84]
push 0x70
push dword [esi + 8]
call fcn.0040210d
add esp, 0xc
jmp 0x401d30
mov eax, dword [esi + 0x5c]
mov dword [ebp - 8], edi
xor edx, edx
cmp word [eax], di
je 0x401c4b
xor ecx, ecx
cmp word [ecx + eax], 0x7f
ja 0x401c80
inc edx
lea ecx, [edx + edx]
mov ebx, eax
cmp word [ecx + ebx], di
jne 0x401c38
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push eax
push edi
push edi
call ebx
push eax
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push edi
push edi
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, dword [esi + 0x5c]
push 0xffffffffffffffff
push eax
push edi
push edi
call ebx
mov ebx, eax
dec ebx
jmp 0x401ca5
mov ebx, dword [esi + 0x64]
lea ebx, [ebx + ebx + 4]
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov word [eax], 0xfeff
push dword [esi + 0x5c]
mov dword [ebp - 4], eax
add eax, 2
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
dec ebx
dec ebx
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 4]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x401d0c
cmp dword [ebp - 8], ebx
jne 0x401d0c
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ebx, dword [ebp + 8]
cmp ebx, edi
pop ecx
je 0x401ce3
push 0x32
push 0x10002
push 0x8001
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [esi + 4], 0xffffffff
cmp ebx, edi
je 0x401d07
push 0x64
push 0x20002
push 0x8001
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
jmp 0x401d32
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x84]
push 0x71
push dword [esi + 8]
call fcn.0040210d
add esp, 0x10
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop ebx
leave
ret