joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022eb
Capabilities:
Create process on windows
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov ecx, dword [ebp + 8]
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004071dc
add esp, 0xc
push str..EXE
lea eax, [ebp - 0x218]
push eax
xor eax, eax
inc eax
call fcn.004096c9
neg eax
sbb eax, eax
inc eax
xor edi, edi
test byte [esi + 4], 0x10
jne 0x402345
cmp eax, edi
jne 0x40237f
xor eax, eax
inc eax
jmp 0x40247e
cmp eax, edi
jne 0x40237f
lea eax, [ebp - 0x530]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
lea eax, [ebp - 0x530]
push eax
push edi
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
jmp 0x40247e
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, ebx
call fcn.00407db3
add esp, 0xc
test eax, eax
je 0x4023c6
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
push str.ZIP_SOURCE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00409ca5
cmp dword [esi + 0x11d], edi
jbe 0x402407
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [ebp - 4]
push str._s__ZIP_SOURCE__s_
push eax
call fcn.0040a2da
add esp, 0x10
mov eax, dword [0x4180b8]
xor ecx, ecx
cmp eax, edi
je 0x402414
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x402420
mov eax, 0x4112ea
push ecx
push 1
lea ecx, [ebp - 0x428]
push ecx
push eax
push dword [ebp + 8]
call fcn.0040b55f
add esp, 0x14
cmp dword [ebp + 0x10], edi
mov esi, eax
je 0x402467
mov ebx, 0x103
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x402457
mov dword [ebp - 8], edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], ebx
je 0x402445
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
call fcn.00409c66
xor eax, eax
cmp esi, edi
setne al
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4026d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push str.INFOWDZ
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4026f1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4026f4
xor eax, eax
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x121
push edi
push eax
push esi
call sub.MSVCRT.dll_memcpy
lea eax, [esi + 0x18]
push eax
call fcn.004024ad
add esp, 0x10
xor eax, eax
cmp dword [esi], edi
pop edi
sete al
ret

Function at 0x4060b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
cmp dword [eax + 8], 1
mov dword [ebp - 8], edi
je 0x4060cc
call fcn.0040a8db
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [edi + 0x118]
add dword [eax], ecx
adc dword [eax + 4], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x4060ff
mov dword [eax], ecx
cmp dword [ebp + 0xc], esi
jne 0x406166
mov eax, dword [edi + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x406112
mov dword [eax + 8], ecx
mov esi, dword [edi + 8]
push ebx
push 1
call fcn.0040a83a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi + 8]
call fcn.0040ae67
push dword [edi + 0x114]
mov esi, dword [edi + 8]
push str._IXStream__Handle__1_p__
call fcn.0040ab7f
lea esi, [edi + 0x12c]
push dword [esi]
mov edi, dword [edi + 8]
push 0x6d68
call fcn.0040a96e
mov eax, dword [ebp - 8]
mov ebx, dword [esi]
mov eax, dword [eax + 8]
add esp, 0x10
push 1
call fcn.0040ac33
pop ebx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
leave
ret 0xc
Function at 0x40616f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
xor ebx, ebx
inc ebx
cmp dword [eax + 8], ebx
mov dword [ebp - 0xc], edi
je 0x40618d
call fcn.0040a8db
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp esi, ecx
jne 0x40619e
mov dword [ebp - 8], ebx
lea esi, [ebp - 0x10]
jmp 0x4061a1
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [esi], ecx
push dword [edi + 0x114]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esi]
cmp dword [ebp + 0xc], 0
jmp 0x406206
cmp dword [ebp - 4], 0
jne 0x40620b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4061e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x40620b
mov eax, dword [esi]
sub dword [ebp + 0x10], eax
add dword [ebp + 8], eax
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [edi + 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [esi]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
ja 0x4061c3
lea eax, [edi + 0x118]
mov dword [esi], ebx
add dword [eax], ebx
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x406233
cmp dword [ebp - 8], 0
je 0x4062ce
cmp ebx, dword [ebp + 0xc]
je 0x4062ce
mov eax, dword [edi + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x406241
mov dword [eax + 8], ecx
mov esi, dword [edi + 8]
push 1
call fcn.0040a83a
cmp dword [ebp - 4], 0
je 0x406263
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
and dword [ecx + 0x61], 0
lea edx, [ecx + 0x65]
push edx
call dword [eax + 0x18]
jmp 0x406271
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi + 8]
call fcn.0040ae67
push dword [edi + 0x114]
mov esi, dword [edi + 8]
push str._IXStream__Handle__1_p__
call fcn.0040ab7f
push dword [ebp - 8]
mov esi, dword [edi + 8]
push str._IXStream__bExact__1_d__
call fcn.0040ab7f
mov esi, dword [edi + 8]
push ebx
push dword [ebp + 0xc]
push str._IXStream__A_lire__1_u____lu__2_u__
call fcn.0040ab7f
lea esi, [edi + 0x12c]
push dword [esi]
mov edi, dword [edi + 8]
push 0x6d63
call fcn.0040a96e
mov eax, dword [ebp - 0xc]
mov ebx, dword [esi]
mov eax, dword [eax + 8]
add esp, 0x24
push 1
call fcn.0040ac33
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406d26
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
push 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ebx, [ebp - 0x11c]
push 0x105
mov dword [ebp - 8], eax
call fcn.00409780
mov esi, ebx
call fcn.00406f20
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebp - 0x11b]
push 0x5c
push eax
call esi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x406dfc
lea eax, [ebp - 0x11c]
cmp ebx, eax
jbe 0x406d96
cmp byte [ebx - 1], 0x3a
je 0x406dee
lea eax, [ebp - 0x11b]
cmp ebx, eax
jne 0x406df8
cmp byte [ebp - 0x11c], 0x5c
jne 0x406df8
push 0x5c
inc ebx
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x406e31
push 0x5c
inc eax
push eax
jmp 0x406df2
lea eax, [ebp - 0x11c]
push 0
push eax
mov byte [ebx], 0
call fcn.00406d03
test eax, eax
pop ecx
pop ecx
jne 0x406deb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x406e83
mov byte [ebx], 0x5c
inc ebx
push 0x5c
push ebx
call esi
pop ecx
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x406dbb
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x406e2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406e31
push 0
push dword [ebp + 8]
call fcn.00407251
test eax, eax
pop ecx
pop ecx
je 0x406e31
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0xc]
push dword [ebp - 4]
mov eax, edi
call fcn.00407d56
test eax, eax
pop ecx
je 0x406e7b
push 1
mov esi, edi
call fcn.0040a83a
push dword [ebp + 8]
push 0x6dde
call fcn.0040a956
mov ebx, dword [ebp + 8]
pop ecx
pop ecx
push 1
mov eax, edi
call fcn.0040ac33
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x11c]
mov dword [ebp + 8], eax
jmp 0x406e31

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
mov edi, eax
call esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebx], 0xffffffff
setne al
push eax
mov eax, edi
call fcn.00407d56
test eax, eax
pop ecx
je 0x4072fa
push 1
mov esi, edi
call fcn.0040a83a
push dword [ebp + 0xc]
push dword [ebx]
push 0x6de2
call fcn.0040a956
mov ebx, dword [ebp + 0xc]
add esp, 0xc
push 1
mov eax, edi
call fcn.0040ac33
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx], 0xffffffff
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x407307
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
push 1
mov esi, eax
call ebx
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 8], eax
call ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov eax, esi
call fcn.00407d56
test eax, eax
pop ecx
je 0x407378
push 1
call fcn.0040a83a
push dword [ebp + 8]
mov edi, esi
push dword [ebp + 0xc]
push 0x6de2
call fcn.0040a956
mov ebx, dword [ebp + 8]
add esp, 0xc
push 1
mov eax, esi
call fcn.0040ac33
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push 1
mov dword [esi + 8], eax
call edi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
call ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi], 0xffffffff
jne 0x407411
call ebx
cmp eax, 2
je 0x4073e6
call ebx
cmp eax, 0x12
je 0x4073e6
xor eax, eax
jmp 0x4073e9
xor eax, eax
inc eax
mov edi, dword [ebp + 0x10]
push eax
mov eax, edi
call fcn.00407d56
test eax, eax
pop ecx
je 0x40740d
push 1
mov esi, edi
call fcn.0040a83a
push 0x6de7
call fcn.0040a956
pop ecx
xor eax, eax
jmp 0x40743d
lea edi, [ebp - 0x144]
call fcn.0040758a
test eax, eax
jne 0x40742d
push dword [ebp + 0x10]
push esi
call fcn.00407442
pop ecx
pop ecx
jmp 0x40743d
lea eax, [ebp - 0x144]
mov edi, esi
call fcn.00407e84
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4076c2
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
jne 0x407753
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x407753
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 4
jne 0x407753
cmp dword [ebp - 0x94], ebx
jne 0x407753
cmp dword [ebp - 0x8c], 2
jne 0x407753
mov dword [ebp - 4], 0x64
push dword [ebp + 8]
dec dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
je 0x407753
cmp dword [ebp - 4], 0
jne 0x407737
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
xor eax, eax
test ebx, ebx
setne al
mov ebx, eax
push ebx
mov eax, edi
call fcn.00407d56
test eax, eax
pop ecx
je 0x40779c
push 1
mov esi, edi
call fcn.0040a83a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x6de6
call fcn.0040a956
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x408088
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edi
call fcn.004081d4
test eax, eax
jne 0x4080a8
mov eax, 0x4b0
jmp 0x4081ac
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 1
push 1
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x4081ac
mov eax, 0x640
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
jne 0x4080df
push 8
pop eax
jmp 0x4081ac
movsx eax, byte [edi]
push eax
call dword [sym.imp.MSVCRT.dll_toupper]
pop ecx
mov byte [ebp - 1], al
push ebx
mov eax, dword [ebp - 0x10]
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0xea
mov dword [ebp - 0x18], eax
jne 0x40812e
mov eax, dword [ebp - 0xc]
push eax
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.MSVCRT.dll_realloc]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4080ee
push 8
pop eax
jmp 0x4081ab
xor edi, edi
cmp eax, edi
jne 0x408198
cmp dword [ebp - 8], edi
jle 0x4080ee
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x408152
movsx eax, byte [eax]
push eax
call dword [sym.imp.MSVCRT.dll_toupper]
cmp byte [ebp - 1], al
pop ecx
je 0x40815d
inc edi
add ebx, 0x20
cmp edi, dword [ebp - 8]
jl 0x40813c
jmp 0x4080ee
push 0xffffffffffffffff
shl edi, 5
push dword [edi + esi + 0x14]
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ebx, edi
call fcn.00409780
mov ebx, dword [ebp + 0x10]
add ebx, 2
cmp byte [ebx], 0x5c
je 0x40818d
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x415a30
call fcn.004097d3
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call fcn.004097d3
push dword [ebp - 0x14]
call sub.MPR.dll_WNetCloseEnum
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 0x18]
pop ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x408527
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], 0x415cb8
mov dword [eax + 0xc], 0x67452301
mov dword [eax + 0x10], 0xefcdab89
mov dword [eax + 0x14], 0x98badcfe
mov dword [eax + 0x18], 0x10325476
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
ret
Function at 0x40998f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00410af0
push ebx
push esi
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x4099b7
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [ebp - 4], eax
jmp 0x4099ba
mov dword [ebp - 4], ebx
push dword [edi + 0xc]
lea esi, [ebp - 8]
push str.R_03d
call fcn.0040a361
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jne 0x4099d8
mov ecx, 0x4112ea
lea eax, [edi + 0x24]
call fcn.00409c99
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
mov esi, 0x415d34
push esi
push ecx
lea eax, [edi + 0x20]
call fcn.00409c99
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1008]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
mov eax, dword [ebp - 4]
pop ecx
jne 0x409a27
push dword [ebp + 8]
add eax, 8
call fcn.00405714
pop ecx
jmp 0x409a4b
add eax, 8
lea ebx, [ebp - 0x1008]
call fcn.00409ca5
mov eax, dword [ebp - 4]
push 0x415d30
push 0x415d2c
add eax, 8
push eax
call fcn.00409e6a
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push esi
add eax, 4
push 0x415d28
push eax
call fcn.0040a2da
mov eax, dword [ebp - 4]
mov dword [eax], esi
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea esi, [edi + 4]
call fcn.00409b6e
lea eax, [ebp - 8]
call fcn.00409c66
pop esi
pop ebx
leave
ret 4

Function at 0x40b4ab
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push 0x9c
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x9c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x40b4ed
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
xor esi, esi
cmp dword [ebp + 0x1c], esi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
jne 0x40b50f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, esi
pop esi
je 0x40b55d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
leave
ret
Function at 0x40b55f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], edi
mov word [ebp - 0x24], 1
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x10], esi
call fcn.0040b4ab
test eax, eax
je 0x40b5bc
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b4ed
add esp, 0x18
jmp 0x40b627
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
push dword [ebp + 0xc]
mov edi, eax
call sub.MSVCRT.dll_strlen
lea eax, [edi + eax + 2]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00410af0
mov edi, esp
push dword [ebp + 8]
push edi
call sub.MSVCRT.dll_strcpy
push 0x415d64
push edi
call sub.MSVCRT.dll_strcat
push dword [ebp + 0xc]
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp - 0xc], esi
je 0x40b627
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x5c]
pop edi
pop esi
leave
ret
Function at 0x40c7a5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x2c]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
jmp 0x40c7be
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
sub ecx, dword [eax + 0x74]
mov esi, dword [eax + 0x6c]
mov edi, dword [eax + 0x2c]
sub ecx, esi
lea edi, [edx + edi - 0x106]
cmp esi, edi
mov dword [ebp - 8], ecx
jb 0x40c83d
mov edi, dword [eax + 0x38]
mov ecx, edx
mov ebx, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 0x4c]
mov ecx, dword [eax + 0x44]
sub dword [eax + 0x70], edx
sub dword [eax + 0x6c], edx
sub dword [eax + 0x5c], edx
lea ecx, [ecx + esi*2]
dec ecx
dec ecx
movzx edi, word [ecx]
mov ebx, edi
sub ebx, edx
cmp edi, edx
sbb edi, edi
not edi
and edi, ebx
dec esi
mov word [ecx], di
jne 0x40c802
mov ecx, dword [eax + 0x40]
mov edi, edx
lea ecx, [ecx + edx*2]
dec ecx
dec ecx
movzx esi, word [ecx]
mov ebx, esi
sub ebx, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, ebx
dec edi
mov word [ecx], si
jne 0x40c821
mov ecx, dword [ebp - 8]
add ecx, edx
mov ebx, dword [eax]
cmp dword [ebx + 4], 0
je 0x40c897
mov edx, dword [eax + 0x74]
add edx, dword [eax + 0x6c]
add edx, dword [eax + 0x38]
push edx
call fcn.0040c55d
mov edx, dword [ebp + 8]
add dword [edx + 0x74], eax
mov edi, dword [edx + 0x74]
cmp edi, 3
pop ecx
jb 0x40c883
mov eax, dword [edx + 0x6c]
mov ecx, dword [edx + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edx + 0x58]
mov dword [edx + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edx + 0x54]
mov dword [edx + 0x48], eax
cmp edi, 0x106
jae 0x40c897
mov eax, dword [edx]
cmp dword [eax + 4], 0
jne 0x40c7b8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410748
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x148]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x140]
pop ecx
mov edx, dword [eax + 0x2c]
xor edx, dword [eax + 0x18]
xor edx, dword [eax - 8]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + 0x34], edx
jne 0x410769
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [ebp + 0x14]
mov ecx, eax
shl eax, 5
shr ecx, 0x1b
or ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x148]
push 0x14
add ecx, dword [edx]
cdq
pop edi
idiv edi
sub eax, 0
je 0x4107fd
dec eax
je 0x4107e8
dec eax
je 0x4107c8
dec eax
jne 0x410818
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax - 0x359d3e2a]
jmp 0x410818
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edi, eax
or edi, edx
and edi, dword [ebx]
and eax, edx
or edi, eax
mov dword [ebp - 8], edx
lea ecx, [ecx + edi - 0x70e44324]
jmp 0x410818
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax + 0x6ed9eba1]
jmp 0x410818
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov edi, dword [edi]
mov edx, eax
not edx
and edx, dword [ebx]
and edi, eax
or edx, edi
lea ecx, [ecx + edx + 0x5a827999]
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, eax
shr eax, 2
shl edi, 0x1e
or edi, eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
mov dword [edx], edi
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [esi], ecx
jl 0x410781
pop edi
pop esi
leave
ret