joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100b1ef8], eax
je 0x1000647c
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x100b1efc]
test eax, eax
jne 0x1000664b
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1000649b
lea eax, [edi + 0x57]
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100064b8
cmp dword [esi], 0
jne 0x100064c5
mov dword [0x100b1efc], 6
mov dword [0x100b1f00], esi
pop esi
mov eax, 6
pop edi
mov esp, ebp
pop ebp
ret 8
push ebx
push 0x18
call fcn.10060cb0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100064de
lea esi, [eax + 8]
jmp 0x1000662b
mov esi, dword [esi]
test esi, esi
je 0x10006549
cmp byte [esi], 0xff
jne 0x10006508
cmp byte [esi + 1], 0x25
jne 0x10006508
mov eax, dword [esi + 2]
push eax
push esi
mov dword [ebp + 0xc], eax
call fcn.10005ec0
add esp, 8
test al, al
je 0x10006508
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x10006549
movsx eax, byte [esi + 1]
add esi, 2
add esi, eax
mov al, byte [esi]
cmp al, 0xff
jne 0x1000653d
cmp byte [esi + 1], 0x25
jne 0x1000653d
mov eax, dword [esi + 2]
push eax
push esi
mov dword [ebp + 0xc], eax
call fcn.10005ec0
add esp, 8
test al, al
je 0x10006549
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
jmp 0x10006549
cmp al, 0xe9
jne 0x10006549
mov eax, dword [esi + 1]
add esi, 5
add esi, eax
cmp byte [edi], 0xff
jne 0x1000656d
cmp byte [edi + 1], 0x25
jne 0x1000656d
mov eax, dword [edi + 2]
push eax
push edi
mov dword [ebp + 0xc], eax
call fcn.10005ec0
add esp, 8
test al, al
je 0x1000656d
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
cmp byte [edi], 0xeb
jne 0x100065ae
movsx eax, byte [edi + 1]
add edi, 2
add edi, eax
mov al, byte [edi]
cmp al, 0xff
jne 0x100065a2
cmp byte [edi + 1], 0x25
jne 0x100065a2
mov eax, dword [edi + 2]
push eax
push edi
mov dword [ebp + 0xc], eax
call fcn.10005ec0
add esp, 8
test al, al
je 0x100065ae
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
jmp 0x100065ae
cmp al, 0xe9
jne 0x100065ae
mov eax, dword [edi + 1]
add edi, 5
add edi, eax
movzx eax, byte [esi + 0x36]
mov ecx, dword [esi + 0x40]
sub ecx, eax
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x1000661d
cmp eax, 0x1e
ja 0x1000661d
cmp dword [esi + 0x44], edi
jne 0x1000661d
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push eax
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100065e9
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x1000662b
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 4], 1
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
mov eax, dword [0x100b1f08]
mov dword [ebx], eax
xor eax, eax
mov dword [0x100b1f08], ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x100b1ef0], 0
mov esi, 9
jne 0x10006631
mov dword [0x100b1efc], esi
test ebx, ebx
je 0x1000663e
push ebx
call fcn.10060d01
add esp, 4
mov eax, dword [ebp + 8]
pop ebx
mov dword [0x100b1f00], eax
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x10006660
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100b1ef8], eax
je 0x1000667a
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x100b1f08]
push edi
test esi, esi
je 0x100066e2
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [esi + 4], 0
jne 0x100066d0
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100066d0
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.10060c20
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push esi
call fcn.10060d01
add esp, 4
mov esi, edi
test edi, edi
jne 0x10006687
pop ebx
mov dword [0x100b1f08], 0
call fcn.10005f90
mov edi, dword [0x100b1f04]
test edi, edi
je 0x10006719
jmp 0x10006700
push dword [edi + 4]
call sub.KERNEL32.dll_ResumeThread
mov esi, dword [edi]
push edi
call fcn.10060d01
add esp, 4
mov edi, esi
test esi, esi
jne 0x10006700
pop edi
mov dword [0x100b1f04], 0
xor eax, eax
mov dword [0x100b1ef8], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006ac0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100b1efc]
test eax, eax
jne 0x10006b3d
push edi
call sub.KERNEL32.dll_GetCurrentThread
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x10006ae0
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.10060cb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10006af6
lea edi, [eax + 8]
jmp 0x10006b11
push edi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x10006b29
call sub.KERNEL32.dll_GetLastError
push esi
mov edi, eax
call fcn.10060d01
add esp, 4
pop esi
mov dword [0x100b1efc], edi
mov eax, edi
mov dword [0x100b1f00], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x100b1f04]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x100b1f04], esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x1000da30
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x100b206c]
test eax, eax
je 0x1000da58
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x100b206c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100b206c], 0
mov eax, dword [0x100b2070]
test eax, eax
je 0x1000da80
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x100b2070]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100b2070], 0
mov byte [0x100b49a1], 0
ret
Function at 0x10014b30
Capabilities:
Get disk information
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.10066640
mov eax, dword [0x100afcf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x401
call fcn.10060bf4
add esp, 4
mov ebx, eax
mov dword [ebp - 0x100c], ebx
push 0
push 1
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x1014], esi
test esi, esi
je 0x10014d14
push 1
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x10014d0d
push 0x400
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_K32GetMappedFileNameA
test eax, eax
je 0x10014d01
push 0x7ff
lea eax, [ebp - 0x1003]
push 0
push eax
call fcn.10060c20
add esp, 0xc
mov byte [ebp - 0x1004], 0
lea eax, [ebp - 0x1004]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x10014d01
push edi
push 0x3ff
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], 0
push 0
push eax
call fcn.10060c20
mov ax, word [0x10089ce8]
lea edi, [ebp - 0x1004]
mov word [ebp - 0x1008], ax
add esp, 0xc
mov al, byte [0x10089cea]
xor ebx, ebx
mov byte [ebp - 0x1006], al
nop
mov al, byte [edi]
mov byte [ebp - 0x1008], al
lea eax, [ebp - 0x404]
push 0x400
push eax
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10014ce1
lea esi, [ebp - 0x404]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10014c62
sub esi, ecx
cmp esi, 0x400
jae 0x10014ce1
push esi
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x100c]
call fcn.10066411
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x100c]
jne 0x10014ca0
cmp byte [esi + eax], 0x5c
jne 0x10014ca0
mov ebx, 1
jmp 0x10014ca2
xor ebx, ebx
test ebx, ebx
je 0x10014ce1
add eax, esi
push eax
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x804]
push str._s_s
push eax
call fcn.10061656
mov edx, dword [ebp - 0x100c]
lea eax, [ebp - 0x804]
mov ecx, eax
add esp, 0x10
sub edx, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x10014cd4
mov al, byte [edi]
inc edi
test al, al
jne 0x10014ce1
test ebx, ebx
jne 0x10014cf4
cmp byte [edi], bl
jne 0x10014c30
mov ebx, dword [ebp - 0x100c]
mov esi, dword [ebp - 0x1014]
pop edi
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10060c02
mov esp, ebp
pop ebp
ret
Function at 0x10014fd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.10066640
mov eax, dword [0x100afcf0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
je 0x1001510d
mov eax, dword [edx]
test eax, eax
je 0x1001510d
cmp byte [eax + 0x79], 0x1e
jne 0x1001510d
push esi
mov esi, dword [eax + 4]
push edi
lea edi, [eax + 0x8b]
test edi, edi
je 0x1001510b
test esi, esi
je 0x1001510b
cmp dword [0x100b4acc], 0
jne 0x10015073
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.10060c20
add esp, 0xc
mov eax, 0x100aee18
cmp dword [0x100aee2c], 0x10
cmovae eax, dword [0x100aee18]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0x10087b08
push edi
push str.Banned_List
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1001508a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10060c02
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100b4c10]
lea edx, [ebp - 0x1020]
inc eax
mov byte [ebp - 0x1020], 0
xorps xmm0, xmm0
mov dword [0x100b4c10], eax
movdqu xmmword [ebp - 0x101f], xmm0
mov word [ebp - 0x100f], 0
mov ecx, edi
mov byte [ebp - 0x100d], 0
sub edx, edi
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], esi
lea ecx, [ecx]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100150d0
lea eax, [ebp - 0x1020]
mov ecx, 0x100b4f8c
push eax
call fcn.1001d970
cmp dword [0x100b2154], 0
je 0x1001510b
push dword [0x100b4c10]
push edi
push str._s___d_n
call fcn.1006579e
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10060c02
mov esp, ebp
pop ebp
ret
Function at 0x10015c10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x23dc
call fcn.10066640
mov eax, dword [0x100afcf0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100b4dc4], 0
je 0x10015c48
mov dword [0x100b4f04], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10060c02
mov esp, ebp
pop ebp
ret
cmp byte [0x100b49a1], 0
jne 0x10015e0f
push esi
mov byte [0x100b49a1], 1
call fcn.1004f460
push str.thaison123
push 0x10088198
push str.war3key
call fcn.10055330
mov edx, eax
add esp, 0xc
cmp byte [edx], 0
jne 0x10015c84
xor ecx, ecx
jmp 0x10015c99
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10015c90
sub ecx, esi
push edi
push ecx
mov edi, 0x100aedd0
push edx
mov ecx, edi
call fcn.10008cc0
push 0x1fff
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.10060c20
add esp, 0xc
lea eax, [ebp - 0x23dc]
push eax
call sub.libmysql.dll_mysql_init
cmp dword [0x100aedcc], 0x10
mov esi, 0x100aedb8
push 0
cmovae esi, dword [0x100aedb8]
mov edx, 0x100aeda0
cmp dword [0x100aedb4], 0x10
mov ecx, 0x100aed88
push 0
cmovae edx, dword [0x100aeda0]
mov eax, 0x100aed70
cmp dword [0x100aed9c], 0x10
push 0
cmovae ecx, dword [0x100aed88]
cmp dword [0x100aed84], 0x10
push esi
cmovae eax, dword [0x100aed70]
push edx
push ecx
push eax
lea eax, [ebp - 0x23dc]
push eax
call sub.libmysql.dll_mysql_real_connect
test eax, eax
je 0x10015dfe
cmp dword [0x100aede4], 0x10
mov eax, edi
cmovae eax, dword [0x100aedd0]
push eax
push str.SELECT__Active__FROM_userkey_WHERE__Key____s
lea eax, [ebp - 0x2004]
push 0x1fff
push eax
call fcn.100616da
add esp, 0x10
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x23dc]
push eax
call sub.libmysql.dll_mysql_query
test eax, eax
lea eax, [ebp - 0x23dc]
push eax
jne 0x10015df9
call sub.libmysql.dll_mysql_store_result
mov esi, eax
push esi
call sub.libmysql.dll_mysql_fetch_row
test eax, eax
je 0x10015e1d
mov eax, dword [eax]
test eax, eax
je 0x10015e2c
push eax
call fcn.1006626f
add esp, 4
mov dword [0x100b4f04], eax
test eax, eax
je 0x10015e1d
cmp dword [0x100aede4], 0x10
lea eax, [ebp - 0x2004]
cmovae edi, dword [0x100aedd0]
push edi
push str.UPDATE__userkey__SET__DangNhap____DangNhap___1_WHERE__Key____s
push 0x1fff
push eax
call fcn.100616da
add esp, 0x10
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x23dc]
push eax
call sub.libmysql.dll_mysql_query
test eax, eax
je 0x10015e2c
push esi
call sub.libmysql.dll_mysql_free_result
lea eax, [ebp - 0x23dc]
push eax
call sub.libmysql.dll_mysql_close
push str.Loi_ket_noi_toi_Server
push 1
call fcn.10018590
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10060c02
mov esp, ebp
pop ebp
ret
push str.Key_chua_Kich_Hoat
push 1
call fcn.10018590
add esp, 8
push esi
call sub.libmysql.dll_mysql_free_result
lea eax, [ebp - 0x23dc]
push eax
call sub.libmysql.dll_mysql_close
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10060c02
mov esp, ebp
pop ebp
ret
Function at 0x100177c0
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [0x100b206c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100177e8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x100b206c]
call esi
xor eax, eax
mov dword [0x100b206c], eax
mov ecx, dword [0x100b2070]
test ecx, ecx
je 0x10017812
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x100b2070]
call esi
mov eax, dword [0x100b206c]
mov dword [0x100b2070], 0
test eax, eax
jne 0x1001782e
push eax
push eax
push eax
push 0x10017830
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x100b206c], eax
call esi
pop esi
ret

Function at 0x10018590
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.10065bfd
lea esi, [eax + 1]
push esi
call fcn.10060bf4
push esi
mov edi, eax
push 0
push edi
call fcn.10060c20
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
push edi
call fcn.10065be2
add esp, 0x28
push 0x40
push str.Warning
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.10060bfd
add esp, 4
cmp byte [ebp + 8], 0
pop edi
pop esi
jne 0x100185e9
pop ebp
ret
push 0xffffffffffffffff
call fcn.100661ac
int3
Function at 0x1001aba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081058
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100afcf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x1001acc5
cmp byte [ebx + 0x45], 0
je 0x1001acc5
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1001abf4
xor al, al
jmp 0x1001acc7
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1001ac5e
dec eax
je 0x1001ac62
sub eax, 2
je 0x1001acae
xor bl, bl
jmp 0x1001acb0
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x1001ac94
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10065707
add esp, 0x10
cmp esi, eax
jne 0x1001ac5a
cmp byte [ebx + 0x45], 0
je 0x1001acae
test esi, esi
jne 0x1001ac24
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.100089f0
jmp 0x1001ac24
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x1001acc1
push dword [ebp - 0x28]
call fcn.10060d01
add esp, 4
mov al, bl
jmp 0x1001acc7
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10060c02
mov esp, ebp
pop ebp
ret
Function at 0x1001ea20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100b5170]
mov dword [ebp - 4], 0
test eax, eax
jne 0x1001ea3e
call fcn.1001eba0
mov eax, dword [0x100b5170]
push ebx
cmp eax, 0x18f3
jne 0x1001ea4b
mov ebx, dword [ebp + 0xc]
jmp 0x1001ea55
cmp eax, 0x1901
jne 0x1001eaca
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1001eaca
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1001ea8b
push esi
push 0x1008a16c
push str.__s___hmod:__s
call fcn.10054f50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x1001ea8b
xor ebx, ebx
jmp 0x1001ea9f
test ebx, ebx
jns 0x1001ea9d
neg ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
jmp 0x1001ea9f
add ebx, eax
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push edi
push ebx
call esi
push edi
push dword [ebp + 0x14]
push ebx
call fcn.10060eb0
add esp, 0xc
push 0
push dword [ebp - 4]
push edi
push ebx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001eb40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x40
push ebx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001eba0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push edi
push eax
call fcn.1001e0e0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x1001ec26
push esi
push edi
call fcn.10060bf4
add esp, 4
mov esi, eax
push esi
push edi
push dword [ebp - 4]
call fcn.1001e0e0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x1001ebf2
push esi
call fcn.10060d01
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x34
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1008a168
push esi
call sub.VERSION.dll_VerQueryValueA
push esi
test eax, eax
je 0x1001ebe4
call fcn.10060d01
mov eax, dword [ebp - 0xc]
add esp, 4
movzx eax, word [eax + 0xc]
mov dword [0x100b5170], eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1001f330
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100afcf0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1001f374
push 0x1008a2b0
mov ecx, esi
call fcn.1001ece0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10060c02
mov esp, ebp
pop ebp
ret
push edi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x1001f3a1
push 0x1008a2b0
mov ecx, esi
call fcn.1001ece0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10060c02
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1001f383
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001ece0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.1001ec70
cmp dword [ebp - 8], 8
jb 0x1001f3de
push dword [ebp - 0x1c]
call fcn.10060d01
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10060c02
mov esp, ebp
pop ebp
ret
Function at 0x10020b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080be1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100afcf0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [edi + 0x1c]
mov dword [ebp - 4], 2
cmp esi, dword [edi + 0x20]
je 0x10020b72
lea esp, [esp]
push dword [esi]
call fcn.1004fce0
add esi, 4
add esp, 4
cmp esi, dword [edi + 0x20]
jne 0x10020b60
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x20], eax
mov esi, dword [edi + 0x28]
cmp esi, dword [edi + 0x2c]
je 0x10020b92
push dword [esi]
call fcn.10043430
add esi, 4
add esp, 4
cmp esi, dword [edi + 0x2c]
jne 0x10020b80
mov eax, dword [edi + 0x28]
mov dword [edi + 0x2c], eax
mov esi, dword [edi + 0x34]
cmp esi, dword [edi + 0x38]
je 0x10020bb5
mov ecx, dword [esi]
test ecx, ecx
je 0x10020bad
mov eax, dword [ecx]
push 1
call dword [eax + 0x78]
add esi, 4
cmp esi, dword [edi + 0x38]
jne 0x10020ba0
mov eax, dword [edi + 0x34]
mov dword [edi + 0x38], eax
push dword [edi + 0x14]
call fcn.10050700
mov ecx, dword [edi + 0x10]
add esp, 4
test ecx, ecx
je 0x10020bd4
mov eax, dword [ecx]
push 1
call dword [eax + 0x78]
push dword [edi + 8]
call fcn.1004fce0
push dword [edi + 0xc]
call fcn.10043430
push dword [edi + 4]
call fcn.10050df0
push dword [edi]
call fcn.10050700
mov eax, dword [edi + 0x34]
add esp, 0x10
test eax, eax
je 0x10020c1b
push eax
call fcn.10060d01
add esp, 4
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x10020c40
push eax
call fcn.10060d01
add esp, 4
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x10020c65
push eax
call fcn.10060d01
add esp, 4
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret