joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f04
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x402e57
push 0x10
push 0x2c
call fcn.00409579
push 0
push 0
push 8
mov dword [0x51aecc], eax
call fcn.004085e1
cmp word [0x51aec4], 0
mov dword [0x51aed4], eax
jne 0x402fdd
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x51aec4], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x51aed0], eax
test eax, eax
je 0x402fdd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x502828
push eax
call esi
push 0x502834
push dword [0x51aed0]
mov dword [0x51aeb4], eax
call esi
push str.getnameinfo
push dword [0x51aed0]
mov dword [0x51aeb8], eax
call esi
push str.WSAStringToAddressA
push dword [0x51aed0]
mov dword [0x51aebc], eax
call esi
cmp dword [0x51aeb4], 0
mov dword [0x51aec0], eax
pop esi
je 0x402fdd
cmp dword [0x51aeb8], 0
je 0x402fdd
cmp dword [0x51aebc], 0
je 0x402fdd
test eax, eax
je 0x402fdd
mov dword [0x51aec8], 1
add esp, 0x190
ret

Function at 0x404374
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x51b0f0]
call fcn.00409495
mov ebx, eax
test ebx, ebx
je 0x4043d8
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40439d
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4043d8
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00409380
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.00409bfd
pop ecx
sub edi, eax
push edi
call fcn.00409b90
pop edi
pop esi
pop ebx
ret 8
Function at 0x407629
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x407649
cmp dword [esp + 8], 0
je 0x407649
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x40764b
xor eax, eax
ret 8

Function at 0x40764e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4076c6
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004287a2
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00409bfd
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4076a7
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4076a4
cmp ecx, 0x5c
je 0x4076a4
cmp ecx, 0x2f
jne 0x4076b1
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x407691
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4076c8
xor eax, eax
leave
ret 4

Function at 0x4076cc
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4076f5
test byte [esp + 8], 2
je 0x4076e9
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4076f7
xor eax, eax
ret 8

Function at 0x4077ac
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x51b530]
push esi
test eax, eax
jne 0x4077d1
push fcn.0040777a
push 0x10
push 0x258
call fcn.00409579
mov dword [0x51b530], eax
push dword [esp + 0xc]
push eax
call fcn.00409401
mov esi, eax
test esi, esi
je 0x4078d2
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4077f3
mov edi, 0x511eec
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x407803
xor eax, eax
cmp word [ebx], ax
jne 0x407808
mov ebx, 0x511e28
push edi
call fcn.00409bfd
push ebx
mov dword [esp + 0x24], eax
call fcn.00409bfd
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x51aa3c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4078b9
push edi
push eax
call fcn.00409bdb
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x407869
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x40786d
push 0x510fd4
push edi
call fcn.00409baa
pop ecx
pop ecx
jmp 0x40786d
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.00409baa
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x407891
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4078a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4078a5
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x51aa3c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x4078d0
cmp dword [esp + 0x14], 0xffffffff
je 0x4078c4
mov esi, dword [esp + 0x14]
push esi
push dword [0x51b530]
call fcn.0040952a
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x40791d
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x407a65
xor ecx, ecx
cmp word [eax], cx
je 0x407a65
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004287a2
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00409bfd
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x407976
cmp eax, 3
jne 0x4079b0
cmp word [esp + 0xa], 0x3a
jne 0x4079b0
cmp eax, 2
jne 0x407994
lea eax, [esp + 8]
push 0x510fd4
push eax
call fcn.00409baa
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x407a65
push 0xfffffffffffffffe
pop edi
jmp 0x407a65
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4079c5
cmp ax, bx
jne 0x4079cf
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4079b8
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x407a0e
test byte [esp + 0x21c], 0x10
je 0x4079f5
push 0xfffffffffffffffe
pop edi
jmp 0x407a05
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x407a63
cmp word [esp + 0x10], bp
jne 0x407a1c
cmp word [esp + 0x12], bp
je 0x407a3b
cmp word [esp + 0x10], bx
jne 0x407a2a
cmp word [esp + 0x12], bx
je 0x407a3b
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x407a63
cmp word [esp + 0x12], ax
jne 0x407a63
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x407a50
test al, 0x10
je 0x407a63
jmp 0x407a60
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x407a63
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x407ba0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x407bdc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x407bf0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x407c09
push dword [0x51b534]
call fcn.004201b1
pop edi
ret 4
push esi
push edi
push dword [0x51b534]
call fcn.00409495
mov esi, eax
test esi, esi
je 0x407c73
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407c5f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x407c4e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x51aa3c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x51b534]
call fcn.0040952a
pop esi
pop edi
ret 4

Function at 0x407cb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x51b534]
call fcn.00409495
mov esi, eax
test esi, esi
je 0x407d2f
cmp dword [esi + 4], 0
je 0x407d00
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00428a40
test eax, eax
je 0x407cf4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407d3a
cmp dword [esp + 8], 0
je 0x407d3a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x4080e0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x4081df
cmp word [edx], 0
je 0x4081df
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x40810e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x408164
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408120
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x408146
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00429040
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
xor eax, eax
cmp ecx, 2
push edx
setne al
dec eax
and eax, 0xfde9
push eax
call fcn.00429160
mov edi, eax
test edi, edi
je 0x40815a
cmp dword [esi + 4], 0
je 0x4081b2
push dword [esp + 0x14]
push edi
push esi
call fcn.00429040
push edi
push 0
push dword [0x51aa3c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x51aa3c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x408576
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x51b544]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4085d7
push esi
push dword [0x51b540]
push 8
push dword [0x51aa3c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x51b544]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x51b53c]
jmp 0x4085c7
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4085c5
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4085b5
push edi
push 0x408699
call fcn.00429f1e
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4085e1
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x4085f7
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x51b540]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x408630
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x51aa3c]
mov dword [0x51b544], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x51b544]
call ebx
mov esi, dword [0x51b540]
lea eax, [edi + esi]
push eax
push dword [0x51b544]
mov dword [0x51b540], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x51aa3c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x51b544]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x40866f
test ebx, ebx
je 0x408690
push 0x14
push 0x51b53c
call fcn.004091a1
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x408690
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x408a40
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x518cb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x408a79
push ecx
push dword [0x51b550]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x408a88
push ecx
push 0
push dword [0x51b550]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.00428730
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x408bf0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x518cb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret

Function at 0x408c40
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x518cb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret
Function at 0x409244
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x409299
push dword [esp + 0x10]
push 0x4092f8
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x51b568]
test edi, edi
je 0x4092f2
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x409291
cmp byte [edi + 0x10], 0
je 0x409291
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x40926d
jmp 0x4092f2
mov edi, dword [0x51b568]
test edi, edi
je 0x4092f2
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4092eb
cmp byte [edi + 0x11], 0
je 0x4092c4
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x4092db
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x51b568
call fcn.004091d0
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x4092a6
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x409380
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x518cb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x40939e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x4093c2
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x4093dd
cmp edx, 0x100000
jle 0x4093f0
cmp ecx, 0x100000
jge 0x4093d7
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x51b550]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x409b90
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x518cb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4
Function at 0x4135d0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x518cb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x4135f7
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x4135f7
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x413600
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x518cb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x418cb0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x10], esi
cmovb esi, dword [esp + 0x10]
test esi, esi
je 0x418d3e
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
sub ebp, ebx
mov eax, dword [edi + 8]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x24]
push 1
push eax
shr ecx, 8
xor cl, byte [ebx + ebp]
mov byte [ebx], cl
mov eax, dword [edi]
not eax
mov byte [esp + 0x2c], cl
push eax
call fcn.00432910
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.00432910
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x418cd3
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x41b3d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov eax, dword [ebx + 0x440]
mov ebp, dword [eax]
cmp byte [ebp + 0x1e40], 0
je 0x41b3f2
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp + 0x44]
test byte [eax + 0x66], 8
jne 0x41b429
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
test ecx, ecx
jg 0x41b429
jl 0x41b40c
cmp eax, 0xc
jae 0x41b429
push ecx
push eax
push str.Truncated_Zip_encrypted_body:_only__jd_bytes_available
push 0x2a
push ebx
call fcn.00435d10
add esp, 0x14
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0xc
push ebx
call fcn.0043e430
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41b459
push str.Truncated_ZIP_file_data
push 0x2a
push ebx
call fcn.00435d10
add esp, 0xc
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
push edi
xor esi, esi
push ebx
mov dword [esp + 0x1c], esi
call fcn.0043f130
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41b541
lea edi, [ebp + 0x1e34]
nop word [eax + eax]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x41b485
mov dword [edi], 0x12345678
mov dword [edi + 4], 0x23456789
mov dword [edi + 8], 0x34567890
sub esi, ecx
je 0x41b4f8
mov al, byte [ebx]
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push 1
push eax
mov eax, dword [edi]
not eax
push eax
call fcn.00432910
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x27], al
lea eax, [esp + 0x27]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.00432910
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x41b4a4
push 0xc
lea eax, [esp + 0x24]
push eax
push 0xc
push dword [esp + 0x28]
push edi
call fcn.00418cb0
mov ecx, dword [ebp + 0x44]
add esp, 0x14
mov al, byte [esp + 0x2b]
cmp al, byte [ecx + 0x6b]
je 0x41b573
mov esi, dword [esp + 0x18]
cmp esi, 0x2710
jg 0x41b56c
push dword [esp + 0x30]
inc esi
mov dword [esp + 0x1c], esi
call fcn.0043f130
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41b480
test esi, esi
mov eax, str.Incorrect_passphrase
mov ecx, str.Passphrase_required_for_this_entry
cmovle eax, ecx
push eax
push 0xffffffffffffffff
push dword [esp + 0x38]
call fcn.00435d10
add esp, 0xc
mov eax, 0xffffffe7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.Too_many_incorrect_passphrases
jmp 0x41b551
mov ebx, dword [esp + 0x30]
push 0
push 0xc
push ebx
call fcn.0043ebd0
mov eax, dword [ebp + 0x44]
add esp, 0xc
mov byte [ebp + 0x1e40], 1
test byte [eax + 0x66], 8
jne 0x41b59c
add dword [ebp + 0x48], 0xfffffff4
adc dword [ebp + 0x4c], 0xffffffff
add dword [ebp + 0x50], 0xc
push ebx
adc dword [ebp + 0x54], 0
mov dword [ebp + 0x1e2c], 0
call fcn.0041b370
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x41f680
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], esi
cmovb esi, dword [esp + 0x14]
test esi, esi
je 0x41f724
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
sub ebp, ebx
mov dword [esp + 0x10], esi
nop dword [eax]
mov eax, dword [edi + 8]
mov dl, byte [ebx + ebp]
or eax, 2
mov ecx, eax
mov byte [esp + 0x28], dl
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x28]
push 1
push eax
shr ecx, 8
xor cl, dl
mov byte [ebx], cl
mov eax, dword [edi]
not eax
push eax
call fcn.00432910
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.00432910
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x41f6b0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x41faa4
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x41fb06
cmp word [esi], di
je 0x41fb06
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004446f0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.00446730
add esp, 0x10
test eax, eax
jne 0x41fb05
push 0x2c
push 8
push dword [0x51aa3c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 0x10], 1
mov dword [ecx + 0x28], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x424b73
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x424cf7
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x424cda
sub eax, 1
jne 0x424cf7
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00424d03
pop ecx
test eax, eax
je 0x424be7
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x424c18
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x424cf7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x424c1d
xor edi, edi
inc edi
sub ecx, 3
je 0x424cd6
sub ecx, 1
je 0x424cd2
sub ecx, 1
je 0x424cad
sub ecx, 1
je 0x424c5d
sub ecx, 4
jne 0x424cf7
test eax, eax
jne 0x424cf7
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x424cf7
sub eax, 0
je 0x424c9f
sub eax, 1
je 0x424c91
sub eax, 1
je 0x424c83
sub eax, 1
jne 0x424cf7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x424cf7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x424cf7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x424cf7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x424cf7
sub eax, 0
je 0x424cce
sub eax, 1
je 0x424cca
sub eax, 1
jne 0x424cf7
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x424cf7
push 0x3c
jmp 0x424cf6
push 0x32
jmp 0x424cf6
push 0x14
jmp 0x424cf6
push 5
jmp 0x424cf6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x424cf4
cmp eax, 0xa
je 0x424cf0
cmp eax, 0x5a
jne 0x424cf7
push 0x28
jmp 0x424cf6
push 0x1e
jmp 0x424cf6
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret