joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4945d8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e9dc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004921d8
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x494631
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.0048f518
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.0048f508
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00493c88
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4ed56c]
push 0
lea ecx, [esp + 0x4c]
call fcn.004e5118
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.004a34c8
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00491c38
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x4ed16c]
mov ecx, ebx
call fcn.0048f488
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x4946fc
push edi
mov ecx, esi
call fcn.00491d48
push eax
push ebp
mov ecx, esi
call fcn.00491f08
cmp eax, dword [esp + 0x40]
jg 0x4946f8
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x4946d6
mov eax, ebx
jmp 0x494702
cmp edi, ebx
jl 0x494700
mov eax, ebx
jmp 0x494702
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x494713
mov dword [esp + 0x30], eax
jmp 0x49471e
cmp edi, ebx
jl 0x494719
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.0048f448
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x494765
push edi
mov ecx, esi
call fcn.00491c68
push eax
push ebx
mov ecx, esi
call fcn.00492038
cmp eax, dword [esp + 0x44]
jg 0x49475d
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x494737
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x49476f
cmp edi, ebp
jl 0x494769
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x49476f
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x494778
mov ecx, eax
jmp 0x494781
cmp edi, ebp
jl 0x49477e
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00491c58
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004e518a
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x49e7e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], ebx
Function at 0x4a44e8
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ea933
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004dfc50
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x9253f8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x85c178
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4ed058]
push eax
mov ecx, edi
call fcn.004e53c0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004e6a55
test eax, eax
je 0x4a4604
mov ecx, dword [esp + 0x3c]
call fcn.004e53ed
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4ed58c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4a45c8
push edi
mov ecx, esi
call fcn.004e29b3
mov ecx, esi
call fcn.004a4768
cmp dword [esp + 0x38], 1
jne 0x4a45fd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004e2b1d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4a7038
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4a706b
push esi
call fcn.004aa148
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4a7064
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4a70f1
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a70da
mov eax, dword [esi + 8]
test eax, eax
je 0x4a708f
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4a70d6
cmp eax, 2
je 0x4a70da
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a7082
cmp eax, 3
je 0x4a70b5
cmp eax, 1
jne 0x4a7082
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4a7082
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a7082
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004a7118
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4a7100
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004a7118
add esp, 4
pop esi
ret
Function at 0x401000
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push ebx
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40102c
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [0x43d504], eax
jne 0x401051
push esi
mov dword [0x43d504], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push eax
call fcn.0040802c
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [0x43d500], edi
jne 0x401079
push esi
mov dword [0x43d504], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [0x43d504]
xor eax, eax
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x43d504]
mov edx, dword [0x43d500]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4010cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x43d500]
push eax
call fcn.00407f14
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x43d504]
mov eax, dword [esp + 0x10]
cmp eax, ecx
je 0x4010f9
mov ecx, dword [0x43d500]
push ecx
call fcn.00407f14
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x43d500]
cmp ecx, ebx
mov dword [0x43d510], ebx
mov dword [0x43d50c], ebx
mov dword [0x43d508], eax
jle 0x401132
mov dl, 0xa
cmp byte [eax], 0xd
jne 0x401124
cmp byte [eax + 1], dl
jne 0x401124
mov byte [eax], dl
mov byte [eax + 1], bl
cmp byte [eax], dl
jne 0x40112e
inc dword [0x43d50c]
inc eax
dec ecx
jne 0x401115
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4017b0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x41a9cc]
sub esp, 0x198
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x4017e3
push str.FTP_ERR:_Attempt_to_reinitialize_FTP_module.
push 0x41c060
call fcn.00408948
add esp, 8
mov eax, 8
pop edi
pop esi
add esp, 0x198
ret
mov eax, dword [esp + 0x1a8]
lea ecx, [esp + 8]
push ecx
push 0x101
mov dword [0x41a9cc], 1
mov dword [0x42c2d0], eax
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40182c
push str.WS_ERR:_Cannot_initialize_Windows_sockets_module.
push 0x41c060
call fcn.00408948
add esp, 8
mov eax, 0x276b
pop edi
pop esi
add esp, 0x198
ret
push esi
call fcn.004089cf
add esp, 4
push eax
call fcn.004089a0
add esp, 4
call fcn.004089ad
cdq
mov ecx, 0x3a98
mov edi, 0x41c280
idiv ecx
mov ecx, 0x4000
mov dword [0x42c2d4], esi
mov dword [0x41a9d0], esi
mov dword [0x42c2c4], esi
mov dword [0x42c4e0], esi
mov dword [0x42c280], esi
or eax, 0xffffffff
add edx, 0xf23
mov dword [0x42c4e8], eax
mov dword [0x41c040], eax
mov dword [0x42c2cc], eax
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
mov word [0x42c2c8], dx
pop esi
add esp, 0x198
ret
Function at 0x402200
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x42c2d0]
push ebx
push esi
mov esi, dword [esp + 0x10]
test eax, eax
push edi
je 0x402279
push 0x417080
push str.novaftp.log
call fcn.00408935
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402253
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 1
push esi
call fcn.00408440
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
je 0x40225d
mov dword [0x42c2d0], 0
push ebx
call fcn.0040860d
add esp, 4
test eax, eax
je 0x402274
mov dword [0x42c2d0], 0
call fcn.00401600
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [0x42c4e8]
not ecx
dec ecx
push ecx
push esi
push eax
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4022a2
call fcn.00401c10
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004021e0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4037e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov al, bl
push esi
and al, 1
cmp al, 1
jne 0x403860
mov ecx, ebx
mov dword [0x42c2c0], 0
shr ecx, 0x10
mov dword [0x42c4ec], ecx
jne 0x403860
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x4004667f
push esi
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
je 0x403825
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403860
push 0
push 0x10000
push 0x41c280
push esi
mov dword [0x42c4e4], 1
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x40385a
call sub.WSOCK32.dll_WSAGetLastError
mov dword [0x42c4ec], eax
jmp 0x403860
add dword [0x42c2c0], eax
mov al, bl
and al, 0x10
cmp al, 0x10
jne 0x40387b
shr ebx, 0x10
mov dword [0x42c4ec], ebx
mov dword [0x42c4e4], 0x10
pop esi
pop ebx
ret

Function at 0x4048e0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x58
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 2
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404911
pop esi
or eax, eax
pop ebx
add esp, 0x58
ret
push ebp
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], 0x101
mov word [esp + 0x58], si
mov word [esp + 0x5a], si
mov dword [esp + 0x5c], esi
call edi
push 0xfffffffffffffff4
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
call edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push esi
push 0x880
push esi
push esi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x88]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, dword [esp + 0x74]
cmp ebp, esi
mov edi, eax
je 0x4049b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x4049cf
pop edi
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x58
ret
cmp dword [esp + 0x70], esi
je 0x404a01
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x10], 0x103
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
cmp eax, 0x103
je 0x4049e3
cmp ebp, esi
je 0x404a01
mov dword [ebp], eax
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x58
ret
Function at 0x404a10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push esi
push edi
mov edx, dword [esp + 0x64]
xor esi, esi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, 1
mov dword [esp + 0x48], eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push 0x820
push esi
push esi
push esi
push edx
push esi
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov word [esp + 0x76], si
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404aaa
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x58
ret
cmp dword [esp + 0x68], esi
jne 0x404ab8
pop edi
xor eax, eax
pop esi
add esp, 0x58
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 8], 0x103
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push ecx
call esi
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x404ac6
pop edi
pop esi
add esp, 0x58
ret
Function at 0x405180
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
ret
Function at 0x405870
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0xaa8
push ebx
push ebp
push esi
push edi
push 0x41b588
push 0x41b608
lea eax, [esp + 0x19c]
push 0x414360
push eax
call fcn.00408948
mov eax, dword [esp + 0xad0]
mov ebp, dword [esp + 0xacc]
add esp, 0x10
xor ebx, ebx
test eax, eax
jle 0x40590c
lea ecx, [ecx]
mov eax, dword [ebp + ebx*4]
test eax, eax
je 0x405900
push eax
lea ecx, [esp + 0x98]
push 0x41435c
push ecx
call fcn.00408948
lea eax, [esp + 0xa0]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4058d7
lea edi, [esp + 0x194]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4058e8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xac0]
inc ebx
cmp ebx, eax
jl 0x4058b0
lea edi, [esp + 0x194]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405914
mov edx, dword [str.__ENCODE]
mov eax, dword [0x414354]
mov cl, byte [0x414358]
mov dword [edi], edx
lea edx, [esp + 0x14]
mov dword [edi + 4], eax
push edx
mov byte [edi + 8], cl
call fcn.004089ad
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
push 0x41434c
push 0x4142f4
call esi
lea eax, [esp + 0x14]
push eax
call fcn.004051b0
add esp, 4
test eax, eax
je 0x40598b
lea ecx, [esp + 0x14]
push ecx
call fcn.004089ad
push eax
push 0x41434c
push 0x4142f4
call esi
lea edx, [esp + 0x14]
push edx
call fcn.004051b0
add esp, 4
test eax, eax
jne 0x405963
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x19c]
push 1
push edx
call fcn.004048e0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x4059cc
push str.ERROR:_Could_not_execute_PACK.EXE.
call fcn.004060a0
add esp, 4
jmp 0x405a00
test eax, eax
je 0x405a00
lea ecx, [esp + 0x194]
push ecx
push eax
push str.ERROR:_PACK_returned_error_code
lea edx, [esp + 0xa0]
push str._s__d.___s_
push edx
call fcn.00408948
lea eax, [esp + 0xa8]
push eax
call fcn.004060a0
add esp, 0x18
mov ebx, dword [esp + 0xac0]
xor esi, esi
test ebx, ebx
jle 0x405a28
lea ecx, [ecx]
mov eax, dword [ebp + esi*4]
test eax, eax
je 0x405a23
push eax
call edi
mov dword [ebp + esi*4], 0
inc esi
cmp esi, ebx
jl 0x405a10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xaa8
ret
Function at 0x405fb0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x140
push esi
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406006
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esp, [esp]
mov eax, dword [esp + 0xc]
test al, 0x10
jne 0x405ff8
test al, al
js 0x405ff1
test ah, 1
je 0x405ff8
lea edx, [esp + 0x38]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x405fe0
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
add esp, 0x140
ret

Function at 0x4062c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x41b208
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406348
push 0xa
xor eax, eax
push 0xd
mov ecx, 0x20
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
push 0xa
push 0xd
lea ecx, [esp + 0x24]
push str._UPDATE__c_cDAT_lu_c_c
push ecx
call fcn.00408948
lea eax, [esp + 0x2c]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406324
sub eax, edx
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408eb4
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x408ed0
call fcn.0040959e
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x408f42
push esi
push 0x88
push 1
call fcn.0040e4bc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x408f28
push esi
call fcn.0040c23a
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x408e14
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x408f20
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x408f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00407f14
test ebx, ebx
pop ecx
je 0x408f3a
push ebx
call fcn.004095b0
pop ecx
or eax, 0xffffffff
jmp 0x408f41
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4090a3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4090c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004095b0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4090e6
test byte [esp + 8], 2
je 0x4090e6
call fcn.0040959e
mov dword [eax], 0xd
call fcn.004095a7
mov dword [eax], 5
jmp 0x4090bf
xor eax, eax
ret
Function at 0x409aec
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x409b0d
lea eax, [ebp - 4]
push eax
call fcn.004089cf
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
lea eax, [edi + 4]
push eax
call fcn.0040ef95
test eax, eax
pop ecx
jne 0x409b2e
call fcn.0040959e
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x409c2f
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x409c20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x409c20
push edi
call fcn.0040ef95
test eax, eax
pop ecx
je 0x409c20
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x409c20
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x409c20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call fcn.0040e672
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x409c20
xor eax, eax
jmp 0x409c2e
call fcn.0040959e
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret