joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4096fe
mov dword [eax], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x4097a6
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4097a6
push ebx
push ebp
push esi
push edi
push 0x161
push str.C:projectsToolsPatcher_bnupdate_srcfile.cpp
push eax
mov dword [ecx], 0
call fcn.004103b0
push 0
push 0x8000000
push 3
push 0
push 1
mov ebp, eax
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4097c6
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4097c6
cmp esi, 0xffffffff
je 0x4097c6
push 0
push 0x17b
push str.C:projectsToolsPatcher_bnupdate_srcfile.cpp
push esi
call fcn.0040e9d0
push 0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4097b0
cmp esi, dword [esp + 0x14]
jne 0x4097b0
mov eax, dword [esp + 0x1c]
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx], edi
je 0x4097c6
mov dword [eax], esi
jmp 0x4097c6
push 0x57
call fcn.00411cb0
xor eax, eax
ret
test edi, edi
je 0x4097c6
push 0
push 0x187
push str.C:projectsToolsPatcher_bnupdate_srcfile.cpp
push edi
call fcn.0040fb50
test ebp, ebp
je 0x4097dc
push 0
push 0x188
push str.C:projectsToolsPatcher_bnupdate_srcfile.cpp
push ebp
call fcn.0040fb50
cmp ebx, 0xffffffff
je 0x4097e8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
pop edi
pop esi
xor eax, eax
test ecx, ecx
pop ebp
setne al
pop ebx
ret

Function at 0x409aa0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call fcn.00409a70
add esp, 8
test eax, eax
jne 0x409abb
pop edi
pop esi
ret
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409ad6
pop edi
pop esi
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
pop edi
sete al
pop esi
ret
Function at 0x40cbe0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
shr edi, 2
test edi, edi
mov eax, 0xeeeeeeee
je 0x40cc3b
mov ecx, dword [esp + 0x10]
push ebx
push esi
nop
lea esp, [esp]
mov esi, ecx
and esi, 0xff
add eax, dword [esi*4 + 0x440058]
mov ebx, dword [edx]
lea esi, [eax + ecx]
imul eax, eax, 0x21
xor ebx, esi
mov esi, ebx
lea eax, [eax + esi + 3]
mov esi, ecx
not esi
shl esi, 0x15
add esi, 0x11111111
shr ecx, 0xb
mov dword [edx], ebx
add edx, 4
or ecx, esi
dec edi
jne 0x40cc00
pop esi
pop ebx
pop edi
ret

Function at 0x40cc40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
shr edi, 2
test edi, edi
mov eax, 0xeeeeeeee
je 0x40cc98
mov ecx, dword [esp + 0x14]
push ebx
nop
lea esp, [esp]
mov edx, dword [esi]
mov ebx, ecx
and ebx, 0xff
add eax, dword [ebx*4 + 0x440058]
lea ebx, [eax + ecx]
imul eax, eax, 0x21
xor ebx, edx
lea eax, [eax + edx + 3]
mov edx, ecx
not edx
shl edx, 0x15
add edx, 0x11111111
shr ecx, 0xb
mov dword [esi], ebx
add esi, 4
or ecx, edx
dec edi
jne 0x40cc60
pop ebx
pop edi
pop esi
ret

Function at 0x40ced0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

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

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
je 0x40d9ed
mov eax, dword [esi]
push ebx
mov bl, byte [esp + 0x18]
test bl, 1
je 0x40d9fa
or eax, 0xffffffff
test bl, 2
je 0x40da2f
mov edx, dword [esp + 0x10]
test edx, edx
mov ecx, dword [esp + 0xc]
je 0x40da2f
push ebp
push edi
lea ecx, [ecx]
movzx ebp, byte [ecx]
mov edi, eax
and edi, 0xff
xor edi, ebp
mov edi, dword [edi*4 + 0x439b40]
shr eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x40da10
pop edi
pop ebp
test bl, 4
pop ebx
je 0x40da37
not eax
test esi, esi
je 0x40da3d
mov dword [esi], eax
pop esi
ret
Function at 0x40f590
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, dword [edi]
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
xor ebp, ebp
cmp esi, eax
mov dword [esp + 0x10], edi
jae 0x40f622
mov edi, edi
movzx edi, word [esi]
xor eax, eax
mov al, byte [esi + 3]
add edi, esi
test al, 0x82
je 0x40f5c7
and eax, 0x80
or ebp, eax
jmp 0x40f613
test al, 0x40
jne 0x40f60a
mov eax, dword [0x443278]
test eax, eax
lea edx, [ebx + 0x6c]
jne 0x40f5e7
mov eax, dword [ebx + 0x68]
push eax
mov ecx, 0x8510007e
call fcn.0040f650
jmp 0x40f60a
mov ecx, dword [ebx + 0x68]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.Storm_Error_:_memory_never_released_____s___i_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, esi
mov ecx, ebx
call fcn.0040f310
cmp edi, dword [ebx + 0x20]
mov esi, edi
jb 0x40f5b0
test ebp, ebp
jne 0x40f636
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0040ed60
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xcc
ret

Function at 0x4106e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4106f6
push 0x57
call fcn.00411cb0
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x410703
mov eax, 0x7fed7fed
mov cl, byte [esp + 0xc]
push ebx
push ebp
test cl, 1
movzx ecx, byte [esi]
push edi
mov edx, 0xeeeeeeee
je 0x410751
test ecx, ecx
je 0x41079b
nop
add eax, edx
imul edx, edx, 0x21
mov edi, ecx
mov ebx, ecx
shr edi, 4
mov edi, dword [edi*4 + 0x431560]
and ebx, 0xf
mov ebp, dword [ebx*4 + 0x431560]
inc esi
add edx, ecx
movzx ecx, byte [esi]
sub edi, ebp
xor eax, edi
test ecx, ecx
lea edx, [edx + eax + 3]
jne 0x410720
jmp 0x41079b
test ecx, ecx
je 0x41079b
inc esi
cmp ecx, 0x61
jb 0x410763
cmp ecx, 0x7a
ja 0x410763
sub ecx, 0x20
cmp ecx, 0x2f
jne 0x41076d
mov ecx, 0x5c
add eax, edx
imul edx, edx, 0x21
mov edi, ecx
mov ebx, ecx
shr edi, 4
mov edi, dword [edi*4 + 0x431560]
and ebx, 0xf
mov ebp, dword [ebx*4 + 0x431560]
add edx, ecx
movzx ecx, byte [esi]
sub edi, ebp
xor eax, edi
test ecx, ecx
lea edx, [edx + eax + 3]
jne 0x410755
test eax, eax
pop edi
pop ebp
pop ebx
jne 0x4107a7
mov eax, 1
pop esi
ret 0xc
Function at 0x4117d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4117e7
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4117fd
cmp eax, 5
je 0x4117fd
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41180d
xor eax, eax
pop esi
ret
movzx eax, al
shr eax, 4
and eax, 1
pop esi
ret

Function at 0x411990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
xor eax, eax
push esi
push edi
mov ebx, edx
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + edi + 4]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 8], ebx
call fcn.00409be0
mov ecx, esp
xor esi, esi
test edi, edi
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
mov eax, 2
mov byte [ebp - 1], 0
jbe 0x411a04
jmp 0x4119e0
mov ebx, dword [ebp - 8]
nop
lea esp, [esp]
mov dl, byte [esi + ebx]
cmp dl, 0xa
jne 0x4119f3
cmp byte [ebp - 1], 0xd
je 0x4119f3
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], dl
inc eax
inc esi
cmp esi, edi
mov byte [ebp - 1], dl
jb 0x4119d8
cmp dl, 0xa
je 0x411a0e
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], 0xa
inc eax
push 0
lea edx, [ebp - 0x10]
push edx
push eax
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411bc0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x442f48]
sub esp, 0x1c8
test eax, eax
jne 0x411bef
push 0x442f4c
push 0
push str.Debug_Memory
push str.Internal
mov dword [0x442f48], 1
call fcn.00417a00
mov eax, dword [0x442f4c]
test eax, eax
je 0x411ca3
mov eax, dword [esp + 0x1d0]
test eax, eax
je 0x411c2e
cmp byte [eax], 0
je 0x411c2e
push eax
mov eax, dword [esp + 0x1d0]
push eax
push str._s___s_
lea ecx, [esp + 0xc]
push 0x100
push ecx
call fcn.004104c0
add esp, 0x14
jmp 0x411c4d
mov edx, dword [esp + 0x1cc]
push edx
push 0x43a6e4
lea eax, [esp + 8]
push 0x100
push eax
call fcn.004104c0
add esp, 0x10
mov eax, dword [0x44327c]
test eax, eax
jne 0x411c76
push 1
push 1
push 0
push 0xfffffffffffffffd
lea ecx, [esp + 0x10]
push ecx
push 0x8510007f
call fcn.00410ea0
add esp, 0x1c8
ret 8
lea edx, [esp]
push edx
push str.Storm_Error_:_handle_never_released_____s_n
lea eax, [esp + 0x108]
push 0xc8
push eax
call fcn.004104c0
add esp, 0x10
lea ecx, [esp + 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1c8
ret 8

Function at 0x412840
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x442f80]
test eax, eax
jne 0x412882
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x442f54
push 0
push 0
push 0x412890
push 0
push 0
mov dword [0x442f8c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push eax
mov dword [0x442f80], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret
Function at 0x41d1a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
inc ecx
test eax, eax
mov dword [edi + 4], ecx
jne 0x41d2e2
push 0x4432cc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4432cc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41d2ae
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StackWalk
push esi
call ebx
test eax, eax
mov dword [edi + 8], eax
je 0x41d2a7
push str.SymFunctionTableAccess
push esi
call ebx
test eax, eax
mov dword [edi + 0xc], eax
je 0x41d2a7
push str.SymGetLineFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x10], eax
je 0x41d2a7
push str.SymGetModuleBase
push esi
call ebx
test eax, eax
mov dword [edi + 0x14], eax
je 0x41d2a7
push str.SymGetModuleInfo
push esi
call ebx
test eax, eax
mov dword [edi + 0x18], eax
je 0x41d2a7
push str.SymGetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x1c], eax
je 0x41d2a7
push str.SymGetSymFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x20], eax
je 0x41d2a7
push str.SymInitialize
push esi
call ebx
test eax, eax
mov dword [edi + 0x24], eax
je 0x41d2a7
push str.SymCleanup
push esi
call ebx
test eax, eax
mov dword [edi + 0x28], eax
je 0x41d2a7
push str.SymSetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x2c], eax
je 0x41d2a7
push str.SymEnumerateModules
push esi
call ebx
test eax, eax
mov dword [edi + 0x30], eax
je 0x41d2a7
push str.SymEnumerateSymbols
push esi
call ebx
test eax, eax
mov dword [edi + 0x34], eax
jne 0x41d2ca
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4432cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4432cc
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push str.MiniDumpWriteDump
push esi
call ebx
push 0x4432cc
mov dword [edi + 0x38], eax
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x41d5e0
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, 0x4432e4
jmp fcn.0041d1a0

Function at 0x41d820
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
mov esi, edx
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x41d857
mov cl, byte [eax + str._unknown_]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x41d848
lea edx, [esp + 0xc]
push edx
push str.User:
push str.__10s_s
push esi
call edi
add esp, 0x10
pop edi
pop esi
add esp, 0x108
ret
Function at 0x41d880
Capabilities:
Get hostname

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
mov esi, edx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x41d8b4
mov cl, byte [eax + str._unknown_]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x41d8a5
lea edx, [esp + 0xc]
push edx
push str.Computer:
push str.__10s_s
push esi
call edi
add esp, 0x10
pop edi
pop esi
add esp, 0x14
ret
Function at 0x41db20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
push esi
mov esi, dword [esp + 0x68]
mov ebp, esi
shr ebx, 4
and ebp, 0xf
test eax, eax
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x70], ebx
je 0x41dbb5
mov ecx, 0x13
mov eax, 0x20202020
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, 0x64
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov cl, 0x2a
mov edi, ebp
lea eax, [esp + ebp + 0x22]
mov byte [esp + 0x18], cl
lea eax, [eax + ebp*2]
mov byte [esp + 0x66], 0
mov byte [esp + 0x1a], 0x3d
mov byte [esp + 0x1c], 0x61
mov byte [esp + 0x1f], 0x72
shr edi, 2
add eax, edi
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [esp + ebp + 0x56], cl
lea ecx, [esp + 0x18]
push ecx
push 0x43a6e4
push edx
call dword [esp + 0x1c]
add esp, 0xc
test ebp, ebp
je 0x41dbb5
sub esi, ebp
inc ebx
mov dword [esp + 0x70], ebx
test ebx, ebx
jbe 0x41dd00
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea edx, [esp + 0x1c]
push str._08X:
push edx
call ebx
add esp, 0xc
push 0x10
push esi
lea edi, [esp + eax + 0x20]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41dcd9
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push ecx
push edx
push eax
push str._02X__02X__02X__02X
push edi
call ebx
movzx ecx, byte [esi + 7]
movzx edx, byte [esi + 6]
push ecx
movzx ecx, byte [esi + 4]
add edi, eax
movzx eax, byte [esi + 5]
push edx
push eax
push ecx
push str._02X__02X__02X__02X
push edi
call ebx
movzx edx, byte [esi + 0xb]
movzx ecx, byte [esi + 9]
push edx
movzx edx, byte [esi + 8]
add edi, eax
movzx eax, byte [esi + 0xa]
push eax
push ecx
push edx
push str._02X__02X__02X__02X
push edi
call ebx
movzx ecx, byte [esi + 0xe]
movzx edx, byte [esi + 0xd]
add edi, eax
movzx eax, byte [esi + 0xf]
add esp, 0x48
push eax
movzx eax, byte [esi + 0xc]
push ecx
push edx
push eax
push str._02X__02X__02X__02X
push edi
call ebx
add edi, eax
mov eax, edi
add esp, 0x18
sub eax, esi
mov ebp, esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], 0x10
movzx ecx, byte [ebp]
push ecx
call dword [sym.imp.MSVCRT.dll_isprint]
add esp, 4
test eax, eax
je 0x41dc8e
mov al, byte [ebp]
jmp 0x41dc90
mov al, 0x2e
mov edx, dword [esp + 0x74]
mov byte [edx + ebp], al
mov eax, dword [esp + 0x6c]
inc ebp
dec eax
mov dword [esp + 0x6c], eax
jne 0x41dc77
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x43a6e4
push ecx
mov byte [edi + 0x10], 0
call dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
add esp, 0xc
add esi, 0x10
dec eax
mov dword [esp + 0x70], eax
jne 0x41dbc3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
mov eax, str._cant_read_from_this_address_
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x41dce0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x43a6e4
push eax
call dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
Function at 0x41e3a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
push ebp
mov ebx, edx
push str._unknown_
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0x1c
lea edx, [esp + 0x14]
push edx
mov dword [eax], 0
push esi
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41e48a
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x41e3f7
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41e41b
push ebp
push str._unknown_
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
test edi, edi
je 0x41e48a
cmp word [edi], 0x5a4d
jne 0x41e48a
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x41e48a
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, 0x4550
jne 0x41e48a
movzx ebp, word [eax + 6]
movzx ecx, word [eax + 0x14]
sub esi, edi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x41e48a
lea eax, [ecx + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov edi, dword [eax - 4]
ja 0x41e45f
mov ecx, edx
cmp esi, edi
jb 0x41e469
add ecx, edi
cmp esi, ecx
jbe 0x41e47b
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x41e451
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
inc ebx
sub esi, edi
mov dword [edx], ebx
mov dword [eax], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x41e560
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push 0x443324
mov esi, edx
mov edi, ecx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x41e5d4
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push 0x41e5f0
push ebx
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x41e5d4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x1c]
push 0x443324
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret 8
Function at 0x41e760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov esi, ecx
je 0x41e771
mov eax, dword [edi]
mov bl, byte [esp + 0x14]
test bl, 1
je 0x41e77d
or eax, 0xffffffff
test bl, 2
je 0x41e7ae
test edx, edx
mov ecx, esi
je 0x41e7ae
push ebp
lea esp, [esp]
movzx ebp, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, ebp
mov esi, dword [esi*4 + 0x43b9f8]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x41e790
pop ebp
test bl, 4
je 0x41e7b5
not eax
test edi, edi
je 0x41e7bb
mov dword [edi], eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4254f0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret
Function at 0x42b804
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [eax + 0x25c]
test ecx, ecx
jle 0x429cec
push ebx
mov ecx, 0xfffffff8
push esi
mov esi, dword [eax + 0x4c]
mov bl, byte [eax + 0x25b]
mov edx, dword [eax + 0x2c]
mov byte [edx + esi], bl
mov edx, dword [eax + 0x4c]
mov esi, dword [eax + 0x25c]
mov ebx, dword [eax + 0x258]
inc edx
add esi, ecx
mov dword [eax + 0x4c], edx
shl ebx, 8
mov edx, esi
test edx, edx
mov dword [eax + 0x258], ebx
mov dword [eax + 0x25c], esi
jg 0x429cb1
pop esi
pop ebx
ret
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
xor ebx, ebx
cmp eax, ebx
push edi
mov byte [esp + 0xc], dl
jle 0x42b84d
mov ecx, dword [esi + 0x264]
mov eax, dword [esi + 0x260]
mov edx, ecx
shr edx, 0x1f
add ecx, ecx
not eax
or edx, ecx
xor edx, eax
mov dword [esi + 0x260], eax
cmp dword [esi + 0x26c], 1
mov dword [esi + 0x264], edx
jle 0x42b846
mov dword [esi + 0x4c], ebx
mov ecx, esi
call fcn.00430140
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x26c]
add edx, ecx
cmp eax, 1
mov dword [esi + 0x2c], edx
jne 0x42b8a6
mov ecx, 0x42
mov edi, 8
mov eax, esi
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x258], ebx
call fcn.00429cf0
mov ecx, 0x5a
call fcn.00429cf0
mov ecx, 0x68
call fcn.00429cf0
mov al, byte [esi + 0x270]
add al, 0x30
movzx ecx, al
mov eax, esi
call fcn.00429cf0
cmp dword [esi + 0x44], ebx
jle 0x42b948
mov ecx, 0x31
mov edi, 8
mov eax, esi
call fcn.00429cf0
mov ecx, 0x41
call fcn.00429cf0
mov ecx, 0x59
call fcn.00429cf0
mov ecx, 0x26
call fcn.00429cf0
mov ecx, 0x53
call fcn.00429cf0
mov ecx, 0x59
call fcn.00429cf0
mov ebx, dword [esi + 0x260]
mov ecx, ebx
shr ecx, 0x18
mov dword [esp + 0x10], ebx
call fcn.00429cf0
movzx ecx, byte [esp + 0x12]
call fcn.00429cf0
movzx ecx, bh
call fcn.00429cf0
mov ecx, ebx
and ecx, 0xff
call fcn.00429cf0
xor ecx, ecx
mov edi, 1
call fcn.00429cf0
mov ecx, dword [esi + 0x1c]
mov edi, 0x18
call fcn.00429cf0
call fcn.00429df0
call fcn.00429fb0
mov al, byte [esp + 0xc]
test al, al
je 0x42b9d5
mov ecx, 0x17
mov edi, 8
mov eax, esi
call fcn.00429cf0
mov ecx, 0x72
call fcn.00429cf0
mov ecx, 0x45
call fcn.00429cf0
mov ecx, 0x38
call fcn.00429cf0
mov ecx, 0x50
call fcn.00429cf0
mov ecx, 0x90
call fcn.00429cf0
mov ebx, dword [esi + 0x264]
mov ecx, ebx
shr ecx, 0x18
mov dword [esp + 0x10], ebx
call fcn.00429cf0
movzx ecx, byte [esp + 0x12]
call fcn.00429cf0
movzx ecx, bh
call fcn.00429cf0
mov ecx, ebx
and ecx, 0xff
call fcn.00429cf0
pop edi
pop esi
pop ebx
add esp, 8
jmp 0x429ca0
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x403d40
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x834
cmp dword [0x5e8538], 0x400
push ebx
push esi
push edi
jne 0x403df5
push 0
lea eax, [esp + 0x44]
push eax
push 0x403698
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0
call fcn.00404039
add esp, 4
push 0
push 0
call fcn.0040454c
push 0
push 0
call fcn.00403ff9
push 0
push 0
call fcn.004042fc
push 0
call fcn.0040476c
add esp, 0x1c
push 0
push 0
push 0
call fcn.00404683
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.00403e90
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00403ed0
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00404210
fstp st(0)
push 0
call fcn.004047e0
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
lea ecx, [ecx]
push 0
push 0
push 0
push 0
call edi
cmp esi, 0x4f45cc2
jg 0x403e1b
inc esi
cmp esi, 0x33cd5b9
jl 0x403e00
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
call edi
call ebx
cmp esi, 0x12e8236
jg 0x403e45
inc esi
cmp esi, 0x2ff8d
jl 0x403e30
mov ecx, dword [0x444c6c]
mov dword [0x5e8538], ecx
call fcn.00403a30
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x2ec37
mov ebx, 0x51f
cmp dword [0x5e8538], ebx
jne 0x403e77
lea edx, [esp + 0x40]
push edx
push 0
call esi
dec edi
jne 0x403e66
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40935c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441420]
jne 0x409366
repz ret
jmp fcn.0040def2