joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417700
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
jbe 0x41779e
mov al, byte [esp + esi + 0xf]
mov ebp, dword [esp + 0x11c]
cmp al, 0x5c
push edi
setne bl
mov byte [esp + 0x10], bl
mov edi, ebp
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
and edx, 0xff
repne scasb al, byte es:[edi]
mov eax, 0x105
pop edi
not ecx
sub eax, edx
dec ecx
sub eax, esi
cmp ecx, eax
jae 0x41779e
test bl, bl
je 0x417761
mov byte [esp + esi + 0x10], 0x5c
sub edx, ebp
mov eax, ebp
add edx, esi
lea edx, [esp + edx + 0x10]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41776b
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ecx, ecx
pop esi
mov edx, dword [esp + 0x11c]
pop ebp
test eax, eax
setne cl
mov dword [edx], eax
mov eax, ecx
pop ebx
add esp, 0x10c
ret 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 8

Function at 0x417830
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub esp, 0x158
push esi
push edi
mov esi, dword [esp + 0x164]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417876
pop edi
pop esi
add esp, 0x158
ret 4
cmp esi, edi
jne 0x41787e
lea esi, [esp + 8]
lea ecx, [esp + 0x18]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x1c]
push esi
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [esp + 0xc]
mov ebx, eax
cmp esi, ecx
jne 0x4178d1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 0x14], edi
call esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], edi
push eax
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x158
ret 4

Function at 0x4178e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push eax
push ecx
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41793a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41793a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x417933
mov edx, dword [esp + 0x24]
push esi
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, 1
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x417950
Capabilities:
Clear file content

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
lea edx, [esp + 8]
xor ecx, ecx
push 1
xor eax, eax
push edx
push ecx
push eax
push esi
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00417a00
test eax, eax
je 0x4179e7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push edi
push ecx
push edx
push esi
call fcn.00417a00
test eax, eax
je 0x4179e7
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4179c2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edi
push edi
push eax
push ecx
push esi
call fcn.00417a00
test eax, eax
je 0x4179e7
pop edi
mov eax, 1
pop esi
add esp, 8
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0xc]
push 0
push 0
push edx
push eax
push esi
call fcn.00417a00
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x417bc0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call edi
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x417c84
cmp dword [esi], 0x40
jne 0x417c84
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x20
rep stosd dword es:[edi], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x417c22
push esi
call eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
push 0x57
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4
Function at 0x418160
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0x108]
push ebx
push esi
push edi
push 0x104
push eax
xor ebx, ebx
call fcn.00417660
test eax, eax
je 0x418265
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x10]
push 0x104
push ecx
push ebx
lea edx, [esp + 0x120]
push str.afr
push edx
call fcn.004174a0
test eax, eax
jne 0x4181bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418265
push ebx
push 0x80
push 3
push ebx
push ebx
lea eax, [esp + 0x24]
push 0xc0000000
push eax
call fcn.00416f00
mov esi, eax
cmp esi, 0xffffffff
je 0x418265
mov edi, dword [esp + 0x220]
mov edx, dword [esp + 0x21c]
lea ecx, [esp + 0xc]
push ebx
push ecx
push edi
push edx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41825e
cmp edi, dword [esp + 0xc]
jne 0x41825e
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x41825e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
call fcn.00417f40
mov esi, eax
cmp esi, ebx
je 0x418250
push ebx
push 0x4000000
push 3
push ebx
push 1
lea ecx, [esp + 0x24]
push 0xc0000000
push ecx
call fcn.00416f00
push eax
push esi
call fcn.00418280
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x418290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
push ecx
xor ebp, ebp
push edx
push ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x41830d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41830d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4182f8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call fcn.00418160
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov esi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x4187b0
Capabilities:
Check http status code

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
call fcn.00418440
cmp eax, 7
je 0x418870
cmp eax, 0xd
jne 0x4188dd
lea eax, [esp + 0x1c]
push edi
push eax
push 0x13
push esi
mov dword [esp + 0x2c], ebx
call fcn.00418490
test eax, eax
mov edi, dword [esp + 0x1c]
je 0x41884d
cmp dword [esp + 0x20], 0x190
jae 0x41884d
lea ecx, [esp + 0xc]
push ecx
push 5
push esi
call fcn.00418490
test eax, eax
je 0x41882a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov bl, 1
mov dword [edi + 0x20], edx
pop edi
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], 0xa0000004
mov dword [edi + 0x20], edx
pop edi
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], 0xa0000003
mov dword [edi + 0x20], edx
pop edi
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [0x43f0a0]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4188b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4188ae
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
pop esi
mov dword [ecx + 0x1c], 0xa0000004
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov al, bl
pop ebx
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], ebx
jne 0x4188d2
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
mov bl, 1
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x18]
mov dword [edx + 0x1c], 0xa0000005
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
pop esi
mov dword [eax], ecx
mov al, bl
pop ebx
add esp, 0xc
ret 0xc
Function at 0x418900
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x10]
push ebx
push eax
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
mov esi, dword [esp + 0x14]
je 0x418a15
mov eax, dword [esp + 0xc]
test eax, eax
je 0x418a1c
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x18], eax
cmp eax, ecx
jbe 0x418945
mov eax, ecx
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4189e6
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x20]
push eax
push ecx
add eax, ebx
push edx
push eax
push 5
push edi
push esi
call fcn.00418770
test al, al
je 0x4189dd
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4189c6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
cmp eax, 0xffffffff
je 0x4189b8
lea edx, [esp + 0x14]
push 0
push edx
push ecx
mov ecx, dword [esi + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4189d4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x4189d4
mov eax, dword [esp + 0xc]
add ebx, ecx
sub eax, ecx
mov dword [esp + 0xc], eax
jmp 0x4189ca
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x418934
jmp 0x4189f5
mov dword [esi + 0x1c], 0xa0000008
jmp 0x4189ed
mov dword [esi + 0x1c], 0xa0000001
jmp 0x4189ed
mov dword [esi + 0x1c], 0xa0000007
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x418a1c
push 0
lea edx, [esp + 0x10]
push 0
push edx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x418928
mov dword [esi + 0x1c], 0xa0000007
mov eax, dword [esp + 0x20]
cmp ebx, eax
jne 0x418a5a
push 0
push 0
push eax
push ebx
push 6
push edi
push esi
call fcn.00418770
test al, al
je 0x418a4a
mov dword [esi + 0x1c], 0x20000000
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0x10
mov dword [esi + 0x1c], 0xa0000001
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
cmp dword [esi + 0x1c], 0xa0ffffff
jne 0x418a6a
mov dword [esi + 0x1c], 0xa0000009
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10

Function at 0x419520
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov edx, dword [esp + 0x4c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0x3c
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x58]
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
add esp, 0x3c
ret 0x18
Function at 0x419d60
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x419dea
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, 0x102
ja 0x419dd0
je 0x419da7
test eax, eax
je 0x419d9a
cmp eax, 0x80
jne 0x419dd5
mov ecx, dword [esp + 0x14]
mov al, 1
mov dword [ecx], esi
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x419dc7
push 0
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x419dc7
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x102
call ebx
jmp 0x419dd6
cmp eax, 0xffffffff
je 0x419dd6
int3
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
pop edi
mov edx, dword [esp + 0x14]
pop esi
xor al, al
pop ebx
mov dword [edx], 0
ret 0xc

Function at 0x41af50
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, 0x696e4942
mov cl, byte [edx]
test cl, cl
je 0x41af74
shl eax, 3
and ecx, 0xff
xor eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
not eax
jne 0x41af5f
ret 4

Function at 0x41ca20
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.0042b130
mov ecx, dword [esp + 0x1004]
lea eax, [esp + 0x1008]
push eax
push ecx
lea edx, [esp + 8]
push 0x1000
push edx
call fcn.0042b15f
add esp, 0x10
mov byte [esp + 0xfff], 0
test eax, eax
jle 0x41ca6a
cmp eax, 0x1000
jae 0x41ca6a
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1000
ret

Function at 0x41ca80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ebx
push ecx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41caba
mov ebx, dword [ebp + 0xc]
mov esi, 0x4377e8
add ecx, ebx
not eax
movzx edi, byte ds:[ebx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword ds:[esi + edi*4]
inc ebx
cmp ebx, ecx
jne 0x41caa0
not eax
pop edi
pop esi
pop ecx
pop ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41efa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
xor ecx, ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x1c], ecx
push ebx
mov dword [esp + 0x24], ecx
push ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
mov word [esp + 0x30], cx
push esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x10]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x18]
xor edi, edi
push ecx
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
call fcn.0041e9d0
test eax, eax
js 0x41f1dd
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push 0x16
push ecx
push edx
push esi
call fcn.0041cdf0
test al, al
je 0x41f1d8
cmp dword [esp + 0x10], 0x16
jne 0x41f1d8
mov ax, word [esp + 0x28]
cmp ax, word [esp + 0x2a]
jne 0x41f18a
mov cx, word [esp + 0x2c]
cmp cx, word [esp + 0x2e]
jne 0x41f18a
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
cmp ebp, edi
jne 0x41f070
pop edi
pop esi
pop ebp
mov eax, 0x20000000
pop ebx
add esp, 0x5c
ret 0xc
mov esi, dword [esp + 0x70]
xor edi, edi
mov dword [esp + 0x3c], edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
cmp ebp, 0x2e
stosw word es:[edi], ax
jb 0x41f1c3
lea edx, [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
push 0x2e
push eax
push ebx
push esi
call fcn.0041cdf0
test al, al
je 0x41f1d8
cmp dword [esp + 0x10], 0x2e
jne 0x41f1d8
mov cl, byte [esp + 0x42]
sub ebp, 0x2e
and ecx, 0xff
cmp ecx, 0x20
ja 0x41f18a
mov ecx, dword [esp + 0x58]
mov eax, ecx
and eax, 0xffff
cmp ebp, eax
jb 0x41f1c3
test cx, cx
je 0x41f199
inc eax
push eax
call fcn.00422aa0
mov esi, eax
test esi, esi
je 0x41f1a8
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x10]
and eax, 0xffff
push edx
push eax
push esi
push ecx
call fcn.0041cdb0
test al, al
je 0x41f1d2
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
and eax, 0xffff
cmp eax, ecx
jne 0x41f1d2
lea edx, [esp + 0x3c]
lea ebx, [ebx + eax + 0x2e]
sub ebp, eax
mov byte [eax + esi], 0
push edx
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0041eda0
push esi
mov edi, eax
call fcn.00422f50
test edi, edi
js 0x41f1b7
mov ecx, dword [esp + 0x5a]
and ecx, 0xffff
cmp ebp, ecx
jb 0x41f1c3
mov eax, dword [esp + 0x5c]
sub ebp, ecx
and eax, 0xffff
cmp ebp, eax
jb 0x41f1c3
add ecx, eax
add ebx, ecx
sub ebp, eax
jne 0x41f06a
pop edi
pop esi
pop ebp
mov eax, 0x20000000
pop ebx
add esp, 0x5c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa0000009
pop ebx
add esp, 0x5c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa0000007
pop ebx
add esp, 0x5c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa000000a
pop ebx
add esp, 0x5c
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa0000002
pop ebx
add esp, 0x5c
ret 0xc
push esi
call fcn.00422f50
mov eax, 0xa0000003
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
Function at 0x41f470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
xor esi, esi
mov dl, byte [esp + esi + 8]
mov al, 1
mov ecx, esi
shl al, cl
test dl, 0x40
je 0x41f4aa
or byte [esp + 0x10], al
test dl, 0x10
je 0x41f4b3
or byte [esp + 0x11], al
test dl, 4
je 0x41f4bc
or byte [esp + 0x12], al
test dl, 1
je 0x41f4c5
or byte [esp + 0x13], al
test dl, dl
jns 0x41f4cd
or byte [esp + 0x14], al
test dl, 0x20
je 0x41f4d6
or byte [esp + 0x15], al
test dl, 8
je 0x41f4df
or byte [esp + 0x16], al
test dl, 2
je 0x41f4e8
or byte [esp + 0x17], al
inc esi
dec edi
jne 0x41f497
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
push ebx
xor bl, bl
push ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov byte [esp + 0x18], bl
and edi, 1
mov eax, dword [esp + 0x18]
and eax, 0xff
lea ecx, [eax + eax*2]
lea eax, [esp + 0x10]
lea edx, [ebp + ecx*2]
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.0041f5e0
mov eax, dword [esp + 0x2c]
xor eax, esi
mov esi, dword [esp + 0x10]
test edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
jne 0x41f54c
inc bl
cmp bl, 0x10
mov byte [esp + 0x18], bl
jb 0x41f50b
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], esi
pop ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
xor esi, esi
mov edi, 8
pop ebx
mov cl, byte [esp + esi + 8]
mov al, byte [esi + 0x437d88]
test cl, 1
je 0x41f57a
or byte [esp + 0x10], al
test cl, 2
je 0x41f583
or byte [esp + 0x11], al
test cl, 4
je 0x41f58c
or byte [esp + 0x12], al
test cl, 8
je 0x41f595
or byte [esp + 0x13], al
test cl, 0x10
je 0x41f59e
or byte [esp + 0x14], al
test cl, 0x20
je 0x41f5a7
or byte [esp + 0x15], al
test cl, 0x40
je 0x41f5b0
or byte [esp + 0x16], al
test cl, cl
jns 0x41f5b8
or byte [esp + 0x17], al
inc esi
dec edi
jne 0x41f567
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x41fe60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
test al, 1
je 0x41fe81
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.0041f470
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, 8
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
xor esi, esi
mov dl, byte [esp + esi + 0x10]
mov al, 1
mov ecx, esi
shl al, cl
test dl, 0x40
je 0x41feb8
or byte [esp + 8], al
test dl, 0x10
je 0x41fec1
or byte [esp + 9], al
test dl, 4
je 0x41feca
or byte [esp + 0xa], al
test dl, 1
je 0x41fed3
or byte [esp + 0xb], al
test dl, dl
jns 0x41fedb
or byte [esp + 0xc], al
test dl, 0x20
je 0x41fee4
or byte [esp + 0xd], al
test dl, 8
je 0x41feed
or byte [esp + 0xe], al
test dl, 2
je 0x41fef6
or byte [esp + 0xf], al
inc esi
dec edi
jne 0x41fea5
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 8]
push ebx
push ebp
mov dword [esp + 0x2c], edi
lea ebx, [ecx + 0x5a]
mov ebp, 0x10
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0041f5e0
sub ebx, 6
mov eax, dword [esp + 0x28]
xor eax, esi
mov esi, edi
mov edi, eax
dec ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
jne 0x41ff14
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], esi
pop ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor esi, esi
mov edi, 8
pop ebx
mov cl, byte [esp + esi + 0x10]
mov al, byte [esi + 0x437d88]
test cl, 1
je 0x41ff6a
or byte [esp + 8], al
test cl, 2
je 0x41ff73
or byte [esp + 9], al
test cl, 4
je 0x41ff7c
or byte [esp + 0xa], al
test cl, 8
je 0x41ff85
or byte [esp + 0xb], al
test cl, 0x10
je 0x41ff8e
or byte [esp + 0xc], al
test cl, 0x20
je 0x41ff97
or byte [esp + 0xd], al
test cl, 0x40
je 0x41ffa0
or byte [esp + 0xe], al
test cl, cl
jns 0x41ffa8
or byte [esp + 0xf], al
inc esi
dec edi
jne 0x41ff57
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
add esp, 0x10
ret 0xc

Function at 0x420270
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x44]
push edi
push 8
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x3c
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x4202da
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
mov eax, dword [edx + 0x1c]
push 0
push 0x69
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 1
call fcn.00419c70
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 1
push 0x69
push esi
call fcn.00419c70
pop edi
pop esi
add esp, 0x3c
ret 4