joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x4e2f4e53
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, str.k_bd
nop
mov ebx, 0x42f3f8
mov ecx, 0x82b2dd4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4099b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417354]
jne 0x4099bb
repz ret
jmp fcn.0040e58c

Function at 0x412294
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c41d
and dword [ebp - 0x14], 0
cmp dword [0x4688c8], 0
mov dword [ebp - 0x18], eax
jne 0x412347
push 0x403774
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4123ef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403768
push ebx
call edi
test eax, eax
je 0x4123ef
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403758
push ebx
mov dword [0x4688c8], eax
call edi
push eax
call esi
push 0x403744
push ebx
mov dword [0x4688cc], eax
call edi
push eax
call esi
push 0x403728
push ebx
mov dword [0x4688d0], eax
call edi
push eax
call esi
mov dword [0x4688d8], eax
test eax, eax
je 0x412347
push 0x403710
push ebx
call edi
push eax
call esi
mov dword [0x4688d4], eax
mov eax, dword [0x4688d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4123a0
cmp dword [0x4688d8], ecx
je 0x4123a0
push eax
call esi
push dword [0x4688d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4123a0
test ebx, ebx
je 0x4123a0
call edi
test eax, eax
je 0x412397
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412397
test byte [ebp - 8], 1
jne 0x4123a0
or dword [ebp + 0x10], 0x200000
jmp 0x4123d3
mov eax, dword [0x4688cc]
cmp eax, dword [ebp - 0x18]
je 0x4123d3
push eax
call esi
test eax, eax
je 0x4123d3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4123d3
mov eax, dword [0x4688d0]
cmp eax, dword [ebp - 0x18]
je 0x4123d3
push eax
call esi
test eax, eax
je 0x4123d3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4688c8]
call esi
test eax, eax
je 0x4123ef
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4123f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004099b1
leave
ret
Function at 0x4141d0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
sub esp, 0xc00
cmp dword [0x6e3a9c], 0x37
jne 0x414242
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0x403f44
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403fdc
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x404008
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea edx, [esp + 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov eax, dword [0x6e4680]
mov edx, dword [0x6e0afc]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0xc00
ret
Function at 0x4142d0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
sub esp, 0x824
cmp dword [0x6e3a9c], 0x60b
mov ecx, dword [esp + 0x828]
mov eax, dword [ecx]
mov edx, dword [0x4659a4]
push ebx
push ebp
mov ebp, dword [0x4659ac]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x4659a0]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4659a8]
mov ebx, 0xc6ef3720
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
jne 0x414341
push 0
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0x20
jmp 0x414354
mov eax, dword [esp + 0x18]
mov ecx, eax
shl ecx, 4
cmp dword [0x6e3a9c], 5
mov dword [esp + 0x10], ecx
jne 0x41437e
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x2c]
lea edi, [ebx + eax]
shr eax, 5
cmp dword [0x6e3a9c], 0x1b
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4143be
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0x403f18
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, ebp
xor eax, edi
xor eax, ecx
sub esi, eax
mov dword [esp + 0x14], eax
mov eax, esi
shl eax, 4
cmp dword [0x6e3a9c], 0x78c
mov dword [0x6e0b00], 0
mov dword [esp + 0x10], eax
jne 0x414403
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
mov eax, esi
shr eax, 5
mov dword [0x6e0b08], 0xff6b3619
mov dword [0x6e0b0c], 0xffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], eax
lea ecx, [ebx + esi]
xor dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
cmp dword [0x6e3a9c], 0x93
jne 0x414465
push 0x403f58
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x414472
lea eax, [esp + 0x20]
call fcn.00414260
mov ebx, dword [esp + 0x20]
dec dword [esp + 0x1c]
jne 0x414350
mov eax, dword [esp + 0x838]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x824
ret 4
Function at 0x6d8e76
Capabilities:
Check for vm using instruction vpcext

Disassembly:
jecxz 0x6d8ed8
add eax, 0x4dd173c
invalid
sbb dword [edi], 0xff52fac
aas
rol cl, 0x9e
invalid
push edi
mov esp, 0x6cdd2fb9
outsb dx, byte es:[esi]
sal byte [ecx + 0x306942a1], 0x35
int1
shr edi, 0xc4
loope 0x6d8ea8
xchg esi, eax
xchg esi, eax
jmp 0x6d8f4f
lea esi, [edx + ecx*4 + 0x7c]
mov dword [0x24bbbe29], eax
push dword [ebx]
xor esi, ebp
mov word [ebp - 0x5d5a65ec], es
invalid
Function at 0x7a10b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2dc000]
push edi
jmp 0x7a10ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7a10d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7a10c0
mov eax, 1
add ebx, ebx
jne 0x7a10e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7a10f4
jne 0x7a1113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7a1113
dec eax
add ebx, ebx
jne 0x7a1100
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7a10d8
add ebx, ebx
jne 0x7a110f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7a1165
xor ecx, ecx
sub eax, 3
jb 0x7a112b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7a119a
sar eax, 1
mov ebp, eax
jmp 0x7a1136
add ebx, ebx
jne 0x7a1136
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7a1104
inc ecx
add ebx, ebx
jne 0x7a1144
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7a1104
add ebx, ebx
jne 0x7a1151
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7a1146
jne 0x7a1162
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7a1146
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7a1184
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7a1176
jmp 0x7a10c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7a1184
add edi, ecx
jmp 0x7a10c6
pop esi
mov edi, esi
mov ecx, 0x9a1e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7a11a2
cmp byte [edi], 0x1e
jne 0x7a11a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7a11a7
lea edi, [esi + 0x39e000]
mov eax, dword [edi]
or eax, eax
je 0x7a121f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x410a08]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x410b20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7a11d4
mov ecx, edi
jns 0x7a1203
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x410b24]
or eax, eax
je 0x7a1219
mov dword [ebx], eax
add ebx, 4
jmp 0x7a11f1
call dword [esi + 0x410b34]
mov ebp, dword [esi + 0x410b28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7a1253
sub esp, 0xffffff80
jmp 0x401578
Function at 0x40109e
Capabilities:
Print debug messages

Disassembly:
push esi
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
mov esi, section..data
push esi
call dword [sym.imp.USER32.dll_wvsprintfA]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x200010
push str.TSU_Loader
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret

Function at 0x40112f
Capabilities:
Get file version info
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
je 0x401204
push ebx
call section..text
mov ebx, eax
push ebx
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jmp loc.0044e763
pop edi
leave
ret 4

Function at 0x401209
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x401236
xor eax, eax
jmp loc.0044e6f9
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10000
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jae 0x401252
dec ecx
mov dword [ebp - 8], ecx
push ebx
push esi
push edi
push edi
push edi
lea esi, [eax - 0x10000]
push 2
push edi
push dword [ebp - 4]
and esi, 0xffff0000
sub eax, esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
call edi
cmp dword [ebp + 8], 0
je 0x4012a5
push ebx
push esi
push dword [ebp - 8]
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 4], esi
call edi
test esi, esi
jne 0x4012ac
xor eax, eax
jmp loc.0044e6c5
lea ecx, [esi + ebx]
push 0x7c
lea eax, [ecx - 2]
pop edx
xor ebx, ebx
cmp byte [eax], dl
lea edi, [ecx - 4]
jmp loc.0044e713

Function at 0x4013d6
Capabilities:
Accept command line arguments
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040112f
test eax, eax
push 2
mov dword [ebp - 4], eax
pop esi
jne 0x4013fe
mov ecx, esi
call section..text
and word [eax], 0
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.00401209
mov ebx, eax
test ebx, ebx
mov dword [ebp + 8], ebx
jne 0x40141f
mov ecx, esi
call section..text
mov ebx, eax
and word [ebx], 0
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x20
mov edi, eax
pop ecx
jmp 0x40142e
add edi, esi
cmp word [edi], cx
je 0x40142c
cmp word [edi], 0x22
jne 0x40144d
add edi, esi
movzx eax, word [edi]
test ax, ax
je 0x401460
add edi, esi
cmp ax, 0x22
jne 0x40143b
jmp 0x401460
movzx eax, word [edi]
test ax, ax
je 0x401460
add edi, esi
cmp ax, cx
jne 0x40144d
jmp 0x401460
add edi, esi
cmp word [edi], cx
je 0x40145e
jmp 0x44e30e
Function at 0x4014db
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Parse pe header
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
push ebx
push esi
xor ebx, ebx
push edi
mov word [ebp - 0x424], bx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x404408], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
jmp loc.0044e60a

Function at 0x40180b
Capabilities:
Packed with generic packer
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x40181e
xor eax, eax
jmp 0x401854
mov eax, dword [esi + 4]
push edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov edi, 0x10000
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401857
mov eax, dword [ebp - 4]
test eax, eax
je 0x40185f
add dword [esi + 0xc], eax
sub edi, eax
jne 0x40182d
xor eax, eax
pop edi
pop esi
leave
ret
jmp 0x44e2e0
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
sbb eax, eax
and eax, 0xffffffda
add eax, 0x26
jmp 0x401853

Function at 0x40191f
Capabilities:
Packed with generic packer

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x401933
push eax
jmp loc.0044e664
mov ecx, dword [esi + 4]
call fcn.00401010
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
pop esi
ret

Function at 0x401948
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [esi + 8]
mov dword [esi + 8], eax
jmp 0x40197b
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40198b
mov eax, dword [ebp - 4]
test eax, eax
je 0x401993
add dword [esi + 8], eax
sub edi, eax
jne 0x40195b
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401987
push 0x27
pop eax
jmp 0x401987

Function at 0x4019a0
Capabilities:
Packed with generic packer

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x4019ac
push 0x57
pop eax
pop esi
ret
push edi
mov edi, dword [esi + 0x50]
test edi, edi
je 0x4019d0
mov ecx, dword [edi + 0x10]
call fcn.00401010
mov ecx, dword [edi + 0x1c]
call fcn.00401010
mov ecx, dword [esi + 0x50]
call fcn.00401010
and dword [esi + 0x50], 0
lea ecx, [esi + 0x40]
jmp loc.0044e459
Function at 0x401a49
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov esi, ecx
test esi, esi
mov edi, edx
mov dword [ebp - 0x10], edi
je 0x401c15
test edi, edi
je 0x401c15
mov eax, dword [esi + 0x54]
test eax, eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
je 0x401a9c
push dword [ebp + 8]
push 0
push 0x1400
push eax
call ebx
lea eax, [edi + 0x10]
push eax
push 0
push 0x1401
push dword [esi + 0x54]
call ebx
mov eax, dword [esi + 0x58]
test eax, eax
je 0x401a9c
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ab7
and eax, 0xfffffffa
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x44e33c
push 0x57
pop eax
pop edi
pop esi
leave
ret 4

Function at 0x401c1e
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
test esi, esi
push edi
mov edi, edx
jne 0x401c36
push 0x57
pop eax
jmp 0x401d56
mov eax, dword [esi + 0x54]
test eax, eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
je 0x401c6c
push 0x4032d8
push 0
push 0x1400
push eax
call ebx
lea eax, [edi + 0x10]
push eax
push 0
push 0x1401
push dword [esi + 0x54]
call ebx
mov eax, dword [esi + 0x58]
test eax, eax
je 0x401c6c
call eax
mov ecx, 0x10000
mov dword [ebp - 0x1c], 0x4018c3
mov dword [ebp - 0x18], esi
jmp loc.0044e3a5
pop edi
pop esi
leave
ret

Function at 0x401d5a
Capabilities:
Packed with generic packer

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x401d66
push 0x57
pop eax
pop esi
ret
jmp loc.0044e948

Function at 0x401ec8
Capabilities:
Packed with generic packer

Disassembly:
push esi
push edi
mov edi, ecx
test edi, edi
mov esi, edx
jne 0x401efa
push 0x57
pop eax
jmp 0x401f07
jmp loc.0044e91b
pop edi
pop esi
ret 8

Function at 0x401f0c
Capabilities:
Packed with generic packer

Disassembly:
cmp dword [esp + 0xc], 5
jge 0x401f17
xor eax, eax
inc eax
ret
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [edi]
cmp cl, 0xe1
jb 0x401f28
xor eax, eax
inc eax
pop edi
ret
mov edx, dword [esp + 8]
and dword [edx + 8], 0
cmp cl, 0x2d
push ebx
push esi
jb 0x401f4d
xor ah, ah
mov al, cl
mov bl, 0x2d
div bl
movzx eax, al
mov esi, eax
add cl, 0xd3
dec eax
jne 0x401f44
mov dword [edx + 8], esi
and dword [edx + 4], 0
cmp cl, 9
jb 0x401f6c
xor ah, ah
mov al, cl
mov bl, 9
div bl
movzx eax, al
mov esi, eax
add cl, 0xf7
dec eax
jne 0x401f63
mov dword [edx + 4], esi
and dword [edx + 0xc], 0
movzx eax, cl
mov dword [edx], eax
jmp loc.0044e03f
Function at 0x40292c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40295b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c24
jmp 0x402979
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402854
mov edi, eax
test ebx, ebx
je 0x402979
cmp dword [esi], 0
je 0x402979
dec ebx
jmp 0x402962
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x456040], 0x8088405
inc edx
mov dword [0x456040], edx
mul edx
mov eax, edx
ret

Function at 0x402c98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d10
xor eax, eax
push ebp
push 0x402d09
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026fc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x456045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ab8
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc