joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1201dc28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1602572c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xc], ebx
xor edi, edi
call fcn.1201da2a
xor esi, esi
mov eax, dword [esi*4 + 0x160279a8]
test eax, eax
je 0x1201dc60
add eax, 0x2c
cmp eax, dword [ebx]
je 0x1201dd05
inc esi
cmp esi, 0x40
jb 0x1201dc4a
xor esi, esi
test esi, esi
je 0x1201dce7
push dword [esi + 4]
push dword [esi]
call fcn.1201de73
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 8], edi
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1201dce2
mov edx, dword [esi]
xor ecx, ecx
cmp dword [esi + 4], ecx
jbe 0x1201dcaf
mov al, byte [esi + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [esi + 4]
jb 0x1201dca2
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 0xc]
xor edi, edi
mov eax, dword [esi]
inc edi
push 0
push esi
mov dword [ecx], eax
call fcn.1201e106
pop ecx
pop ecx
call fcn.1201dd11
push 0x16027990
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1201e143
mov esp, ebp
pop ebp
ret
mov esi, dword [esi*4 + 0x160279a8]
jmp 0x1201dc68

Function at 0x1201dd11
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x16027ab0], esi
jbe 0x1201dd63
mov eax, dword [0x16027aac]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x16027aac]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x16027ab0]
jb 0x1201dd3e
push dword [0x16027aac]
call fcn.12027e75
and dword [0x16027aac], 0
and dword [0x16027ab0], 0
pop ecx
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1201ddc7
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x1602572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x1201de61
test esi, esi
je 0x1201de61
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1201de58
mov dword [ebp - 0x2d0], 0x10001
xor ebx, ebx
jmp 0x1201de44
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x1201de61
add eax, dword [ebp + 0x10]
cmp dword [ebp - 0x218], eax
jae 0x1201de61
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp ebx, 3
jge 0x1201de58
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
inc ebx
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1201de12
jmp 0x1201de61
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1201e143
mov esp, ebp
pop ebp
ret

Function at 0x1201dfff
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1602572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], eax
cmp dword [0x16027aa8], 0x40
jae 0x1201e0f5
push esi
lea esi, [edx + ecx]
add ecx, dword [ebp + 0x14]
push edi
cmp ecx, 0x80000000
lea edi, [ebp - 0x44]
push 9
lea eax, [ecx + 0x7ff80000]
mov edx, 0xfff80000
cmovb edx, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
mov esi, dword [ebp - 0x48]
cmovb edi, eax
cmp edi, esi
jae 0x1201e0f3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1201e0ce
cmp dword [ebp - 0x10], 0x10000
jne 0x1201e0c2
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x1201e0c5
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x1201e0c5
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1201e0d2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
add edi, eax
cmp edi, esi
jb 0x1201e077
test ebx, ebx
je 0x1201e0f3
xor eax, eax
cmp dword [eax*4 + 0x160279a8], 0
je 0x1201e0e6
inc eax
cmp eax, 0x40
jb 0x1201e0d4
jmp 0x1201e0f3
inc dword [0x16027aa8]
mov dword [eax*4 + 0x160279a8], ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1201e143
mov esp, ebp
pop ebp
ret

Function at 0x1202b265
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1202b16a
Function at 0x12035db6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x42c650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x42c672
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42c679
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42c668
mov eax, 1
add ebx, ebx
jne 0x42c68b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42c680
jne 0x42c69c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c680
xor ecx, ecx
sub eax, 3
jb 0x42c6b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42c722
mov ebp, eax
add ebx, ebx
jne 0x42c6bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42c6c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42c6ec
inc ecx
add ebx, ebx
jne 0x42c6d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42c6cd
jne 0x42c6e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c6cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42c70c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42c6fd
jmp 0x42c66e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42c70c
add edi, ecx
jmp 0x42c66e
pop esi
mov edi, esi
mov ecx, 0x95f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42c72a
cmp byte [edi], 9
jne 0x42c72a
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 0x42c72f
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42c79e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c1b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c21c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42c75c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c224]
or eax, eax
je 0x42c798
mov dword [ebx], eax
add ebx, 4
jmp 0x42c779
call dword [esi + 0x2c220]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42c7cf
cmp al, 0xef
ja 0x42c7c2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42c7a4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42c7b1
mov ebp, dword [esi + 0x2c228]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x42c803
sub esp, 0xffffff80
jmp 0x405361
Function at 0x409b70
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x41e028]
mov eax, dword [esi + 0x144]
cmp eax, ecx
je 0x409ba4
mov ecx, dword [esp + 0x14]
mov dword [ecx], 1
mov edx, dword [0x41e028]
push edx
mov ecx, esi
call fcn.00408ec0
mov eax, 1
pop esi
ret 0x10
mov eax, dword [esi + 4]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov ecx, dword [esi + 0x24]
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push ecx
call ebp
mov ebx, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x409bd9
mov edx, dword [esi + 0x24]
push 0
push edx
call edi
mov eax, dword [esi + 0x24]
push eax
call ebx
mov ecx, dword [esi + 0xe0]
push ecx
call ebp
test eax, eax
je 0x409bef
mov edx, dword [esi + 0xe0]
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call ebx
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 0x10

Function at 0x409c10
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x121]
test al, al
je 0x409c26
mov eax, 1
pop esi
ret 0x10
mov eax, dword [esi + 0xe0]
push edi
push eax
mov byte [esi + 0x121], 1
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x409c50
mov ecx, dword [esi + 0xe0]
push 0
push ecx
call edi
mov edx, dword [esi + 0x24]
push 5
push edx
call edi
mov eax, dword [esi + 4]
push 5
push eax
call edi
pop edi
mov eax, 1
pop esi
ret 0x10

Function at 0x40cf20
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x68
push ebx
push ebp
push esi
push edi
push 0x41c6d0
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cf4a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x68
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40cf84
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push 0
push 0
push esi
call ebp
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea ecx, [esp + 0x40]
push ecx
call fcn.0040cff0
push ebx
lea edx, [esp + 0x48]
push edi
push edx
call fcn.0040d020
lea eax, [esp + 0x50]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.0040d9c0
mov edx, dword [esp + 0xb8]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.0040da80
add esp, 0x40
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret

Function at 0x40cff0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x40dad0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x664
push ebx
mov ebx, dword [esp + 0x66c]
push esi
lea eax, [esp + 0x464]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [esp + 0x464]
push 0x41c6d8
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0xc]
lea eax, [esp + 0x464]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
je 0x40dbe3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [esp + 0x40], 0x2e
jne 0x40db51
mov ax, word [esp + 0x42]
test ax, ax
je 0x40dbbf
cmp ax, 0x2e
jne 0x40db51
cmp word [esp + 0x44], 0
je 0x40dbbf
lea ecx, [esp + 0x264]
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea edx, [esp + 0x40]
lea eax, [esp + 0x264]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [esp + 0x14], 0x10
je 0x40db8c
lea ecx, [esp + 0x264]
push ecx
call fcn.0040dad0
add esp, 4
jmp 0x40dbbf
lea edx, [esp + 0x264]
mov esi, 0xa
push edx
call edi
test eax, eax
jne 0x40dbbb
mov eax, esi
dec esi
test eax, eax
jle 0x40dbbb
push 0x3e8
call ebp
lea ecx, [esp + 0x264]
push ecx
call edi
test eax, eax
je 0x40db9f
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40db31
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x664
ret
Function at 0x4116e0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0x618
lea eax, [esp + 0x210]
push ebx
push esi
push edi
push 0x104
push eax
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea edx, [esp + 0x21c]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
lea ecx, [esp + 0x14]
push str.first
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea esi, [edi + 0x208]
add edi, 0x410
push edi
push esi
call ebx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411796
push eax
push 0x80
push 2
push eax
push eax
lea eax, [esp + 0x28]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, eax
push 1
push 0x41cc44
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41cc48
push esi
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea edx, [esp + 0xc]
push 0
lea eax, [esp + 0x428]
push edx
push eax
push esi
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.SHLWAPI.dll_UrlEscapeW]
lea ecx, [esp + 0x424]
push ecx
push esi
call ebx
pop edi
pop esi
pop ebx
add esp, 0x618
ret
Function at 0x411e70
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
test esi, esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
je 0x411eec
mov ebp, dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
dec ecx
test edx, edx
mov dword [esp + 0x1c], ecx
jle 0x411eec
push 0
push 0
push 0
push 0
push esi
call ebp
test eax, eax
je 0x411e98
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x20000013
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
call edi
test eax, eax
je 0x411e98
cmp dword [esp + 0xc], 0xc8
je 0x411eec
xor eax, eax
jmp 0x411e98
pop edi
pop esi
pop ebp
add esp, 8
ret

Function at 0x414a40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor esi, esi
mov edx, 0x41e940
mov eax, esi
mov ecx, 8
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec ecx
jne 0x414a50
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, 0x41ed40
jb 0x414a49
cmp esi, 0x800
jae 0x414aaa
lea ecx, [esi*4 + 0x41e940]
mov eax, dword [ecx - 0x400]
add ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x41e940]
xor edx, eax
cmp ecx, 0x420940
mov dword [ecx - 4], edx
jb 0x414a82
mov dword [0x41e928], fcn.00415af0
call fcn.00415cd0
pop edi
pop esi
test eax, eax
jne 0x414ac9
mov dword [0x41e928], 0x415ba0
ret

Function at 0x415af0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov eax, ecx
test edi, edi
mov ecx, edx
jbe 0x415b24
test cl, 3
je 0x415b24
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [esi + edx*4]
xor eax, edx
dec edi
inc ecx
test edi, edi
ja 0x415b03
cmp edi, 4
jb 0x415b72
push ebp
mov ebp, edi
shr ebp, 2
mov edx, dword [ecx]
xor ebx, ebx
xor eax, edx
xor edx, edx
mov dword [esp + 0x14], eax
mov dl, ah
mov bl, byte [esp + 0x16]
sub edi, 4
mov edx, dword [esi + edx*4 + 0x800]
add ecx, 4
xor edx, dword [esi + ebx*4 + 0x400]
mov ebx, eax
and ebx, 0xff
shr eax, 0x18
xor edx, dword [esi + ebx*4 + 0xc00]
mov ebx, dword [esi + eax*4]
xor edx, ebx
dec ebp
mov eax, edx
jne 0x415b2f
pop ebp
test edi, edi
jbe 0x415b90
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [esi + edx*4]
xor eax, edx
inc ecx
dec edi
jne 0x415b76
pop edi
pop esi
pop ebx
ret 8
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 0x431006
Capabilities:
Encode data using xor

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

Disassembly:
mov eax, 0x2110
call fcn.00403740
mov eax, dword [0x41d890]
mov dword [esp + 0x210c], eax
lea eax, [esp]
push eax
push 0x1000
lea ecx, [esp + 0x1010]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x401103
mov ecx, dword [esp + 0x210c]
call fcn.00403727
add esp, 0x2110
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
shr edx, 2
xor edi, edi
test edx, edx
jle 0x401181
mov ebx, dword [esp + 0x2124]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [esp + edi*4 + 0x1018]
push eax
push 0
push 0x410
call ebp
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x20]
mov esi, eax
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov ecx, dword [esp + 0x18]
push 0x104
lea eax, [esp + 0x201c]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea edx, [esp + 0x2018]
push ebx
push edx
call fcn.00403670
add esp, 8
test eax, eax
jne 0x40119a
mov eax, dword [esp + 0x10]
inc edi
shr eax, 2
cmp edi, eax
jl 0x401120
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210c]
call fcn.00403727
add esp, 0x2110
ret
mov eax, dword [esp + edi*4 + 0x1018]
mov ecx, dword [esp + 0x211c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00403727
add esp, 0x2110
ret

Function at 0x4011c0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x1110
call fcn.00403740
mov eax, dword [0x41d890]
push edi
mov dword [esp + 0x1110], eax
lea eax, [esp + 4]
push eax
push 0x1000
lea ecx, [esp + 0x18]
push ecx
call sub.PSAPI.DLL_EnumProcesses
mov eax, dword [esp + 4]
xor edi, edi
test eax, 0xfffffffc
jbe 0x4012a2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [esp + 0x1120]
push esi
lea esp, [esp]
mov edx, dword [esp + edi*4 + 0x1c]
push edx
push 0
push 0x411
call ebx
mov esi, eax
test esi, esi
je 0x40126c
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40126c
mov eax, dword [esp + 0x14]
push 0x100
lea edx, [esp + 0x1020]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
push ebp
lea ecx, [esp + 0x1020]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40128f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
inc edi
shr edx, 2
cmp edi, edx
jb 0x401210
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x110c]
call fcn.00403727
add esp, 0x1110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1110]
pop edi
call fcn.00403727
add esp, 0x1110
ret