joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x40b020]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0xffffffff
je 0x406c40
mov dword [ebp - 0x430], 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x42c], ecx
je 0x406c29
mov edx, dword [ebp - 0x42c]
push edx
call fcn.00404b2f
add esp, 4
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x438], 0
push 0
lea ecx, [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x406bf8
mov edx, dword [ebp - 0x438]
cmp edx, dword [ebp - 0x42c]
jne 0x406bf8
mov dword [ebp - 0x444], 1
jmp 0x406c02
mov dword [ebp - 0x444], 0
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x440], ecx
mov edx, dword [ebp - 0x440]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b40
mov esp, ebp
pop ebp
ret

Function at 0x406c60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x40b020]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x114
push 0
lea eax, [ebp - 0x120]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jae 0x406cb0
mov eax, 1
jmp 0x406cdb
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x406cd6
cmp dword [ebp - 4], 0
jne 0x406cd6
xor eax, eax
jmp 0x406cdb
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404b40
mov esp, ebp
pop ebp
ret
Function at 0x406d30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.Global88B0D764_B5C3_4c4a_958F_B76524517744
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406dbd
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareTencentQQPCMgr_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406da9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 4
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push 4
push 0
push str.ThisMgrProcID
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x401b89
Capabilities:
Get process image filename

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov edi, ecx
mov ebx, 0x104
push ebx
mov ecx, esi
call fcn.00402cc5
cmp dword [esi + 0x14], 8
jb 0x401bab
mov eax, dword [esi]
jmp 0x401bad
mov eax, esi
push ebx
push eax
push dword [edi]
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x401bc3
mov ecx, dword [esi]
jmp 0x401bc5
mov ecx, esi
push ecx
call fcn.0041f3b9
pop ecx
push 0
push eax
mov ecx, esi
call fcn.00402cc5
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4021e2
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x44d0ee
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x46b908]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b908]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
jne 0x402222
xor eax, eax
inc eax
jmp 0x402334
push esi
push 0x4023aa
call dword [sym.imp.USER32.dll_EnumWindows]
or dword [esp + 0x14], 0xffffffff
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push esi
xor ebp, ebp
push ebx
inc ebp
push 0x100001
mov dword [esp + 0x64], ebp
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x4022a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40228b
lea ecx, [esp + 0x18]
call fcn.00402b6f
cmp dword [esp + 0x14], 0xffffffff
je 0x402284
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x402334
push eax
push str.OpenProcess_failed
lea ecx, [esp + 0x30]
call fcn.00401bde
push 0x467c80
lea eax, [esp + 0x2c]
push eax
call fcn.004291d4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push esi
call edi
test eax, eax
jne 0x4022d8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [esp + 0x18]
call fcn.00402b6f
cmp dword [esp + 0x14], 0xffffffff
je 0x402284
push dword [esp + 0x14]
call esi
jmp 0x402284
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x402304
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TerminateProcess_failed
lea ecx, [esp + 0x30]
call fcn.00401bde
push 0x467c80
lea eax, [esp + 0x2c]
jmp 0x4022a3
push 0xbb8
push esi
call edi
mov edi, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
neg edi
sbb edi, edi
call esi
lea ecx, [esp + 0x18]
call fcn.00402b6f
cmp dword [esp + 0x14], 0xffffffff
je 0x402331
push dword [esp + 0x14]
call esi
lea eax, [edi + 1]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0041f3aa
add esp, 0x48
ret
Function at 0x40872a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x20]
push eax
mov esi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea eax, [ebp - 0x20]
push ebx
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edx, dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
lea ecx, [ebp + 0x10]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
call fcn.004468bf
pop ecx
push dword [eax]
lea eax, [ebp - 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
lea ecx, [ecx - 0x10]
call fcn.004012c6
cmp dword [esi], ebx
je 0x4087ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4087ce
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4087ca
push edi
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
xor eax, eax
jmp 0x4087d0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4411a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042fafe
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4411d8
xor eax, eax
jmp 0x441204
cmp esi, dword [ebp - 4]
je 0x441201
cmp dword [ebp + 0xc], 0
je 0x441201
push dword [edi + 0x9c]
call fcn.00440dae
push dword [edi + 0x9c]
mov esi, eax
call fcn.0041f3b9
pop ecx
pop ecx
cmp esi, eax
je 0x4411d4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x4468bf
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44c39f
mov eax, dword fs:[0]
push eax
sub esp, 0xa14
mov eax, dword [0x46b908]
xor eax, esp
mov dword [esp + 0xa10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b908]
xor eax, esp
push eax
lea eax, [esp + 0xa28]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
xor eax, eax
xor ebp, ebp
push 0x206
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push ebp
push eax
mov dword [esp + 0x24], ebp
call fcn.0041fa30
add esp, 0xc
lea eax, [esp + 0x1c]
cmp dword [esp + 0xa38], ebp
je 0x446948
push dword [esp + 0xa38]
push esi
push str._s_d
push 0x104
push eax
call fcn.00401000
add esp, 0x14
jmp 0x44695c
push esi
push 0x461144
push 0x104
push eax
call fcn.00401000
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00401500
mov dword [esp + 0xa30], ebp
mov esi, str.hwang
lea edi, [esp + 0x224]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x236]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.0041fa30
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x240]
push str._szObjectName___s
push eax
call fcn.0041f56a
add esp, 0x18
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040101f
mov ecx, dword [esp + 0x14]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [ebx], eax
call fcn.004012c6
mov eax, ebx
mov ecx, dword [esp + 0xa28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.0041f3aa
add esp, 0xa20
ret
Function at 0x44ac98
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44cc6b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x46b908]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebp
push esi
push edi
mov eax, dword [0x46b908]
xor eax, esp
push eax
lea eax, [esp + 0x824]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esp + 0x834]
lea ecx, [esp + 0x14]
call fcn.00407d4f
xor ebp, ebp
mov dword [esp + 0x82c], ebp
mov edx, dword [esp + 0x14]
mov ecx, dword [esi]
push ebp
call fcn.0040c669
pop ecx
push ebp
test eax, eax
jne 0x44ad13
push ebp
push dword [esi]
call fcn.0044a7cb
mov ebp, eax
neg ebp
sbb ebp, ebp
inc ebp
jmp 0x44adbe
mov ecx, dword [esi]
or edx, 0xffffffff
call fcn.0040ac7a
pop ecx
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.004085e9
mov ecx, dword [esi]
push 0xfffffffffffffffe
pop edx
call fcn.0040a8cc
mov esi, str.hwang
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x2e]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.0041fa30
add esp, 0xc
lea eax, [esp + 0x28]
push dword [esp + 0x18]
push str._s_r_n
push eax
call fcn.0041f56a
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, str.hwang
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x2e]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.0041fa30
add esp, 0xc
lea eax, [esp + 0x28]
push str.luaL_loadbuffer_failed__r_n
push eax
call fcn.0041f56a
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004012c6
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004012c6
mov eax, ebp
mov ecx, dword [esp + 0x824]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.0041f3aa
add esp, 0x820
ret 4
Function at 0x44b44e
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44d44e
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x46b908]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b908]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
mov edi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00401500
and dword [esp + 0x828], 0
mov ebp, 0x104
push ebp
lea ecx, [esp + 0x18]
call fcn.004013d7
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Uninst.dar0
push eax
call esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00407a75
push edi
lea ecx, [esp + 0x1c]
call fcn.00401500
xor ebx, ebx
inc ebx
push ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x82c], bl
call fcn.004013d7
push str.Uninst.dar1
push eax
call esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407a75
push dword [esp + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x44b5b2
push dword [esp + 0x18]
call esi
test eax, eax
je 0x44b5b2
mov esi, dword [esp + 0x14]
call fcn.00402ce6
push esi
mov ecx, eax
call fcn.0044ac98
test eax, eax
jne 0x44b572
mov esi, str.hwang
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x32]
push eax
movsw word es:[edi], word [esi]
call fcn.0041fa30
add esp, 0xc
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push str.DoLua__s_failed_
push eax
call fcn.0041f56a
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x44b610
mov esi, dword [esp + 0x18]
call fcn.00402ce6
push esi
mov ecx, eax
call fcn.0044ac98
test eax, eax
jne 0x44b612
mov esi, str.hwang
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x32]
push eax
movsw word es:[edi], word [esi]
call fcn.0041fa30
add esp, 0xc
push dword [esp + 0x18]
jmp 0x44b550
mov esi, str.hwang
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x2e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0041fa30
add esp, 0xc
lea eax, [esp + 0x28]
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.pathGlobalVarLua___s__r_n_pathUnInstallLua___s
push eax
call fcn.0041f56a
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10010
push 0x462f80
push 0x462f88
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor bl, bl
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004012c6
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004012c6
mov al, bl
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0041f3aa
add esp, 0x818
ret
Function at 0x10001c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b978
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
xor ecx, ecx
mov esi, edx
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x54], cl
push eax
push esi
lea ebx, [ebp - 0x54]
mov dword [ebp - 4], ecx
call fcn.10001e20
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov dword [edi], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], ecx
mov dword [edx], ecx
cmp eax, ecx
je 0x10001d05
push eax
call fcn.100341e2
mov ecx, dword [ebp - 0x24]
mov ebx, eax
mov eax, dword [esi + 0x24]
push eax
push ecx
push 1
push ebx
call fcn.100354fc
add esp, 0x14
cmp eax, dword [ebp - 0x24]
je 0x10001cb7
push ebx
call fcn.10032d10
add esp, 4
cmp dword [ebp - 0x40], 0x10
jb 0x10001cb3
mov edx, dword [ebp - 0x54]
push edx
call fcn.10032d10
add esp, 4
xor al, al
jmp 0x10001d19
mov esi, dword [esi + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 4]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
push ebx
mov ecx, esi
call edx
push ebx
test al, al
jne 0x10001cf0
call fcn.10032d10
add esp, 4
cmp dword [ebp - 0x40], 0x10
jb 0x10001cb3
mov eax, dword [ebp - 0x54]
push eax
call fcn.10032d10
add esp, 4
xor al, al
jmp 0x10001d19
call fcn.10032d10
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov dword [edi], ecx
add esp, 4
mov dword [eax], edx
cmp dword [ebp - 0x40], 0x10
jb 0x10001d17
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.10032d10
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034caa
mov esp, ebp
pop ebp
ret 4
Function at 0x10001f00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x24]
push edi
push eax
push 2
lea edi, [esi + 0x28]
push 1
push edi
call fcn.100354fc
add esp, 0x10
cmp eax, 2
jne 0x10002001
mov ecx, dword [esi + 0x64]
lea eax, [esi + 0x50]
cmp ecx, 0x10
jb 0x10001f2d
mov edx, dword [eax]
jmp 0x10001f2f
mov edx, eax
movzx edi, byte [edi]
movsx edx, byte [edx]
cmp edi, edx
jne 0x10002001
cmp ecx, 0x10
jb 0x10001f44
mov eax, dword [eax]
movsx eax, byte [eax + 1]
movzx ecx, byte [esi + 0x29]
cmp ecx, eax
jne 0x10002001
mov edx, dword [esi + 0x24]
push edx
push 4
lea eax, [esi + 0x2c]
push 1
push eax
call fcn.100354fc
add esp, 0x10
cmp eax, 4
jne 0x10002001
mov ecx, dword [esi + 0x24]
push ecx
push 2
lea edi, [esi + 0x30]
push 1
push edi
call fcn.100354fc
add esp, 0x10
cmp eax, 2
jne 0x10002001
cmp word [edi], 1
ja 0x10002001
mov edx, dword [esi + 0x24]
push edx
push 1
lea eax, [esi + 0x32]
push 1
push eax
call fcn.100354fc
add esp, 0x10
cmp eax, 1
jne 0x10002001
mov ecx, dword [esi + 0x24]
push ecx
push 4
push eax
lea edx, [esi + 0x34]
push edx
call fcn.100354fc
add esp, 0x10
cmp eax, 4
jne 0x10002001
mov eax, dword [esi + 0x24]
push eax
push 4
lea ecx, [esi + 0x38]
push 1
push ecx
call fcn.100354fc
add esp, 0x10
cmp eax, 4
jne 0x10002001
mov edx, dword [esi + 0x24]
push edx
push 0xf
lea eax, [esi + 0x3c]
push 1
push eax
call fcn.100354fc
add esp, 0x10
cmp eax, 0xf
jne 0x10002001
mov ecx, esi
call fcn.100021b0
test al, al
setne al
pop edi
ret
xor al, al
pop edi
ret
Function at 0x10002010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
mov eax, dword [edi + 0x24]
push eax
push 4
lea ecx, [ebp - 4]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.100354fc
add esp, 0x10
cmp eax, 4
jne 0x10002173
mov eax, dword [ebp - 4]
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x10002173
inc eax
push esi
push eax
call fcn.100341e2
mov esi, eax
mov eax, dword [ebp - 4]
inc eax
push eax
push 0
push esi
call fcn.10037db0
mov ecx, dword [edi + 0x24]
mov edx, dword [ebp - 4]
push ecx
push edx
push 1
push esi
call fcn.100354fc
mov ecx, dword [ebp - 4]
add esp, 0x20
cmp eax, ecx
je 0x1000208f
push esi
call fcn.10032d10
add esp, 4
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test ecx, ecx
jle 0x100020a2
mov dl, byte [eax + esi]
not dl
mov byte [eax + esi], dl
inc eax
cmp eax, ecx
jl 0x10002095
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100020a7
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.100028f0
push esi
call fcn.10032d10
xor eax, eax
lea esi, [ebx + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
push eax
push 0x14
push 1
push esi
call fcn.100354fc
add esp, 0x14
cmp eax, 0x14
jne 0x10002087
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esi + eax]
not cl
mov byte [esi + eax], cl
inc eax
cmp eax, 0x14
jl 0x100020f0
mov edx, dword [edi + 0x24]
push edx
push 4
lea eax, [ebx + 0x30]
push 1
push eax
call fcn.100354fc
add esp, 0x10
cmp eax, 4
jne 0x10002087
mov ecx, dword [edi + 0x24]
push ecx
push eax
lea edx, [ebx + 0x34]
push 1
push edx
call fcn.100354fc
add esp, 0x10
cmp eax, 4
jne 0x10002087
mov eax, dword [edi + 0x24]
push eax
push 1
lea ecx, [ebx + 0x38]
push 1
push ecx
call fcn.100354fc
add esp, 0x10
cmp eax, 1
jne 0x10002087
mov edx, dword [edi + 0x24]
push edx
push 4
push eax
add ebx, 0x3c
push ebx
call fcn.100354fc
add esp, 0x10
cmp eax, 4
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c638
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1005d500]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x10006021
cmp byte [edi + 0x49], bl
je 0x10006021
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x10006015
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x10005f75
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x10005f8d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x10005fb6
dec eax
je 0x10005fba
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x10006010
jmp 0x1000601c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x10005fca
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10005ff3
cmp ebx, 0x10
jae 0x10005fd9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10035c6e
add esp, 0x10
cmp esi, eax
jne 0x1000600d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10006019
test esi, esi
jne 0x10005f81
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10005ac0
jmp 0x10005f7b
lea ecx, [ebp - 0x2c]
call fcn.10002ed0
xor al, al
jmp 0x10006023
lea ecx, [ebp - 0x2c]
call fcn.10002ed0
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.10034caa
mov esp, ebp
pop ebp
ret