joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455720
Capabilities:
Get common file path

Disassembly:
sub esp, 0x3f8
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x3f4], eax
lea eax, [esp]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4557b2
cmp eax, 0xf6
jae 0x4557b2
test esi, esi
jne 0x455773
lea ecx, [esp]
push ecx
call fcn.00661039
add esp, 4
mov ecx, dword [esp + 0x3f4]
xor ecx, esp
call fcn.0065865c
add esp, 0x3f8
ret
lea edx, [esp + 0x1ec]
push edx
push 0
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4557b2
lea ecx, [esp + 0x1ec]
push ecx
call fcn.00661039
add esp, 4
mov ecx, dword [esp + 0x3f4]
xor ecx, esp
call fcn.0065865c
add esp, 0x3f8
ret
mov ecx, dword [esp + 0x3f4]
xor ecx, esp
xor eax, eax
call fcn.0065865c
add esp, 0x3f8
ret

Function at 0x4558d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
test eax, eax
je 0x455907
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x455913
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
je 0x455901
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x455a80
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x455aae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x455adc
cmp dword [esp + 8], edi
jne 0x455adc
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop ecx
ret
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop ecx
ret

Function at 0x455af0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x455b1e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455b4c
cmp edi, dword [esp + 8]
jne 0x455b4c
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop ecx
ret
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop ecx
ret
Function at 0x455d80
Capabilities:
Create directory

Disassembly:
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x455d90
mov al, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete al
ret

Function at 0x455db0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov ecx, esi
xor ecx, 0x1505
cmp esi, 4
jb 0x455df8
push ebx
push edi
mov edi, esi
shr edi, 2
jmp 0x455dd0
mov eax, dword [edx]
imul ecx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
mov ebx, eax
shr ebx, 0x18
xor ebx, eax
imul ebx, ebx, 0x5bd1e995
xor ecx, ebx
add edx, 4
sub esi, 4
dec edi
jne 0x455dd0
pop edi
pop ebx
dec esi
je 0x455e13
dec esi
je 0x455e0a
dec esi
jne 0x455e1e
movzx eax, byte [edx + 2]
shl eax, 0x10
xor ecx, eax
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx edx, byte [edx]
xor ecx, edx
imul ecx, ecx, 0x5bd1e995
mov edx, ecx
shr edx, 0xd
xor edx, ecx
imul edx, edx, 0x5bd1e995
mov eax, edx
shr eax, 0xf
xor eax, edx
pop esi
ret

Function at 0x455e40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x208], eax
cmp byte [0x9f5c86], 0
jne 0x455ec6
push esi
push 0x104
lea eax, [esp + 8]
push eax
mov byte [0x9f5c86], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.user32.dll
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x455ec5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetGestureInfo
push esi
call edi
push str.CloseGestureInfoHandle
push esi
mov dword [0x9f4c54], eax
call edi
push str.SetGestureConfig
push esi
mov dword [0x9f4c58], eax
call edi
mov dword [0x9f4c5c], eax
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0065865c
add esp, 0x20c
ret

Function at 0x455fe0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push esi
push 0x455fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
ret
Function at 0x456330
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
push 0x9ef130
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x9f4cc0]
xor ecx, ecx
mov dword [esp + 0xc], eax
cmp eax, ecx
je 0x4564aa
jmp 0x456374
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x10], 0
je 0x45649a
mov esi, dword [eax + 8]
push ecx
push 0x80
push 3
push ecx
push 1
push SysReAllocString
push esi
lea ebx, [eax + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4563ba
lea eax, [esp + 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
test esi, esi
jne 0x4563ee
or eax, 0xffffffff
or ecx, eax
jmp 0x45644b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x456417
push eax
call edi
or eax, esi
or ecx, esi
jmp 0x45644b
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
jne 0x456431
call edi
or eax, 0xffffffff
or ecx, eax
jmp 0x45644b
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, dword [esp + 0x38]
test eax, eax
mov eax, dword [esp + 0x3c]
jne 0x456475
cmp dword [ebx + 8], ecx
jne 0x456475
cmp dword [ebx + 0xc], eax
je 0x456496
mov edx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp + 0xc], eax
cmp eax, ecx
jne 0x456370
push 0x9ef130
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret

Function at 0x456590
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x9f4cb0], 0
jne 0x4565e8
push 0x9ef130
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x9f4cb4
push 0
push 0
push 0x4564d0
push 0
push 0
mov dword [0x9f4cb8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x9f4cb4]
push str.FileWatcherThread
mov dword [0x9f4cb0], eax
call fcn.00455ee0
add esp, 4
pop ecx
ret
Function at 0x456f60
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x41c
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.BaseHTTP
mov edi, ecx
mov esi, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x457050
push ebx
push 0x84000000
push ebx
push ebx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x457050
lea ecx, [ecx]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x400
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x457050
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x457066
mov ebp, dword [esi]
lea ebx, [eax + ebp]
mov ecx, ebx
mov dword [esp + 0x24], ebp
call fcn.00412da0
test al, al
jne 0x457002
xor edi, edi
jmp 0x45703a
mov edi, dword [esi + 0xc]
mov eax, dword [esi]
add edi, ebp
cmp eax, ebp
jbe 0x457021
mov ecx, dword [esp + 0x1c]
sub eax, ebp
push eax
lea edx, [edi + ecx]
push edi
push edx
call fcn.006586a0
add esp, 0xc
mov dword [esi], ebx
test edi, edi
je 0x45703c
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.0065b3c0
add esp, 0xc
test edi, edi
setne al
test al, al
je 0x457050
cmp dword [esp + 0x18], 0
ja 0x456fc0
jmp 0x457066
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x457066
mov dword [esp + 0x10], 0x1f
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x457077
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x457082
push eax
call esi
mov ecx, dword [esp + 0x428]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0065865c
add esp, 0x41c
ret
Function at 0x4570a0
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
xor bl, bl
push eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x2f], bl
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45718b
push ebp
push ebp
push ebp
push ebp
push str.BaseHTTP
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
je 0x45718b
push esi
push esi
push esi
push esi
push str.http:__kjkpub.s3.amazonaws.com_sumatrapdf_rel_SumatraPDF_3.0.pdb.lzsa
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x45718b
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x45718b
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x457182
push 0
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push edi
call ebx
test eax, eax
je 0x457187
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x14]
jne 0x457187
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x457140
jmp 0x457187
mov byte [esp + 0x13], 1
mov bl, byte [esp + 0x13]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x45719f
push esi
call edi
test ebp, ebp
je 0x4571a6
push ebp
call edi
test bl, bl
jne 0x4571bf
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4571bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.0065865c
add esp, 0x414
ret
Function at 0x457420
Capabilities:
Create thread

Disassembly:
push str.http:__kjkpub.s3.amazonaws.com_sumatrapdf_sumpdf_update.txt_v3.0
mov dword [esi], 0
mov dword [esi + 4], ebx
call fcn.00661039
push 0x28
mov dword [esi + 8], eax
call fcn.00659e93
add esp, 8
test eax, eax
je 0x45747b
lea ecx, [eax + 0x10]
xor edx, edx
mov dword [eax + 8], 0x100
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax], 0
mov dword [eax + 4], 0xf
mov dword [eax + 0xc], ecx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
jmp 0x45747d
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
test ebx, ebx
je 0x4574a4
push 0
push 0
push esi
push 0x4573f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov eax, esi
ret
mov edx, eax
mov ecx, str.http:__kjkpub.s3.amazonaws.com_sumatrapdf_sumpdf_update.txt_v3.0
call fcn.00456f60
mov dword [esi + 0x10], eax
mov eax, esi
ret
Function at 0x4586e0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x20
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
push 4
lea eax, [esp + 0x24]
push eax
push 0xf
push 0x400
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x458721
push 1
push 0x923390
lea ecx, [esp + 0x28]
push 4
push ecx
call fcn.00660400
add esp, 0x10
push esi
push 0x9887b4
call fcn.00458200
mov ebp, eax
add esp, 8
mov dword [esp + 0xc], ebp
test ebp, ebp
je 0x458753
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458740
sub eax, edx
sar eax, 1
mov edi, eax
jmp 0x458755
xor edi, edi
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458760
sub eax, edx
sar eax, 1
test ebp, ebp
je 0x458791
mov ecx, ebp
lea esi, [ecx + 2]
jmp 0x458780
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x458780
sub ecx, esi
sar ecx, 1
jmp 0x458793
xor ecx, ecx
add ecx, 3
imul ecx, eax
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edi + 1]
push 2
push eax
mov dword [esp + 0x24], eax
call fcn.00658a3b
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
jne 0x4587dc
push ebp
call fcn.00658a01
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0065865c
add esp, 0x20
ret
mov edi, esi
test ebp, ebp
je 0x4587fa
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4587e7
sub eax, edx
sar eax, 1
mov ecx, eax
jmp 0x4587fc
xor ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
push ebx
lea ebx, [edx + edx*2 + 3]
mov edx, dword [esp + 0x10]
sub ebx, ecx
cmp word [edx], 0
je 0x4588a9
lea ebx, [ebx]
mov ax, word [ebp]
mov word [edi], ax
add ebp, 2
add edi, 2
cmp word [ebp], 0
je 0x458891
cmp ebx, 2
jne 0x458891
mov edx, dword [esp + 0x20]
mov ecx, edi
sub ecx, esi
sar ecx, 1
sub edx, ecx
jne 0x45884b
xor eax, eax
mov byte [eax], al
lea eax, [esp + 0x24]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458852
sub eax, esi
sar eax, 1
lea ecx, [edx - 1]
mov dword [esp + 0x14], eax
cmp eax, ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x14]
jb 0x458878
lea eax, [esp + 0x18]
mov esi, dword [eax]
push esi
lea eax, [esp + 0x28]
push eax
push edx
push edi
call fcn.00660400
lea edi, [edi + esi*2]
mov esi, dword [esp + 0x2c]
add esp, 0x10
lea eax, [ebx + 1]
cdq
mov ecx, 3
idiv ecx
cmp word [ebp], 0
mov ebx, edx
jne 0x458820
mov eax, dword [esp + 0x10]
xor edx, edx
push eax
mov word [edi], dx
call fcn.00658a01
mov ecx, dword [esp + 0x30]
add esp, 4
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.0065865c
add esp, 0x20
ret
Function at 0x4588d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x10
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0xc], eax
fld qword [esp + 0x14]
push ebx
fmul qword [0x9ad758]
push esi
fnstcw word [esp + 0xa]
push edi
movzx eax, word [esp + 0xe]
fadd qword [0x9ad788]
or eax, 0xc00
mov dword [esp + 0x10], eax
mov eax, 0x51eb851f
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov edi, dword [esp + 0x10]
fldcw word [esp + 0xe]
mul edi
mov esi, edx
shr esi, 5
mov ecx, esi
call fcn.004586e0
push 4
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x458956
push 1
push 0x927d08
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00660400
add esp, 0x10
imul esi, esi, 0x64
sub edi, esi
push edi
lea edx, [esp + 0x14]
push edx
push ebx
push str._s_s_02d
call fcn.00458200
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4589c6
lea edx, [eax + 2]
jmp 0x458980
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458980
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x4589c6
lea eax, [esi + eax*2 - 2]
mov ecx, 0x926eac
call fcn.00457970
test al, al
je 0x4589c6
mov eax, esi
lea edx, [eax + 2]
jmp 0x4589b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4589b0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push 0
call fcn.00658a01
push ebx
call fcn.00658a01
mov ecx, dword [esp + 0x20]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0065865c
add esp, 0x10
ret
Function at 0x459d80
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x20c
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x208], eax
cmp dword [0x9ef168], 0
je 0x459db4
mov al, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0065865c
add esp, 0x20c
ret
push esi
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.dbghelp.dll
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.MiniDumpWriteDump
push esi
call edi
push str.SymInitializeW
push esi
mov dword [0x9ef168], eax
call edi
push str.SymInitialize
push esi
mov dword [0x9ef160], eax
call edi
push str.SymCleanup
push esi
mov dword [0x9ef170], eax
call edi
push str.SymGetOptions
push esi
mov dword [0x9eef2c], eax
call edi
push str.SymSetOptions
push esi
mov dword [0x9ef154], eax
call edi
push str.SymSetSearchPathW
push esi
mov dword [0x9ef148], eax
call edi
push str.SymSetSearchPath
push esi
mov dword [0x9ef15c], eax
call edi
push str.StackWalk64
push esi
mov dword [0x9ef178], eax
call edi
push str.SymFunctionTableAccess64
push esi
mov dword [0x9ef158], eax
call edi
push str.SymGetModuleBase64
push esi
mov dword [0x9ef150], eax
call edi
push str.SymFromAddr
push esi
mov dword [0x9ef16c], eax
call edi
push str.SymRefreshModuleList
push esi
mov dword [0x9ef164], eax
call edi
push str.SymGetLineFromAddr64
push esi
mov dword [0x9ef174], eax
call edi
cmp dword [0x9ef158], 0
mov ecx, dword [esp + 0x210]
pop edi
mov dword [0x9ef14c], eax
setne al
pop esi
xor ecx, esp
call fcn.0065865c
add esp, 0x20c
ret

Function at 0x45a670
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 0x2d0
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x2cc], eax
push esi
push edi
mov edi, ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x45a752
push esi
push str._r_nThread:__x_r_n
push edi
call fcn.00412870
add esp, 0xc
push esi
push 0
push 0x4a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x45a6dd
push 0x18
push str.Failed_to_OpenThread___r_n
mov eax, edi
call fcn.00412b60
pop edi
pop esi
mov ecx, dword [esp + 0x2cc]
xor ecx, esp
call fcn.0065865c
add esp, 0x2d0
ret
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x45a6f9
push 0x1b
push str.Failed_to_SuspendThread___r_n
mov eax, edi
call fcn.00412b60
jmp 0x45a74b
push 0x2c8
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0065b340
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x45a736
push edi
mov ecx, esi
lea edi, [esp + 0xc]
call fcn.0045a4d0
add esp, 4
jmp 0x45a744
push 0x1e
push str.Failed_to_GetThreadContext___r_n
mov eax, edi
call fcn.00412b60
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
xor ecx, esp
call fcn.0065865c
add esp, 0x2d0
ret
Function at 0x45a770
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x9c48d0]
xor eax, ebp
mov dword [ebp - 8], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x45a795
jmp 0x45a7ec
mov dword [ebp - 0x24], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45a7e2
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x2c]
jne 0x45a7cf
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
call fcn.0045a670
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov dword [ebp - 4], eax
jmp 0x45a7b6
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0065865c
mov esp, ebp
pop ebp
ret