joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d8c0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x462273
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x47c748]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x228
lea eax, [esp + 0x24]
push ebx
mov dword [esp + 0x25c], ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x22c
call fcn.004373c0
add esp, 0xc
call fcn.00422f96
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d93d
push 0x80004005
call fcn.00408a00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push ebx
push 2
mov byte [esp + 0x25c], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d9bb
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d986
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x254], 0xffffffff
mov eax, dword [esp + 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40dae6
push 0x46e7d4
push str..exe
lea ecx, [esp + 0x264]
push ecx
call fcn.0040fec0
push 0x46e7d4
push str..EXE
lea edx, [esp + 0x264]
push edx
call fcn.0040fec0
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov ebp, dword [esp + 0x25c]
je 0x40da91
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40da91
lea eax, [esp + 0x40]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40da20
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x1c]
call fcn.00408400
push 0x46e7d4
push str..exe
lea eax, [esp + 0x1c]
push eax
call fcn.0040fec0
push 0x46e7d4
push str..EXE
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040fec0
mov esi, dword [esp + 0x14]
push ebp
push esi
call fcn.00435cee
add esp, 8
test eax, eax
je 0x40da89
lea edx, [esp + 0x1c]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40da12
jmp 0x40da91
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dabb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dae2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.00432f66
add esp, 0x244
ret 4
Function at 0x413c70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x460afb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044f18b
push 4
mov dword [esp + 0x20], 0
call fcn.00417e85
mov edi, eax
add esp, 4
test edi, edi
je 0x413cf0
call fcn.0044e93b
mov dword [edi], eax
call fcn.0044e811
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0044cf76
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x413ce5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0044cf97
jmp 0x413cf2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x417bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.0041c517
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x14]
push 0x46bf68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x417c2b
mov ecx, dword [esp + 0x10]
push eax
push eax
push 0x46c334
call fcn.0041f061
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x417c4b
pop ebx
pop edi
pop esi
pop ecx
ret 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0043b2c0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x417cac
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
jmp 0x417cae
xor esi, esi
mov ecx, dword [esp + 0x1c]
push edi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc

Function at 0x41903e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x419084
call fcn.0041c517
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x419084
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4190c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4190b0
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4190b0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4190c4
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x422cf7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x422d3a
call fcn.0041c517
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x422d3a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x422d55
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004228b1
test ebx, ebx
mov esi, eax
je 0x422d53
test edi, edi
je 0x422d53
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x423dfd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x423e2b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423e49
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423d67
jmp 0x423e49
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423e49
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00423d67
test edi, edi
mov eax, edi
jne 0x423e33
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x48096c]
test ecx, ecx
je 0x423f0c
jmp 0x423dfc
ret 8

Function at 0x432f66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47c748]
jne 0x432f70
repz ret
jmp fcn.0043b0bf
Function at 0x4471a6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043aaa6
xor ebx, ebx
cmp dword [0x4817dc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44727b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4471e6
xor eax, eax
jmp 0x44733f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4471df
push eax
call fcn.0043aa43
mov dword [esp], 0x469850
push edi
mov dword [0x4817dc], eax
call esi
push eax
call fcn.0043aa43
mov dword [esp], 0x46983c
push edi
mov dword [0x4817e0], eax
call esi
push eax
call fcn.0043aa43
mov dword [0x4817e4], eax
lea eax, [ebp - 8]
push eax
call fcn.00437083
test eax, eax
pop ecx
pop ecx
je 0x447249
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043484b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44727b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043aa43
cmp eax, ebx
pop ecx
mov dword [0x4817ec], eax
je 0x44727b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043aa43
pop ecx
mov dword [0x4817e8], eax
mov eax, dword [0x4817e8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4472f4
cmp dword [0x4817ec], esi
je 0x4472f4
push eax
call fcn.0043aaaf
pop ecx
call eax
cmp eax, ebx
je 0x4472c1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4817ec]
call fcn.0043aaaf
pop ecx
call eax
test eax, eax
je 0x4472c1
test byte [ebp - 0x18], 1
jne 0x4472f4
lea eax, [ebp - 0xc]
push eax
call fcn.004370ba
test eax, eax
pop ecx
je 0x4472dc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043484b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4472eb
or dword [ebp + 0x10], 0x200000
jmp 0x447325
or dword [ebp + 0x10], 0x40000
jmp 0x447325
mov eax, dword [0x4817e0]
cmp eax, esi
je 0x447325
push eax
call fcn.0043aaaf
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x447325
mov eax, dword [0x4817e4]
cmp eax, esi
je 0x447325
push dword [ebp - 4]
push eax
call fcn.0043aaaf
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4817dc]
call fcn.0043aaaf
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45e068
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x47c748]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045dffd
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004373c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45e0b7
cmp dword [ebp - 0x1c], 5
jb 0x45e0cf
jmp 0x45e0cb
cmp dword [ebp - 0x10], 1
jne 0x45e0cf
cmp dword [ebp - 0x1c], 4
ja 0x45e0cb
jne 0x45e0cf
cmp dword [ebp - 0x18], 0
jbe 0x45e0cf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46b10c
call fcn.0045ded1
test eax, eax
jge 0x45e0f0
mov byte [0x481c10], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00432f66
add ebp, 0x78
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
push ebx
push esi
push edi
push 0x27
call fcn.00401fa7
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x900]
push eax
call edi
and dword [ebp + 8], 0
add esp, 0x14
cmp dword [esi + 0x10], 0
jbe 0x401070
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x100]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40103b
lea eax, [ebp - 0x900]
push eax
call fcn.00407714
pop ecx
call fcn.00403e3b
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401506
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.0041012e
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401324
push 0x5c
mov ecx, edi
call fcn.00401424
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401297
push edi
push edi
mov dword [0x41b7a0], esi
mov dword [0x41b7a8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41b7e8], 2
mov dword [0x41b7a4], eax
je 0x401563
call fcn.004078d7
push 0xffffffffffffffff
push dword [0x41b7a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41b7a8]
cmp eax, edi
mov dword [0x41b85c], edi
je 0x4015b2
cmp eax, 1
je 0x4015a6
cmp eax, 2
je 0x4015a2
cmp eax, 3
je 0x40159e
cmp eax, 0x67
jle 0x401599
cmp eax, 0x6a
jle 0x401616
push eax
push 0x14
jmp 0x4015e9
push 0x12
jmp 0x4015a8
push 0x13
jmp 0x4015a8
push 0x11
push edi
call fcn.004077e2
pop ecx
pop ecx
jmp 0x401616
cmp dword [0x41b864], edi
jne 0x401616
lea eax, [ebp + 8]
push eax
push dword [0x41b7a4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4015d9
cmp ecx, edi
jne 0x4015d9
xor eax, eax
jmp 0x40161b
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4015ec
push ecx
push 0x21
push edi
jmp 0x40160e
and ecx, 0xffff
cmp ecx, 0xe
jne 0x401600
cmp dword [0x41b7ec], 0xffffffff
je 0x401616
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.004077e2
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x401981
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4019c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x4019ac
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4019c2
test al, 0x10
jne 0x4019c2
push esi
jmp 0x4019a2
xor eax, eax
inc eax
pop esi
ret
Function at 0x402459
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402469
xor eax, eax
leave
ret
test byte [0x41b7ec], 2
mov dword [ebp - 0x40], 0x40
jne 0x4024be
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4024be
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x4024be
jb 0x40249a
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x4024be
push 0x2b
call fcn.00401fa7
push eax
call fcn.00407783
cmp eax, 1
pop ecx
pop ecx
je 0x4024b7
or dword [0x41b7ec], 0xffffffff
jmp 0x402465
or dword [0x41b7ec], 2
xor eax, eax
inc eax
leave
ret

Function at 0x4027c6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0040140c
cmp dword [ebp - 4], 1
jg 0x4027e4
push 1
lea ecx, [ebp - 0xc]
call fcn.00401126
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402808
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40283f
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402534
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00401112
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.0040135d
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40333c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.004024fb
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x40336d
push esi
lea ecx, [ebp - 0x18]
call fcn.00401126
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403381
cmp ax, 0x2f
jne 0x40338a
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x4033b0
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x4033a3
cmp ax, 0x5c
je 0x4033a3
dec esi
test esi, esi
jg 0x40338e
test esi, esi
je 0x40345f
and word [edi + esi*2], 0
push edi
call fcn.00401981
test eax, eax
pop ecx
je 0x40339f
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4033e7
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00402fdc
test eax, eax
pop ecx
pop ecx
je 0x4033e7
xor esi, esi
jmp 0x403484
push edi
call fcn.00401981
test eax, eax
pop ecx
jne 0x403401
push edi
push 0xc
push 1
call fcn.004077e2
add esp, 0xc
jmp 0x4033e0
cmp esi, ebx
jge 0x403453
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403439
jmp 0x403438
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x40343f
cmp ax, 0x2f
je 0x40343f
inc esi
cmp word [edi + esi*2], cx
jne 0x403428
push edi
mov word [edi + esi*2], cx
call fcn.00401981
test eax, eax
pop ecx
je 0x4033f2
cmp esi, dword [ebp - 4]
jl 0x403405
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4034a4
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x40348f
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x40348f
cmp ax, 0x7a
ja 0x40348f
cmp word [ecx + 2], 0x3a
jne 0x40348f
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4034a4
push ecx
push 0xc
push 1
call fcn.004077e2
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406586
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406539
add esp, 0x1c
leave
ret
Function at 0x40edfa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ee20
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ee20
xor al, al
jmp 0x40ee40
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00415c30
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x415810
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41bac0], ecx
add edx, 1
cmp edx, 0x100
jb 0x415812
cmp edx, 0x800
jae 0x4158fb
mov edi, edi
mov eax, dword [edx*4 + 0x41b6c0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41bac0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41babc], eax
jb 0x4158d0
mov dword [0x41ba94], 0x415f50
call fcn.00415a40
test eax, eax
jne 0x415918
mov dword [0x41ba94], 0x415e70
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
jmp int.00401219

Function at 0x22bbad3
Capabilities:
Encode data using xor

Disassembly:
test al, 0x3d
stc
mov byte [ecx], al
stc
cmc
add ecx, 1
test cl, bl
cmc
jmp 0x1516580
test ah, ah
call fcn.022c105c
lds eax, [eax - 0x69f887e4]
out dx, eax
sbb dword [edi], esi
sbb al, 0x27
sbb al, 0x27
xor eax, 0x3b17361a
and ah, byte [eax]
sub dword [0x1f25361e], ebp
xor bl, byte [edi + 0x6de6d809]
fbstp tbyte [esp + esi*8 - 3]
std
mov al, 0x3c
push ebx
xchg byte [esp + edi*8 + 0x63], cl
fnsave dword [esi - 0xe]
or ecx, ecx
je 0x1516591
and bl, byte [eax - 0x7d]
les edx, [ecx + eax*8 + 0x6cc51cb]
inc esp
adc dh, byte [edi + 0x6721071a]
ficom dword [ebx + 0x4007ca77]
xor al, 0xbb
stosd dword es:[edi], eax
hlt
rol al, 5
jmp 0x149a0cf
Function at 0x4028b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028e3
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b7c
jmp 0x402901
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0040283c
mov edi, eax
test ebx, ebx
je 0x402901
cmp dword [esi], 0
je 0x402901
dec ebx
jmp 0x4028ea
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d1c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402cfc
xor eax, eax
push ebp
push 0x402cf5
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 0x402d38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402cfc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret