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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
jg 0x40c528
xor eax, eax
jmp 0x40c5e9
mov edx, dword [ebp - 0xc]
test edx, edx
jns 0x40c532
add edx, 0xf
sar edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, 4
mov ecx, dword [eax]
xor ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, ebx
mov eax, dword [eax + 0xc]
xor eax, dword [edx + 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.0040c984
add dword [ebp - 8], 0x10
mov edx, dword [ebp - 0x14]
dec edx
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jle 0x40c5c5
mov eax, ebx
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
xor ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0xc]
xor eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
add ebx, 0x10
lea edx, [ebp - 0x24]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c984
add dword [ebp - 8], 0x10
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jg 0x40c581
mov eax, dword [ebp - 4]
add eax, 4
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
shl eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40c607
test esi, esi
jg 0x40c60e
xor eax, eax
jmp 0x40c6c4
push 0x10
mov edx, dword [ebp - 4]
add edx, 4
push edx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00436510
add esp, 0xc
test esi, esi
jns 0x40c62a
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x40c6a9
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040cfb4
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [eax]
xor dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor dword [ebp - 0x14], ecx
mov eax, dword [eax + 0xc]
xor dword [ebp - 0x10], eax
mov eax, edx
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x40c63c
push 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00436510
add esp, 0xc
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c8e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
shl ebx, 2
add edx, edi
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx ebp, byte [edx + 1]
mov bl, byte [edx]
lea ebp, [ebp*4 + 0x448222]
lea ebx, [ebx*4 + 0x447e22]
mov bl, byte [ebx + eax]
xor bl, byte [ebp + eax]
movzx ebp, byte [edx + 2]
movzx edx, byte [edx + 3]
lea ebp, [ebp*4 + 0x448622]
lea edx, [edx*4 + 0x448a22]
xor bl, byte [ebp + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x40c8fa
inc eax
cmp eax, 4
jl 0x40c8f8
mov ecx, esi
push 0x10
shl ecx, 4
lea eax, [esp + 4]
add ecx, edi
push eax
add ecx, 0x14
push ecx
call fcn.00436510
add esp, 0xc
inc esi
cmp esi, 0xa
jl 0x40c8f6
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40ee84
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax]
cmp edx, 0x11
jle 0x40eea4
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x44], ecx
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x38], ecx
xor ecx, ecx
mov dword [eax + edx*4], ecx
dec edx
cmp edx, 0x11
jg 0x40ee8b
cmp dword [eax], 0x11
jbe 0x40eebf
mov dword [eax], 0x11
jmp 0x40eeb3
dec dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x40eebf
cmp dword [eax + edx*4], 0
je 0x40eeb1
ret

Function at 0x40f6f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jae 0x40f73f
mov eax, 1
jmp 0x40f718
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi]
jbe 0x40f70e
mov ecx, dword [ebx]
mov edx, eax
sub ecx, dword [esi]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, ebx
add edx, edi
push ecx
push edx
call fcn.00436510
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40f7a4
mov eax, dword [esi]
cmp eax, dword [ebx]
jbe 0x40f77d
mov eax, 1
jmp 0x40f756
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [ebx]
jbe 0x40f74c
mov ecx, dword [esi]
mov edx, eax
sub ecx, dword [ebx]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, esi
add edx, edi
push ecx
push edx
call fcn.00436510
add esp, 0xc
mov eax, dword [esi]
mov dword [edi], eax
jmp 0x40f7a4
mov eax, dword [ebx]
test eax, eax
jbe 0x40f790
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
jne 0x40f790
dec eax
test eax, eax
ja 0x40f783
mov dword [edi], eax
test eax, eax
jbe 0x40f7a4
mov ecx, dword [esi + eax*4]
xor ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
dec eax
test eax, eax
ja 0x40f796
pop edi
pop esi
pop ebx
ret
Function at 0x418e68
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xffffff70
xor eax, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor edx, edx
mov dword [esp + 8], edx
mov esi, dword [esp + 8]
jmp 0x418ee5
xor eax, eax
mov edx, dword [esp]
add edx, esi
add edx, eax
mov cl, byte [edx + 1]
mov byte [esp + eax + 0x19], cl
mov bl, byte [edx]
sub bl, cl
mov byte [esp + eax + 0x18], bl
mov dl, byte [edx + 2]
sub dl, cl
mov byte [esp + eax + 0x1a], dl
add eax, 3
cmp eax, 0x78
jl 0x418e93
mov ebx, 3
mov cl, byte [esp + ebx + 0x18]
sub cl, byte [esp + ebx + 0x15]
movsx ecx, cl
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 8]
add dword [esp + edx*4 + 0xc], eax
inc ebx
cmp ebx, 0x78
jl 0x418ebf
add esi, 0x780
mov eax, dword [esp + 4]
add eax, 0xffffff88
cmp esi, eax
jl 0x418e91
inc dword [esp + 8]
cmp dword [esp + 8], 2
jle 0x418e8b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp edx, eax
jb 0x418f11
cmp eax, dword [esp + 0x14]
ja 0x418f11
xor eax, eax
jmp 0x418f23
cmp edx, dword [esp + 0x14]
ja 0x418f1e
mov eax, 1
jmp 0x418f23
mov eax, 2
add esp, 0x90
pop esi
pop ebx
ret
Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]

Function at 0x414dd8
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], ebx
mov edx, 0xd1140e99
or ecx, edx
mov edx, 0x11e7be65
add eax, 4
and edx, edx
add ecx, 0x76475b01
cmp eax, edi
jne fcn.00414dd8
sub edx, 1
dec ecx
ret
Function at 0x406291
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4261d0]
jne 0x40629b
repz ret
jmp fcn.0040871c

Function at 0x40adfc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4261d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004074b2
and dword [ebp - 0x14], 0
cmp dword [0x427a30], 0
mov dword [ebp - 0x18], eax
jne 0x40aeaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40af57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40af57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x427a30], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x427a34], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x427a38], eax
call edi
push eax
call esi
mov dword [0x427a40], eax
test eax, eax
je 0x40aeaf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x427a3c], eax
mov eax, dword [0x427a3c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af08
cmp dword [0x427a40], ecx
je 0x40af08
push eax
call esi
push dword [0x427a40]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af08
test ebx, ebx
je 0x40af08
call edi
test eax, eax
je 0x40aeff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aeff
test byte [ebp - 8], 1
jne 0x40af08
or dword [ebp + 0x10], 0x200000
jmp 0x40af3b
mov eax, dword [0x427a34]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40af3b
mov eax, dword [0x427a38]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x427a30]
call esi
test eax, eax
je 0x40af57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40af59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406291
leave
ret

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, 0x3fe8683c
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x63655d3c
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x15cc0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 0x14], ebp
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0x21400
mov dword [ebp - 0x20], 0x19be4
mov eax, dword fs:[0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword fs:[0], eax
call sub.KERNEL32.dll_GetCommandLineA
mov dword [0x1f304], eax
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x1f30c], eax
call sub.KERNEL32.dll_GetVersion
mov dl, ah
and edx, 0xff
mov dword [0x265fc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x265f8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x265f4], ecx
shr eax, 0x10
mov dword [0x265f0], eax
call fcn.0001a1d0
call fcn.00019a80
call fcn.00019fc0
call fcn.00019ef0
call fcn.00015a50
mov dword [ebp - 0x18], 0
mov eax, dword [0x26608]
push eax
mov eax, dword [0x26604]
push eax
mov eax, dword [0x26600]
push eax
call fcn.00014e00
add esp, 0xc
push eax
call fcn.00015a80
jmp 0x15dac
add esp, 4
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x16eb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
push edi
sub eax, eax
mov ecx, 0x26918
mov edx, dword [esp + 0xc]
nop
cmp dword [ecx], edx
je 0x16ed0
add ecx, 8
inc eax
cmp ecx, 0x26990
jb 0x16ec0
shl eax, 3
cmp dword [eax + 0x26918], edx
jne 0x16f03
mov edx, dword [eax + 0x2691c]
lea eax, [esp + 4]
push 0
push eax
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov eax, dword [0x26d60]
push eax
call sub.KERNEL32.dll_WriteFile
pop edi
add esp, 4
ret
Function at 0x197d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x410
push ebx
push esi
push edi
push ebp
mov eax, dword [esp + 0x424]
cmp eax, dword [0x26d10]
jb 0x19810
mov dword [0x265e4], 9
mov dword [0x265e8], 0
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov dword [esp + 0x14], 0
sub ebx, ebx
mov ebp, dword [esp + 0x42c]
cmp ebp, ebx
jne 0x19832
sub eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x424]
test byte [eax + 0x26d18], 0x20
je 0x1984f
push 2
push 0
push eax
call fcn.00019a00
add esp, 0xc
mov eax, dword [esp + 0x424]
test byte [eax + 0x26d18], 0x80
je 0x198f1
mov esi, dword [esp + 0x428]
mov dword [esp + 0x18], 0
mov eax, esi
sub eax, dword [esp + 0x428]
cmp eax, ebp
jae 0x19939
lea edi, [esp + 0x1c]
mov eax, esi
sub eax, dword [esp + 0x428]
cmp eax, ebp
jae 0x198b2
mov al, byte [esi]
inc esi
cmp al, 0xa
jne 0x198a0
inc ebx
mov byte [edi], 0xd
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x1c]
sub eax, ecx
cmp eax, 0x400
jl 0x19887
lea eax, [esp + 0x1c]
sub edi, eax
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [esp + 0x24]
push edi
push eax
mov eax, dword [esp + 0x434]
mov eax, dword [eax*4 + 0x26d58]
push eax
call sub.KERNEL32.dll_WriteFile
or eax, eax
je 0x19930
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], edi
jge 0x19872
jmp 0x19939
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x430]
push ebp
push eax
mov eax, dword [esp + 0x434]
mov eax, dword [eax*4 + 0x26d58]
push eax
call sub.KERNEL32.dll_WriteFile
or eax, eax
je 0x19930
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x19939
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], 0
jne 0x199e4
cmp dword [esp + 0x18], 0
je 0x19992
cmp dword [esp + 0x18], 5
jne 0x19975
mov dword [0x265e4], 9
mov eax, dword [esp + 0x18]
mov dword [0x265e8], eax
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.0001c000
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x424]
test byte [eax + 0x26d18], 0x40
je 0x199c0
mov eax, dword [esp + 0x428]
cmp byte [eax], 0x1a
jne 0x199c0
sub eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov dword [0x265e4], 0x1c
mov dword [0x265e8], 0
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x14]
sub eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
Function at 0x1cb80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
push esi
push edi
push ebp
mov word [esp + 0x12], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
lea ebp, [esp + 0x54]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0
add byte [eax], al
mov dword [esp + 0x38], 0
sub esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], esi
sub ecx, ecx
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x20], edi
mov edi, edi
mov al, byte [edi]
cmp al, 0x20
je 0x1cbf2
cmp al, 9
je 0x1cbf2
cmp al, 0xa
je 0x1cbf2
cmp al, 0xd
jne 0x1cbf5
inc edi
jmp 0x1cbe0

Function at 0x1cc08
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add bh, bh
and al, 0x8d
mov al, byte [0x800001d2]
cmp bl, 0x31
jl 0x1cc20
cmp bl, 0x39
jg 0x1cc20

Function at 0x1d720
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
push ebp
mov esi, dword [esp + 0x20]
cmp esi, dword [0x26d10]
jb 0x1d754
mov dword [0x265e4], 9
mov dword [0x265e8], 0
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
sub edi, edi
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
cmp edx, edi
je 0x1d93a
mov cl, byte [esi + 0x26d18]
test cl, 2
jne 0x1d93a
test cl, 0x48
je 0x1d795
mov cl, byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n]
cmp cl, 0xa
je 0x1d795
mov byte [eax], cl
inc eax
mov edi, 1
dec edx
mov byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n], 0xa
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push eax
mov eax, dword [esi*4 + 0x26d58]
mov ch, 0x58
insd dword es:[edi], dx
add al, byte [eax]
sub eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x401340
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 0x401359
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401394
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401390
lea ebx, [ebx]
cmp esi, eax
jae 0x401394
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401380
cmp esi, eax
jb 0x40139a
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 0x401b90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
mov ebx, eax
mov eax, dword [esp + 0x14]
mov cl, byte [eax]
mov dl, byte [eax + 1]
push ebp
mov ebp, dword [esp + 0x14]
test ebx, ebx
jle 0x401c38
sub ebp, dword [0x449988]
push esi
push edi
movzx esi, cl
movzx edi, dl
mov dword [esp + 0x14], ebx
mov edi, edi
lea eax, [esi + 1]
cdq
mov ecx, 0xf2
idiv ecx
mov ebx, dword [0x44c32c]
movzx esi, dl
movzx eax, byte [esi + ebx]
lea ecx, [esi + ebx]
add eax, edi
mov byte [esp + 0x12], dl
cdq
mov edi, 0xf2
idiv edi
movzx edi, dl
add ebx, edi
mov eax, ebx
mov byte [esp + 0x13], dl
call fcn.00401c50
movzx eax, byte [ecx]
movzx edx, byte [ebx]
add eax, edx
cdq
mov ecx, 0xf2
idiv ecx
mov eax, dword [0x44c32c]
inc ebp
movzx edx, dl
mov cl, byte [edx + eax]
xor byte [ebp - 1], cl
sub dword [esp + 0x14], 1
jne 0x401bc0
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x12]
mov cl, byte [esp + 0x13]
pop edi
pop esi
pop ebp
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebx
add esp, 8
ret
pop ebp
mov byte [eax], cl
mov byte [eax + 1], dl
pop ebx
add esp, 8
ret

Function at 0x401c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0
push 0x40
push 0x3000
push 0x11
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_VirtualAllocExNuma
test eax, eax
je 0x401c87
mov dword [0x449988], 0
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov cl, byte [esi + 0x10]
mov byte [eax + 0x10], cl
ret

Function at 0x4096bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4096df
cmp dword [edi + 0x54], 0
jne 0x4096df
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041419d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040967c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8