joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484d88
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.0040419c
mov eax, dword [ebp - 8]
call fcn.0040419c
xor eax, eax
push ebp
push 0x484ebc
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [edi + 0x2d4]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [edi + 0x2d4]
mov edx, dword [ebp - 8]
call fcn.00462e24
mov eax, dword [0x4b4988]
mov eax, dword [eax]
mov eax, dword [eax + 0x2dc]
mov edx, 0x64
call fcn.00482e98
mov eax, dword [0x4b4988]
mov eax, dword [eax]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00482ecc
xor eax, eax
push ebp
push 0x484e5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [edi + 0x2d4]
mov byte [esi + 0x8d5], 0
mov byte [esi + 0x9cc], 0
mov byte [esi + 0x9ac], 1
mov eax, dword [esi + 0x8e4]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [edi + 0x2d4]
mov eax, dword [eax + 0x8e4]
mov edx, 0x484ed4
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [edi + 0x2d4]
call fcn.004645ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x484e8a
mov eax, dword [0x4b4988]
mov eax, dword [eax]
mov eax, dword [eax + 0x2dc]
mov edx, 0x64
call fcn.00482ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484ec3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403d8c
ret

Function at 0x48908c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
jne 0x4890a7
xor eax, eax
jmp 0x4890ef
mov edx, dword [esp + 0x10]
sub edx, 1
jb 0x4890b7
je 0x4890be
dec edx
je 0x4890d8
jmp 0x4890ed
mov eax, 3
jmp 0x4890ef
mov eax, dword [esp + 8]
test eax, eax
jne 0x4890cd
mov eax, 4
jmp 0x4890ef
test eax, eax
jbe 0x4890d8
mov eax, 5
jmp 0x4890ef
cmp dword [esp + 4], 5
jae 0x4890e6
mov eax, 6
jmp 0x4890ef
mov eax, 7
jmp 0x4890ef
xor eax, eax
add esp, 0x94
ret

Function at 0x4a32ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4b471e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a3357
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4b473f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a334d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4a335b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4af918
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
xor eax, eax
mov dword [ebp - 0x194], eax
xor eax, eax
push ebp
push 0x4af9ad
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
inc eax
jne 0x4af961
mov ecx, 0x4af9c0
mov dl, 1
mov eax, dword [0x4af8bc]
call fcn.0040c9dc
call fcn.00403838
lea edx, [ebp - 0x194]
lea eax, [ebp - 0x18c]
call fcn.00409e88
mov edx, dword [ebp - 0x194]
mov eax, 0x4b48e8
call fcn.00403dbc
movzx eax, word [ebp - 8]
mov dword [0x4b48f0], eax
movzx eax, word [ebp - 0xa]
mov dword [0x4b48ec], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af9b4
lea eax, [ebp - 0x194]
call fcn.00403d68
ret
Function at 0x10005dcb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10330920]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x10005e13
push 0x1015c438
push 4
push eax
call fcn.100f98ef
push eax
call fcn.100055bf
add esp, 0x10
jmp 0x10005e29
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10005eac
push edi
call fcn.100faad0
mov edi, dword [eax]
call fcn.100faad0
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.100faa6d
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.100faad0
cmp dword [eax], 0
je 0x10005e80
call fcn.100faad0
push dword [eax]
call fcn.100055eb
pop ecx
jmp 0x10005e87
call fcn.100faad0
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x10005eac
cmp dword [ebp - 0x11c], esi
jae 0x10005eac
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x10005eae
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100f8f17
leave
ret
Function at 0x10005ebb
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10330920]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.10005b98
pop ecx
cmp eax, esi
je 0x10005fa5
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x10005fa5
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.100fad10
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x10005fa5
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x10005fa5
cmp esi, 0x14
jge 0x10005fa5
push 0x10
push 0
push edi
call fcn.100facf6
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10005f94
call fcn.100faad0
cmp dword [eax], 0x22
je 0x10005f94
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.100fab19
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x10005f6a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x10334658], 0
jne 0x10006030
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x10006059
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.10005dcb
pop ecx
pop ecx
test eax, eax
jne 0x1000605b
inc edi
cmp edi, esi
jl 0x10006036
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f8f17
leave
ret 8
Function at 0x1000cb7c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10330920]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1000cbb1
xor eax, eax
jmp 0x1000cc04
lea eax, [ebp - 0x210]
push eax
call fcn.100fab19
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x1000cbe2
push 0x1015cc08
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.100fe305
add esp, 0xc
test eax, eax
jne 0x1000cbad
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.100fe305
add esp, 0xc
test eax, eax
jne 0x1000cbad
lea eax, [ebp - 0x210]
push eax
call fcn.1000ca9e
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100f8f17
leave
ret

Function at 0x10018acd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x10018b14
call fcn.1000b412
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10018b14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10018b30
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.100185d2
mov esi, eax
test edi, edi
je 0x10018b2e
test ebx, ebx
je 0x10018b2e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10018f0f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101415ea
call fcn.100f9d32
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x10018f34
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10018f86
call fcn.10009622
push eax
lea ecx, [ebp - 0x10]
call fcn.10001680
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100fd96a
push eax
call fcn.100055bf
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100016b0
mov eax, esi
call fcn.100f9e0a
ret 8
Function at 0x10042b95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.1000b412
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10042bce
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.100427d7
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x10042c2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x10042c50
cmp dword [edi + 0x74], 0
jne 0x10042c50
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.1000b412
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10042bed
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10044cd1
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10044990
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10044d1b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10009310
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100080f8
jmp 0x10044d26
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000fdac
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10044d2c
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.10018bd9
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10044d69
call fcn.10044990
mov dword [esi + 0xc], 1
jmp 0x10044d6e
call fcn.10044990
cmp dword [esi], 0
je 0x10044db7
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x10044d8f
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10009310
jmp 0x10044da1
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.100064b5
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100080f8
jmp 0x10044ddb
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x10044ddb
push dword [esi]
push dword [ebp + 8]
call fcn.1000fdac
pop esi
pop ebp
ret 0xc

Function at 0x100739ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x100739c8
call fcn.1000b412
mov esi, dword [eax + 0xc]
push dword [0x10338164]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100739e6
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x100739de
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x10073a13
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x100739e0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100738dc
mov esi, eax
jmp 0x10073a05

Function at 0x100bf12a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100f3646
call fcn.1000ae43
cmp dword [eax + 0x14], 0
jne 0x100bf147
mov ecx, esi
pop esi
jmp fcn.100bec2f
pop esi
ret

Function at 0x100c22af
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.1002c6e8
call fcn.1000ae43
cmp dword [eax + 0x14], 0
jne 0x100c22cc
mov ecx, esi
pop esi
jmp fcn.100c1c82
pop esi
ret
Function at 0x100d470d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100d4725
mov edi, dword [esi + 0xc]
jmp 0x100d4765
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100d473e
call fcn.1000ec76
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100d4753
call fcn.1000ec76
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100d4765
call fcn.1000ec76
call fcn.1000b412
cmp dword [eax + 0x3c], 0
je 0x100d477a
push edi
mov ecx, ebx
call fcn.100d3547
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100d4627
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100d4798
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d47a4
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f8f17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10330920]
jne 0x100f8f21
repz ret
jmp fcn.10100824
Function at 0x1010e8d7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10330920]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10103126
and dword [ebp - 0x14], 0
cmp dword [0x1033a93c], 0
mov dword [ebp - 0x18], eax
jne 0x1010e98a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1010ea32
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1010ea32
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x10182174
push ebx
mov dword [0x1033a93c], eax
call edi
push eax
call esi
push 0x10182160
push ebx
mov dword [0x1033a940], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1033a944], eax
call edi
push eax
call esi
mov dword [0x1033a94c], eax
test eax, eax
je 0x1010e98a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1033a948], eax
mov eax, dword [0x1033a948]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1010e9e3
cmp dword [0x1033a94c], ecx
je 0x1010e9e3
push eax
call esi
push dword [0x1033a94c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1010e9e3
test ebx, ebx
je 0x1010e9e3
call edi
test eax, eax
je 0x1010e9da
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1010e9da
test byte [ebp - 8], 1
jne 0x1010e9e3
or dword [ebp + 0x10], 0x200000
jmp 0x1010ea16
mov eax, dword [0x1033a940]
cmp eax, dword [ebp - 0x18]
je 0x1010ea16
push eax
call esi
test eax, eax
je 0x1010ea16
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1010ea16
mov eax, dword [0x1033a944]
cmp eax, dword [ebp - 0x18]
je 0x1010ea16
push eax
call esi
test eax, eax
je 0x1010ea16
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1033a93c]
call esi
test eax, eax
je 0x1010ea32
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1010ea34
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f8f17
leave
ret
Function at 0x101240b0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x10124f20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp eax, 0xfffffffa
mov dword [ebp - 0x10], ebx
mov ebx, ecx
lea ecx, [eax + 5]
jg 0x10124f35
mov ecx, eax
mov dword [ebp - 4], eax
mov eax, 0xfb93e673
mov dword [ebp - 8], esi
mov esi, edx
mul ecx
shr edx, 9
mov dword [ebp - 0xc], edi
imul edi, edx, 0x209
sub ecx, edi
mov edi, dword [0x10333380]
cmp edi, 2
lea eax, [ecx + 0x69]
mov dword [esi], eax
jge 0x10124f91
lea ecx, [ecx*4 + 0x1a4]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [edx + 0x1033b464]
test ecx, ecx
jne 0x1012501a
mov dword [edx + 0x1033b464], 1
mov eax, dword [esi]
jmp 0x1012501a
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x1033b464]
push ecx
call fcn.10131170
add esp, 4
test eax, eax
jne 0x10125012
mov edx, dword [esi]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
cmp dword [edx + 0x1033b460], 0
je 0x1012508a
mov dword [edx + 0x1033b464], 0
mov edx, dword [esi]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x1033b460]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x1033b464]
push ecx
call fcn.10131170
add esp, 4
mov edi, dword [0x10333380]
mov eax, dword [esi]
cmp edi, 1
je 0x1012506b
mov edx, dword [ebp + 0x14]
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
mov ecx, dword [eax + 0x1033b478]
xor eax, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x10125063
mov esi, dword [ebp - 4]
cmp esi, dword [ecx + 0x100]
jbe 0x10125052
mov eax, ecx
mov ecx, dword [ecx + 0x28]
test ecx, ecx
mov dword [ebx], ecx
jne 0x1012503f
mov dword [edx], eax
xor eax, eax
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [edx], 0
jmp 0x10125054
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x1033b470]
push eax
call fcn.10131120
add esp, 4
mov eax, dword [esi]
jmp 0x1012501f
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [esi]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x1033b460], eax
mov dword [ecx + 0x1033b464], 0
jmp 0x10124fd9
Function at 0x10127890
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x1012c6e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x1012f54c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov edx, eax
mov dword [ecx], 0
cmp dword [0x1034450c], 0
je 0x1012f621
cmp dword [ebp + 0x20], 2
je 0x1012f583
cmp dword [ebp + 0x20], 1
jne 0x1012f592
mov eax, 0xffffffff
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x1012f5a2
cmp dword [ebp + 0x20], 0xfffffffa
je 0x1012f6e6
cmp dword [ebp + 0x20], 0
je 0x1012f6f2
xor ecx, ecx
cmp dword [ebp + 0x18], 0
je 0x1012f5d5
cmp dword [ebp + 0x1c], 0
je 0x1012f5d5
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.1013cd60
push edi
call fcn.1013cd80
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1012f621
push edi
push esi
push ebx
call fcn.1013cd60
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp esi, 0xffffffff
mov dword [eax], esi
je 0x1012f716
push 0
push edi
push 2
push 0x10189b24
call fcn.1013cd60
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov eax, 1
mov byte [esi + ebx], 0xa
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
inc dword [edx]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [edi], 0
je 0x1012f649
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x1012f64e
mov edi, 0x20000
cmp esi, edi
jbe 0x1012f6c2
cmp dword [ebp + 0x20], 0
je 0x1012f6c2
test ecx, ecx
je 0x1012f666
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x1012f66b
mov edi, 0x20000
mov dword [ebp - 0x10], edx
push 0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1012f6b0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
add ebx, edx
sub esi, edx
add dword [ecx], edx
cmp dword [ebp + 0x24], 0
je 0x1012f6a5
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 0x13c]
test edx, edx
jne 0x1012f6aa
mov edx, 0x20000
cmp esi, edx
ja 0x1012f6b0
mov edi, esi
test esi, esi
je 0x1012f6d9
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x1012f6d9
test eax, eax
jne 0x1012f66e
jmp 0x1012f6d9
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, edx
mov ecx, 1
jmp 0x1012f5b4
mov dword [ebp - 0x10], edx
call fcn.1013cd80
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x1034450c], 0
je 0x1012f5d9
mov ecx, 1
jmp 0x1012f5ae
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret