joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4233bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042c4
call fcn.004065c7
push 4
mov dword [esp + 0x18], 0
call fcn.00407b9e
mov edi, eax
add esp, 4
test edi, edi
je 0x405654
push ebx
call fcn.00406a08
mov dword [edi], eax
call fcn.00406788
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406278
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405648
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004062a0
pop ebx
jmp 0x405656
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408254
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426668]
jne 0x40825e
repz ret
jmp fcn.0041126c
Function at 0x420197
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426668]
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.0040f98c
and dword [ebp - 0x14], 0
cmp dword [0x823540], 0
mov dword [ebp - 0x18], eax
jne 0x42024a
push 0x403f18
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4202f2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f0c
push ebx
call edi
test eax, eax
je 0x4202f2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403efc
push ebx
mov dword [0x823540], eax
call edi
push eax
call esi
push 0x403ee8
push ebx
mov dword [0x823544], eax
call edi
push eax
call esi
push 0x403ecc
push ebx
mov dword [0x823548], eax
call edi
push eax
call esi
mov dword [0x823550], eax
test eax, eax
je 0x42024a
push 0x403eb4
push ebx
call edi
push eax
call esi
mov dword [0x82354c], eax
mov eax, dword [0x82354c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4202a3
cmp dword [0x823550], ecx
je 0x4202a3
push eax
call esi
push dword [0x823550]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4202a3
test ebx, ebx
je 0x4202a3
call edi
test eax, eax
je 0x42029a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42029a
test byte [ebp - 8], 1
jne 0x4202a3
or dword [ebp + 0x10], 0x200000
jmp 0x4202d6
mov eax, dword [0x823544]
cmp eax, dword [ebp - 0x18]
je 0x4202d6
push eax
call esi
test eax, eax
je 0x4202d6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4202d6
mov eax, dword [0x823548]
cmp eax, dword [ebp - 0x18]
je 0x4202d6
push eax
call esi
test eax, eax
je 0x4202d6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x823540]
call esi
test eax, eax
je 0x4202f2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4202f4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408254
leave
ret

Function at 0x422720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x27818b8], ax
mov word [0x27818bc], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x27818b8
mov dword [0x27818c4], 0x320033
mov dword [0x27818cc], 0x6c006c
mov word [0x27818be], cx
mov dword [0x27818c0], 0x6c0065
mov dword [0x27818c8], 0x64002e
mov word [0x27818ba], dx
mov word [0x27818d0], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x27818b4]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x27818b0], eax
mov eax, dword [0x27800a0]
push edx
push eax
mov byte [0x823573], 0x65
mov dword [0x823569], 0x75747269
mov word [0x82356d], 0x6c61
mov byte [0x823568], 0x56
mov word [0x823574], 0x7463
mov byte [0x823576], 0
mov dword [0x82356f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x422820
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1280
call fcn.00421230
cmp dword [0x27818b4], 0x37
push esi
jne 0x422921
push 0
lea eax, [esp + 0x284]
push eax
push 0x403ffc
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
call esi
xor eax, eax
lea edx, [esp + 8]
push edx
push eax
push eax
push eax
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push 0
lea eax, [esp + 0x684]
push eax
push 0x404008
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0xa84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x60]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
call esi
push 0x404030
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x38], 0
call fcn.00413890
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov edx, dword [0x2784018]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + ebx]
mov edx, dword [0x27800a0]
mov byte [edx + ebx], cl
pop esi
add esp, 0x1280
ret
Function at 0x422bc0
Capabilities:
Accept command line arguments
Get geographical location
Query environment variable

Disassembly:
mov eax, dword [0x27818b4]
mov ecx, dword [0x27800a0]
sub esp, 0x97c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
je 0x422dbc
mov dword [esp + 0x34], 0x9e3779b9
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov ecx, dword [0x821190]
mov edx, dword [0x821194]
mov dword [esp + 0x14], eax
mov eax, dword [0x821198]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x82119c]
mov edi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], 0x20
mov eax, ebx
shl eax, 4
add eax, dword [esp + 0x2c]
mov esi, ebx
shr esi, 5
cmp dword [0x27818b4], 0x1b
mov dword [esp + 0x10], eax
lea ebp, [edi + ebx]
jne 0x422c70
push 0
call dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x3c]
xor eax, ebp
xor edx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
mov dword [0x27800a4], edx
mov eax, dword [esp + 0x1c]
add dword [0x27800a4], eax
mov eax, dword [0x27800a4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x38]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x40]
cmp dword [0x27818b4], 0x1be
mov dword [esp + 0x10], eax
lea esi, [edi + ecx]
jne 0x422d06
push edx
lea eax, [esp + 0x18c]
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x30]
cmp dword [0x27818b4], 0x979
mov dword [0x27800a8], 0xff6b3619
mov dword [0x27800ac], 0xffffffff
mov dword [esp + 0x1c], ecx
jne 0x422d42
lea ecx, [esp + 0x48]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x10]
xor eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
sub ebx, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
sub edi, dword [esp + 0x18]
dec dword [esp + 0x24]
jne 0x422c2d
cmp dword [0x27818b4], 0x8d4
jne 0x422d84
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [eax], ebx
mov dword [eax + 4], edx
cmp dword [0x27818b4], 0x17
jne 0x422da7
lea eax, [esp + 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ecx, dword [esp + 0x20]
add ecx, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], ecx
jne 0x422bf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
ret
Function at 0x756f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x73e015
lea edi, [esi - 0x33d015]
push edi
jmp 0x756f4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x756f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x756f40
mov eax, 1
add ebx, ebx
jne 0x756f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x756f74
jne 0x756f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x756f93
dec eax
add ebx, ebx
jne 0x756f80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x756f58
add ebx, ebx
jne 0x756f8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x756fe5
xor ecx, ecx
sub eax, 3
jb 0x756fab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x75701a
sar eax, 1
mov ebp, eax
jmp 0x756fb6
add ebx, ebx
jne 0x756fb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x756f84
inc ecx
add ebx, ebx
jne 0x756fc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x756f84
add ebx, ebx
jne 0x756fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x756fc6
jne 0x756fe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x756fc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x757004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x756ff6
jmp 0x756f46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x757004
add edi, ecx
jmp 0x756f46
pop esi
mov edi, esi
mov ecx, 0x1246
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x757022
cmp byte [edi], 0xd
jne 0x757022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x757027
lea edi, [esi + 0x354000]
mov eax, dword [edi]
or eax, eax
je 0x757096
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x35ecb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x35ed64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x757054
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x35ed68]
or eax, eax
je 0x757090
mov dword [ebx], eax
add ebx, 4
jmp 0x757071
call dword [esi + 0x35ed78]
mov ebp, dword [esi + 0x35ed6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7570ca
sub esp, 0xffffff80
jmp 0x4012a0
Function at 0x401160
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x35c
mov eax, dword [0x411034]
xor eax, esp
mov dword [esp + 0x358], eax
push ebp
mov ebp, dword [esp + 0x364]
push esi
push edi
push ebp
lea eax, [esp + 0x25c]
push 0x104
push eax
call fcn.00403ec9
add esp, 0xc
push str..
lea ecx, [esp + 0x25c]
push 0x104
push ecx
call fcn.00403f31
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4012ab
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ebx, [ebx]
lea ecx, [esp + 0x3c]
push 0x40ebf0
push ecx
call fcn.00404153
add esp, 8
test eax, eax
je 0x401288
lea edx, [esp + 0x3c]
push 0x40ebf4
push edx
call fcn.00404153
add esp, 8
test eax, eax
je 0x401288
push 0x103
lea eax, [esp + 0x155]
push 0
push eax
mov byte [esp + 0x15c], 0
call fcn.00404760
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push ebp
lea edx, [esp + 0x158]
push str._s_s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x150]
push eax
call edi
test al, 0x10
je 0x401267
lea ecx, [esp + 0x150]
push ecx
call fcn.00401160
add esp, 4
jmp 0x401288
push 0x80
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4011e0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00403988
add esp, 0x35c
ret
Function at 0x4038b0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x20
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403962
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40394e
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40393a
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff31c
add esp, 0x24
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff3e4
add esp, 0x24
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff3e4
add esp, 0x24
ret

Function at 0x403988
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411034]
jne 0x403992
repz ret
jmp fcn.004045be
Function at 0x409962
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405da3
and dword [ebp - 4], 0
cmp dword [0x4129a8], 0
mov ebx, eax
jne 0x409a13
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409ac4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40eaac
push edi
call esi
test eax, eax
je 0x409ac4
push eax
call fcn.00405d31
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4129a8], eax
call esi
push eax
call fcn.00405d31
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4129ac], eax
call esi
push eax
call fcn.00405d31
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4129b0], eax
call esi
push eax
call fcn.00405d31
pop ecx
mov dword [0x4129b8], eax
test eax, eax
je 0x409a13
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405d31
pop ecx
mov dword [0x4129b4], eax
mov eax, dword [0x4129b4]
cmp eax, ebx
je 0x409a6b
cmp dword [0x4129b8], ebx
je 0x409a6b
push eax
call fcn.00405dac
push dword [0x4129b8]
mov esi, eax
call fcn.00405dac
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409a6b
test edi, edi
je 0x409a6b
call esi
test eax, eax
je 0x409a62
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409a62
test byte [ebp - 0xc], 1
jne 0x409a6b
or dword [ebp + 0x10], 0x200000
jmp 0x409aa4
mov eax, dword [0x4129ac]
cmp eax, ebx
je 0x409aa4
push eax
call fcn.00405dac
pop ecx
test eax, eax
je 0x409aa4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409aa4
mov eax, dword [0x4129b0]
cmp eax, ebx
je 0x409aa4
push eax
call fcn.00405dac
pop ecx
test eax, eax
je 0x409aa4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4129a8]
call fcn.00405dac
pop ecx
test eax, eax
je 0x409ac4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409ac6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006970
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x10006a30
push 0
push 0
mov byte [0x10009078], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100069a3
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x100016e0
push 0
push 0
call esi
test eax, eax
je 0x100069be
push eax
call edi
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x10003810
push 0
push 0
call esi
test eax, eax
je 0x100069d9
push eax
call edi
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x100048a0
push 0
push 0
call esi
test eax, eax
je 0x100069f4
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x100026d0
push 0
push 0
call esi
test eax, eax
je 0x10006a0f
push eax
call edi
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x10006120
push 0
push 0
call esi
test eax, eax
je 0x10006a2a
push eax
call edi
pop edi
pop esi
add esp, 0x18
ret

Function at 0x10006d00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10006d0a
repz ret
jmp fcn.100070bd
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x79554a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x795551
ret