joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4481a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x5a9ab0
lea eax, [ebp - 0x268]
call fcn.0040ebc0
xor eax, eax
push fcn.00448180
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4481e3
mov eax, 0x6052f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x44822b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x4481ff
clc
jmp 0x448206
bt dword [0x5a9080], eax
jb 0x44821f
mov eax, ebp
call fcn.004482d0
test al, al
je 0x44821f
mov byte [ebp - 0x26c], 1
jmp 0x4482b0
mov byte [ebp - 0x26c], 0
jmp 0x4482b0
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x580c20]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x4482b0
and esi, 0x400
je 0x4482b0
lea ebx, [ebp - 0x268]
mov edx, 0x5a9ab0
mov eax, ebx
call fcn.0040ec80
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00447e40
test eax, eax
je 0x448284
sub eax, 1
je 0x44829c
jmp 0x4482a8
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.004481a0
mov byte [ebp - 0x26c], al
jmp 0x4482b0
mov byte [ebp - 0x26c], 1
jmp 0x4482b0
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00448180
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4484c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x4484cc
mov eax, 0x6052f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esp, ebp
pop ebp
ret

Function at 0x448570
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00448560
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x4485e0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b9c0
cmp ebx, 1
jle 0x4485d0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040b170
jmp 0x4485eb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408d80
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00448560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4489f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004489e0
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x62856c]
xor edx, edx
call fcn.00408d80
mov dword [ebx*4 + 0x62858c], 0xffffffff
cmp ebx, 7
jl 0x448a18
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x448aa4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409770
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0043e9b0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x448aa4
push 4
push ebx
push esi
mov eax, 0x4488c0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x448950
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004489e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4490f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.004490c0
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040b320
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00444890
jmp 0x4491c8
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040b2d0
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040be80
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040bc20
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00444890
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040b980
test eax, eax
jne 0x4491b8
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4491a6
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040bc20
jmp 0x4491cf
mov eax, esi
call fcn.00404b10
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x449150
push edi
call sub.kernel32.dll_FreeEnvironmentStringsW
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004490c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449210
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x6285d0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x628430], eax
mov eax, dword [ebp - 0x90]
mov dword [0x628440], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x628450], eax
mov eax, dword [ebp - 0x88]
mov dword [0x628460], eax
mov edx, 0x628471
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403990
lea eax, [ebp - 0x80]
call fcn.00404af0
mov byte [0x628470], al
mov eax, 0x5a9150
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x6285e0], eax
test eax, eax
je 0x4492b0
mov eax, 0x5a915c
push eax
push dword [0x6285e0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x6285d0], eax
nop
cmp dword [0x628440], 6
jae 0x4492c4
mov dword [0x5804e0], 0
nop
cmp dword [0x628440], 6
jb 0x4492e0
cmp dword [0x628450], 1
jb 0x4492e0
mov dword [0x5804f0], 2
mov esp, ebp
pop ebp
ret

Function at 0x458f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x458fb8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x459066
mov esi, esi
xor eax, eax
push 0x459047
push ebp
push 0x4153f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
je 0x45901c
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0042c380
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x45903c
cmp dword [ebp - 8], 0
je 0x45903c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x459066
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x495f80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x495fa8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x49605e
mov esi, esi
xor eax, eax
push 0x49603f
push ebp
push 0x4153f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040d400
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x496034
cmp dword [ebp - 8], 0
je 0x496034
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x49605e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0030
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x4a00da
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x4a00f6
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x4a00f6
sub dx, 0x20
je 0x4a00d0
sub dx, 0x80
je 0x4a00d0
sub dx, 0x1f62
jb 0x4a00f6
sub dx, 1
jbe 0x4a00d0
sub dx, 6
je 0x4a00d0
sub dx, 0x26
jne 0x4a00f6
nop
jmp 0x4a00d0
cmp eax, dword [ebp - 0x20]
jg 0x4a0078
lea esi, [esi]
jmp 0x4a00f6
cmp dword [ebp - 0x1c], 2
jne 0x4a00ea
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x4a00f6
mov al, byte [ebp - 0xc]
call fcn.0040b620
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x4a0174
sub ax, 0x21
je 0x4a0188
sub ax, 0x17
je 0x4a0194
sub ax, 0x222
je 0x4a01a0
sub ax, 0x392
je 0x4a01a8
sub ax, 1
je 0x4a01b0
sub ax, 0x1996
je 0x4a01b8
sub ax, 1
je 0x4a01c0
sub ax, 6
je 0x4a01c8
sub ax, 0xb
je 0x4a01d8
sub ax, 0x1b
je 0x4a01d0
sub ax, 0x367
je 0x4a01e0
jmp 0x4a01e8
mov ax, word [ebp - 0x24]
call fcn.0040b6c0
mov byte [ebp - 0x10], al
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x20
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x2e
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x27
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x2c
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x27
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x20
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x20
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x20
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x20
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x2d
jmp 0x4a01f0
mov byte [ebp - 0x10], 0x27
jmp 0x4a01f0
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4c5c10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x50]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
xor eax, eax
push fcn.004c5bf0
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 1
mov eax, 0x5c4020
call fcn.004bcb90
mov edx, dword [ebp - 4]
mov dword [edx - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x1c]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x4c5cd4
mov dword [ebp - 0xc], 0xffffffff
lea esi, [esi]
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
lea esi, [eax - 1]
test esi, esi
jl 0x4c5ccc
mov dword [ebp - 8], 0xffffffff
lea esi, [esi]
nop
add dword [ebp - 8], 1
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c5f60
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x10]
mov ecx, dword [ecx]
call dword [ecx + pe_nt_image_headers32]
cmp esi, dword [ebp - 8]
jg 0x4c5c98
mov esi, esi
cmp ebx, dword [ebp - 0xc]
jg 0x4c5c78
lea esi, [esi]
mov eax, dword [ebp - 4]
mov dword [eax - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.004bcf10
mov dword [ebp - 0x14], eax
jmp 0x4c5d0e
mov ecx, dword [ebp - 0x14]
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 6
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
add dword [eax - 0x1c], 1
cmp dword [ebp - 0x14], 0
jg 0x4c5cf0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.004bcf10
shl eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
sub eax, 0x14
mov edx, dword [ebp - 0x10]
call fcn.0040fe70
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 0x10]
xor cl, cl
call fcn.004039d0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.004bcf10
mov ebx, eax
sub ebx, 1
test ebx, ebx
jl 0x4c5e04
mov dword [ebp - 0x14], 0xffffffff
lea esi, [esi]
Function at 0x4db6f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x4db724
mov edi, 0xffffffff
nop
add edi, 1
mov cl, al
xor cl, byte [edx]
and ecx, 0xff
mov ebx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x629b20]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x4db700
pop edi
pop esi
pop ebx
ret

Function at 0x4e3720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov edx, eax
xor eax, eax
lea ebx, [edx + 1]
movzx ecx, byte [edx]
add ecx, 1
and ecx, 0xff
add edx, ecx
jmp 0x4e3751
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor ecx, esi
mov eax, ecx
add ebx, 1
cmp edx, ebx
ja 0x4e3740
pop esi
pop ebx
ret

Function at 0x4e4f30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, 1
jne 0x4e4f54
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
call dword [edx + 0x34]
mov dword [ebp - 8], eax
lea esi, [esi]
cmp dword [ebp - 8], 0
je 0x4e501a
mov esi, esi
xor eax, eax
push 0x4e4ffb
push ebp
push 0x4153f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040d400
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0xe], 0
mov edx, 1
mov eax, 0x5a3c38
call fcn.0042e440
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004e51b0
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004e5220
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004e5290
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4e4ff0
cmp dword [ebp - 4], 0
je 0x4e4ff0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x44]
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4e501a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ece40
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4ece74
mov eax, esi
call fcn.004f13c0
cmp byte [esi + 0x40], 0
je 0x4ece6c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4ecf25
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4ecf04
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4ecefc
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4ecea8
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4ecec0
xor bl, bl
jmp 0x4ecf25
cmp edi, 2
je 0x4ecefa
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4ece98
cmp edi, 3
je 0x4eced8
cmp edi, 1
jne 0x4ece98
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4ece98
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4ece98
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4ecf1c
cmp dword [esi + 0x14], 0xcc
je 0x4ecf1c
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004ed260
lea esi, [esi]
mov eax, esi
call fcn.004ecf30
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x5103c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
cmp dword [eax + 0x24], 0
je 0x510408
mov eax, dword [0x5801b0]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x170]
cmp eax, dword [edx + 0x24]
jne 0x510408
mov eax, dword [0x5801b0]
cmp byte [eax + 0x11c], 0
jne 0x510408
mov eax, dword [0x581820]
mov edx, dword [0x581820]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx], eax
nop
mov ebx, dword [ebp - 4]
mov eax, dword [0x581820]
mov edx, dword [0x581820]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x5104fe
mov eax, dword [0x5801b0]
cmp byte [eax + 0x11c], 0
jne 0x5104fe
mov eax, dword [0x581820]
mov edx, dword [0x581820]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.005481f0
mov eax, dword [0x5801b0]
cmp dword [eax + 0x170], 0
je 0x5104c4
push 0x10
push 0
mov eax, dword [0x5801b0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x254]
mov eax, dword [0x5801b0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x248]
mov eax, dword [0x5801b0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x12c]
push 0
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_SetWindowPos
mov eax, dword [0x5801b0]
mov eax, dword [eax + 0x170]
call fcn.00485ac0
test al, al
je 0x5104c4
push 0
mov eax, dword [0x5801b0]
call fcn.00424130
push eax
call sub.user32.dll_ShowWindow
lea esi, [esi]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5801b0]
call fcn.00427330
jmp 0x510594
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x510552
mov eax, dword [ebp - 4]
mov edx, dword [0x5801b0]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
jne 0x510552
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5801b0]
call fcn.00427330
jmp 0x510594
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x510594
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
je 0x510594
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x581820]
mov edx, dword [0x581820]
mov edx, dword [edx]
call dword [edx + 0x8c]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5105a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
mov ebx, eax
mov eax, dword [0x581820]
mov edx, dword [0x581820]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x510670
mov eax, dword [0x5801b0]
cmp byte [eax + 0x11c], 0
jne 0x510670
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5801b0]
cmp dword [eax + 0x170], 0
je 0x510664
mov eax, dword [0x5801b0]
mov eax, dword [eax + 0x170]
call fcn.00485ac0
test al, al
je 0x510664
mov eax, dword [0x5801b0]
mov eax, dword [eax + 0x170]
mov edx, dword [0x5801b0]
mov edx, dword [edx + 0x170]
mov edx, dword [edx]
call dword [edx + 0x344]
test al, al
je 0x51065c
push 8
mov eax, dword [0x5801b0]
call fcn.00424130
push eax
call sub.user32.dll_ShowWindow
lea esi, [esi]
call fcn.005482c0
lea esi, [esi]
mov eax, dword [0x5801b0]
call fcn.00427370
jmp 0x5106d4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x510699
mov eax, dword [ebp - 4]
mov edx, dword [0x5801b0]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
jne 0x510699
mov eax, dword [0x5801b0]
call fcn.00427370
jmp 0x5106d4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x5106d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
je 0x5106d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [0x581820]
mov edx, dword [0x581820]
mov edx, dword [edx]
call dword [edx + 0x90]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x515c60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 8
mov eax, fcn.00514400
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00413f70
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x6052d0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x515cb8
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov esi, esi
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, str.Window
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
cmp byte [ebp - 8], 0
je 0x515d34
or dword [ebp - 0x30], 0x800
cmp dword [0x599600], 6
jb 0x515d0c
or dword [ebp - 0x30], 0x20000
mov esi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, str.HintWindow
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
mov esi, esi
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x516d80
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
je 0x516e18
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jle 0x516e18
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.00516d60
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00516d60
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret