joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7600
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4a762e
mov eax, ebx
call fcn.004a80b4
cmp dword [ebx + 0x40], 0
je 0x4a7627
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4a769f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4a7691
cmp dword [ebx + 8], 0
je 0x4a7650
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4a7662
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a7691
cmp dword [ebx + 8], 0
je 0x4a7643
cmp eax, 3
je 0x4a7675
dec eax
jne 0x4a7643
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4a7643
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4a7643
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4a76bd
cmp dword [ebx + 0x14], 0xcc
je 0x4a76bd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004a76c8
pop ebx
ret

Function at 0x4b9164
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b921b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004048f8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x4b91a6
call fcn.00403e74
jmp 0x4b9222
mov eax, ebx
call fcn.00402a90
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.004048f8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x4b91cf
call fcn.00403e74
jmp 0x4b9222
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b922c
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4b91f0
call fcn.00403e74
jmp 0x4b9222
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9222
mov eax, dword [ebp - 8]
call fcn.00402ac0
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9490
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b9501
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
xor ecx, ecx
mov edx, 0x160
call fcn.00402ff8
cmp dword [ebp - 4], 0
jne 0x4b94d3
mov word [ebp - 6], 0
lea eax, [ebp - 6]
mov dword [ebp - 4], eax
or ebx, 0x4008
push ebx
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x164]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b950d
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b97f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x4b999c
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b9994
xor eax, eax
push ebp
push 0x4b998d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 6], 0
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x4b99a8
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x4b9868
push 0x4009
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x4b99a8
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x4b98a9
push 0x4008
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, esi
call fcn.0042de98
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, edi
call fcn.0042de98
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, esi
call fcn.0042de98
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, edi
call fcn.0042de98
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x4d9f34], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9994
cmp dword [ebp - 4], 0
je 0x4b998c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b99ac
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.004b9158
test al, al
je 0x4b99d9
cmp dword [0x4dbd10], 0x40047
jl 0x4b99d9
cmp byte [0x4d9f34], 0
jne 0x4b99d9
call fcn.004b97f0
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x4d9f38]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x4b9a3c
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4b9a31
mov word [esp], 0
mov eax, dword [esi*4 + 0x4d9f38]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret

Function at 0x4b99f5
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.004b9158
test al, al
je 0x4b99d9
cmp dword [0x4dbd10], 0x40047
jl 0x4b99d9
cmp byte [0x4d9f34], 0
jne 0x4b99d9
call fcn.004b97f0
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x4d9f38]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x4b9a3c
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4b9a31
mov word [esp], 0
mov eax, dword [esi*4 + 0x4d9f38]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x4c17b4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4c17bc
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c1909
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x4c1812
lea edx, [ebp - 4]
mov eax, dword [0x4da0fc]
call fcn.00406494
cmp ebx, 1
jbe 0x4c1849
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4c1920
call fcn.00409c20
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404700
jmp 0x4c1849
lea eax, [ebp - 4]
mov edx, 0x4c1930
call fcn.004044d0
cmp ebx, 1
jbe 0x4c1849
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4c1940
call fcn.00409c20
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00404700
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.00404744
mov eax, dword [ebp - 0x18]
call fcn.004048f8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4c18d1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x4c1881
mov bl, 1
jmp 0x4c18e1
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040bd90
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x4da428]
call fcn.00406494
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.004ba86c
mov eax, dword [ebp - 0x1c]
mov cx, word [0x4c1944]
xor edx, edx
call fcn.00433084
mov bl, 2
jmp 0x4c18e1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.0040448c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1910
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.0040445c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040445c
ret

Function at 0x4c1f80
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x4c1fa2
mov edx, ebx
mov eax, dword [0x4da424]
call fcn.00406494
jmp 0x4c1fd9
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4c1fd2
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.004046a8
jmp 0x4c1fd9
mov eax, ebx
call fcn.00404438
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x4c2960
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x4c2993
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4c298c
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048e8
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x4010bc]
call fcn.00405050
xor eax, eax
push ebp
push 0x4c2b21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4c2ae9
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x4c2b48
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.004047b8
mov eax, dword [ebp - 0x158]
call fcn.004048f8
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c2add
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4c2ac2
test al, 2
jne 0x4c2ac2
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x4c2b48
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004046a8
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.004047b8
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.004b92e8
call fcn.00416b8c
test al, al
je 0x4c2a80
or edi, 0xffffffff
jmp 0x4c2a8f
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004b9490
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.004b924c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004046a8
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4c2a15
push ebx
call sub.kernel32.dll_FindClose
add esi, 4
dec dword [ebp - 0x14]
jne 0x4c29d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2b28
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.0040445c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x4010bc]
call fcn.00404f10
lea eax, [ebp - 4]
call fcn.00404438
ret
Function at 0x4c3c94
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c3d2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x700f0037
mov eax, dword [0x4da384]
cmp dword [eax + 4], 0x60000
jl 0x4c3ccc
or dword [ebp - 4], 0x400000
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004c3dc0
mov eax, dword [ebp - 8]
call fcn.004c1b38
test al, al
je 0x4c3cfc
mov eax, dword [ebp - 8]
call fcn.004048f8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4c3cfc
and dword [ebp - 4], 0xfffbffff
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x418]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3d32
lea eax, [ebp - 8]
call fcn.00404438
ret

Function at 0x4c77d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004048f8
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x4c7811
dec eax
je 0x4c77f3
sub eax, 2
je 0x4c7811
jmp 0x4c7822
mov al, byte [ebx]
call fcn.004bad1c
test al, al
je 0x4c7822
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.004037f0
jmp 0x4c7822
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.004037f0
pop esi
pop ebx
pop ebp
ret

Function at 0x4c7828
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c78d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3f8], 0
jne 0x4c7876
push 0x465
mov eax, dword [ebp - 4]
call fcn.0045d590
mov ecx, eax
mov dl, 1
mov eax, dword [0x4c3f5c]
call fcn.004c3fc8
mov edx, dword [ebp - 4]
mov dword [edx + 0x3f8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f8]
call fcn.004c4490
lea eax, [ebp - 8]
mov edx, 0x4c78ec
call fcn.004044d0
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4c78c1
test bl, 1
je 0x4c78ba
lea eax, [ebp - 8]
call fcn.00404950
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004c77d0
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4c789e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c78de
lea eax, [ebp - 8]
call fcn.00404438
ret
Function at 0x4c8478
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004048e8
xor eax, eax
push ebp
push 0x4c8596
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c8569
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.004048f8
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c8546
test byte [ebp - 0x14c], 0x10
jne 0x4c8529
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004046a8
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00408928
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4c84ec
push ebx
call sub.kernel32.dll_FindClose
mov byte [ebp - 5], 1
jmp 0x4c8552
call sub.kernel32.dll_GetLastError
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8570
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4cd114
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
mov ebx, eax
mov al, byte [ebx + 4]
sub al, 1
jb 0x4cd123
je 0x4cd12b
jmp 0x4cd153
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x4cd158
cmp dword [ebx + 8], 0
jne 0x4cd14b
lea eax, [ebx + 8]
push eax
xor eax, eax
mov al, byte [ebx + 0xc]
push eax
mov eax, dword [0x4da39c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x4cd158
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
pop edx
pop ebx
ret
Function at 0x4d01c8
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048e8
mov eax, dword [ebp - 8]
call fcn.004048e8
xor eax, eax
push ebp
push 0x4d0387
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004048f8
call fcn.00409500
mov edi, eax
inc edi
xor edx, edx
mov eax, 2
call fcn.004b7e68
mov esi, eax
mov eax, esi
xor edx, edx
cmp edx, 0xffffffff
jne 0x4d022a
cmp eax, 0xffffffff
je 0x4d0298
mov dword [ebp - 0x13c], 0x128
lea edx, [ebp - 0x13c]
mov eax, esi
call fcn.004b7e88
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4d0292
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.004046a8
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 4]
call fcn.00404844
jne 0x4d027b
mov ebx, dword [ebp - 0x134]
jmp 0x4d0292
lea edx, [ebp - 0x13c]
mov eax, esi
call fcn.004b7ea8
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d024d
push esi
call sub.kernel32.dll_CloseHandle
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 4
push 0x1000
push edi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push edi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x4d0398
push 0x4d03ac
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov esi, eax
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x14]
push eax
push esi
call sub.kernel32.dll_GetExitCodeThread
push 0x4000
push edi
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_VirtualFreeEx
push esi
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0x4d03b8
push 0x4d03ac
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov esi, eax
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
push esi
call sub.kernel32.dll_CloseHandle
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d038e
lea eax, [ebp - 0x140]
call fcn.00404438
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040445c
ret
Function at 0x4047c4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00407018
test esi, esi
jne 0x4047fa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407180
jmp 0x404818
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046a8
mov edi, eax
test esi, esi
je 0x404818
cmp dword [ebx], 0
je 0x404818
dec esi
jmp 0x404801
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40484c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x572008], 0x8088405
inc edx
mov dword [ebx + 0x572008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405dc4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004061b0
mov byte [esp], al
cmp byte [esp], 0
jne 0x405f4d
test edi, edi
je 0x405f4d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405e84
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405e5f
cmp edi, 0xffffffff
je 0x405e23
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405e23
mov byte [esp], 0
jmp 0x405f4d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405e5f
test ebx, ebx
jne 0x405e58
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025a8
test eax, eax
jne 0x405e58
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405f4d
pause
dec ebp
test ebp, ebp
jg 0x405e08
cmp edi, 0xffffffff
je 0x405e84
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405e82
mov byte [esp], 0
jmp 0x405f4d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405dd2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025a8
cmp ebx, eax
jne 0x405e84
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405fc0
mov edx, eax
mov ebx, dword [0x57c8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405eeb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ee9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405eeb
xor edi, edi
cmp byte [esp], 0
je 0x405f14
mov ebx, dword [esi]
test bl, 1
jne 0x405f2d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025a8
cmp ebx, eax
jne 0x405ef1
mov byte [esp + 1], 1
jmp 0x405f2d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025a8
cmp ebx, eax
jne 0x405f14
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405e9e
cmp byte [esp], 0
je 0x405f4d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406cc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57c054], 0
je 0x406d29
cmp word [0x57c330], 0xd7b2
jne 0x406cf1
cmp dword [0x57c338], 0
jbe 0x406cf1
mov eax, 0x57c32c
call dword [0x57c348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406d54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x572028], 0
jne 0x406d45
push 0
push 0x572798
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406ed4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x57202c], 0
je 0x406eff
mov edx, edi
mov eax, esi
call dword [0x57202c]
mov ebx, eax
jmp 0x406f10
mov eax, 8
call fcn.004043dc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x57c055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406e9c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406f45
mov edx, 8
mov eax, ebx
call fcn.004043f8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc