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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, 1
mov dword [esp + 0xc], eax
mov eax, dword [0x4989cc]
imul eax, eax, 0x4a0c8e35
mov dword [0x4989cc], eax
mov eax, dword [0x49af84]
mov edx, esp
mov dword [edx], eax
mov dword [esp + 8], ecx
call fcn.00447850
mov ecx, dword [0x499250]
add ecx, 0x988b40b4
mov dword [0x499250], ecx
mov dword [esp], 1
mov byte [esp + 7], al
call fcn.00455025
int3
Function at 0x470b80
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x496a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0045cf93
mov dword [ebp - 0x14], eax
cmp dword [0x49c54c], esi
jne 0x470c73
push 0x800
push esi
push 0x488970
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x470c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x470d53
push esi
push esi
push 0x488970
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x470d53
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x470d53
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x49c54c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x49c550], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x49c554], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x49c55c], eax
test eax, eax
je 0x470c70
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x49c558], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x470c98
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x470c8b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x470cad
push 4
pop eax
jmp 0x470d55
cmp dword [ebp - 0x14], esi
je 0x470cad
push dword [0x49c54c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x470c92
mov eax, dword [0x49c558]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x470d0b
cmp dword [0x49c55c], edi
je 0x470d0b
push eax
call ebx
push dword [0x49c55c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x470d0b
test eax, eax
je 0x470d0b
call ecx
test eax, eax
je 0x470d00
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x470d00
test byte [ebp - 8], 1
jne 0x470d0b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x470d3b
mov eax, dword [0x49c550]
cmp eax, edi
je 0x470d38
push eax
call ebx
test eax, eax
je 0x470d38
call eax
mov esi, eax
test esi, esi
je 0x470d38
mov eax, dword [0x49c554]
cmp eax, edi
je 0x470d38
push eax
call ebx
test eax, eax
je 0x470d38
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x49c54c]
call ebx
test eax, eax
je 0x470d53
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x470d55
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004650ef
mov esp, ebp
pop ebp
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4bd88c], 1
mov dword [0x4bd890], 1
mov dword [0x4bd894], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x423b40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x1007c
push edi
push esi
push ebx
call fcn.00481a78
xor edx, edx
xor ecx, ecx
sub esp, eax
mov eax, dword [esp + 0x10090]
mov word [esp + 0x70], dx
lea edi, [esp + 0x20]
mov word [esp + 0x20], cx
movzx eax, byte [eax]
test al, al
je 0x423bf7
xor ebp, ebp
lea edi, [esp + 0x20]
lea esi, [esi]
mov byte [esp + 0x1a], al
lea eax, [esp + 0x1a]
mov esi, 0x28
lea ebx, [edi + ebp*2]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
sub esi, ebp
mov dword [esp + 8], 2
mov dword [esp], eax
mov byte [esp + 0x1b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x490fc9
cmp word [edi + ebp*2], 0
movzx eax, word [esp + 0x1c]
je 0x423bd4
lea esi, [esi]
add ebx, 2
sub esi, 1
cmp word [ebx], 0
jne 0x423bc8
test esi, esi
je 0x490fc9
mov word [ebx], ax
xor eax, eax
add ebp, 1
mov word [ebx + 2], ax
mov eax, dword [esp + 0x10090]
movzx eax, byte [eax + ebp]
test al, al
jne 0x423b80
lea ebx, [esp + 0x70]
mov dword [esp + 8], 0x10000
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [eax - 1]
sub esp, 0xc
xor eax, eax
cmp edx, 0xffff
ja 0x423c28
mov dword [esp], ebx
call sub.msvcrt.dll__wcsdup
add esp, 0x1007c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x423c40
Capabilities:
Set environment variable

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov word [esp + 0x20], dx
lea edi, [esp + 0x20]
movzx eax, byte [eax]
test al, al
je 0x423ce7
xor ebp, ebp
lea edi, [esp + 0x20]
lea esi, [esi]
mov byte [esp + 0x1a], al
lea eax, [esp + 0x1a]
mov esi, 0x28
lea ebx, [edi + ebp*2]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
sub esi, ebp
mov dword [esp + 8], 2
mov dword [esp], eax
mov byte [esp + 0x1b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x490fce
cmp word [edi + ebp*2], 0
movzx eax, word [esp + 0x1c]
je 0x423cc4
lea esi, [esi]
add ebx, 2
sub esi, 1
cmp word [ebx], 0
jne 0x423cb8
test esi, esi
je 0x490fce
mov word [ebx], ax
xor eax, eax
add ebp, 1
mov word [ebx + 2], ax
mov eax, dword [esp + 0x90]
movzx eax, byte [eax + ebp]
test al, al
jne 0x423c70
mov eax, dword [esp + 0x94]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43a1f0
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [0x4bcccc]
test ebx, ebx
je 0x43a250
mov eax, dword [0x4bc084]
mov esi, dword [sym.imp.python38.dll_PyNumber_InPlaceAdd]
cmp ebx, eax
je 0x43a22f
mov eax, dword [0x4bcee4]
test eax, eax
je 0x43a318
mov dword [esp + 4], eax
mov esi, dword [sym.imp.python38.dll_PyNumber_InPlaceAdd]
mov dword [esp], ebx
call esi
mov edx, dword [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 4], edx
call esi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.NUITKA_ONEFILE_BINARY
call fcn.00423b40
test eax, eax
je 0x43a370
mov dword [esp], eax
mov ebp, 0x28
lea edi, [esp + 0x30]
lea esi, [esp + 0x2a]
mov dword [esp + 4], 0xffffffff
lea ebx, [esp + 0x2c]
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x1c], eax
mov eax, 0x4e
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], esi
mov dword [esp], ebx
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x49105a
cmp word [edi], 0
movzx ecx, word [esp + 0x2c]
mov edx, ebp
mov eax, edi
je 0x43a2e4
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x43a2d8
test edx, edx
je 0x49105a
xor edx, edx
mov word [eax], cx
add edi, 2
mov word [eax + 2], dx
mov eax, 1
lea edx, [ebp - 1]
sub eax, ebp
movzx eax, byte [eax + 0x49b9fb]
test al, al
je 0x43a330
mov ebp, edx
jmp 0x43a2a0
mov dword [esp], 0x49de5c
call dword [sym.imp.python38.dll_PyUnicode_FromString]
mov dword [0x4bcee4], eax
jmp 0x43a220
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [sym.imp.python38.dll__PyRuntime]
sub esp, 8
mov eax, dword [eax + 0x2cc]
mov esi, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00439ec0
mov ebx, eax
mov dword [0x4bcccc], ebx
jmp 0x43a204
mov ebx, dword [0x4bccd8]
test ebx, ebx
jne 0x43a365
cmp byte [0x4bcee2], 0
je 0x43a3a8
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4bcce0
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov dword [0x4bccd8], eax
mov ebx, eax
test eax, eax
je 0x43a3b4
add dword [eax], 1
jmp 0x43a365
mov eax, 1
call fcn.00424800
jmp 0x43a383
call dword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
Function at 0x43c470
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp], str.NUITKA_ONEFILE_BINARY
mov ebx, dword [esp + 0xa0]
call fcn.00423b40
test eax, eax
je 0x43c5c8
mov dword [esp], eax
mov ebp, 0x28
lea edi, [esp + 0x30]
lea esi, [esp + 0x2a]
mov dword [esp + 4], 0xffffffff
lea ebx, [esp + 0x2c]
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x1c], eax
mov eax, 0x4e
lea esi, [esi]
nop
mov dword [esp + 8], 2
mov dword [esp + 4], esi
mov dword [esp], ebx
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x491073
cmp word [edi], 0
movzx ecx, word [esp + 0x2c]
mov edx, ebp
mov eax, edi
je 0x43c514
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x43c508
test edx, edx
je 0x491073
xor edx, edx
mov word [eax], cx
add edi, 2
mov word [eax + 2], dx
mov eax, 1
lea edx, [ebp - 1]
sub eax, ebp
movzx eax, byte [eax + 0x49b9fb]
test al, al
je 0x43c548
mov ebp, edx
jmp 0x43c4d0
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [sym.imp.python38.dll__PyRuntime]
mov ebx, dword [0x4bc140]
sub esp, 8
mov esi, dword [eax + 0x2cc]
mov eax, dword [0x4bd5b0]
test eax, eax
je 0x43c618
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004279b0
mov dword [esp], esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004372c0
sub dword [ebx], 1
jne 0x43c5ba
mov edx, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], ebx
call dword [edx + 0x18]
mov eax, dword [esp + 0x1c]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, bl
je 0x43c60c
mov eax, dword [0x4bccd8]
mov esi, 0x4bccd8
test eax, eax
jne 0x43c5ba
cmp byte [0x4bcee2], 0
je 0x43c641
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4bcce0
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov dword [esi], eax
test eax, eax
je 0x43c64b
add dword [eax], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4bccd4]
mov esi, 0x4bccd4
jmp 0x43c5d6
mov eax, dword [0x4bd56c]
mov edi, dword [0x4bc138]
test eax, eax
je 0x43c656
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004279b0
mov dword [0x4bd5b0], eax
jmp 0x43c57e
movzx eax, bl
call fcn.00424800
jmp 0x43c5e3
call dword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
mov dword [esp], 0x499cc6
call dword [sym.imp.python38.dll_PyImport_ImportModule]
mov dword [0x4bd56c], eax
test eax, eax
je 0x491073
jmp 0x43c627
Function at 0x479790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
cmp byte [0x4bccc9], 0
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
je 0x479820
mov dword [esp + 4], 0x49d72e
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x4798a0
mov ebp, dword [0x4bcc1c]
jmp 0x4797d4
lea ebp, [eax + edx + 4]
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
mov dword [esp], ebp
mov esi, eax
call sub.msvcrt.dll_strlen
lea eax, [ebp + eax + 1]
mov edx, dword [eax]
test esi, esi
jne 0x4797d0
movzx edi, word [eax + 4]
lea ecx, [eax + 6]
test edi, edi
je 0x479817
nop
mov eax, dword [esp + 0x30]
mov edx, ebx
add esi, 1
add ebx, 4
call fcn.00468f70
mov ecx, eax
cmp edi, esi
jne 0x479800
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
sub esp, 4
mov dword [0x4bcc1c], eax
add eax, 8
mov esi, dword [eax - 8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [0x4bcc1c], eax
call fcn.00478ce0
cmp eax, esi
jne 0x479923
mov byte [0x4bccc9], 1
jmp 0x4797a8
cmp byte [0x4bccc8], 0
jne 0x4797c0
mov esi, dword [sym.imp.python38.dll_PyDict_New]
mov ebp, 0xfffffffb
call esi
mov dword [0x4bd6b4], eax
call esi
mov dword [0x4bd6b0], eax
call esi
mov dword [0x4bd6ac], eax
call esi
mov dword [0x4bd6a8], eax
call esi
mov dword [0x4bd6a4], eax
call esi
mov dword [0x4bd6a0], eax
call esi
mov dword [0x4bd69c], eax
call esi
mov esi, dword [sym.imp.python38.dll_PyLong_FromLong]
mov dword [0x4bd698], eax
lea esi, [esi]
lea esi, [esi]
mov dword [esp], ebp
call esi
mov dword [ebp*4 + 0x4bc814], eax
add ebp, 1
cmp ebp, 0x101
jne 0x479900
mov byte [0x4bccc8], 1
jmp 0x4797c0
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
lea esi, [esi]
lea esi, [esi]
nop

Function at 0x480ac8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00490408
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00490408
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x48169c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x4816bb
mov eax, 0
jmp 0x4816ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4816de
mov eax, 0
jmp 0x4816ff
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4816fa
mov eax, 0
jmp 0x4816ff
mov eax, 1
leave
ret

Function at 0x481701
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x481760
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x481758
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x481758
mov eax, dword [ebp - 4]
jmp 0x481774
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x481735
mov eax, 0
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 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x403fa0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dfcb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x44d100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x410
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x404170
lea eax, [ebp - 0x234]
push eax
push 4
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x404170
mov eax, dword [ebp - 0x234]
mov ecx, 4
shr eax, 2
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.0042c654
mov edi, eax
add esp, 4
test edi, edi
je 0x404051
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x404053
xor edi, edi
mov dword [ebp - 0x240], edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x234]
push edi
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x404163
xor esi, esi
test dword [ebp - 0x234], 0xfffffffc
jbe 0x404163
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push dword [edi + esi*4]
push ebx
call sub.KERNEL32.dll_K32GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402000
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 7
push 0
mov byte [ebp - 4], 1
lea ecx, [eax + eax]
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x238]
push eax
call fcn.00404bb0
mov ecx, dword [ebp - 0x238]
push 0
push 2
push 0x441620
call fcn.00404bb0
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x404151
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404147
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40418c
push ecx
push edx
call fcn.0042c646
add esp, 8
mov eax, dword [ebp - 0x234]
inc esi
shr eax, 2
cmp esi, eax
jb 0x404090
test edi, edi
je 0x404170
push edi
call fcn.0042c65d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c4ee
mov esp, ebp
pop ebp
ret
call fcn.0042d740
int3