joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ebd
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402eda
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402ee9
mov ebx, 0x40f0f8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402efe
mov ecx, dword [0x424398]
add ecx, eax
push ecx
call fcn.004030ec
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030ba
test eax, eax
je 0x403065
test byte [ebp + 0x17], 0x80
je 0x40304e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b028
mov dword [ebp - 0xc], eax
call fcn.00405d87
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030b0
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f4e
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0f8
push esi
push edi
call fcn.004030ba
test eax, eax
je 0x403065
sub dword [ebp + 0x14], esi
mov dword [0x40b040], edi
mov dword [0x40b044], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b028
mov dword [0x40b048], ebx
mov dword [0x40b04c], eax
call fcn.00405da7
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403046
mov esi, dword [0x40b048]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4092a0], 1
mov edi, eax
je 0x402ff0
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fbd
cmp dword [ebp + 0x14], 0
jne 0x402ff0
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404d4c
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40303b
cmp dword [ebp + 0x10], eax
jne 0x403019
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40304a
cmp dword [ebp - 0x10], esi
jne 0x40304a
add dword [ebp - 4], esi
jmp 0x40302f
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b048]
jl 0x4030b0
cmp dword [ebp - 0x14], 1
jne 0x402f71
jmp 0x4030b0
cmp dword [ebp + 0x14], eax
jg 0x402f41
jmp 0x4030b0
push 0xfffffffffffffffc
jmp 0x403067
push 0xfffffffffffffffe
jmp 0x403067
test edi, edi
je 0x4030a5
cmp dword [ebp + 0x14], esi
jge 0x40305a
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030ba
test eax, eax
jne 0x4030ad
push 0xfffffffffffffffd
pop eax
jmp 0x4030b3
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403075
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0f8
push esi
push edi
call fcn.004030ba
test eax, eax
je 0x403065
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40304a
cmp esi, dword [ebp + 0x10]
jne 0x40304a
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40306a
jmp 0x4030b0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4052eb
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.00405596
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40531f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243c8], eax
jmp 0x4054b0
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40533d
test eax, eax
je 0x405455
test byte [ebp + 0xc], 2
je 0x405455
mov esi, 0x421940
push edi
push esi
call fcn.004059a9
test ebx, ebx
je 0x40535a
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405360
push edi
call fcn.004054fd
push 0x409010
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 0x40544b
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004054e1
cmp byte [eax], 0
je 0x4053b1
cmp byte [ebp - 0x18], 0
je 0x4053b1
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053c7
mov al, byte [esi + 1]
test al, al
je 0x40542a
cmp al, 0x2e
jne 0x4053c7
cmp byte [esi + 2], 0
je 0x40542a
push esi
push ebx
call fcn.004059a9
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4053ed
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40542a
push dword [ebp + 0xc]
push edi
call fcn.004052eb
jmp 0x40542a
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 0x405422
test byte [ebp + 0xc], 4
je 0x40541a
push edi
push 0xfffffffffffffff1
call fcn.00404d4c
push 0
push edi
call fcn.004056f1
jmp 0x40542a
inc dword [0x4243c8]
jmp 0x40542a
push edi
push 0xfffffffffffffff2
call fcn.00404d4c
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40538f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405455
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054b0
cmp dword [ebp - 8], esi
jne 0x40546a
inc dword [0x4243c8]
jmp 0x4054b0
push edi
call fcn.00405c7e
test eax, eax
je 0x4054b0
push edi
call fcn.004054b6
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054a8
test byte [ebp + 0xc], 4
je 0x405462
push edi
push 0xfffffffffffffff1
call fcn.00404d4c
push esi
push edi
call fcn.004056f1
jmp 0x4054b0
push edi
push 0xffffffffffffffe5
call fcn.00404d4c
pop edi
pop esi
leave
ret 8
Function at 0x405596
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d40
push esi
call fcn.004059a9
push esi
call fcn.00405549
mov edi, eax
test edi, edi
jne 0x4055b7
xor eax, eax
jmp 0x405609
push edi
call fcn.00405be5
test byte [0x424350], 0x80
je 0x4055d0
mov al, byte [edi]
test al, al
je 0x4055b3
cmp al, 0x5c
je 0x4055b3
sub edi, esi
jmp 0x4055e8
call fcn.00405c7e
test eax, eax
je 0x4055e2
test byte [eax], 0x10
je 0x4055b3
push esi
call fcn.004054fd
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055d4
call fcn.004054b6
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 0x40567a
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 0x4056a9
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 0x4056ed
test edi, edi
jne 0x4056b4
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056e7
Function at 0x4056f1
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.00405cbc
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40571d
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405863
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ac8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ac8
je 0x405761
push 1
push 0
push esi
call fcn.0040567a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405869
cmp eax, edi
jg 0x405869
mov esi, 0x422540
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405869
cmp eax, edi
jg 0x405869
push esi
push ebp
push str._s_s_r_n
push 0x422140
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 0x405863
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 0x40585c
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 0x40585c
cmp edi, dword [esp + 0x18]
jne 0x40585c
push str._Rename__r_n
push esi
call fcn.0040560e
test eax, eax
jne 0x405870
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059a9
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422140
push eax
call fcn.0040565a
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 [0x4243d0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409308
push eax
call fcn.0040560e
test eax, eax
je 0x405827
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x405899
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x40588c
sub eax, esi
jmp 0x405829
Function at 0x40589d
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 0x405901
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 0x4058f0
cmp dword [ebp + 0x14], 1
je 0x4058f2
cmp dword [ebp + 0x14], 2
je 0x4058f2
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 0x4059cb
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 0x4059ec
mov ecx, dword [0x423b1c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424378]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x4232e0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405bbf
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405bbf
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bcc
inc ebx
cmp cl, 0xfc
jbe 0x405bb2
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 0x405b5d
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405a80
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405af8
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405a9f
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.0040589d
jmp 0x405af3
cmp eax, 0x26
jne 0x405acf
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.0040589d
cmp byte [edi], 0
jne 0x405b55
push str.C:Program_Files
push edi
call fcn.004059a9
jmp 0x405af3
cmp eax, 0x25
jne 0x405ae2
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405af3
cmp eax, 0x24
jne 0x405af8
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b55
cmp dword [0x4243c4], 0
jne 0x405b04
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424344]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b3a
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00405206
cmp dword [ebp - 8], 0
jne 0x405b41
jmp 0x405b3d
and byte [edi], 0
test esi, esi
jne 0x405b04
cmp byte [edi], 0
je 0x405b55
cmp dword [ebp + 0xc], 0
je 0x405b55
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405be5
jmp 0x405ba3
cmp byte [ebp + 0xf], 0xfd
jne 0x405b91
cmp esi, 0x1b
jne 0x405b76
push dword [0x424344]
push edi
call fcn.00405907
jmp 0x405b87
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059a9
add esi, 0xffffffeb
cmp esi, 6
jae 0x405ba3
jmp 0x405b55
cmp byte [ebp + 0xf], 0xff
jne 0x405ba3
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059cb
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x4232e0
jmp 0x405bbf
jne 0x405bbc
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405bbf
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a17
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405be1
push eax
push dword [ebp + 8]
call fcn.004059a9
leave
ret 8
Function at 0x405d19
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ecc], 0
push esi
jne 0x405d50
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 0x405d2a
mov dword [ecx*4 + 0x422ec8], eax
inc ecx
cmp ecx, 0x100
jl 0x405d25
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d81
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 + 0x422ec8]
xor eax, esi
inc ecx
dec edx
jne 0x405d63
pop edi
not eax
pop esi
ret 0xc
Function at 0x42e7ba
Capabilities:
Check for vm using instruction vpcext

Disassembly:
cli
retf
xor dword [esi], ebp
jb 0x42e769
xor edx, dword [ebp - 0x3c17b20b]
mov bl, 0xba
out dx, eax
jg 0x42e796
cmp esi, dword [eax]
mov al, byte [0xcd766f60]
cmp dh, byte [ebx]
mov ebp, 0xa90d8822
or edi, dword es:[edx]
invalid

Function at 0x42e812
Capabilities:
Check for vm using instruction vpcext

Disassembly:
sahf
xchg ebx, eax
test eax, 0xee48990
xor al, 0x25
and eax, 0x485fc123
jle fcn.0042e7ea
jnp fcn.0042e7ba
idiv byte [esi*2 + 0x44a92b63]

Function at 0x493dde
Capabilities:
Encode data using xor

Disassembly:
lea ebx, [0xb7b3b2cd]
fild dword [ecx]
fistp qword [esi - 0x7e119336]
jns 0x493dee
lds eax, [0xc1fc374b]
wait
cdq
xchg byte [0x15a56116], ch
push edi
adc ebx, 0x17071b95
rcr dword [ebx + 0x162d8699], 0x61
movsd dword es:[edi], dword [esi]
adc eax, 0x95d38157
sbb eax, dword [edi]
pop ss
mov ah, 0xc3
push ebp
cmp edx, dword [ebp - 0x432294bf]
imul ecx, dword [0x35c3151b], 0x76
adc eax, 0x955bac99
push es
insd dword es:[edi], dx
das
aam 0x7d
rcl byte [ebp*4 - 0x1719599b], 0xfb
jge 0x493dc9
adc al, 0xad
cmpsb byte gs:[esi], byte es:[edi]
out 0xe8, al
sti
mov al, byte [0x1bcf5aea]
jnp 0x493e07
jmp 0x493e52
stosd dword es:[edi], eax
invalid

Function at 0x4a22fa
Capabilities:
Encode data using xor

Disassembly:
in al, dx
leave
dec edi
adc byte [ebp + ebp + 0x5ea16e65], 0xd7
mov eax, dword [0x4b40d75e]
adc dword [eax - 0x7473c338], 0xb3608515
pushfd
pop edi
and eax, 0x2d3df998
add al, 0xd8
and ch, byte [ecx]
push es
loopne 0x4a234f
invalid
pop ds
dec bl
mov esi, dword [ecx + 0xb]
add eax, 0x972f67dc
fsub qword [edi + 0x2f]
xchg edi, eax
stosb byte es:[edi], al
cmpsb byte [esi], byte es:[edi]
push es
pop ebp
Function at 0x4bb321
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3398
cmp edx, dword [eax]
je 0x4bb343
add eax, 8
inc ecx
cmp eax, 0x4c3428
jl 0x4bb334
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3398]
jne 0x4bb471
mov eax, dword [0x4c7d24]
cmp eax, 1
je 0x4bb44b
test eax, eax
jne 0x4bb374
cmp dword [0x4c32c4], 1
je 0x4bb44b
cmp edx, 0xfc
je 0x4bb471
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb3ab
lea eax, [ebp - 0x1a4]
push 0x4c0830
push eax
call fcn.004bbd00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc190
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb3ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc190
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c082c
push edi
call fcn.004be060
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0810
push eax
call fcn.004bbd00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbd10
lea eax, [ebp - 0xa0]
push 0x4c080c
push eax
call fcn.004bbd10
push dword [esi + 0x4c339c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbd10
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c07e4
push eax
call fcn.004bdfd4
add esp, 0x2c
pop edi
jmp 0x4bb471
lea eax, [ebp + 8]
lea esi, [esi + 0x4c339c]
push 0
push eax
push dword [esi]
call fcn.004bc190
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401620
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov edx, ecx
push ebx
mov ebx, eax
sub esp, 0x1c
mov esi, ecx
call fcn.00401580
mov eax, dword [ebx]
add eax, dword [ebx + 4]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, esi
mov ebp, eax
je 0x401677
mov eax, dword [esp + 0x30]
test eax, eax
je 0x401684
mov dword [esp], edi
call sub.msvcrt.dll_feof
test eax, eax
je 0x401684
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401684
add dword [ebx + 4], esi
add esp, 0x1c
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebp
mov dword [esp + 4], str.ERROR:_read__d_of__d_bytes_n
add eax, 0x40
mov dword [esp], eax
call fcn.00401550
add esp, 0x1c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4016c0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, edx
sub esp, 0x18
mov dword [esp + 0xc], ecx
mov edx, dword [edx]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fwrite
mov edx, dword [ebx]
cmp eax, edx
jne 0x4016f3
mov dword [ebx], 0
xor eax, eax
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.ERROR:_write__d_of__d_bytes_n
add eax, 0x40
mov dword [esp], eax
call fcn.00401550
mov eax, 0xffffffff
jmp 0x4016ee
Function at 0x4020e0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402118
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40210e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40211a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x402100
xor eax, eax
pop ebx
pop esi
ret

Function at 0x403370
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
jmp fcn.00402d70
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1d503fca
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x77bb6de0
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10011270
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x10011334
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x1003126c], eax
call fcn.10012440
test eax, eax
jne 0x10011294
ret 0xc
mov ecx, dword [0x1003126c]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x10031278], edx
mov dword [0x10031274], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x10031270], eax
mov dword [0x1003126c], ecx
call fcn.100115e0
test eax, eax
jne 0x100112d6
call fcn.10012480
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10088950], eax
call fcn.100122e0
mov ecx, dword [0x10088950]
mov dword [0x10031258], eax
test ecx, ecx
je 0x10011325
test eax, eax
je 0x10011325
call fcn.10090fd3
call fcn.100122d0
call fcn.10090fd3
call fcn.10011a30
call fcn.10011480
mov eax, dword [0x10031254]
inc eax
mov dword [0x10031254], eax
mov eax, 1
ret 0xc
call fcn.10011640
call fcn.10012480
xor eax, eax
ret 0xc
test eax, eax
jne 0x10011374
mov eax, dword [0x10031254]
test eax, eax
jle 0x1001136f
mov ecx, eax
mov eax, dword [0x100312a4]
dec ecx
test eax, eax
mov dword [0x10031254], ecx
jne 0x10011358
call fcn.100114d0
call fcn.100119d0
call fcn.10011640
call fcn.10012480
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x10011383
push 0
call fcn.10011710
add esp, 4
mov eax, 1
ret 0xc

Function at 0x100114e0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.100115a0
mov eax, dword [0x100312a8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x10011504
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100312a4], 1
mov byte [0x100312a0], bl
jne 0x1001155e
mov ecx, dword [0x10088948]
test ecx, ecx
je 0x1001154c
mov esi, dword [0x10088944]
sub esi, 4
cmp esi, ecx
jb 0x1001154c
mov eax, dword [esi]
test eax, eax
je 0x10011545
call eax
mov ecx, dword [0x10088948]
sub esi, 4
cmp esi, ecx
jae 0x10011537
push 0x1001901c
push 0x10019014
call fcn.100115c0
add esp, 8
push 0x10019024
push 0x10019020
call fcn.100115c0
add esp, 8
test ebx, ebx
je 0x1001157d
call fcn.100115b0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x100312a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100115e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.100126e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1001a884], eax
je 0x10011638
push 0x74
push 1
call fcn.10012910
mov esi, eax
add esp, 8
test esi, esi
je 0x10011638
mov eax, dword [0x1001a884]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10011638
push esi
call fcn.10011670
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret