joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406730
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x804
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
push esi
mov esi, dword [esp + 0x810]
push edi
push eax
lea eax, [esp + 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4494f8
lea ecx, [esp + 0x40c]
push ecx
call edi
push esi
lea edx, [esp + 0x40c]
push edx
call edi
push str.GAMESTART___RunProcess_____Buffer_copy_done._n
call fcn.00402360
add esp, 4
push 5
lea eax, [esp + 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
cmp eax, 0x20
jae 0x40682f
cmp eax, 0xb
ja case.0x4067b7.1
movzx ecx, byte [eax + 0x40685c]
jmp dword [ecx*4 + 0x406848]
push 0
push str.Memory_is_insufficient.___d__
lea edx, [esp + 8]
push edx
jmp 0x4067fc
push 0xb
push str.Wrong_Excutable_file.___d__
jmp 0x4067f7
push 2
push str.Cant_find_file.___d__
lea ecx, [esp + 8]
push ecx
jmp 0x4067fc
push 3
push str.Path_is_wrong.___d__
lea edx, [esp + 8]
push edx
jmp 0x4067fc
push eax
push str.Cant_excute_file.___d__
lea eax, [esp + 8]
push eax
call fcn.0042865f
add esp, 0xc
push 0x30
push str.Trickster_Launcher
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00427398
add esp, 0x804
ret
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov al, 1
call fcn.00427398
add esp, 0x804
ret

Function at 0x406870
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x314
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x310], eax
mov eax, dword [esp + 0x318]
push ebx
push esi
push edi
mov edi, dword [esp + 0x328]
mov ebx, ecx
lea ecx, [esp + 0x114]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00406d10
mov edx, dword [ebx]
push edi
push edx
xor esi, esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406955
cmp dword [edi + 8], esi
jne 0x4068df
mov eax, dword [ebx]
push edi
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x406955
cmp dword [edi + 8], esi
jne 0x4068df
push edi
mov ecx, ebx
call fcn.00406630
test eax, eax
je 0x406955
push ebp
lea ebp, [edi + 0x24]
lea ecx, [esp + 0x21c]
push ecx
push ebp
lea ecx, [esp + 0x18]
call fcn.00406d10
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
jne 0x406938
mov ecx, dword [ebx]
push edi
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x406938
cmp dword [edi + 8], esi
jne 0x406934
push edi
mov ecx, ebx
call fcn.00406630
test eax, eax
jne 0x4068e7
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x31c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427398
add esp, 0x314
ret 8
mov eax, esi
jmp 0x40693b
Function at 0x406a40
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xc04
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0xc00], eax
mov eax, dword [esp + 0xc08]
push ebx
push esi
push edi
push eax
mov edi, ecx
lea esi, [edi + 0xc00]
push esi
lea eax, [esp + 0x814]
push 0x448ad4
push eax
call fcn.0042865f
lea ebx, [edi + 0x800]
push ebx
push esi
lea ecx, [esp + 0x24]
push 0x448ad4
push ecx
call fcn.0042865f
lea edx, [esp + 0x2c]
push 0x44957c
push edx
call fcn.00428d9a
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x28
test eax, eax
je 0x406afd
push eax
call fcn.0042884d
add esp, 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x406afd
push ebx
lea edx, [esp + 0x410]
push str.A_file__s__attribute__RO__is_not_changing.
push edx
call fcn.0042865f
add esp, 0xc
push 0
push str.WARNING
lea eax, [esp + 0x414]
push eax
push 0
call esi
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x406b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x40
push str.Trickster_Launcher
push str.Please_Check_Running_Directory_is_Read_Only.
push 0
call esi
mov ecx, dword [esp + 0xc0c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.00427398
add esp, 0xc04
ret 4
add edi, 0x1000
push edi
push ebx
call fcn.00406730
add esp, 8
test al, al
jne 0x406b6a
push 0x40
push str.Trickster_Launcher
push 0x4494fc
jmp 0x406b28
call fcn.004022a0
push 0
call fcn.0042a6aa
int3

Function at 0x4071a0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call fcn.00407180
push 0
push 0
push 0
push 0
push str.CNetHttp_DownLoad
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
test eax, eax
jne 0x4071d8
push eax
mov ecx, esi
call fcn.00407180
mov dword [esi], 0
xor al, al
pop esi
ret 4
mov ecx, dword [esp + 8]
push ecx
add esi, 0x10c
push esi
call fcn.00427d9b
add esp, 8
mov al, 1
pop esi
ret 4
Function at 0x407970
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
cmp dword [0x4643ec], 0
jne 0x40798c
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0xc
ret 0x1c
push esi
mov esi, dword [esp + 0x14]
push esi
call sub.WS2_32.dll_inet_addr
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x4079c2
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4079d1
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00428120
add esp, 0xc
call dword [0x4643f0]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
jne 0x4079da
xor eax, eax
pop esi
add esp, 0xc
ret 0x1c
mov dl, byte [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0x2c], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov al, byte [esp + 0x28]
mov byte [esp + 8], dl
mov byte [esp + 9], al
je 0x407a00
mov byte [esp + 0xa], 2
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push edi
push ebx
call fcn.0040accd
push ebx
mov ebp, eax
push 0x45
push ebp
call fcn.004273b0
lea esi, [ebx + 0x1c]
push esi
call fcn.0040accd
mov ecx, dword [esp + 0x40]
add esp, 0x14
push ecx
mov edi, eax
push esi
push edi
movzx ax, bl
movzx ecx, ax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push ecx
push ebp
push edx
push eax
call dword [0x4643f4]
mov esi, eax
dec esi
neg esi
sbb esi, esi
add esi, 1
je 0x407a84
movzx ecx, word [edi + 0xc]
mov edx, dword [edi + 0x10]
xor eax, eax
test ecx, ecx
jle 0x407a78
test esi, esi
je 0x407a7c
xor ebx, ebx
cmp byte [eax + edx], 0x45
sete bl
inc eax
cmp eax, ecx
mov esi, ebx
jl 0x407a64
test esi, esi
jne 0x407a84
push 0x3b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x4643f8]
test esi, esi
je 0x407aa7
mov edx, dword [edi]
mov eax, dword [esp + 0x24]
mov dword [eax], edx
mov ecx, dword [edi + 8]
mov dword [eax + 4], ecx
mov edx, dword [edi + 4]
mov dword [eax + 8], edx
push ebp
call fcn.0040acd8
push edi
call fcn.0040acd8
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0xc
ret 0x1c
Function at 0x407d30
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x445a5b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov eax, dword [0x45c720]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x22c]
mov edi, ecx
test eax, eax
je 0x407d8a
lea edx, [edi + 4]
sub edx, eax
jmp 0x407d80
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407d80
lea ecx, [esp + 0x10]
call fcn.00406460
push reloc.OLEAUT32.dll_SysReAllocString
push str.UpdateVersion
lea eax, [esp + 0x11c]
push eax
push str.SoftwareNtreevTrickster_PS
lea ecx, [esp + 0x20]
mov dword [esp + 0x234], 0
call fcn.00406520
cmp eax, 2
jne 0x407e48
push 1
push reloc.OLEAUT32.dll_SysReAllocString
push str.UpdateVersion
push str.First_Version.
push str.SoftwareNtreevTrickster_PS
lea ecx, [esp + 0x24]
call fcn.00406580
cmp eax, 2
jne 0x407e06
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], 0xffffffff
call fcn.00406fc0
xor al, al
jmp 0x407e94
mov ecx, dword [str.First_Version.]
mov edx, dword [0x449778]
mov eax, dword [0x44977c]
mov dword [esp + 0x114], ecx
mov cx, word [0x449780]
mov dword [esp + 0x118], edx
mov dl, byte [0x449782]
mov dword [esp + 0x11c], eax
mov word [esp + 0x120], cx
mov byte [esp + 0x122], dl
lea edx, [edi + 0x27b0]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407e53
sub eax, esi
je 0x407e74
lea eax, [esp + 0x114]
push eax
push 0x104
push edx
call fcn.00429d2f
add esp, 0xc
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], 0xffffffff
call fcn.00406fc0
mov al, 1
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00427398
add esp, 0x21c
ret 4
Function at 0x407ec0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x445a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x344], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c720]
xor eax, esp
push eax
lea eax, [esp + 0x35c]
mov dword fs:[0], eax
mov ebp, ecx
lea ecx, [esp + 0x20]
call fcn.00407960
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], SysStringLen
mov dword [esp + 0x14], ebx
call fcn.00405320
lea eax, [esp + 0x44]
push eax
push 0x101
mov dword [esp + 0x36c], ebx
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x407f52
lea ecx, [esp + 0x2c]
mov dword [esp + 0x364], 0xffffffff
call fcn.00405350
xor al, al
jmp 0x4080df
mov edi, dword [ebp + 0x1148]
cmp edi, 1
jle 0x407fa3
push 0x80
lea ecx, [esp + 0x2dc]
push ecx
call sub.WS2_32.dll_gethostname
lea edx, [esp + 0x2d8]
push edx
call sub.WS2_32.dll_gethostbyname
mov esi, dword [eax + 0xc]
xor edx, edx
cmp dword [esi], edx
je 0x407f97
mov ecx, esi
mov eax, dword [ecx]
mov eax, dword [eax]
inc edx
cmp dword [esi + edx*4], 0
lea ecx, [esi + edx*4]
jne 0x407f87
jmp 0x407f9b
mov eax, dword [esp + 0x14]
shr eax, 0x18
cdq
idiv edi
mov ebx, edx
xor esi, esi
test edi, edi
jle 0x40809e
lea ecx, [ecx]
lea eax, [esi + ebx]
cdq
idiv edi
imul edx, edx, 0x104
lea eax, [edx + ebp + 0x10f]
lea edx, [esp + 0x1d4]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407fd0
lea eax, [esp + 0x1d4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407fe4
sub eax, edx
push eax
lea ecx, [esp + 0x1d8]
push ecx
lea ecx, [esp + 0x34]
call fcn.004053c0
lea edx, [esp + 0x1d4]
push 0x3a
push edx
call fcn.0042a8f0
add esp, 8
push 0
push 1
test eax, eax
je 0x408028
push 0x448a50
lea eax, [esp + 0x1e0]
push eax
jmp 0x408035
push 0x448a4c
lea ecx, [esp + 0x1e0]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00405280
push 0
push 0
push 0x20
push 0x1388
push 0x1e
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esp + 0x37]
call fcn.00407970
test eax, eax
je 0x408080
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x1c], eax
jbe 0x408095
cmp eax, 0x32
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jl 0x4080a2
jmp 0x408095
lea ecx, [esp + 0x1d4]
push ecx
push str._WARNING__Ping_Faild___s__n
call fcn.00402360
add esp, 8
inc esi
cmp esi, edi
jl 0x407fb0
mov ecx, dword [esp + 0x14]
imul ecx, ecx, 0x104
lea edx, [ecx + ebp + 0x108]
push 0x104
push edx
add ebp, 0x114c
push ebp
call fcn.0042a9b0
add esp, 0xc
call sub.WS2_32.dll_WSACleanup
lea ecx, [esp + 0x2c]
mov dword [esp + 0x364], 0xffffffff
call fcn.00405350
mov al, 1
mov ecx, dword [esp + 0x35c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.00427398
add esp, 0x354
ret
Function at 0x408140
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x25c]
push edi
lea ebp, [ecx + 4]
push ebp
lea eax, [esp + 0x158]
push str._s_s.
push eax
call fcn.0042865f
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
test byte [esp + 0x10], 0x10
je 0x4081a2
lea eax, [esp + 0x10]
push eax
jmp 0x4081d1
lea ecx, [esp + 0x3c]
push ecx
push edi
push ebp
lea edx, [esp + 0x15c]
push str._s_s_s
push edx
call fcn.0042865f
add esp, 0x14
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jne 0x408194
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push ebp
lea edx, [esp + 0x158]
push str._s_s
push edx
call fcn.0042865f
add esp, 0x10
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00427398
add esp, 0x248
ret 4

Function at 0x4085c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
push edi
mov edi, ecx
test esi, esi
je 0x408677
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4085f0
sub eax, edx
je 0x408677
push esi
lea eax, [esp + 0x14]
push str.__s.zip
push eax
call fcn.0042865f
push esi
lea ecx, [esp + 0x124]
push str.___s.zip
push ecx
call fcn.0042865f
add esp, 0x18
lea edx, [edi + 0x114c]
push edx
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
lea ecx, [edi + 0x3184]
call fcn.00407250
test al, al
je 0x408677
lea eax, [esp + 0x114]
push eax
mov ecx, edi
call fcn.00409990
test al, al
je 0x408677
push 0x4493a4
push esi
call fcn.00428d9a
mov esi, eax
add esp, 8
test esi, esi
jne 0x408692
push str.ERROR:__s_file_not_found__n
call fcn.00402360
add esp, 4
xor al, al
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.00427398
add esp, 0x214
ret 4
push esi
push 1
lea ecx, [esp + 0x13]
push 1
push ecx
call fcn.0042ad74
push esi
call fcn.0042884d
add esp, 0x14
cmp byte [esp + 0xb], 0x2e
je 0x4086b8
push str.ERROR:_szChecker_format_error__n
jmp 0x40866f
mov al, 1
jmp 0x408679
Function at 0x408700
Capabilities:
Create directory

Disassembly:
sub esp, 0x318
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x314], eax
push esi
mov esi, dword [esp + 0x320]
push esi
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00429d2f
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408734
sub eax, edx
xor ecx, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
test eax, eax
jle 0x408765
nop
cmp byte [esp + ecx + 0xc], 0x5c
jne 0x408760
mov byte [esp + ecx + 0xc], 0x2f
mov eax, dword [esp + 4]
inc ecx
cmp ecx, eax
jl 0x408750
push 0x104
lea ecx, [esp + 0x218]
push 0
push ecx
call fcn.004273b0
add esp, 0xc
push 0x2f
lea edx, [esp + 0x114]
push edx
lea ecx, [esp + 0xc]
call fcn.004054f0
test al, al
je 0x40882f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
nop
lea eax, [esp + 0x118]
push 0x448a4c
push eax
call fcn.00427d9b
add esp, 8
test eax, eax
je 0x408812
lea eax, [esp + 0x118]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087c2
lea edi, [esp + 0x21c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4087d3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x220]
push ecx
call ebx
lea edi, [esp + 0x21c]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408800
mov dx, word [0x448a4c]
mov word [edi], dx
push 0x2f
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x14]
call fcn.004054f0
test al, al
jne 0x4087a0
pop edi
pop ebx
mov ecx, dword [esp + 0x318]
pop esi
xor ecx, esp
mov al, 1
call fcn.00427398
add esp, 0x318
ret 4
Function at 0x4088f0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push ebp
push eax
mov ebp, ecx
lea eax, [ebp + 4]
push eax
push str.dellist
push str._dellist
lea ecx, [ebp + 0x3184]
call fcn.00407250
test al, al
jne 0x408944
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00427398
add esp, 0x20c
ret 4
push esi
push 0x4493a4
push str.dellist
call fcn.00428d9a
mov esi, eax
add esp, 8
test esi, esi
jne 0x408964
xor al, al
jmp 0x408a4d
push esi
call fcn.00429edf
add esp, 4
test eax, eax
jne 0x408a42
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esp, [esp]
push esi
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00429d97
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0x20
jg 0x408a30
lea eax, [esp + 0xc]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089b0
sub eax, edx
dec eax
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
call fcn.00427c5a
lea eax, [esp + 0x18]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089d7
sub eax, edx
lea edx, [esp + 0xc]
push 0x2a
push edx
mov byte [esp + eax + 0x118], cl
call fcn.0042a7e8
add esp, 8
test eax, eax
jne 0x408a0a
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x408a19
lea ecx, [esp + 0x111]
push ecx
mov ecx, ebp
call fcn.00408140
push 0x104
lea edx, [esp + 0x114]
push 0
push edx
call fcn.004273b0
add esp, 0xc
push esi
call fcn.00429edf
add esp, 4
test eax, eax
je 0x408980
pop edi
push esi
call fcn.0042884d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x210]
pop esi
pop ebp
xor ecx, esp
call fcn.00427398
add esp, 0x20c
ret 4

Function at 0x409140
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
mov dword [ecx + 0x28c0], eax
add ecx, 4
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
setne al
ret 8
Function at 0x40bf33
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x445c8d
call fcn.0042b10b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40bf58
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40bf9e
lea ecx, [ebp - 0x10]
call fcn.00404110
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b72e
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402990
mov eax, esi
call fcn.0042b1e3
ret 8

Function at 0x411a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x411a47
call fcn.0040b67e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x411a47
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x411a63
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041157a
mov esi, eax
test edi, edi
je 0x411a61
test ebx, ebx
je 0x411a61
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41435b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41437f
cmp dword [edi + 0x54], 0
jne 0x41437f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040b67e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041431c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x417295
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4172dd
call fcn.0040b67e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4172dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x417320
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x417309
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x417309
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41731d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x427398
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c720]
jne 0x4273a2
repz ret
jmp fcn.0042dfc8
Function at 0x43ae24
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.0042e2e5
and dword [ebp - 4], 0
cmp dword [0x466cbc], 0
mov ebx, eax
jne 0x43aed5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43af86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e7d4
push edi
call esi
test eax, eax
je 0x43af86
push eax
call fcn.0042e273
mov dword [esp], 0x44e7c4
push edi
mov dword [0x466cbc], eax
call esi
push eax
call fcn.0042e273
mov dword [esp], 0x44e7b0
push edi
mov dword [0x466cc0], eax
call esi
push eax
call fcn.0042e273
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x466cc4], eax
call esi
push eax
call fcn.0042e273
pop ecx
mov dword [0x466ccc], eax
test eax, eax
je 0x43aed5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e273
pop ecx
mov dword [0x466cc8], eax
mov eax, dword [0x466cc8]
cmp eax, ebx
je 0x43af2d
cmp dword [0x466ccc], ebx
je 0x43af2d
push eax
call fcn.0042e2ee
push dword [0x466ccc]
mov esi, eax
call fcn.0042e2ee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43af2d
test edi, edi
je 0x43af2d
call esi
test eax, eax
je 0x43af24
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43af24
test byte [ebp - 0xc], 1
jne 0x43af2d
or dword [ebp + 0x10], 0x200000
jmp 0x43af66
mov eax, dword [0x466cc0]
cmp eax, ebx
je 0x43af66
push eax
call fcn.0042e2ee
pop ecx
test eax, eax
je 0x43af66
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43af66
mov eax, dword [0x466cc4]
cmp eax, ebx
je 0x43af66
push eax
call fcn.0042e2ee
pop ecx
test eax, eax
je 0x43af66
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x466cbc]
call fcn.0042e2ee
pop ecx
test eax, eax
je 0x43af86
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43af88
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edx, dword [esi]
mov ecx, edx
xor ecx, eax
and ecx, 0xff
mov ecx, dword [edi + ecx*4]
shr edx, 8
xor ecx, edx
mov edx, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
push ebx
and ecx, 0xff
mov ebx, dword [edi + ecx*4]
shr edx, 8
xor edx, ebx
mov dword [esi + 8], edx
pop ebx
ret