joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ee2c
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 0x40ef74
xor ecx, ecx
cmp word [eax], cx
je 0x40ef74
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004173c5
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00416cc4
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x40ee85
cmp eax, 3
jne 0x40eebf
cmp word [esp + 0xa], 0x3a
jne 0x40eebf
cmp eax, 2
jne 0x40eea3
lea eax, [esp + 8]
push 0x51a6c8
push eax
call fcn.00417bde
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40ef74
push 0xfffffffffffffffe
pop edi
jmp 0x40ef74
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x40eed4
cmp ax, bx
jne 0x40eede
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x40eec7
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x40ef1d
test byte [esp + 0x21c], 0x10
je 0x40ef04
push 0xfffffffffffffffe
pop edi
jmp 0x40ef14
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40ef72
cmp word [esp + 0x10], bp
jne 0x40ef2b
cmp word [esp + 0x12], bp
je 0x40ef4a
cmp word [esp + 0x10], bx
jne 0x40ef39
cmp word [esp + 0x12], bx
je 0x40ef4a
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x40ef72
cmp word [esp + 0x12], ax
jne 0x40ef72
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x40ef5f
test al, 0x10
je 0x40ef72
jmp 0x40ef6f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40ef72
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 0x40f390
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x40f3a9
push dword [0x63b7b0]
call fcn.004166bc
pop edi
ret 4
push esi
push edi
push dword [0x63b7b0]
call fcn.00416135
mov esi, eax
test esi, esi
je 0x40f413
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f3ff
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x40f3ee
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 [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x63b7b0]
call fcn.004161ca
pop esi
pop edi
ret 4
Function at 0x41070b
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41074c
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x410744
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x410744
push esi
call fcn.00416cc4
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x41074f
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.00417410
test esi, esi
je 0x410777
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call fcn.004174c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x41077c
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x410f3d
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x63b7fc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x410f65
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x410fd6
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [0x63b7fc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov esi, dword [edx + 0x2c]
mov edi, dword [edx + 0x90]
mov ebx, dword [edx + 0x8c]
test esi, esi
je 0x411014
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add ecx, edi
push ecx
add eax, ebx
push eax
push dword [ebp + 8]
push edx
call esi
jmp 0x411027
mov eax, dword [ebp + 0x10]
add eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
push dword [ebp + 8]
push edx
call dword [edx + 0x24]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x41102e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x63b7fc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [ebp + 0x14], 0
mov ecx, eax
jle 0x41106c
cmp dword [ebp + 0x18], 0
jle 0x41106c
push dword [ebp + 0x18]
mov eax, dword [ecx + 0x90]
push dword [ebp + 0x14]
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ecx + 0x8c]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push ecx
call dword [ecx + 0x28]
pop ebp
ret 0x14
Function at 0x411070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [0x63b7fc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x20]
cmp eax, dword [esi + 0xac]
je 0x41109b
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x34]
mov dword [ebp + 0x20], eax
mov eax, dword [esi + 0x8c]
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4110e5
fld dword [ebp + 0x1c]
push ecx
fstp dword [esp]
fild dword [ebp + 0x20]
push dword [ebp + 0x18]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
sub esp, 0x10
fadd qword [ebp + 0x10]
fstp qword [esp + 8]
fild dword [ebp - 4]
fstp qword [ebp + 0x10]
fld qword [ebp + 0x10]
fadd qword [ebp + 8]
fstp qword [esp]
push esi
call ecx
jmp 0x411110
fild dword [ebp + 0x20]
push dword [ebp + 0x18]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
sub esp, 0x10
fadd qword [ebp + 0x10]
fstp qword [esp + 8]
fild dword [ebp - 4]
fstp qword [ebp + 0x10]
fld qword [ebp + 0x10]
fadd qword [ebp + 8]
fstp qword [esp]
push esi
call dword [esi + 0x30]
fstp st(0)
pop esi
leave
ret 0x1c

Function at 0x4111b9
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x63b7fc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 0x74]
cmp ecx, 2
je 0x4111e6
cmp ecx, 3
je 0x4111e6
cmp ecx, 8
je 0x4111e6
cmp ecx, 0xc
jne 0x4112bb
fldz
fld dword [ebp + 8]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4111fb
fstp st(0)
fstp dword [ebp + 8]
jmp 0x41120c
fstp st(1)
fld1
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x4111f6
fstp st(0)
push esi
mov esi, dword [ebx + 0xbc]
push edi
xor edi, edi
jmp 0x411238
fld dword [esi + 4]
fld dword [ebp + 8]
fld st(0)
fucom st(2)
fnstsw ax
test ah, 0x44
jnp 0x411258
fstp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x41123e
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x411218
jmp 0x411264
push 0x18
push 0
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x411264
mov dword [edx], esi
jmp 0x41127d
mov edx, esi
fstp st(2)
fstp st(1)
test edx, edx
jne 0x41128e
fstp st(0)
push 0x18
push 0
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x4112b9
and dword [edx], 0
fld dword [ebp + 8]
test edi, edi
je 0x411288
mov dword [edi], edx
jmp 0x41128e
mov dword [ebx + 0xbc], edx
mov ecx, dword [ebp + 0xc]
movzx eax, cl
mov dword [edx + 8], eax
mov eax, ecx
sar eax, 8
movzx eax, al
mov dword [edx + 0xc], eax
mov eax, ecx
sar eax, 0x10
movzx eax, al
sar ecx, 0x18
mov dword [edx + 0x10], eax
movzx eax, cl
fstp dword [edx + 4]
mov dword [edx + 0x14], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41134b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x63b7fc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x411373
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov ecx, dword [esi + 0x90]
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x8c]
add eax, ecx
push eax
mov eax, dword [ebp + 0x10]
add eax, edx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
mov eax, dword [ebp + 8]
add eax, edx
push eax
push esi
call dword [esi + 0x48]
pop esi
pop ebp
ret 0x14
Function at 0x41578c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x63b8e0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4157ed
push esi
push dword [0x63b8dc]
push 8
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x63b8e0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x63b8d8]
jmp 0x4157dd
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4157db
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4157cb
push edi
push 0x4158af
call fcn.0044e8b0
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4157f7
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 0x41580d
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x63b8dc]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x415846
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x639a98]
mov dword [0x63b8e0], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x63b8e0]
call ebx
mov esi, dword [0x63b8dc]
lea eax, [edi + esi]
push eax
push dword [0x63b8e0]
mov dword [0x63b8dc], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x63b8e0]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x415885
test ebx, ebx
je 0x4158a6
push 0x14
push 0x63b8d8
call fcn.00416b58
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x4158a6
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 0x415900
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x637328]
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 0x415939
push ecx
push dword [0x63b8e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x415948
push ecx
push 0
push dword [0x63b8e4]
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.0044e4e0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x415970
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [0x637328]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edi, eax
mov ecx, dword [edi]
add ecx, esi
push ecx
push dword [esp + 0x14]
call fcn.004173c5
add esp, 0xc
mov dword [edi + 8], esi
pop edi
pop esi
ret 0xc
Function at 0x415af0
Capabilities:
Get thread local storage value

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

Function at 0x415b40
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x637328]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x417290
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4172e5
push dword [esp + 0x10]
push 0x417344
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x63bc1c]
test edi, edi
je 0x41733e
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4172dd
cmp byte [edi + 0x10], 0
je 0x4172dd
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 0x4172b9
jmp 0x41733e
mov edi, dword [0x63bc1c]
test edi, edi
je 0x41733e
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x417337
cmp byte [edi + 0x11], 0
je 0x417310
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x417327
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 0x63bc1c
call fcn.00416b87
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x4172f2
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x417410
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x637328]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x41742e
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 0x417452
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x41746d
cmp edx, 0x100000
jle 0x417480
cmp ecx, 0x100000
jge 0x417467
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x63b8e4]
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 0x4174a0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x637328]
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 0x417a74
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x417b33
cmp dword [esp + 0x24], 2
je 0x417b33
push 0x2000
push ebp
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x417b02
cmp dword [esp + 0x18], 2
jne 0x417b1e
cmp dword [esp + 0x28], 0xffffffff
je 0x417ac6
cmp ebp, dword [esp + 0x28]
jae 0x417b1e
add ebp, 2
test ebx, ebx
jne 0x417aeb
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x417b1e
cmp ax, 0xd
je 0x417b02
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417ab2
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00419910
jmp 0x417bc5
push eax
push 0
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x417b51
cmp ebp, dword [esp + 0x28]
jae 0x417ba9
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417ba9
cmp dword [esp + 0x18], 1
jne 0x417ba9
inc ebp
test ebx, ebx
jne 0x417b96
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x417ba9
cmp al, 0xd
je 0x417b44
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x417b44
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x417bc0
call fcn.00419730
jmp 0x417bc5
call fcn.004198b0
push esi
push 0
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x419b20
Capabilities:
Get thread local storage value

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

Function at 0x419b50
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x637328]
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 0x41f560
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 0x41f5ee
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.0045f670
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.0045f670
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x41f583
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x421c80
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 0x421ca2
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp + 0x44]
test byte [eax + 0x66], 8
jne 0x421cd9
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
test ecx, ecx
jg 0x421cd9
jl 0x421cbc
cmp eax, 0xc
jae 0x421cd9
push ecx
push eax
push str.Truncated_Zip_encrypted_body:_only__jd_bytes_available
push 0x2a
push ebx
call fcn.00462a70
add esp, 0x14
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0xc
push ebx
call fcn.0046b190
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x421d09
push str.Truncated_ZIP_file_data
push 0x2a
push ebx
call fcn.00462a70
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.0046be90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x421df1
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 0x421d35
mov dword [edi], 0x12345678
mov dword [edi + 4], 0x23456789
mov dword [edi + 8], 0x34567890
sub esi, ecx
je 0x421da8
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.0045f670
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.0045f670
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x421d54
push 0xc
lea eax, [esp + 0x24]
push eax
push 0xc
push dword [esp + 0x28]
push edi
call fcn.0041f560
mov ecx, dword [ebp + 0x44]
add esp, 0x14
mov al, byte [esp + 0x2b]
cmp al, byte [ecx + 0x6b]
je 0x421e23
mov esi, dword [esp + 0x18]
cmp esi, 0x2710
jg 0x421e1c
push dword [esp + 0x30]
inc esi
mov dword [esp + 0x1c], esi
call fcn.0046be90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x421d30
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.00462a70
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 0x421e01
mov ebx, dword [esp + 0x30]
push 0
push 0xc
push ebx
call fcn.0046b930
mov eax, dword [ebp + 0x44]
add esp, 0xc
mov byte [ebp + 0x1e40], 1
test byte [eax + 0x66], 8
jne 0x421e4c
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.00421c20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x425f30
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 0x425fd4
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.0045f670
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.0045f670
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x425f60
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 0x426354
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x4263b6
cmp word [esi], di
je 0x4263b6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00471450
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004730d0
add esp, 0x10
test eax, eax
jne 0x4263b5
push 0x2c
push 8
push dword [0x639a98]
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 0x43ee40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x43ee60
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x43ee60
mov eax, dword [eax + 0x44]
test eax, eax
je 0x43ee60
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]