joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dcb0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42dd0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42dd0c
cmp eax, 5
jne 0x42dd0c
call fcn.0042d970
test al, al
je 0x42dcf3
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x42dd0c
mov eax, dword [esp + 0xc]
mov byte [eax], 1
mov al, 1
pop esi
ret
push esi
push 0x464a04
call fcn.0042d2a0
add esp, 8
test al, al
je 0x42dd0c
mov ecx, dword [esp + 0xc]
mov byte [ecx], 1
mov al, 1
pop esi
ret

Function at 0x42dd10
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
sub esp, 0x350
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x34c], eax
push ebp
mov ebp, dword [esp + 0x35c]
push esi
mov esi, dword [esp + 0x35c]
test esi, esi
je 0x42de74
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42de74
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [esp + 0x258]
push str._s.
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x42de0f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea esp, [esp]
push 0x462c60
lea eax, [esp + 0x44]
push eax
call ebx
test eax, eax
je 0x42ddef
push 0x462c5c
lea ecx, [esp + 0x44]
push ecx
call ebx
test eax, eax
je 0x42ddef
test byte [esp + 0x14], 0x10
lea edx, [esp + 0x40]
push edx
push esi
lea eax, [esp + 0x15c]
push str._s_s
push eax
je 0x42dddc
call edi
lea ecx, [esp + 0x164]
push ebp
push ecx
call fcn.0042dd10
jmp 0x42ddec
call edi
lea ecx, [esp + 0x164]
push ebp
push ecx
call fcn.0042dcb0
add esp, 0x18
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42dd90
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop edi
jne 0x42de5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42de5b
cmp eax, 0x91
jne 0x42de5b
call fcn.0042d970
test al, al
je 0x42de45
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jmp 0x42de55
push esi
push str.DIRNUL
call fcn.0042d2a0
add esp, 8
test al, al
je 0x42de5b
mov byte [ebp], 1
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.0044017c
add esp, 0x350
ret
mov ecx, dword [esp + 0x354]
pop esi
pop ebp
xor ecx, esp
xor al, al
call fcn.0044017c
add esp, 0x350
ret
Function at 0x42f080
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x45fa82
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4772c4]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x244]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x24], ebp
mov byte [ebp + 4], bl
push 0x104
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x248], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42f1af
push ebx
lea ecx, [esp + 0x2c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x42f1af
push edi
call fcn.004420a5
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x42f1af
push esi
push edi
push ebx
lea edx, [esp + 0x34]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
je 0x42f1a6
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x42f1a6
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x134]
push str.StringFileInfo_04x_04xCompanyName
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x134]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x42f1a6
mov edx, dword [esp + 0x18]
push edx
mov ecx, ebp
call fcn.00403010
push esi
call fcn.00440743
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0044017c
add esp, 0x22c
ret

Function at 0x42ff0e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4772c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x42ff4e
push 0x464ed0
push 4
push eax
call fcn.004438dc
push eax
call fcn.00424610
add esp, 0x10
jmp 0x42ff60
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x42ffce
push edi
call fcn.00443442
mov edi, dword [eax]
call fcn.00443442
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004428f2
add esp, 0x18
mov ebx, eax
call fcn.00443442
cmp dword [eax], 0
je 0x42ffae
call fcn.00443442
push dword [eax]
call fcn.0042f32f
pop ecx
jmp 0x42ffb5
call fcn.00443442
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x42ffce
cmp ebx, esi
jae 0x42ffce
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x42ffd0
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044017c
leave
ret
Function at 0x432af9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x45fdb3
call fcn.0044331e
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0043381c
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x432b44
call fcn.0043381c
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x432b55
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x432b62
or eax, 0xffffffff
jmp 0x432cbe
mov ecx, esi
call fcn.0043261e
mov dword [ebp - 0x14], eax
call fcn.00435eb5
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x432be0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x432be0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x432be0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0042fed9
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x432be0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x432be0
mov ecx, ebx
call fcn.00438b86
test eax, eax
je 0x432be0
push 0
mov ecx, ebx
call fcn.00438ba1
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00437834
push dword [ebp - 0x14]
call fcn.00435e0d
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00432901
xor edi, edi
cmp eax, edi
je 0x432c3d
test byte [esi + 0x3c], 0x10
je 0x432c27
push 4
pop edi
mov ecx, esi
call fcn.00438a6d
test ax, 0x100
je 0x432c1d
push 5
pop edi
push edi
mov ecx, esi
call fcn.004359a3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x432c3d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00438c08
or dword [ebp - 4], 0xffffffff
jmp 0x432c68
cmp dword [ebp - 0x28], edi
je 0x432c76
push 1
mov ecx, ebx
call fcn.00438ba1
cmp dword [ebp - 0x2c], edi
je 0x432c86
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x432c9f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x432c9f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00432658
cmp dword [esi + 0x58], edi
je 0x432cbb
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0044338a
ret
Function at 0x438951
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x438994
call fcn.0043381c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x438994
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4389af
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00438508
test ebx, ebx
mov esi, eax
je 0x4389ad
test edi, edi
je 0x4389ad
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x44017c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4772c4]
jne 0x440186
repz ret
jmp fcn.0044765c
Function at 0x44d3f5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x477f20]
je 0x44d410
inc edi
cmp edi, 0x17
jb 0x44d401
cmp edi, 0x17
jae 0x44d590
push ebp
push 3
call fcn.004544e9
cmp eax, 1
pop ecx
je 0x44d55c
push 3
call fcn.004544e9
test eax, eax
pop ecx
jne 0x44d444
cmp dword [0x477340], 1
je 0x44d55c
cmp ebx, 0xfc
je 0x44d58f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47ae60
push ebp
call fcn.004438dc
add esp, 0xc
test eax, eax
je 0x44d47a
push esi
push esi
push esi
push esi
push esi
call fcn.00440195
add esp, 0x14
push 0x104
mov esi, 0x47ae79
push esi
push 0
mov byte [0x47af7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44d4be
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004438dc
add esp, 0xc
test eax, eax
je 0x44d4be
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00440195
add esp, 0x14
push esi
call fcn.00443260
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44d503
push esi
call fcn.00443260
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47b174
push 0x467174
sub ecx, eax
push ecx
push eax
call fcn.0044543c
add esp, 0x14
test eax, eax
je 0x44d503
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00440195
add esp, 0x14
jmp 0x44d505
xor esi, esi
push 0x467170
push ebx
push ebp
call fcn.004439c8
add esp, 0xc
test eax, eax
je 0x44d525
push esi
push esi
push esi
push esi
push esi
call fcn.00440195
add esp, 0x14
push dword [edi*8 + 0x477f24]
push ebx
push ebp
call fcn.004439c8
add esp, 0xc
test eax, eax
je 0x44d547
push esi
push esi
push esi
push esi
push esi
call fcn.00440195
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045432c
add esp, 0xc
jmp 0x44d58f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44d58f
cmp ebp, 0xffffffff
je 0x44d58f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x477f24]
push dword [esi]
call fcn.00443260
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45432c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00446ffc
xor ebx, ebx
cmp dword [0x47b3bc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x454402
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4544e2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x468b18
push edi
call esi
cmp eax, ebx
je 0x4544e2
push eax
call fcn.00446f8e
mov dword [esp], 0x468b08
push edi
mov dword [0x47b3bc], eax
call esi
push eax
call fcn.00446f8e
mov dword [esp], 0x468af4
push edi
mov dword [0x47b3c0], eax
call esi
push eax
call fcn.00446f8e
mov dword [0x47b3c4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004435fc
test eax, eax
pop ecx
pop ecx
je 0x4543d0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00440195
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x454402
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00446f8e
cmp eax, ebx
pop ecx
mov dword [0x47b3cc], eax
je 0x454402
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00446f8e
pop ecx
mov dword [0x47b3c8], eax
mov eax, dword [0x47b3c8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x454487
cmp dword [0x47b3cc], ecx
je 0x454487
push eax
call fcn.00447005
push dword [0x47b3cc]
mov esi, eax
call fcn.00447005
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x454487
cmp edi, ebx
je 0x454487
call esi
cmp eax, ebx
je 0x454454
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x454454
test byte [ebp - 0x18], 1
jne 0x454487
lea eax, [ebp - 0x10]
push eax
call fcn.00443633
test eax, eax
pop ecx
je 0x45446f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00440195
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45447e
or dword [ebp + 0x10], 0x200000
jmp 0x4544c2
or dword [ebp + 0x10], 0x40000
jmp 0x4544c2
mov eax, dword [0x47b3c0]
cmp eax, dword [ebp - 8]
je 0x4544c2
push eax
call fcn.00447005
cmp eax, ebx
pop ecx
je 0x4544c2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4544c2
mov eax, dword [0x47b3c4]
cmp eax, dword [ebp - 8]
je 0x4544c2
push eax
call fcn.00447005
cmp eax, ebx
pop ecx
je 0x4544c2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47b3bc]
call fcn.00447005
cmp eax, ebx
pop ecx
je 0x4544e2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4544e4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4597c2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4772c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00459757
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00440530
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x459811
cmp dword [ebp - 0x1c], 5
jb 0x459829
jmp 0x459825
cmp dword [ebp - 0x10], 1
jne 0x459829
cmp dword [ebp - 0x1c], 4
ja 0x459825
jne 0x459829
cmp dword [ebp - 0x18], 0
jbe 0x459829
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x468c88
call fcn.00459648
test eax, eax
jge 0x45984a
mov byte [0x478ad9], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044017c
add ebp, 0x78
leave
ret
Function at 0x67e01e02
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x10
test edx, edx
je 0x67e01e1c
mov dword [esp], edx
call sym._strlen
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call sym._fwrite
mov dword [esp], esi
call sym._fflush
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x67e044c8
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x67e23048], 0
jne 0x67e044d3
jmp sym._writeToStdErr__system_u3961_8
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
call sym._cstrToNimstr_4
mov dword [esp + 4], edx
mov ebx, edx
mov dword [esp], eax
call dword [0x67e23048]
push edx
push edx
test ebx, ebx
je 0x67e04502
bt dword [ebx], 0x1e
jb 0x67e04502
mov dword [esp], ebx
call sym._deallocImpl__system_u1765
mov dword [esp], 0x67e1a124
call sym.___emutls_get_address
cmp byte [eax], 0
je 0x67e04536
mov byte [eax], 0
mov dword [esp], 0x67e1a0a4
call sym.___emutls_get_address
mov ecx, eax
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
mov dword [esp], 0
call sym._eqcopy___stdZtypedthreads_u171_12
push eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x67e07980
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
test ecx, ecx
je 0x67e079be
cmp word [ecx], 0x5a4d
jne 0x67e079be
xor eax, eax
add ecx, dword [ecx + 0x3c]
seto al
jno 0x67e079aa
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], eax
call sym._raiseOverflow
mov eax, dword [ebp - 0xc]
leave
ret
cmp dword [ecx], 0x4550
jne 0x67e079be
mov ax, word [ecx + 0x16]
shr ax, 0xd
and eax, 1
ret
ret
Function at 0x67e07a2c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0xbc
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa8], eax
call sym._is_dll__6873nvoke_u138_4
mov dword [esp], 0x67e1a124
mov esi, eax
call sym.___emutls_get_address
cmp byte [eax], 0
mov dword [ebp - 0xa0], eax
jne 0x67e07b59
test esi, esi
je 0x67e07b4f
mov esi, ebx
add esi, dword [ebx + 0x3c]
jo 0x67e07ab5
lea eax, [ebp - 0x98]
add esi, 0x78
mov ecx, 0x20
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x94], 0
je 0x67e07b4f
mov edi, dword [ebp - 0x98]
test edi, edi
je 0x67e07b4f
xor eax, eax
add edi, ebx
seto al
mov esi, eax
jno 0x67e07abf
call sym._raiseOverflow
jmp 0x67e07b59
mov eax, dword [edi + 0x18]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xa8]
or eax, dword [ebp - 0xa4]
je 0x67e07b4f
cmp esi, dword [ebp - 0xac]
jg 0x67e07b4f
imul eax, esi, 4
jo 0x67e07ab5
add eax, dword [edi + 0x20]
jo 0x67e07ab5
add eax, ebx
jo 0x67e07ab5
mov ecx, ebx
add ecx, dword [eax]
jo 0x67e07ab5
call sym._getHash__6873nvoke_u95_4
mov ecx, dword [ebp - 0xa0]
cmp byte [ecx], 0
jne 0x67e07b59
cmp dword [ebp - 0xa8], edx
jne 0x67e07b12
cmp dword [ebp - 0xa4], eax
je 0x67e07b19
add esi, 1
jno 0x67e07ad6
jmp 0x67e07ab5
imul esi, esi, 2
jo 0x67e07ab5
add esi, dword [edi + 0x24]
jo 0x67e07ab5
add esi, ebx
jo 0x67e07ab5
mov ax, word [esi]
shl eax, 2
movzx eax, ax
add eax, dword [edi + 0x1c]
jo 0x67e07ab5
add eax, ebx
jo 0x67e07ab5
add ebx, dword [eax]
jo 0x67e07ab5
mov dword [ebp - 0x9c], ebx
test ebx, ebx
jne 0x67e07b59
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x67e07b6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x2c], ecx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea edx, [eax + 0x14]
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x30], edx
mov eax, dword [esi + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [0x67e2306c]
push edx
push edx
test eax, eax
je 0x67e07bae
mov esi, dword [esi]
cmp dword [ebp - 0x30], esi
jne 0x67e07b8c
jmp 0x67e07bb6
mov eax, dword [esi + 0x10]
jmp 0x67e07d1d
not edi
mov ecx, edi
call sym._winimConverterBOOLToBoolean__winimZutils_u5_4
mov dword [esp], 0x67e1a124
mov edi, eax
call sym.___emutls_get_address
cmp byte [eax], 0
mov esi, eax
jne 0x67e07d1b
mov eax, edi
test al, al
jne 0x67e07d1b
mov eax, dword [0x67e1b834]
mov edx, dword [0x67e1b838]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._winstrConverterStringToLPWSTR__winimZwinstr_u1291_8
push ecx
push ecx
cmp byte [esi], 0
mov ecx, eax
jne 0x67e07d1b
xor edx, edx
call sym._get_library_address__6873nvoke_u140_8
cmp byte [esi], 0
mov ecx, eax
jne 0x67e07d1b
mov dword [esp + 8], 0
mov dword [esp], 0xd02065c1
mov dword [esp + 4], 0
call sym._get_function_address__6873nvoke_u143_16
sub esp, 0xc
cmp byte [esi], 0
mov edi, eax
jne 0x67e07d1b
test eax, eax
je 0x67e07d1b
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], eax
mov dword [esp], eax
call dword [0x67e2307c]
push edx
mov edx, eax
test eax, eax
jns 0x67e07c98
sar edx, 0x1f
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._raiseRangeErrorI
jmp 0x67e07ca5
mov ecx, dword [ebp - 0x2c]
call sym._UNICODEminusgtstring___winimZwinstr_u206_8
mov dword [ebp - 0x34], eax
mov ebx, edx
cmp byte [esi], 0
jne 0x67e07d09
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov dword [esp + 4], 0
add eax, eax
mov dword [esp], 0
mov word [ebp - 0x20], ax
add eax, 2
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
call edi
sub esp, 0x10
cmp byte [esi], 0
jne 0x67e07d09
test eax, eax
js 0x67e07d09
mov eax, dword [ebp - 0x24]
test ebx, ebx
je 0x67e07d1d
bt dword [ebx], 0x1e
jb 0x67e07d1d
mov dword [esp], ebx
mov dword [ebp - 0x2c], eax
call sym._deallocShared
mov eax, dword [ebp - 0x2c]
jmp 0x67e07d1d
test ebx, ebx
je 0x67e07d1b
bt dword [ebx], 0x1e
jb 0x67e07d1b
mov dword [esp], ebx
call sym._deallocShared
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x67e08870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], 0x67e1b99c
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort
Function at 0x67e09164
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x67e09183
mov eax, 0
jmp 0x67e091c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x67e091a6
mov eax, 0
jmp 0x67e091c7
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x67e091c2
mov eax, 0
jmp 0x67e091c7
mov eax, 1
leave
ret

Function at 0x67e091c9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x67e09228
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x67e09220
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x67e09220
mov eax, dword [ebp - 4]
jmp 0x67e0923c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x67e091fd
mov eax, 0
leave
ret