joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52d720
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x6bef0c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6e1480], 0
je 0x52d77a
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.ASSERT___file:_s_line:_d___s__do_you_debug_
push 0x6e1380
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40004
push 0
push 0x6e1380
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x52d775
int3
jmp 0x52d946
cmp dword [ebp + 0x10], 0
je 0x52d7a2
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_line:_d__msg:_s_
lea eax, [ebp - 0x118]
push eax
call fcn.0058408f
add esp, 0x14
jmp 0x52d7be
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_line:_d_
lea eax, [ebp - 0x118]
push eax
call fcn.0058408f
add esp, 0x10
mov byte [ebp - 0x218], 0
push 0xff
push 0
lea ecx, [ebp - 0x217]
push ecx
call fcn.005842e0
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx ecx, word [ebp - 0x12]
push ecx
movzx edx, word [ebp - 0x14]
push edx
push str.._Log_Assert__4d_02d_02d.txt
lea eax, [ebp - 0x218]
push eax
call fcn.0058408f
add esp, 0x14
cmp dword [0x6e14d8], 0
jne 0x52d946
push 0
lea ecx, [ebp - 0x2b0]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x52d89f
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5b1874
lea ecx, [ebp - 0x218]
push ecx
call fcn.00583ee0
add esp, 8
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x52d89a
call fcn.0052daa0
push eax
lea edx, [ebp - 0x118]
push edx
push str._stime:_s_n
mov eax, dword [ebp - 0x2b4]
push eax
call fcn.00583b1d
add esp, 0x10
mov ecx, dword [ebp - 0x2b4]
push ecx
call fcn.00583c96
add esp, 4
jmp 0x52d946
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x224]
shl ecx, 0x10
or ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x220], 0xf4240
ja 0x52d93c
push 0x5b1874
lea eax, [ebp - 0x218]
push eax
call fcn.00583ee0
add esp, 8
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x52d93a
call fcn.0052daa0
push eax
lea ecx, [ebp - 0x118]
push ecx
push str._stime:_s_n
mov edx, dword [ebp - 0x2b8]
push edx
call fcn.00583b1d
add esp, 0x10
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.00583c96
add esp, 4
jmp 0x52d946
mov dword [0x6e14d8], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00583b0e
mov esp, ebp
pop ebp
ret
Function at 0x52eb10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
mov eax, dword [0x6bef0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x1ff
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.005842e0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x52eb68
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_line:_d__msg:_s_
lea ecx, [ebp - 0x218]
push ecx
call fcn.0058408f
add esp, 0x14
jmp 0x52eb84
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_line:_d_
lea ecx, [ebp - 0x218]
push ecx
call fcn.0058408f
add esp, 0x10
mov byte [ebp - 0x318], 0
push 0xff
push 0
lea edx, [ebp - 0x317]
push edx
call fcn.005842e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0xe]
push ecx
movzx edx, word [ebp - 0x12]
push edx
movzx eax, word [ebp - 0x14]
push eax
push str.._Log_Debug__4d_02d_02d.txt
lea ecx, [ebp - 0x318]
push ecx
call fcn.0058408f
add esp, 0x14
cmp dword [0x6e1820], 0
jne 0x52ed0c
push 0
lea edx, [ebp - 0x3b0]
push edx
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0xffffffff
jne 0x52ec65
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5b1874
lea edx, [ebp - 0x318]
push edx
call fcn.00583ee0
add esp, 8
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0
je 0x52ec60
call fcn.0052daa0
push eax
lea eax, [ebp - 0x218]
push eax
push str._stime:_s_n
mov ecx, dword [ebp - 0x3b4]
push ecx
call fcn.00583b1d
add esp, 0x10
mov edx, dword [ebp - 0x3b4]
push edx
call fcn.00583c96
add esp, 4
jmp 0x52ed0c
lea eax, [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x31c], eax
mov edx, dword [ebp - 0x324]
shl edx, 0x10
or edx, dword [ebp - 0x31c]
mov dword [ebp - 0x320], edx
mov eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x320], 0xf4240
ja 0x52ed02
push 0x5b1874
lea ecx, [ebp - 0x318]
push ecx
call fcn.00583ee0
add esp, 8
mov dword [ebp - 0x3b8], eax
cmp dword [ebp - 0x3b8], 0
je 0x52ed00
call fcn.0052daa0
push eax
lea edx, [ebp - 0x218]
push edx
push str._stime:_s_n
mov eax, dword [ebp - 0x3b8]
push eax
call fcn.00583b1d
add esp, 0x10
mov ecx, dword [ebp - 0x3b8]
push ecx
call fcn.00583c96
add esp, 4
jmp 0x52ed0c
mov dword [0x6e1820], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00583b0e
mov esp, ebp
pop ebp
ret

Function at 0x5508c0
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x4c]
add eax, 0x493e0
cmp edi, eax
jbe 0x5508ed
mov ecx, esi
call fcn.00550880
push 0x5b40b0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x4c], edi
pop edi
pop esi
ret
Function at 0x5536b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
cmp dword [eax], 0x10
je 0x55382f
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
push 0x94
mov dword [ebp + 8], esi
add esi, 0x364
push 0
push esi
call fcn.005842e0
add esp, 0xc
mov ecx, edi
call fcn.00551b70
push 0
mov ecx, edi
call fcn.00551b80
test eax, eax
je 0x553817
push ebx
jmp 0x553700
mov edi, dword [eax]
mov ecx, eax
call fcn.00551870
mov ecx, dword [ebp + 8]
mov bl, al
add bl, byte [ecx + 0x536]
mov ecx, 0x6fda80
mov byte [ebp - 4], bl
mov edx, dword [ebp - 4]
push edx
call fcn.00552f60
test eax, eax
je case.0x553744.10
movzx ecx, word [edi + 0x2c]
add ecx, 0xfffffffd
cmp ecx, 0x75
ja case.0x553744.10
movzx ecx, byte [ecx + 0x55387c]
jmp dword [ecx*4 + 0x553838]
movzx edx, word [edi + 0x30]
mov eax, dword [eax]
mov dword [esi + edx*4 - 4], eax
jmp case.0x553744.10
movzx ecx, word [edi + 0x30]
fld dword [eax + 8]
fstp dword [ebp - 8]
test cx, cx
je case.0x553744.10
fld dword [eax + 4]
fstp dword [esi + ecx*4 + 0x24]
fld dword [ebp - 8]
fstp dword [esi + ecx*4 + 0x3c]
jmp case.0x553744.10
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x5c], ecx
jmp case.0x553744.10
mov edx, dword [eax + 0x10]
mov dword [esi + 0x58], edx
jmp case.0x553744.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x553744.10
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x64], ecx
jmp case.0x553744.10
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x68], edx
jmp case.0x553744.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x553744.10
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x70], ecx
jmp case.0x553744.10
mov edx, dword [eax + 0x20]
mov dword [esi + 0x74], edx
jmp case.0x553744.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x553744.10
fld dword [eax + 0x24]
movzx ecx, bl
fstp dword [esi + 0x7c]
mov word [esi + 0x80], cx
jmp case.0x553744.10
fld dword [eax + 0x28]
fstp dword [esi + 0x84]
jmp case.0x553744.10
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x88], edx
jmp case.0x553744.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8c], eax
jmp case.0x553744.10
mov ecx, dword [eax + 0x34]
mov dword [esi + 0x90], ecx
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00551b80
test eax, eax
jne 0x553700
pop ebx
mov ecx, dword [0x6c1a8c]
call fcn.0043d930
mov ecx, dword [0x6c1a8c]
call fcn.0043d5f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x556850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x55688e
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea ecx, [ebp - 4]
push ecx
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
jne 0x5568b3
push 0
push 0x45
push str.TileManager.cpp
call fcn.0052d720
add esp, 0xc
push edi
push 0
lea edx, [ebp - 4]
push edx
push 4
lea edi, [esi + 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
jne 0x5568dc
push 0
push 0x47
push str.TileManager.cpp
call fcn.0052d720
add esp, 0xc
mov eax, dword [edi]
imul eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00583458
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
imul eax, dword [esi]
add esp, 4
xor edi, edi
test eax, eax
je 0x556962
lea esp, [esp]
mov ecx, dword [esi + 8]
push 0
lea eax, [ebp - 4]
push eax
lea edx, [ecx + edi*2]
push 2
lea ecx, [ebp + 8]
push ecx
push ebx
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
jne 0x556936
push 0
push 0x53
jmp 0x556940
cmp dword [ebp - 4], 0
jne 0x55694d
push 0
push 0x55
push str.TileManager.cpp
call fcn.0052d720
add esp, 0xc
mov dx, word [ebp + 8]
mov eax, dword [ebp - 8]
mov word [eax], dx
mov ecx, dword [esi + 4]
imul ecx, dword [esi]
inc edi
cmp edi, ecx
jb 0x556910
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x565850
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 0x12
jb 0x565870
push 0
push 0x72
push str.DirectoryManager.cpp
call fcn.0052d720
add esp, 0xc
cmp esi, dword [edi + 0x50]
je 0x565888
cmp esi, 0x11
je 0x565888
mov eax, dword [edi + esi*4 + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [edi + 0x50], esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x57d440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74c
mov eax, dword [0x6bef0c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x74c], ecx
cmp dword [ebp + 8], 0
jne 0x57d466
xor eax, eax
jmp 0x57d6cb
cmp dword [ebp + 0xc], 0
jne 0x57d473
xor eax, eax
jmp 0x57d6cb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x744], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x331]
push edx
call fcn.00587ed3
add esp, 0x10
mov eax, dword [ebp - 0x74c]
add eax, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0x33c], 0
push 0x200
push 0
lea ecx, [ebp - 0x330]
push ecx
call fcn.005842e0
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
push str._02X
mov eax, dword [ebp - 4]
push eax
call fcn.00584b29
add esp, 0xc
test eax, eax
jle 0x57d514
cmp dword [ebp - 0x33c], 0x200
jge 0x57d514
mov ecx, dword [ebp - 0x33c]
mov dl, byte [ebp - 0x130]
mov byte [ebp + ecx - 0x330], dl
mov eax, dword [ebp - 0x33c]
add eax, 1
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
jmp 0x57d4bf
push 0x100
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x128]
push eax
call fcn.0057bee0
add esp, 0xc
mov cl, byte [ebp + 0x14]
mov byte [ebp - 5], cl
mov dword [ebp - 0x338], 0
jmp 0x57d550
mov edx, dword [ebp - 0x338]
add edx, 0x10
mov dword [ebp - 0x338], edx
mov eax, dword [ebp - 0x338]
cmp eax, dword [ebp - 0x744]
jge 0x57d64a
mov ecx, dword [ebp + 8]
push ecx
push 0x10
push 1
lea edx, [ebp - 0x740]
push edx
call fcn.00587ed3
add esp, 0x10
cmp eax, 0x10
je 0x57d5c5
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x400
push 0
lea eax, [ebp - 0x740]
push eax
call fcn.005842e0
add esp, 0xc
push 0x118
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.005842e0
add esp, 0xc
xor eax, eax
jmp 0x57d6cb
lea edx, [ebp - 0x740]
push edx
lea eax, [ebp - 0x740]
push eax
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.0057c1e0
add esp, 0x10
mov dword [ebp - 0x748], 0
jmp 0x57d5ff
mov edx, dword [ebp - 0x748]
add edx, 1
mov dword [ebp - 0x748], edx
cmp dword [ebp - 0x748], 0x10
jge 0x57d645
mov eax, dword [ebp - 0x338]
add eax, dword [ebp - 0x748]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x748]
mov dl, byte [ebp + edx - 0x740]
mov byte [ecx + eax], dl
movsx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x338]
add ecx, dword [ebp - 0x748]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [edx + ecx]
add eax, ecx
mov byte [ebp - 5], al
jmp 0x57d5f0
jmp 0x57d541
mov edx, dword [ebp + 8]
push edx
push 1
push 1
lea eax, [ebp - 0x129]
push eax
call fcn.00587ed3
add esp, 0x10
movsx ecx, byte [ebp - 0x331]
movsx edx, byte [ebp - 0x129]
cmp ecx, edx
jne 0x57d682
movsx eax, byte [ebp - 0x331]
movsx ecx, byte [ebp - 5]
cmp eax, ecx
je 0x57d6c6
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x400
push 0
lea edx, [ebp - 0x740]
push edx
call fcn.005842e0
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.005842e0
add esp, 0xc
xor eax, eax
jmp 0x57d6cb
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00583b0e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x583b0e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6bef0c]
jne 0x583b18
repz ret
jmp fcn.0058afda

Function at 0x595bec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6bef0c]
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.0058e8fc
and dword [ebp - 0x14], 0
cmp dword [0x701a50], 0
mov dword [ebp - 0x18], eax
jne 0x595c9f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x595d47
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x595d47
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5bbe7c
push ebx
mov dword [0x701a50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x701a54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x701a58], eax
call edi
push eax
call esi
mov dword [0x701a60], eax
test eax, eax
je 0x595c9f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x701a5c], eax
mov eax, dword [0x701a5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x595cf8
cmp dword [0x701a60], ecx
je 0x595cf8
push eax
call esi
push dword [0x701a60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x595cf8
test ebx, ebx
je 0x595cf8
call edi
test eax, eax
je 0x595cef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x595cef
test byte [ebp - 8], 1
jne 0x595cf8
or dword [ebp + 0x10], 0x200000
jmp 0x595d2b
mov eax, dword [0x701a54]
cmp eax, dword [ebp - 0x18]
je 0x595d2b
push eax
call esi
test eax, eax
je 0x595d2b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x595d2b
mov eax, dword [0x701a58]
cmp eax, dword [ebp - 0x18]
je 0x595d2b
push eax
call esi
test eax, eax
je 0x595d2b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x701a50]
call esi
test eax, eax
je 0x595d47
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x595d49
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00583b0e
leave
ret
Function at 0x406a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aa78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x468fc0]
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
cmp dword [edi + 0x44], 0
je 0x406b92
cmp byte [edi + 0x4a], 0
je 0x406b92
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x406b86
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x406ae1
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x406b01
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [0x441244]
sub eax, 0
je 0x406b26
dec eax
je 0x406b2a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x406b81
jmp 0x406b8d
mov byte [edi + 0x4a], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x406b3a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x406b64
cmp edx, 0x10
jae 0x406b49
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [0x4413d4]
add esp, 0x10
cmp esi, eax
jne 0x406b7e
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x406b8a
test esi, esi
jne 0x406af5
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406760
jmp 0x406aef
lea ecx, [ebp - 0x2c]
call fcn.00406190
xor al, al
jmp 0x406b94
lea ecx, [ebp - 0x2c]
call fcn.00406190
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.00439a1c
mov esp, ebp
pop ebp
ret
Function at 0x407130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aa48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x468fc0]
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 esi, dword [ebp + 8]
mov eax, 0xffff
mov edi, ecx
cmp ax, si
jne 0x407171
xor eax, eax
jmp 0x40731b
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x40719d
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x40719d
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x40731b
cmp dword [edi + 0x54], 0
je 0x407316
mov edx, dword [edi + 0x10]
lea ecx, [edi + 0x48]
cmp dword [edx], ecx
jne 0x4071c2
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x3c]
push eax
push eax
push edx
mov ecx, edi
call dword [0x441240]
cmp dword [edi + 0x44], 0
jne 0x4071ee
mov edi, dword [edi + 0x54]
push edi
push esi
call dword [0x4413b0]
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, si
jne 0x40731b
mov eax, ecx
jmp 0x40731b
movzx edx, si
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x407217
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
jmp 0x407233
mov esi, dword [ebp + 8]
mov ecx, eax
cmp edx, 0x10
jae 0x40723f
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edx
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [ebp - 0x30]
push edx
push ebx
call dword [0x441248]
test eax, eax
js 0x40730e
cmp eax, 1
jg 0x4072d5
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x40727b
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x4072a5
cmp edx, 0x10
jae 0x40728a
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [0x4413d4]
add esp, 0x10
cmp esi, eax
jne 0x40730e
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x38], ecx
jne 0x407300
test esi, esi
jne 0x407230
cmp dword [ebp - 0x1c], 0x20
lea ecx, [ebp - 0x2c]
jae 0x407311
push esi
push 8
call fcn.00406760
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
jmp 0x407230
cmp eax, 3
jne 0x40730e
mov edx, dword [edi + 0x54]
mov eax, dword [ebp - 0x30]
push edx
push eax
call fcn.00404d00
movzx esi, si
test al, al
jne 0x4072f3
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.00406190
mov ax, si
jmp 0x40731b
lea ecx, [ebp - 0x2c]
call fcn.00406190
mov ax, word [ebp + 8]
jmp 0x40731b
lea ecx, [ebp - 0x2c]
call fcn.00406190
mov eax, 0xffff
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.00439a1c
mov esp, ebp
pop ebp
ret 4
Function at 0x40de20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x14]
test ecx, ecx
je 0x40de7a
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x40df70
push 0
push 0
call dword [0x4413e8]
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 8]
mov byte [edx + 0x14], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x15], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0
je 0x40de74
mov al, 1
jmp 0x40deac
xor al, al
jmp 0x40deac
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x15]
test eax, eax
je 0x40deaa
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [0x441108]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40de9f
xor al, al
jmp 0x40deac
mov eax, dword [ebp - 8]
mov byte [eax + 0x15], 0
mov al, 1
jmp 0x40deac
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40e260
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x14], 8
jb 0x40e285
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x40e28b
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040e120
movzx eax, al
test eax, eax
jne 0x40e2a2
mov al, 1
jmp 0x40e382
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x14], 8
jb 0x40e2c5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
jmp 0x40e2cb
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040e1e0
movzx ecx, al
test ecx, ecx
je 0x40e30f
mov edx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x40e2f7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
jmp 0x40e2fd
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [0x4413f8]
add esp, 4
mov dword [ebp - 4], eax
jmp 0x40e37b
mov edx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 8
jb 0x40e32b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
jmp 0x40e331
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
push 1
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040e1a0
movzx edx, al
test edx, edx
je 0x40e37b
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x14], 8
jb 0x40e35f
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
jmp 0x40e365
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [0x4410fc]
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret