joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459520
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x459553
push esi
call fcn.00467870
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45954c
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 0x4595d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4595c2
mov eax, dword [esi + 8]
test eax, eax
je 0x459577
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 0x4595be
cmp eax, 2
je 0x4595c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45956a
cmp eax, 3
je 0x45959d
cmp eax, 1
jne 0x45956a
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 0x45956a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45956a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00459600
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4595e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00459600
add esp, 4
pop esi
ret

Function at 0x459e70
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x459e91
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x459e91
mov eax, dword [eax + 0x44]
test eax, eax
je 0x459e91
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x475b70
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 0x475bd6
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 0x475bd6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x475bb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x475f60
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x475f98
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 0x476c30
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 0x476c79
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 0x4770f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1ed0
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.00476ca0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00476d20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00476d20
lea ecx, [esi + 0xc]
call fcn.004a3e78
lea ecx, [esi + 0x10]
call fcn.004a3e78
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004782b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004782b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004782b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a3eed
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a3eed
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47e2c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5536b0]
xor edx, edx
cmp eax, edx
jne 0x47e2e6
xor eax, eax
mov byte [eax + 0x5535b0], al
inc eax
cmp eax, 0x100
jl 0x47e2ce
mov dword [0x5536b0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5535b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x47e377
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47e34a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x47e318
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x47e3f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x47e443
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47e42a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x484e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b22ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00485720
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4fd9a4
call fcn.004a3c2e
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x484e93
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a3c2e
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x484e8c
push 0
mov ecx, eax
call fcn.0047bf00
mov dword [esi + 0xc], eax
jmp 0x484e95
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x484e95
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4a62a4
Capabilities:
Get graphical window text

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

Function at 0x4a7996
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 0x4a79d8
call fcn.004ad5d5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a79d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a79cf
xor eax, eax
jmp 0x4a79e0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a79e6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4adb05
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 0x4adb33
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4adb51
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ada6b
jmp 0x4adb51
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4adb51
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ada6b
test edi, edi
mov eax, edi
jne 0x4adb3b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and edi, 0x3f
neg esi
sbb edx, 0xa7
dec ebx
mov ebx, 4
not eax
bswap ebx
dec ebx
or eax, 0xe7
sbb ebx, 0xad
rcr edi, 0xba
sbb ebx, 0x7a
mov eax, 0x6f
rol esi, 0xdf
not esi
rol eax, 0x4a
neg ebx
inc edx
ror edx, 0x64
bswap edi
bswap edi
and ebx, 0xd
inc eax
mov ebx, 0x9d
imul edi
or esi, 0xac
neg eax
imul edx
neg edx
add edx, 0x9d
imul ebx
rol edi, 0x9c
neg edi
rcl edi, 0xef
sbb edx, 0x90
not edx
ror ebx, 0x52
add esi, 0x8f
neg esi
rcr edi, 0x91
mov eax, 0xc5
dec edi
bswap edx
neg edi
and eax, 0x40
ror ebx, 6
neg edi
imul ebx
or eax, 0x19
not edi
xor ecx, ecx
xor edi, edi
rcr esi, 0xc9
sub esi, 0xee
sub edx, 0xe2
neg eax
neg ebx
or esi, 0x56
rol ebx, 0xeb
rcl esi, 0xc1
mov eax, 0x57
sbb ebx, 0x3f
not ebx
sbb esi, 0x30
rcr eax, 0xba
and esi, 0x8f
add edi, 0x12
inc eax
imul edx
or esi, 0xcb
sbb edx, 0xba
inc edi
rcr esi, 0xdc
sub edx, 0x94
ror edx, 9
inc edx
add esi, 0xf6
sub esi, 0x8a
or eax, 0xe2
and esi, 0xf4
ror edi, 4
inc eax
ror edi, 0xdb
not esi
dec ebx
dec eax
inc ebx
add eax, 0x14
rcl edx, 0xda
and ebx, 0xa
imul edx
rcl edx, 0xce
add esi, 0xb9
rcr edx, 0xb8
or ebx, 0x2d
sub edi, 0x76
neg ebx
neg edx
and edi, 0x7b
neg edi
mov eax, 0x1b
imul ebx
mov ecx, dword [ebp + 0xc]
rcr ebx, 0x71
bswap edi
rcr esi, 0xbe
rol esi, 1
neg edi
add esi, 0x4f
ror eax, 0xd6
ror ebx, 0xb8
not eax
not ebx
add edx, 0x78
not edi
or ebx, 0x32
sbb esi, 0xe1
ror eax, 0xf7
rol ebx, 0x91
neg edx
sbb edx, 0x1f
neg eax
or edx, 0x38
and esi, 0x7f
sub ebx, 0x88
imul ebx
ror edx, 7
bswap edi
rcl edx, 0x57
bswap ebx
rol edx, 0x3f
bswap eax
sbb edx, 0x24
add edi, 0x80
neg edx
not edi
dec esi
imul eax
rcl edi, 0xa0
sub edx, 0x33
dec esi
and ebx, 0x7b
rol eax, 0x52
mov ebx, 0xf8
rcr esi, 0x9d
dec edi
neg esi
bswap ebx
sbb eax, 0x4a
rcr eax, 0xb9
rol eax, 0xed
ror eax, 0x49
not edi
mov edi, dword [ebp + 8]
mov esi, ebx
xor ebx, eax
xor esi, eax
mov ebx, esi
xor eax, ebx
mov eax, eax
xor ebx, eax
xor ebx, ebx
xor eax, eax
xor eax, ebx
xor esi, esi
xor eax, eax
not byte [edi]
mov ebx, esi
xor esi, ebx
mov esi, eax
mov eax, eax
xor eax, eax
xor esi, eax
xor eax, ebx
xor esi, ebx
mov esi, esi
sub byte [edi], 0x76
mov esi, eax
mov eax, ebx
mov ebx, esi
mov eax, eax
xor ebx, eax
mov esi, ebx
xor ebx, ebx
xor eax, esi
xor eax, esi
add byte [edi], 0x45
mov eax, ebx
xor esi, ebx
xor esi, ebx
xor ebx, eax
xor eax, esi
xor eax, ebx
xor esi, esi
xor esi, esi
mov ebx, ebx
imul byte [edi]
inc edi
loop 0x4011db
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404a06
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404a45
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404a45
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404a45
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404a45
cmp dword [ecx + 0x74], 0xe
jbe 0x404a45
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40a546
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40a5e3
push ebx
push esi
call fcn.0040a50f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040a458
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a590
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a5e2
push edi
push eax
call fcn.0040b146
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a5b0
call fcn.00409081
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a5e1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a458
add esp, 0x20
test eax, eax
jne 0x40a5cf
push edi
call fcn.00409081
jmp 0x40a5d7
push ebx
call fcn.00409081
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40b8c9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469c68
push 0x469c60
push str.FlsAlloc
push 0x1e
call fcn.0040b78a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b8fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
jmp 0x40b903
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b947
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469c78
push 0x469c70
push str.FlsGetValue
push 0x20
call fcn.0040b78a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b97e
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x410e00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410e2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410e2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401520
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x411d88]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x170]
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov cl, 0x5c
cmp byte [esp + eax], cl
je 0x40155b
sub eax, 1
cmp byte [esp + eax], cl
jne 0x401553
push 1
lea edx, [esp + 4]
push edx
push 0
push str.order.txt
push 0x40e300
push 0
mov byte [esp + eax + 0x19], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0040408d
add esp, 0x16c
ret

Function at 0x401f60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ebp
shr ebx, 0x10
and ebx, 0xff
cmp ebx, 0x36
jae 0x402085
cmp dword [0x4132bc], 0
jne 0x401f8c
cmp ebx, 0x1b
jbe 0x402085
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [ebx + ebx*4]
mov esi, dword [edi + eax*4]
cmp esi, 0xffffffff
lea eax, [edi + eax*4]
mov dword [esp + 0x1c], eax
je 0x402083
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x401fd4
mov eax, ebp
and eax, 0x20000000
neg eax
sbb eax, eax
neg eax
add eax, 1
cmp edi, 0x4114c0
jne 0x401fd2
lea esi, [esi + eax*4]
jmp 0x401fd4
add esi, eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x402002
mov eax, ebp
and eax, 0x20000000
neg eax
sbb eax, eax
neg eax
add eax, 1
cmp edi, 0x4114c0
jne 0x402000
neg eax
lea esi, [esi + eax*4]
jmp 0x402002
sub esi, eax
cmp dword [esp + 0x18], 0x101
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
jne 0x402047
mov edx, dword [0x412dd4]
mov ecx, dword [0x413268]
push 0
push eax
mov eax, dword [0x4132a8]
add edx, esi
push edx
push eax
push ecx
call fcn.00401b50
mov edx, dword [esp + 0x28]
push edi
push 0
push ebx
push edx
call fcn.00401cf0
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
ret
test ebp, 0x40000000
jne 0x402083
mov ecx, dword [0x411078]
mov edx, dword [0x412dd4]
push ecx
mov ecx, dword [0x413268]
push eax
mov eax, dword [0x4132a8]
add edx, esi
push edx
push eax
push ecx
call fcn.00401bb0
mov edx, dword [esp + 0x28]
push edi
push 1
push ebx
push edx
call fcn.00401cf0
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403940
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
xor ebp, ebp
cmp dword [esp + 0x58], ebp
push edi
mov edi, dword [esp + 0x58]
mov esi, str.SweetPiano
jne 0x4039af
push str.SWEET_PIANO
push edi
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x402320
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebp
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x4c], 0x10
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebp
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
push edi
push ebp
push ebp
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Sweet_Little_Piano_Freeware
push esi
push ebp
call ebx
push ebp
push edi
push ebp
mov esi, eax
push esi
push ebp
push ebp
push ebp
push ebp
push 0x50010001
push ebp
push str.scrollbar
push ebp
mov dword [0x41328c], esi
call ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SetScrollRange]
push 0x7f
push 1
push 2
push eax
mov dword [0x413290], eax
call ebp
mov edx, dword [0x413290]
push 1
mov ecx, 0x80
sub ecx, dword [0x411078]
push ecx
push 2
push edx
call dword [sym.imp.USER32.dll_SetScrollPos]
push 0
push edi
push 1
push esi
push 0
push 0
push 0
push 0
push 0x50010000
push 0
push str.scrollbar
push 0
call ebx
push 0
push 0x7f
push 0
push 2
push eax
mov dword [0x413294], eax
call ebp
mov eax, dword [0x4132b0]
mov ecx, dword [0x413294]
push 0
push eax
push 2
push ecx
call dword [sym.imp.USER32.dll_SetScrollPos]
push 0
push edi
push 2
push esi
push 0
push 0
push 0
push 0
push 0x50010001
push 0
push str.scrollbar
push 0
call ebx
push 0
push 0x3fff
push 0
push 2
push eax
mov dword [0x413298], eax
call ebp
mov edx, dword [0x413298]
push 0
push 0x2000
push 2
push edx
call dword [sym.imp.USER32.dll_SetScrollPos]
mov eax, dword [esp + 0x64]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x403b0f
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ecx]
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
jne 0x403af0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x10

Function at 0x40408d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411d88]
jne 0x404097
repz ret
jmp fcn.004045e5
Function at 0x40453a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x40f700
call fcn.00405c8c
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4043a5
push 0x12
call fcn.004042f5
pop ecx
jmp 0x40452f
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x4043c3
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40452f
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x4043f5
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x41370c], esi
mov dword [0x413714], eax
mov dword [0x413718], ecx
mov dword [0x41371c], edx
mov dword [0x413710], edi
call fcn.00404319
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.0040696f
pop ecx
test eax, eax
jne 0x40443d
push 0x1c
call fcn.004042f5
pop ecx
call fcn.00405689
test eax, eax
jne 0x40444e
push 0x10
call fcn.004042f5
pop ecx
call fcn.004068cc
mov dword [ebp - 4], ebx
call fcn.0040668c
test eax, eax
jge 0x404467
push 0x1b
call fcn.00405983
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x413f80], eax
call fcn.00406557
mov dword [0x4133c0], eax
call fcn.0040649e
test eax, eax
jge 0x40448d
push 8
call fcn.00405983
pop ecx
call fcn.0040622b
test eax, eax
jge 0x40449e
push 9
call fcn.00405983
pop ecx
push ebx
call fcn.00405a9f
pop ecx
test eax, eax
je 0x4044b0
push eax
call fcn.00405983
pop ecx
call fcn.004061ce
test byte [ebp - 0x44], bl
je 0x4044c0
movzx ecx, word [ebp - 0x40]
jmp 0x4044c3
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x4044e0
push eax
call fcn.00405bff
call fcn.00405c21
jmp 0x404515
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x404534
mov eax, 0xff
call fcn.00405cd1
ret
call fcn.004069c9
jmp 0x40435a