joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5207cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x520384
call fcn.00406928
xor eax, eax
push ebp
push 0x5209a1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00513710
mov eax, dword [0x52b420]
mov dword [eax], 0xa3d70a4
mov dword [eax + 4], 0x3ffca3d7
call fcn.0051311c
call fcn.004ff5c4
call fcn.0051e964
mov eax, 0x22b9
call fcn.00403194
inc eax
mov edx, dword [0x52b888]
mov dword [edx], eax
lea edx, [ebp - 0x18]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.00461ae8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409568
mov edx, dword [ebp - 0x14]
mov eax, dword [0x52b66c]
call fcn.0040476c
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00402b54
mov eax, dword [ebp - 0x1c]
mov edx, 0x5209b8
call fcn.00404b24
je 0x520897
mov eax, dword [0x52b8e4]
push eax
push 0
push 0
push 0x51c0dc
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov edx, dword [0x52b2c0]
mov dword [edx], eax
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.00461440
lea edx, [ebp - 0x20]
mov eax, 3
call fcn.00402b54
mov eax, dword [ebp - 0x20]
mov edx, 0x5209dc
call fcn.00404b24
jne 0x5208d0
mov eax, dword [0x52b644]
mov edx, 0x5209f0
call fcn.0040476c
jmp 0x5208df
mov eax, dword [0x52b644]
mov edx, 0x520a18
call fcn.0040476c
mov ecx, dword [0x52b83c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x5083a0]
call fcn.00459b58
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xec]
dec eax
jne 0x52095f
mov eax, ebx
call fcn.004038e4
mov ecx, dword [0x52ba54]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
mov edx, dword [0x509b70]
call fcn.00461458
mov ecx, dword [0x52b7c0]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
mov edx, dword [0x50762c]
call fcn.00461458
mov ecx, dword [0x52b588]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
mov edx, dword [0x509644]
call fcn.00461458
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.004614d8
jmp 0x520986
xor eax, eax
push ebp
push 0x52097c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00513420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x520986
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5209a8
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040473c
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x30c24666
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x128e0763
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

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

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

Function at 0x41d254
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 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
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 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
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 0x41f3b0
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 0x49a89e
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 0x41f3ff
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 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
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 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
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 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
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 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
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 0x49a8a5
ret
Function at 0x4205fc
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 0x49bc17
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 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x4b95f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x4b95f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x4b83fc]
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 0x4207e9
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 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
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 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
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 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
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 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
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 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
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 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bc1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401010
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor edx, edx
xor ecx, ecx
test edi, edi
jbe 0x40103f
push ebx
push esi
mov esi, dword [esp + 0x10]
mov al, byte [edx + 0x40fd30]
xor byte [ecx + esi], al
lea eax, [edx + 1]
xor edx, edx
mov ebx, 0x18
inc ecx
div ebx
cmp ecx, edi
jb 0x401023
pop esi
pop ebx
pop edi
ret 8

Function at 0x401510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [ebx + 0x3c]
push esi
push edi
mov edi, dword [eax + ebx + 0x50]
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x401536
pop edi
xor eax, eax
pop esi
pop ecx
ret
push edi
push 0
push esi
call fcn.004037f0
push esi
push ebx
call fcn.00401640
add esp, 0x14
test eax, eax
je 0x401530
call fcn.00401730
test eax, eax
je 0x401530
push esi
call fcn.004017a0
add esp, 4
test eax, eax
je 0x401530
lea ecx, [esp + 8]
push ecx
push 0x40
push edi
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401530
mov edx, dword [esi + 0x3c]
pop edi
mov dword [edx + esi + 0x34], esi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
push ebx
mov ebx, dword [eax + esi + 0x20]
add eax, esi
push ebp
mov ebp, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
xor edx, edx
add ebx, esi
add ebp, esi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
test eax, eax
jbe 0x4018dd
mov eax, dword [ebx + edi*4]
add eax, esi
push str.shell
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4018c8
inc edi
cmp edi, dword [esp + 0xc]
jb 0x4018a3
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
movzx ecx, word [ebp + edi*2]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx*4]
pop edi
pop ebp
add eax, esi
pop ebx
add esp, 8
ret
pop edi
pop ebp
mov eax, edx
pop ebx
add esp, 8
ret

Function at 0x401949
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411050]
jne 0x401953
repz ret
jmp fcn.00402a23

Function at 0x401958
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x401989
call fcn.00402b7e
mov dword [eax], esi
call fcn.00402b6b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00402ceb
add esp, 0x14
push 0x16
pop eax
jmp 0x4019de
test dword [ebp + 0xc], 0xfffffff9
jne 0x401965
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4019b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402b91
pop ecx
call fcn.00402b6b
mov eax, dword [eax]
jmp 0x4019de
test al, 0x10
jne 0x4019dc
test al, 1
je 0x4019dc
test byte [ebp + 0xc], 2
je 0x4019dc
call fcn.00402b7e
mov dword [eax], 5
call fcn.00402b6b
mov dword [eax], 0xd
jmp 0x4019ad
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4081fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402ffa
and dword [ebp - 4], 0
cmp dword [0x413150], 0
mov ebx, eax
jne 0x4082af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408360
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408360
push eax
call fcn.00402f88
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413150], eax
call esi
push eax
call fcn.00402f88
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413154], eax
call esi
push eax
call fcn.00402f88
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x413158], eax
call esi
push eax
call fcn.00402f88
pop ecx
mov dword [0x413160], eax
test eax, eax
je 0x4082af
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f88
pop ecx
mov dword [0x41315c], eax
mov eax, dword [0x41315c]
cmp eax, ebx
je 0x408307
cmp dword [0x413160], ebx
je 0x408307
push eax
call fcn.00403003
push dword [0x413160]
mov esi, eax
call fcn.00403003
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408307
test edi, edi
je 0x408307
call esi
test eax, eax
je 0x4082fe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4082fe
test byte [ebp - 0xc], 1
jne 0x408307
or dword [ebp + 0x10], 0x200000
jmp 0x408340
mov eax, dword [0x413154]
cmp eax, ebx
je 0x408340
push eax
call fcn.00403003
pop ecx
test eax, eax
je 0x408340
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408340
mov eax, dword [0x413158]
cmp eax, ebx
je 0x408340
push eax
call fcn.00403003
pop ecx
test eax, eax
je 0x408340
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413150]
call fcn.00403003
pop ecx
test eax, eax
je 0x408360
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408362
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, reloc.gdi32.dll_GetPaletteEntries
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100548ce
Capabilities:
Query environment variable

Disassembly:
jmp 0x100d75dd
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d75f1
xor edi, edi
jmp 0x100d7635
push ebx
push esi
call fcn.100d74d6
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.10055c42
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100d7622
push ebx
push esi
push edi
call fcn.10055d91
add esp, 0xc
push 2
push 0
call fcn.10055828
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x10065c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea edi, [ebp - 0x84]
mov ecx, 0x21
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1013197f
call fcn.1005600c
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x2c], eax
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x7c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], 0
jmp 0x10065ce3
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x44]
jae 0x10065d39
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0xdc]
cmp dword [ebp - 0x20], ecx
ja 0x10065d05
jmp 0x10065cda
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.10056151
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x10065d37
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x5c]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x74], ecx
jmp 0x10065d39
jmp 0x10065cda
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x2c]
jb 0x10065d53
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x38]
cmp dword [ebp - 0x74], eax
jae 0x10065d53
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
pop edi
pop esi
pop ebx
add esp, 0x144
cmp ebp, esp
call fcn.100551ed
mov esp, ebp
pop ebp
ret