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

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 4], 0
jne 0x40704f
push edi
mov edi, str.advapi32.dll
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x407018
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
xor ecx, ecx
mov dl, 0xf9
push ebx
mov bl, cl
and bl, 0x3f
sub bl, 0x56
xor bl, dl
mov dl, byte [ecx + 0x40cb1d]
mov byte [ecx + 0x40fd90], bl
inc ecx
test dl, dl
jne 0x40701e
push 0x40fd90
push eax
mov byte [ecx + 0x40fd90], dl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
pop ebx
mov esi, dword [esi + 4]
test esi, esi
je 0x407066
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call esi
jmp 0x407068
xor eax, eax
pop esi
ret 0xc
Function at 0x407e46
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov esi, eax
push esi
call fcn.00407e28
test eax, eax
je 0x407eb8
lea edi, [ebp - 0x104]
call fcn.004031c9
push 1
push 2
mov eax, edi
push eax
call fcn.00407df8
test eax, eax
je 0x407ec3
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407e93
mov eax, edi
push eax
call fcn.00402f61
pop ecx
jmp 0x407e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407ea9
push dword [esi + 0x108]
call fcn.00402e30
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407ec3
lea edi, [esi + 0x3a4]
call fcn.0040aa89
pop edi
pop esi
leave
ret

Function at 0x409422
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 8], eax
call fcn.00409402
test eax, eax
je 0x409463
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenProcessToken
push dword [esi]
call edi
xor ebx, ebx
cmp eax, ebx
je 0x409463
lea ecx, [ebp - 4]
push ecx
push 0x28
push dword [ebp - 8]
call eax
cmp eax, ebx
jne 0x40946b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4094d7
call fcn.00409402
test eax, eax
je 0x40948d
push str.LookupPrivilegeValueA
push dword [esi]
call edi
cmp eax, ebx
je 0x40948d
lea ecx, [ebp - 0x14]
push ecx
push str.SeDebugPrivilege
push ebx
call eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], eax
call fcn.00409402
test eax, eax
je 0x4094c4
push str.AdjustTokenPrivileges
push dword [esi]
call edi
cmp eax, ebx
je 0x4094c4
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push dword [ebp - 8]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a1ff
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040b510
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
push esi
mov byte [ebp - 0x2004], al
je 0x40a256
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.004037ea
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, eax
jmp 0x40a2a1
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x40c407
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea ebx, [ebp - 0x2004]
neg esi
call fcn.00403863
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40a2a7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40a2c5
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040a1b3
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret

Function at 0x40a418
Capabilities:
Get file size

Disassembly:
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
je 0x40a42b
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebx
push dword [esp + 0xc]
call fcn.00402dba
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x40a476
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push dword [esi + 4]
mov dword [esi], eax
push eax
push edi
call fcn.0040379c
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40a46f
mov eax, dword [esi]
cmp dword [eax], 0x66676572
je 0x40a46f
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
ret 4
Function at 0x40a941
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [esi], 0
jne 0x40a9bf
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esi], ecx
je 0x40a9c2
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 0x14], 0x4e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0x12], 0x43
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 7], 0x64
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x78
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xc], 0x54
mov byte [ebp - 0xb], 0x68
mov byte [ebp - 4], 0
mov byte [ebp - 0xd], 0x65
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
pop edi
xor eax, eax
inc eax
leave
ret

Function at 0x40a9c4
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xc4
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x58], 6
jb 0x40aa68
call fcn.0040a941
mov ebx, dword [esi + 4]
xor edx, edx
xor eax, eax
cmp ebx, edx
je 0x40aa80
push edi
push 8
pop esi
mov ecx, esi
lea edi, [ebp + 0x40]
rep stosd dword es:[edi], eax
mov dword [ebp + 0x60], edx
lea edi, [ebp + 0x64]
stosd dword es:[edi], eax
lea eax, [ebp + 0x60]
mov dword [ebp + 0x48], eax
lea eax, [ebp + 0x38]
mov dword [ebp + 0x58], eax
lea eax, [ebp + 0x3c]
push eax
push edx
push edx
push edx
push 1
push dword [ebp + 0x78]
lea eax, [ebp + 0x7c]
push dword [ebp + 0x74]
mov dword [ebp + 0x3c], 0x24
push dword [ebp + 0x70]
mov dword [ebp + 0x40], 0x10003
push edx
push 0x1fffff
push eax
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x50], 0x10004
mov dword [ebp + 0x54], 4
mov dword [ebp + 0x7c], edx
call ebx
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x7c]
pop edi
jmp 0x40aa80
push dword [ebp + 0x7c]
xor edx, edx
push 4
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push edx
push edx
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x40b2ce
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40c370
call fcn.0040b4b8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b30b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b30b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40b323
cmp eax, 0x20b
je 0x40b310
mov dword [ebp - 0x1c], ebx
jmp 0x40b337
cmp dword [ecx + 0x84], 0xe
jbe 0x40b30b
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40b331
cmp dword [ecx + 0x74], 0xe
jbe 0x40b30b
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x423da0], 0xffffffff
or dword [0x423da4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40f0cc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40f0c8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x423d9c], eax
call fcn.004055a9
cmp dword [section..data], ebx
jne 0x40b392
push fcn.004055a9
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040b4a6
push 0x40c340
push 0x40c33c
call sub.msvcrt.dll__initterm
mov eax, dword [0x40f0c4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x40f0c0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x40c338
push 0x40c320
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x40b428
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40b3fc
cmp al, 0x22
jne 0x40b3ee
cmp byte [esi], 0x22
jne 0x40b405
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40b40f
cmp al, 0x20
jbe 0x40b401
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x40b433
movzx eax, word [ebp - 0x48]
jmp 0x40b436
cmp byte [esi], 0x20
jbe 0x40b405
inc esi
mov dword [ebp - 0x34], esi
jmp 0x40b428
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40b453
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40b488
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040b4f1
ret
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
lea ebx, [ebp - 4]
push esi
push edi
push ebx
mov eax, dword [0x451c10]
or al, 8
xor esi, esi
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x402aca
mov edi, 0x105
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402a87
cmp dword [ebp + 0x10], esi
jne 0x402abe
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00402a36
or eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push esi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d2e
cmp eax, esi
je 0x402ad1
push esi
push dword [0x451c10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x451c10], esi
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x40526c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x447fe8], 0x44
push eax
xor eax, eax
push 0x447fe8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405331
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055e0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405365
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451be8], eax
jmp 0x4054f9
push ebx
mov esi, dword [ebp + 0xc]
and esi, 1
mov dword [ebp - 4], esi
je 0x405383
test eax, eax
je 0x4054a4
test byte [ebp + 0xc], 2
je 0x4054a4
push edi
mov ebx, 0x4437e8
push ebx
call fcn.00405a0c
test esi, esi
je 0x4053a0
push str..
push ebx
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053a6
push edi
call fcn.00405546
cmp byte [edi], 0
jne 0x4053b4
cmp byte [0x4437e8], 0x5c
jne 0x4053bf
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov esi, eax
add esi, edi
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40549a
lea eax, [ebp - 0x11c]
lea ebx, [ebp - 0x11c]
push 0x3f
push eax
call fcn.0040552a
cmp byte [eax], 0
je 0x405405
cmp byte [ebp - 0x18], 0
je 0x405405
lea ebx, [ebp - 0x18]
cmp byte [ebx], 0x2e
jne 0x40541b
mov al, byte [ebx + 1]
test al, al
je 0x405479
cmp al, 0x2e
jne 0x40541b
cmp byte [ebx + 2], 0
je 0x405479
push ebx
push esi
call fcn.00405a0c
test byte [ebp - 0x148], 0x10
je 0x405440
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405479
push dword [ebp + 0xc]
push edi
call fcn.00405331
jmp 0x405479
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405471
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push 0
push edi
call fcn.0040575a
jmp 0x405479
inc dword [0x451be8]
jmp 0x405479
push edi
push 0xfffffffffffffff2
call fcn.00404daa
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054a4
and byte [esi - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054f9
cmp dword [ebp - 8], esi
jne 0x4054b9
inc dword [0x451be8]
jmp 0x4054f9
push edi
call fcn.00405d07
test eax, eax
je 0x4054f9
push edi
call fcn.004054ff
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054f1
test byte [ebp + 0xc], 4
je 0x4054b1
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push esi
push edi
call fcn.0040575a
jmp 0x4054f9
push edi
push 0xffffffffffffffe5
call fcn.00404daa
pop edi
pop esi
leave
ret 8
Function at 0x4055e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
mov edi, 0x4457e8
push esi
push dword [esp + 0xc]
push edi
call fcn.00405a0c
push edi
call fcn.00405593
mov esi, eax
test esi, esi
jne 0x405601
xor eax, eax
jmp 0x405653
push esi
call fcn.00405c6e
test byte [0x451b78], 0x80
je 0x40561a
mov al, byte [esi]
test al, al
je 0x4055fd
cmp al, 0x5c
je 0x4055fd
sub esi, edi
jmp 0x405632
call fcn.00405d07
test eax, eax
je 0x40562c
test byte [eax], 0x10
je 0x4055fd
push edi
call fcn.00405546
push edi
call sub.KERNEL32.dll_lstrlenA
push edi
cmp eax, esi
jg 0x40561e
call fcn.004054ff
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop edi
ret 4

Function at 0x4056c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056e0
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056e3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
mov ecx, eax
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405712
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov dword [ebp + 8], 0x61736e
dec edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
push esi
push 0
div ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
or eax, eax
jne 0x405756
or edi, edi
jne 0x40571d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405750
Function at 0x40575a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d2e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40577e
push 5
push esi
push dword [esp + 0x1c]
call eax
or eax, eax
jne 0x4058b7
mov ebx, 0x448170
or esi, esi
mov edi, 0x400
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x448170], 0x4c554e
je 0x4057c2
push 1
push 0
push esi
call fcn.004056e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
mov esi, 0x447be8
push edi
push esi
push dword [esp + 0x1c]
call ebp
or eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
push esi
push ebx
push str._s_s_r_n
push 0x4477e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
sub esp, 0xfffffff0
mov eax, dword [0x451b70]
push dword [eax + 0x128]
push esi
call fcn.00405a2e
push 4
push 0xc0000000
push esi
call fcn.004056e3
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x4058b7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058b0
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x4058b0
cmp edi, dword [esp + 0x18]
jne 0x4058b0
push str._Rename__r_n
push esi
call fcn.00405658
or eax, eax
jne 0x4058c4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a0c
add edi, 0xa
mov eax, edi
add eax, esi
push ebx
push 0x4477e8
push eax
call fcn.004056a4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x451bf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x409330
add eax, 0xa
push eax
call fcn.00405658
or eax, eax
je 0x40587b
lea ecx, [esi + edi]
inc eax
mov ebp, eax
cmp eax, ecx
jae 0x4058eb
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058e0
sub eax, esi
mov ebp, dword [esp + 0x14]
jmp 0x40587d
Function at 0x4058f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp + 0x18]
push esi
push ebx
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405964
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405953
cmp dword [ebp + 0x14], 1
je 0x405955
cmp dword [ebp + 0x14], 2
je 0x405955
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448574], 0
push esi
jne 0x405dd1
xor ecx, ecx
mov eax, ecx
push 8
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 0x405dab
mov dword [ecx*4 + 0x448570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
not eax
test edx, edx
jbe 0x405e02
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 + 0x448570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc
Function at 0x401763
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x401ed0
call fcn.00401cd8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x402364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4017a8
cmp eax, esi
jne 0x40179b
xor esi, esi
inc esi
mov edi, esi
jmp 0x4017ab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40177f
xor esi, esi
inc esi
cmp dword [0x402368], esi
jne 0x4017bd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4017f7
cmp dword [0x402368], ebx
jne 0x4017f1
mov dword [0x402368], esi
push 0x401018
push 0x40100c
call fcn.004018dc
pop ecx
pop ecx
test eax, eax
je 0x4017f7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4018cc
mov dword [0x402014], esi
cmp dword [0x402368], esi
jne 0x40181a
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x402368], 2
test edi, edi
jne 0x401827
xor eax, eax
mov ecx, 0x402364
xchg dword [ecx], eax
cmp dword [0x40236c], 0
je 0x401853
push 0x40236c
call fcn.00401b30
pop ecx
test eax, eax
je 0x401853
push ebx
push 2
push ebx
mov esi, dword [0x40236c]
mov ecx, esi
call dword [0x40308c]
call esi
push dword [0x402020]
push dword [0x40201c]
push dword [0x402018]
call fcn.00401599
add esp, 0xc
mov dword [0x402010], eax
cmp dword [0x402028], 0
jne 0x4018b1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x402014], 0
jne 0x4018c5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x402010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00492000
jmp 0x401763

Function at 0x401a14
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401ef0
call fcn.00401cd8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401a74
cmp eax, 0xffffffff
je 0x401a74
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401a6d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401a6d
cmp edx, 0x10000000
jae 0x401a6d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401a6a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401b1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401b16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401b20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401b06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401bf0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401c21
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401c21
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401c21
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret