joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d908]
jne 0x4058c1
repz ret
jmp fcn.0040db86

Function at 0x4159fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d908]
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.00404e2c
and dword [ebp - 0x14], 0
cmp dword [0x46e8cc], 0
mov dword [ebp - 0x18], eax
jne 0x415aae
push 0x403360
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415b56
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403354
push ebx
call edi
test eax, eax
je 0x415b56
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403344
push ebx
mov dword [0x46e8cc], eax
call edi
push eax
call esi
push 0x403330
push ebx
mov dword [0x46e8d0], eax
call edi
push eax
call esi
push 0x403314
push ebx
mov dword [0x46e8d4], eax
call edi
push eax
call esi
mov dword [0x46e8dc], eax
test eax, eax
je 0x415aae
push 0x4032fc
push ebx
call edi
push eax
call esi
mov dword [0x46e8d8], eax
mov eax, dword [0x46e8d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x415b07
cmp dword [0x46e8dc], ecx
je 0x415b07
push eax
call esi
push dword [0x46e8dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x415b07
test ebx, ebx
je 0x415b07
call edi
test eax, eax
je 0x415afe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415afe
test byte [ebp - 8], 1
jne 0x415b07
or dword [ebp + 0x10], 0x200000
jmp 0x415b3a
mov eax, dword [0x46e8d0]
cmp eax, dword [ebp - 0x18]
je 0x415b3a
push eax
call esi
test eax, eax
je 0x415b3a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415b3a
mov eax, dword [0x46e8d4]
cmp eax, dword [ebp - 0x18]
je 0x415b3a
push eax
call esi
test eax, eax
je 0x415b3a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46e8cc]
call esi
test eax, eax
je 0x415b56
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x415b58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004058b7
leave
ret
Function at 0x41a6e0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
mov eax, 0x1c08
call fcn.00418150
cmp dword [0x81e084], 0x37
jne 0x41a7a8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [esp + 0xc0c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x403498
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EraseTape]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push 0
lea edx, [esp + 0x140c]
push edx
push 0x403504
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x81e498]
mov edx, dword [0x81db68]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1c08
ret
Function at 0x41ae70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x81e084]
sub esp, 0x484
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x41aef6
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403700
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x40372c
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x46dc50]
mov dword [0x81e084], eax
jne 0x41ae95
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x46dc44]
mov dword [0x81e498], edx
call fcn.0041aa50
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b4f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4283d4]
jne 0x40b4fa
repz ret
jmp fcn.0041184c

Function at 0x4174fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4283d4]
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.0040ee72
and dword [ebp - 0x14], 0
cmp dword [0x45ff0c], 0
mov dword [ebp - 0x18], eax
jne 0x4175af
push 0x4037ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417657
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037e0
push ebx
call edi
test eax, eax
je 0x417657
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037d0
push ebx
mov dword [0x45ff0c], eax
call edi
push eax
call esi
push 0x4037bc
push ebx
mov dword [0x45ff10], eax
call edi
push eax
call esi
push 0x4037a0
push ebx
mov dword [0x45ff14], eax
call edi
push eax
call esi
mov dword [0x45ff1c], eax
test eax, eax
je 0x4175af
push 0x403788
push ebx
call edi
push eax
call esi
mov dword [0x45ff18], eax
mov eax, dword [0x45ff18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417608
cmp dword [0x45ff1c], ecx
je 0x417608
push eax
call esi
push dword [0x45ff1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417608
test ebx, ebx
je 0x417608
call edi
test eax, eax
je 0x4175ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4175ff
test byte [ebp - 8], 1
jne 0x417608
or dword [ebp + 0x10], 0x200000
jmp 0x41763b
mov eax, dword [0x45ff10]
cmp eax, dword [ebp - 0x18]
je 0x41763b
push eax
call esi
test eax, eax
je 0x41763b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41763b
mov eax, dword [0x45ff14]
cmp eax, dword [ebp - 0x18]
je 0x41763b
push eax
call esi
test eax, eax
je 0x41763b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45ff0c]
call esi
test eax, eax
je 0x417657
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417659
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4f0
leave
ret
Function at 0x41f800
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.0041e9c0
cmp dword [0x800c90], 0x37
jne 0x41f891
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x404428
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404448
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x800c94]
mov edx, dword [0x7fd100]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x4145c6
Capabilities:
Encode data using xor

Disassembly:
xor dword [ecx + 0x50], ecx
mov byte [0x835dc470], al
pop ebp
adc dword [ecx], 9
pop ebp
adc dword [ecx], 9
xchg esp, eax
cwde
pop eax
ficom dword [edx + 0x539e0fce]
loopne 0x4145c0
stc
test ah, bl
aam 0x26
xlatb
int3

Function at 0x449a00
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20c
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push 0
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x449a3f
mov edx, dword [0x64cdcc]
push 0x64cae8
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ecx, dword [esp + 0x214]
lea eax, [esp + 8]
push eax
push 0xffffffffffffffff
push ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeExW]
xor eax, eax
pop esi
add esp, 0x20c
ret 8

Function at 0x56cbc6
Capabilities:
Packed with generic packer

Disassembly:
std
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
mov edx, ecx
shr ecx, 2
mov esi, eax
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call 0x908f7b
mov esi, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, ebx
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, dword [ecx + 0x6b]
mov al, byte [eax + esi]
sar edi, 3
lea ecx, [edi*8]
mov dword [esp + 0x28], ecx
mov ecx, 7
shl al, 2
mov byte [esp + 0x13], pe_nt_image_headers32
mov dword [esp + 0x24], ecx
mov dl, byte [esp + 0x13]
and dl, al
shr dl, cl
mov ecx, dword [esp + 0x28]
sub ecx, ebx
add ecx, 7
shl dl, cl
mov cl, byte [edi + ebp]
or cl, dl
inc ebx
mov byte [edi + ebp], cl
je 0x56cc65
mov ecx, ebx
and ecx, 0x80000007
mov eax, 0x270f
ret
adc al, 0x8b
inc ebp
or al, 0x53
mov ebx, dword [ebp + 0x10]
push esi
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dl, byte [ebx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov byte [eax], dl
mov eax, 1
push edi
cmp ecx, eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
jbe 0x56cf9e

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xf28008], 0x8088405
inc edx
mov dword [ebx + 0xf28008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0xf0b9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0b9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0xf0cd6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0xf2a73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0xf2a73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0xf29538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0cd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4017ca
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 1], 0
and byte [ebp - 4], 0
and byte [ebp - 3], 0
push 0x4062d0
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp - 1]
push eax
push 0x4062dc
push 0x4062f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
cmp byte [ebp - 4], al
setne al
leave
ret

Function at 0x401803
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x4062f8
lea eax, [ebp - 2]
push 2
push eax
push 0x406304
push 0x406308
push 0x40631c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 1
jne 0x40184f
mov al, byte [ebp - 2]
cmp al, 0x30
jl 0x40183f
cmp al, 0x39
jg 0x40183f
movsx eax, al
sub eax, 0x30
leave
ret
cmp al, 0x41
jl 0x40184f
cmp al, 0x46
jg 0x40184f
movsx eax, al
sub eax, 0x37
leave
ret
push 1
pop eax
leave
ret

Function at 0x401854
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x406324
lea eax, [ebp - 2]
push 2
push eax
push 0x406330
push 0x406334
push 0x406348
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 1
jne 0x4018a0
mov al, byte [ebp - 2]
cmp al, 0x30
jl 0x401890
cmp al, 0x39
jg 0x401890
movsx eax, al
sub eax, 0x30
leave
ret
cmp al, 0x41
jl 0x4018a0
cmp al, 0x46
jg 0x4018a0
movsx eax, al
sub eax, 0x37
leave
ret
push 0xf
pop eax
leave
ret
Function at 0x401010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, eax
je 0x401031
push dword [ebp + 0x10]
push eax
push ebx
call sub.ucrtbase.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
shr eax, 3
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x4010ec
lea edx, [ebx + 4]
lea eax, [esi + 0x44]
mov dword [ebp - 8], edx
push edi
mov edi, eax
mov dword [ebp - 4], 0x10
nop word [eax + eax]
mov ebx, dword [edi]
lea edi, [edi - 4]
mov eax, dword [ebp + 8]
xor ebx, dword [eax + ecx*8]
mov dword [eax + ecx*8], ebx
mov eax, ebx
shr eax, 0x10
mov ecx, ebx
movzx eax, al
shr ecx, 0x18
mov edx, dword [esi + eax*4 + 0x448]
mov eax, ebx
add edx, dword [esi + ecx*4 + 0x48]
mov ecx, dword [ebp + 0xc]
shr eax, 8
movzx eax, al
xor edx, dword [esi + eax*4 + 0x848]
movzx eax, bl
mov ebx, dword [ebp + 8]
add edx, dword [esi + eax*4 + 0xc48]
mov eax, dword [ebp - 8]
xor dword [eax + ecx*8], edx
sub dword [ebp - 4], 1
mov eax, dword [eax + ecx*8]
mov edx, dword [ebx + ecx*8]
mov dword [ebx + ecx*8], eax
mov dword [ebx + ecx*8 + 4], edx
jne 0x401060
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + eax*8], edx
mov dword [ebx + eax*8 + 4], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + ecx*8 + 4], eax
mov eax, dword [esi]
xor dword [ebx + ecx*8], eax
inc ecx
lea eax, [esi + 0x44]
mov dword [ebp + 0xc], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x401051
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, dword [edi + ecx*4]
xor ebx, dword [eax]
mov dword [eax], ebx
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
movzx ecx, cl
shr edx, 0x18
mov esi, dword [edi + ecx*4 + 0x448]
mov ecx, ebx
add esi, dword [edi + edx*4 + 0x48]
shr ecx, 8
movzx ecx, cl
xor esi, dword [edi + ecx*4 + 0x848]
movzx ecx, bl
mov ebx, dword [ebp + 0xc]
add esi, dword [edi + ecx*4 + 0xc48]
xor dword [ebx], esi
mov ecx, dword [ebx]
mov esi, dword [eax]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebx], esi
mov dword [ebp - 4], ecx
cmp ecx, 0x10
jl 0x401111
mov edx, dword [eax]
mov dword [eax], esi
mov dword [ebx], edx
mov ecx, dword [edi + 0x40]
xor ecx, edx
mov dword [ebx], ecx
mov ecx, dword [edi + 0x44]
xor dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8