joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f54f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x424fa8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f595
cmp word [ebx], dx
jne 0x40f595
or byte [eax + edi + 0x28], 4
jmp 0x40f59a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x40f6fd
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x40f6dd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40f5db
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40f611
cmp eax, edx
jae 0x40f61f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x40f5b6
jmp 0x40f6fd
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f6d8
cmp dword [ebp - 0x18], 0
je 0x40f6d8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x424fa8]
test byte [eax + edi + 0x28], 0x48
je 0x40f6ae
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x40f672
mov word [esi], cx
jmp 0x40f6a9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x424fa8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x424fa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x424fa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40f6fd
pop eax
cmp word [ebp - 4], ax
jne 0x40f6be
cmp esi, ebx
jne 0x40f6be
mov word [esi], ax
jmp 0x40f6fa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041154c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40f6fd
push 0xd
pop eax
jmp 0x40f6b9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x424fa8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40f6f7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40f6fd
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41182e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x411879
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004119c9
test al, al
jne 0x411873
sub edx, 2
cmp edx, edi
jne 0x411859
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41189b
lea eax, [edi + 2]
cmp edx, eax
je 0x41189b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041177a
add esp, 0x10
jmp 0x411995
push esi
lea ecx, [ebp - 0x255]
call fcn.004119c9
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4118de
push dword [ebp - 0x25c]
jmp 0x41188b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41191b
cmp word [ebp - 0x226], 0
je 0x41193c
cmp word [ebp - 0x226], ax
jne 0x41191b
cmp word [ebp - 0x224], 0
je 0x41193c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041177a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x411988
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4118f5
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x411970
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x411995
push 0x4115aa
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004174f0
add esp, 0x10
jmp 0x411965
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040326e
leave
ret

Function at 0x413125
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dc6c
push 0x41dc64
push str.FlsAlloc
push 0x1f
call fcn.00413060
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413159
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b22c]
call esi
jmp 0x41315f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4131a3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dc7c
push 0x41dc74
push str.FlsGetValue
push 0x21
call fcn.00413060
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4131da
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b22c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4131e2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dc84
push 0x41dc7c
push str.FlsSetValue
push 0x22
call fcn.00413060
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41321c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b22c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x417e25
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00417da1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x417f94
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x417f94
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x417f49
jg 0x417e81
test eax, eax
je 0x417f3f
push 1
push 0x1000
call fcn.00410fbd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x417ea4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x417f36
push 0x8000
push ebx
call fcn.0040d0b6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x417ecd
jg 0x417ec8
cmp ecx, 0x1000
jb 0x417ecd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004152bc
add esp, 0x10
cmp eax, 0xffffffff
je 0x417f12
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x417ec8
jl 0x417ef9
test ecx, ecx
jne 0x417eba
push dword [ebp - 0xc]
push ebx
call fcn.0040d0b6
push esi
call fcn.0040e270
add esp, 0xc
xor ebx, ebx
jmp 0x417fa2
cmp byte [edi + 0x24], 0
je 0x417f29
cmp dword [edi + 0x20], 5
jne 0x417f29
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x417f34
mov ebx, dword [edi + 0x18]
jmp 0x417f36
xor ebx, ebx
push esi
call fcn.0040e270
pop ecx
jmp 0x417fa2
test ecx, ecx
jg 0x417f0b
jl 0x417f49
test eax, eax
jae 0x417f0b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041154c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x417f69
cmp byte [edi + 0x1c], 0
je 0x417f0b
jmp 0x417f9a
push ebx
call fcn.00412788
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x417f0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x417fa2
cmp byte [edi + 0x1c], 0
je 0x417f9f
mov ebx, dword [edi + 0x18]
jmp 0x417fa2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041154c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a3e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a40d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a40d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4035ac
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3e0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x4931e0
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x403666
lea eax, [ebp - 0xc10]
push eax
push 0
push 0
push 0x8005
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x403666
lea eax, [ebp - 0xc10]
call fcn.0040288c
mov ebx, eax
test ebx, ebx
je 0x40361a
cmp byte [ebp + ebx - 0xc11], 0x5c
je 0x403623
mov byte [ebp + ebx - 0xc10], 0x5c
inc ebx
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, 0x4931e0
call fcn.0040358c
mov ecx, dword [ebp - 0xc]
inc ecx
lea edx, [ebp + ebx - 0xc10]
mov eax, dword [ebp - 0x10]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xc10]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40379a
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
lea edx, [ebp - 0x410]
mov eax, 0x4037a4
mov ecx, 2
call fcn.00402b74
mov ebx, eax
mov eax, 0x4037a8
mov ecx, 0x20
mov edx, ebx
call fcn.00402b74
mov ebx, eax
lea eax, [ebp - 0xc20]
push eax
call sub.kernel32.dll_GetLocalTime
movzx eax, word [ebp - 0xc20]
mov edx, ebx
call fcn.00402ac4
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1e]
mov edx, ebx
call fcn.00402ac4
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1a]
mov edx, ebx
call fcn.00402ac4
mov ebx, eax
mov byte [ebx], 0x20
inc ebx
movzx eax, word [ebp - 0xc18]
mov edx, ebx
call fcn.00402ac4
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc16], 0xa
jae 0x40370f
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc16]
mov edx, ebx
call fcn.00402ac4
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc14], 0xa
jae 0x403731
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc14]
mov edx, ebx
call fcn.00402ac4
mov ebx, eax
mov eax, 0x4037a8
mov ecx, 0x20
mov edx, ebx
call fcn.00402b74
mov ebx, eax
mov eax, 0x4037a4
mov ecx, 2
mov edx, ebx
call fcn.00402b74
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x410]
sub ebx, eax
push ebx
lea eax, [ebp - 0x410]
push eax
push esi
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile
push esi
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4037ec
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
mov eax, 0x4931e0
call fcn.004028a8
mov ebx, eax
test ebx, ebx
jbe 0x40388e
mov eax, dword [0x48d7fc]
call fcn.0040288c
mov ecx, eax
inc ecx
lea edx, [ebx + 0x4931dc]
mov eax, dword [0x48d7fc]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
push 0x3ff
lea eax, [ebp - 0x808]
push eax
push 0x403894
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jbe 0x40388e
cmp byte [ebp + ebx - 0x809], 0x5c
je 0x403856
mov byte [ebp + ebx - 0x808], 0x5c
inc ebx
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, 0x4931e0
call fcn.0040358c
mov ecx, dword [ebp - 8]
inc ecx
lea edx, [ebp + ebx - 0x808]
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
mov edx, 0x4931e0
lea eax, [ebp - 0x808]
mov ecx, 0x3ff
call sub.rtl160.bpl__System_Move_qqrpxvpvi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4063d4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
xor ebx, ebx
cmp dword [0x493c8c], 0
je 0x40646d
cmp byte [0x493c88], 0
je 0x406422
push 0x406474
call sub.kernel32.dll_OutputDebugStringA
lea edx, [ebp - 0x400]
mov eax, 0x406494
call fcn.004028d0
lea edx, [ebp - 0x400]
mov eax, 0x406474
call fcn.00402bc0
jmp 0x40646d
call sub.rtl160.bpl__System_IsMemoryManagerSet_qqrv
test al, al
jne 0x40646d
lea eax, [ebp - 0x428]
call sub.rtl160.bpl__System_GetHeapStatus_qqrv
cmp dword [ebp - 0x41c], 0
je 0x40646b
push 0x4064a8
call sub.kernel32.dll_OutputDebugStringA
lea edx, [ebp - 0x400]
mov eax, 0x406690
call fcn.004028d0
lea edx, [ebp - 0x400]
mov eax, 0x4064a8
call fcn.00402bc0
jmp 0x40646d
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406984
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp byte [0x493c88], 0
jne 0x406b05
push 1
push 0x2000
push 0x10000
push 0x80800000
call sub.kernel32.dll_VirtualAlloc
mov dword [0x4935e0], eax
call sub.kernel32.dll_GetCurrentProcessId
mov ebx, eax
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, cl
and edx, 0xf
movzx edx, byte [edx + str.0123456789ABCDEF]
mov ecx, 0x18
sub ecx, eax
mov byte [ecx + str.LocalFastMM_PID_________], dl
inc eax
cmp eax, 8
jne 0x4069bb
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x493c84], eax
cmp dword [0x493c84], 0
jne 0x406a89
mov eax, dword [sym.imp.rtl160.bpl__System_IsLibrary]
cmp byte [eax], 0
jne 0x406a44
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x493c84], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x493c84]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x493c6c
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x493c6c], fcn.004047e4
mov dword [0x493c70], 0x404960
mov dword [0x493c74], 0x404a4c
mov dword [0x493c78], 0x404bb0
mov dword [0x493c7c], 0x405a44
mov dword [0x493c80], 0x405a94
mov byte [0x493c89], 1
jmp 0x406acb
push 0
push 0
push 0
push 4
mov eax, dword [0x493c84]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [eax]
mov esi, edx
mov edi, 0x493c6c
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x493c84]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x493c84], eax
mov byte [0x493c89], 0
mov eax, 0x493c54
call sub.rtl160.bpl__System_GetMemoryManager_qqrr23System_TMemoryManagerEx
mov eax, 0x493c6c
call sub.rtl160.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
mov byte [0x493c88], 1
cmp byte [0x493c89], 0
je 0x406afb
push 0x406b0c
call sub.kernel32.dll_OutputDebugStringA
jmp 0x406b05
push 0x406b28
call sub.kernel32.dll_OutputDebugStringA
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40ecb8
Capabilities:
Inspect section memory permissions

Disassembly:
xor eax, eax
test edx, 0x20000000
je 0x40ecf0
test edx, 0x40000000
je 0x40ecdc
test edx, 0x80000000
je 0x40ecd7
or eax, 0x40
jmp 0x40ed1a
or eax, 0x20
jmp 0x40ed1a
test edx, 0x80000000
je 0x40eceb
or eax, 0x80
jmp 0x40ed1a
or eax, 0x10
jmp 0x40ed1a
test edx, 0x40000000
je 0x40ed0a
test edx, 0x80000000
je 0x40ed05
or eax, 4
jmp 0x40ed1a
or eax, 2
jmp 0x40ed1a
test edx, 0x80000000
je 0x40ed17
or eax, 8
jmp 0x40ed1a
or eax, 1
test edx, 0x4000000
je 0x40ed27
or eax, 0x200
ret

Function at 0x40ee34
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
lea eax, [ebx + 0x44]
mov edx, 0xf8
call fcn.004025e8
lea edx, [ebx + 4]
mov ecx, 0x40
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
xor ecx, ecx
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebx + 0x44]
mov ecx, 4
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0x48]
mov ecx, 0x14
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
movzx ecx, word [ebx + 0x58]
lea edx, [ebx + 0x5c]
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp word [ebx + 4], 0x5a4d
jne 0x40eebc
cmp dword [ebx + 0x44], 0x4550
jne 0x40eebc
cmp word [ebx + 0x48], 0x14c
je 0x40eed2
mov ecx, 0x40eee4
mov dl, 1
mov eax, dword [sym.imp.rtl160.bpl__System_Sysutils_Exception_]
call sub.rtl160.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl160.bpl__System__RaiseExcept_qqrv
pop esi
pop ebx
pop ebp
ret
Function at 0x40fd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x40fe6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
push 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x40a5c8]
call fcn.0040a9ac
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40fe44
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
jne 0x40fda9
mov eax, dword [ebp - 0xc]
cmp byte [eax + 8], 0
jne 0x40fda9
lea eax, [ebp - 4]
mov edx, dword [0x48f5f8]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x40fdd5
mov eax, dword [ebp - 0xc]
call fcn.0040aadc
test al, al
je 0x40fdc5
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x40fdd5
lea eax, [ebp - 4]
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov esi, 2
mov ebx, dword [0x48f5f8]
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x10]
call sub.AxComponentsRTL.bpl__Auslogics_Utils_Hash_Crc32_HashCRC32_FromString_qqrx27System__AnsiStringT_us_i0__
mov edi, eax
lea eax, [ebp - 0x14]
mov edx, dword [ebx]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x14]
call sub.AxComponentsRTL.bpl__Auslogics_Utils_Hash_Crc32_HashCRC32_FromString_qqrx27System__AnsiStringT_us_i0__
xor edi, eax
mov eax, edi
xor edx, edx
push edx
push eax
call sub.rtl160.bpl__System_Math_Min_qqrxjxj
mov dword [ebp - 8], eax
add ebx, 4
dec esi
jne 0x40fde0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe4b
lea eax, [ebp - 0xc]
call sub.rtl160.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
Function at 0x46621c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x466344
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00466108
mov eax, dword [esi]
call sub.rtl160.bpl__System__DynArrayLength_qqrpxv
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x416760]
call sub.rtl160.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call sub.rtl160.bpl__System_Move_qqrpxvpvi
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call sub.rtl160.bpl__System_Move_qqrpxvpvi
add ebx, 0x1c
mov eax, dword [esi]
call sub.rtl160.bpl__System__DynArrayLength_qqrpxv
mov dword [ebp - 0xc], eax
mov eax, dword [0x48f760]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.0044f398
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call sub.rtl160.bpl__System__FillChar_qqrpvic
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call sub.rtl160.bpl__System__DynArrayLength_qqrpxv
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.0044f374
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.0044f2ac
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.0044f390
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46634b
lea eax, [ebp - 4]
mov edx, dword [0x416760]
call sub.rtl160.bpl__System__DynArrayClear_qqrrpvpv
ret
Function at 0x476de0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
cmp byte [esi + 0xd], 0
jne 0x476e5c
push 0
push 0x84080300
push 0
push 0
mov eax, dword [esi + 0x68]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [esi + 0x60]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov edi, eax
mov dword [esi + 0x64], edi
test edi, edi
je 0x476e4d
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
mov eax, dword [esi + 0x64]
push eax
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
je 0x476e4d
cmp dword [ebp - 0xc], 0xc8
sete bl
test bl, bl
jne 0x476e5c
call sub.kernel32.dll_GetLastError_1
mov dword [esi + 0x8c], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret