joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x402c71
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x402c54
cmp edi, 2
jb 0x402c54
cmp byte [esi], cl
jne 0x402c54
cmp byte [esi + 1], cl
jne 0x402c54
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x432100]
jmp 0x402c25
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x432100]
test edi, edi
jne 0x402c25
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402ca0
cmp cl, 0x23
jne 0x402c87
cmp byte [esi], cl
jne 0x402c87
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x432100]
test cl, cl
jne 0x402c78
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x402e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x402e25
push 0x5de
push str.C:UserskaragDesktopmunuguiimgui.cpp
push str.filename__mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x402e32
mov dword [edi], 0
mov edx, 0x431e58
mov ecx, esi
call fcn.00402cb0
mov esi, eax
test esi, esi
je 0x402f22
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x402f18
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402f18
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x402f18
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402f18
mov eax, dword [0x6ab9c0]
test eax, eax
je 0x402eac
inc dword [eax + 0x374]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402f18
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x402efd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x6ab9c0]
add esp, 4
test eax, eax
je 0x402eea
dec dword [eax + 0x374]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x402f0f
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404870
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xbc], 0
jg 0x404898
push 0x580
push str.C:UserskaragDesktopmunuguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi + 0xbc]
mov edi, 4
mov eax, dword [esi + 0xc4]
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x432100]
sub edi, 1
jne 0x4048b2
mov ecx, dword [0x6ab9c0]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1a50], eax
jne 0x4048e4
mov dword [ecx + 0x1a54], eax
cmp dword [ecx + 0x1a8c], eax
jne 0x4048f3
mov byte [ecx + 0x1a90], 1
pop ebp
ret 4
Function at 0x406e50
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
jne 0x406e69
cmp byte [edi + 0x2e1c], 0
je 0x406e81
push 0xf37
push str.C:UserskaragDesktopmunuguiimgui.cpp
push str._g.Initialized___g.SettingsLoaded
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
or edx, 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], str.Window
mov al, 0x57
mov esi, 0x42f881
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x406eae
cmp byte [esi], al
jne 0x406eae
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x432100]
test al, al
jne 0x406ea0
mov esi, dword [edi + 0x2e30]
not edx
mov ecx, dword [edi + 0x2e34]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0x413c10
mov dword [ebp - 0x18], 0x413cb0
mov dword [ebp - 0x14], 0x413d40
mov dword [ebp - 0x10], 0x413df0
mov dword [ebp - 0xc], 0x413f60
cmp esi, ecx
jne 0x406f8c
inc esi
test ecx, ecx
je 0x406f13
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x406f18
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x406f8c
mov eax, dword [0x6ab9c0]
test eax, eax
je 0x406f30
inc dword [eax + 0x374]
lea eax, [esi + esi*8]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, dword [edi + 0x2e38]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x406f80
mov ecx, dword [edi + 0x2e30]
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x6ab9c0]
add esp, 0xc
test eax, eax
je 0x406f73
dec dword [eax + 0x374]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
mov dword [edi + 0x2e38], eax
mov dword [edi + 0x2e34], esi
mov eax, dword [edi + 0x2e30]
movups xmm0, xmmword [ebp - 0x28]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x2e38]
movups xmmword [eax + ecx*4], xmm0
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x20], 0
inc dword [edi + 0x2e30]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408940
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40897d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x408963
cmp byte [esi], bl
jne 0x408963
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x432100]
test bl, bl
jne 0x408954
pop edi
pop esi
not ecx
pop ebx
jmp fcn.004088e0
Function at 0x40db40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6ab9c0]
push ebx
push esi
push edi
mov esi, dword [eax + 0x1a18]
add esi, 0xbc
mov dword [ebp - 4], ecx
cmp dword [esi], 0
jg 0x40db78
push 0x580
push str.C:UserskaragDesktopmunuguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi]
lea edx, [ebp - 4]
mov eax, dword [esi + 8]
mov edi, 4
mov ebx, dword [eax + ecx*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x432100]
sub edi, 1
jne 0x40db90
mov edi, dword [esi + 4]
not ebx
mov ecx, dword [esi]
cmp ecx, edi
jne 0x40dbd7
inc ecx
test edi, edi
je 0x40dbc5
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x40dbca
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00414760
mov ecx, dword [esi]
mov eax, dword [esi + 8]
pop edi
mov dword [eax + ecx*4], ebx
inc dword [esi]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x6ab9c0]
push edi
cmp byte [esi + 0x2e48], 0
je 0x4132cf
cmp dword [esi + 0x2e50], 0
lea edi, [esi + 0x2e54]
je 0x4132c1
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x413279
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00414b00
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.004031b0
mov edx, dword [edi]
mov ecx, 0x6ab9bc
push dword [esi + 0x2e50]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2e5c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.004031b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42dbdc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42dc1b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42dc1b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42dc1b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42dc1b
cmp dword [ecx + 0x74], 0xe
jbe 0x42dc1b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42b1ab
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x437dd4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.ActiveScriptSite.0
mov dword [esi + 4], vtable.ActiveScriptSite.1.0
xor edi, edi
mov dword [esi + 8], vtable.CArray_class_ExposedObject___class_ExposedObject__.0
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], edi
call fcn.00409a18
mov eax, 1
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x4018f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401909
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401944
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401940
lea ebx, [ebx]
cmp esi, eax
jae 0x401944
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401930
cmp esi, eax
jb 0x40194a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4049c0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x42b608
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x437dd4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0x400
call esi
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
call fcn.0040a0a7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404a23
push 0x80004005
call fcn.00401f40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x10]
push ecx
call esi
push eax
lea edx, [esp + 0x14]
push 0x43127c
push edx
call fcn.004018d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00402640
mov ecx, dword [esp + 0x30]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.00405ed0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405ed0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42b5d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437dd4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 2
push 0x4313b0
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0
call fcn.00402580
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, eax
push esi
call ebp
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x228], 0
je 0x405fd9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
test al, 1
jne 0x405fbd
mov ecx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebp
mov ebx, eax
push ebx
call fcn.00409997
mov edx, dword [esp + 0x30]
add esp, 4
push 0
push 0
push ebx
mov edi, eax
push edi
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebp, dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0xfde9
mov ebx, eax
call ebp
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405f97
push 0
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call ebp
push edi
jmp 0x406039
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x18]
push edx
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
jmp 0x406041
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push 1
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov edx, dword [esp + 0x2c]
mov edi, dword [edx - 0xc]
lea eax, [edi + 1]
push eax
call fcn.00409997
push edi
mov ebx, eax
push 0
push ebx
call fcn.0041adf0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
push edi
push ebx
push ecx
call dword [sym.imp.USER32.dll_CharToOemBuffW]
push 0
lea edx, [esp + 0x18]
push edx
push edi
push ebx
push esi
mov byte [ebx + edi], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push ebx
call fcn.004099a2
add esp, 4
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406069
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4073a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42ba98
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437dd4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.00401e80
mov dword [esp + 0x24], 0
mov ecx, dword [ebp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ecx
call esi
cmp dword [ebp + 0x24], 0
je 0x4074c2
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 1
mov eax, dword [esp + 0x2c]
push 0
jne 0x4074a4
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
push edi
call fcn.00409997
push edi
mov esi, eax
push 0
push esi
call fcn.0041adf0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebx
mov byte [esi + edi - 1], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0xfde9
mov edi, eax
call ebx
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407470
push 0
lea edx, [esp + 0x18]
push edx
sub eax, ecx
push eax
mov eax, dword [ebp + 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call ebx
push esi
call fcn.004099a2
add esp, 4
jmp 0x407510
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x20]
add ecx, ecx
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x20]
push eax
call esi
jmp 0x407510
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00408f00
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x20]
push ecx
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407538
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4088c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088d0
sub eax, edx
mov dword [esp + 0x14], eax
lea edi, [ebp + 0x20]
mov eax, ebp
xor ecx, ecx
sub eax, edi
lea ebx, [eax + 0x120]
lea esp, [esp]
xor edx, edx
mov eax, ecx
div dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea esi, [edi + ecx]
mov dl, byte [edx + eax]
mov byte [esi], cl
inc ecx
cmp ecx, 0xff
mov byte [ebx + esi], dl
jle 0x4088f0
xor eax, eax
mov ecx, edi
mov esi, 0x100
lea esp, [esp]
mov dl, byte [ecx]
movzx edi, byte [ecx + 0x100]
movzx ebx, dl
add edi, eax
add ebx, edi
mov eax, ebx
and eax, 0x800000ff
jns 0x408940
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
mov bl, byte [eax + ebp + 0x20]
mov byte [ecx], bl
inc ecx
sub esi, 1
mov byte [eax + ebp + 0x20], dl
jne 0x408920
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x408960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
mov ebx, eax
push edi
lea ebp, [ebx + 1]
push ebp
call fcn.00409997
push ebp
mov edi, eax
push 0
push edi
mov dword [esp + 0x1c], edi
call fcn.0041adf0
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
push esi
call fcn.004088c0
test ebx, ebx
jbe 0x408a14
mov ebp, dword [esp + 0x14]
xor eax, eax
xor ecx, ecx
sub ebp, edi
mov dword [esp + 0x18], ebx
inc eax
and eax, 0x800000ff
jns 0x4089b1
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
mov dl, byte [eax + esi + 0x20]
movzx ebx, dl
add ecx, ebx
and ecx, 0x800000ff
jns 0x4089cd
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, cl
mov bl, byte [ecx + esi + 0x20]
mov byte [eax + esi + 0x20], bl
mov byte [ecx + esi + 0x20], dl
movzx ebx, byte [eax + esi + 0x20]
movzx edx, dl
add ebx, edx
and ebx, 0x800000ff
jns 0x4089f6
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, byte [ebx + esi + 0x20]
xor dl, byte [edi + ebp]
inc edi
sub dword [esp + 0x18], 1
mov byte [edi - 1], dl
jne 0x4089a2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x4196ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437dd4]
jne 0x4196d4
repz ret
jmp fcn.0041c02f
Function at 0x425bb0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041efb8
and dword [ebp - 4], 0
cmp dword [0x43be7c], 0
mov ebx, eax
jne 0x425c61
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425d12
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425d12
push eax
call fcn.0041ef46
mov dword [esp], 0x430148
push edi
mov dword [0x43be7c], eax
call esi
push eax
call fcn.0041ef46
mov dword [esp], 0x430134
push edi
mov dword [0x43be80], eax
call esi
push eax
call fcn.0041ef46
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43be84], eax
call esi
push eax
call fcn.0041ef46
pop ecx
mov dword [0x43be8c], eax
test eax, eax
je 0x425c61
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ef46
pop ecx
mov dword [0x43be88], eax
mov eax, dword [0x43be88]
cmp eax, ebx
je 0x425cb9
cmp dword [0x43be8c], ebx
je 0x425cb9
push eax
call fcn.0041efc1
push dword [0x43be8c]
mov esi, eax
call fcn.0041efc1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x425cb9
test edi, edi
je 0x425cb9
call esi
test eax, eax
je 0x425cb0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425cb0
test byte [ebp - 0xc], 1
jne 0x425cb9
or dword [ebp + 0x10], 0x200000
jmp 0x425cf2
mov eax, dword [0x43be80]
cmp eax, ebx
je 0x425cf2
push eax
call fcn.0041efc1
pop ecx
test eax, eax
je 0x425cf2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425cf2
mov eax, dword [0x43be84]
cmp eax, ebx
je 0x425cf2
push eax
call fcn.0041efc1
pop ecx
test eax, eax
je 0x425cf2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43be7c]
call fcn.0041efc1
pop ecx
test eax, eax
je 0x425d12
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425d14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4078b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43bf9c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x4079ba
cmp eax, 2
jge 0x4079ba
imul edi, eax, 0x214
inc eax
push ecx
push 0x100
mov dword [0x43bf9c], eax
add edi, 0x43bb74
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call fcn.00411013
add esp, 0xc
cmp dword [edi], 0
je 0x4079ba
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x407996
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2c6
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4079ba
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c2c6
mov esp, ebp
pop ebp
ret 8