joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ea9
Capabilities:
Write file on windows

Disassembly:
jmp 0x46fcb0
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
movzx ecx, word [edi + 0xe]
cmp cx, 8
ja 0x46fcd2
mov eax, 1
shl eax, cl
mov dword [esp + 0x28], eax
jmp 0x46fcde
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
mov ebp, dword [edi]
push 0
push 0x80
push 2
push 0
push 0
lea ebx, [eax*4]
mov eax, dword [esp + 0x38]
push 0xc0000000
add ebp, ebx
push eax
add ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46fd29
push 0
push 0
push str.Error_Creating_File
call fcn.004b468e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov eax, dword [edi]
mov edx, dword [edi + 0x14]
lea ecx, [eax + ebx]
lea ecx, [ecx + edx + 0xe]
mov dword [esp + 0x12], ecx
xor ecx, ecx
push ecx
lea edx, [eax + ebx + 0xe]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x28]
push eax
mov word [esp + 0x1e], cx
mov word [esp + 0x20], cx
push 0xe
lea ecx, [esp + 0x1c]
push ecx
push esi
mov word [esp + 0x24], 0x4d42
mov dword [esp + 0x2e], edx
call ebx
test eax, eax
push 0
je 0x46fd8b
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
lea ecx, [eax*4 + 0x28]
push ecx
push edi
push esi
call ebx
test eax, eax
jne 0x46fdaa
push 0
push 0
push str.Error_Writing_File
call fcn.004b468e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov edi, dword [edi + 0x14]
cmp edi, 0xffff
mov ebx, ebp
jbe 0x46fde3
push 0
lea edx, [esp + 0x28]
push edx
push 0xffff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46fd89
sub edi, 0xffff
add ebx, 0xffff
cmp edi, 0xffff
ja 0x46fdb7
push 0
lea eax, [esp + 0x28]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46fd89
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46fe1a
push eax
push eax
push str.File_Close_Failed
call fcn.004b468e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8

Function at 0x403fda
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x463830
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 0x124]
movzx ebp, word [edi + 6]
movzx eax, word [edi + 0x14]
xor ebx, ebx
test ebp, ebp
lea eax, [eax + edi + 0x18]
jbe 0x463882
lea esp, [esp]
mov edx, dword [eax + 8]
test edx, edx
je 0x46385e
mov ecx, dword [eax + 0x10]
cmp edx, ecx
jae 0x463867
mov ecx, dword [eax + 0x10]
mov edx, ecx
cmp edx, ecx
jae 0x463867
mov esi, dword [eax + 0xc]
mov edx, dword [esp + 0x14]
cmp edx, esi
jb 0x463878
add ecx, esi
cmp edx, ecx
jb 0x463895
add ebx, 1
add eax, 0x28
cmp ebx, ebp
jb 0x463850
mov eax, dword [esp + 0x14]
cmp eax, dword [edi + 0x54]
jb 0x46388e
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [eax + 0x14]
cmp eax, dword [edi + 0x3c]
jae 0x4638a8
pop edi
mov eax, edx
sub eax, esi
pop esi
pop ebp
pop ebx
ret 4
pop edi
sub eax, esi
pop esi
pop ebp
add eax, edx
pop ebx
ret 4
Function at 0x404200
Capabilities:
Terminate process

Disassembly:
jmp 0x462eb0
sub esp, 0x328
mov eax, dword [0x5c1d10]
xor eax, esp
mov dword [esp + 0x324], eax
push esi
mov dword [esp + 0x10c], eax
mov dword [esp + 0x108], ecx
mov dword [esp + 0x104], edx
mov dword [esp + 0x100], ebx
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], edi
mov word [esp + 0x124], ss
mov word [esp + 0x118], cs
mov word [esp + 0xf4], ds
mov word [esp + 0xf0], es
mov word [esp + 0xec], fs
mov word [esp + 0xe8], gs
pushfd
pop dword [esp + 0x11c]
mov esi, dword [esp + 0x32c]
lea eax, [esp + 0x32c]
mov dword [esp + 0x120], eax
mov ecx, eax
push 0x50
lea eax, [esp + 0x10]
mov dword [esp + 0x60], 0x10001
mov dword [esp + 0x118], esi
mov edx, dword [ecx - 4]
push 0
push eax
mov dword [esp + 0x11c], edx
call fcn.004f4420
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x5c]
push 0
mov dword [esp + 0x10], 0xc000000d
mov dword [esp + 0x1c], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x462fa5
push 2
call fcn.004f916d
add esp, 4
push 0xc000000d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x328]
pop esi
xor ecx, esp
call fcn.004f409d
add esp, 0x328
ret
Function at 0x4042af
Capabilities:
Get common file path

Disassembly:
jmp 0x428a80
push 0xffffffffffffffff
push 0x54cbc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x80], 0
jne 0x428b80
lea ecx, [esp + 0xc]
call fcn.00404bc4
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x428aed
push 0x104
lea ecx, [esp + 0x10]
call fcn.00403094
mov edx, dword [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x428b05
xor eax, eax
jmp 0x428b1d
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x428b10
sub eax, esi
js 0x428b92
cmp eax, dword [edx - 8]
jg 0x428b92
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0xc]
push 0xd
mov byte [eax + ecx], 0
push str.winhlp32.exe
lea ecx, [esp + 0x14]
call fcn.00404c0a
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x428b68
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x428b68
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402798
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push 0x80070057
call fcn.004027b1
int3

Function at 0x404408
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x427af0
sub esp, 0x110
mov eax, dword [0x5c1d10]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x427b69
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.004f409d
add esp, 0x110
ret 0xc
Function at 0x404872
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x441650
push 0xffffffffffffffff
push 0x54ff28
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x8c]
add eax, 0x7c
push eax
lea ecx, [esp + 0x18]
call fcn.00402d4c
mov dword [esp + 0x58], 0
mov ebx, dword [esp + 0x64]
push ebx
lea ecx, [esp + 0x18]
call fcn.004021b2
mov ebp, eax
test ebp, ebp
je 0x4417cf
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4416c7
push eax
mov ecx, ebp
call fcn.00402cc0
mov edi, eax
test edi, edi
jne 0x4416cb
jmp 0x4417cf
mov edi, dword [esp + 0x60]
push 0x5647d4
push 0x43c
mov ecx, esi
call fcn.004bf5a3
mov ecx, eax
call fcn.004bf794
cmp ebx, 1
je 0x4416f1
cmp ebx, 3
jne 0x4417cf
cmp ebx, 3
mov dword [esp + 0x64], 0
jne 0x441706
mov dword [esp + 0x64], 1
push ebp
call fcn.004b14fa
add esp, 4
test edi, edi
je 0x44171c
push edi
call fcn.004b14fa
add esp, 4
mov ecx, dword [esi + 0x8c]
push 2
push 0
add ecx, 0x7c
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
movzx eax, word [esp + 0x60]
movzx edx, bx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4417cf
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test edi, edi
mov ebx, eax
je 0x4417c8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4417c8
mov eax, dword [edi + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x90], eax
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x64]
mov dword [esi + 0x94], ecx
xor ecx, ecx
cmp eax, ecx
jne 0x4417a5
mov dword [esi + 0x94], ecx
mov dword [esi + 0x90], ecx
mov edx, dword [esi + 0x90]
push ecx
mov ecx, dword [esi + 0x94]
push edx
push ecx
push 0x30000
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esi + 0x98], eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00403445
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8
Function at 0x404886
Capabilities:
Write file on windows

Disassembly:
jmp 0x46f520
mov eax, dword [esp + 4]
sub esp, 0x28
push ebp
push esi
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x46f55e
push esi
push esi
push str.Error_Creating_CUR_File
call fcn.004b468e
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea ecx, [esp + 0x3c]
push ecx
push 6
lea edx, [esp + 0x28]
push edx
push ebp
mov word [esp + 0x30], si
mov word [esp + 0x32], 2
mov word [esp + 0x34], 1
call ebx
test eax, eax
jne 0x46f5a3
push esi
push esi
push str.Error_Writing_ICO
call fcn.004b468e
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret 0xc
cmp dword [esp + 0x38], 6
je 0x46f5c1
push esi
push esi
push str.Error_Writing_CUR
call fcn.004b468e
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret 0xc
push edi
mov edi, dword [esp + 0x40]
mov cl, byte [edi + 0xc]
movzx edx, word [edi + 0x10]
mov al, byte [edi + 8]
add edi, 4
shr cl, 1
mov byte [esp + 0x11], cl
movzx ecx, word [edi + 0xe]
imul ecx, edx
cmp ecx, 8
mov byte [esp + 0x10], al
mov byte [esp + 0x13], 0
mov word [esp + 0x14], si
mov word [esp + 0x16], si
jge 0x46f5ff
mov esi, 1
shl esi, cl
mov eax, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x40]
push ecx
push 0x10
lea edx, [esp + 0x1c]
push edx
push ebp
mov byte [esp + 0x26], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x16
call ebx
test eax, eax
je 0x46f6b6
cmp dword [esp + 0x3c], 0x10
jne 0x46f6b6
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esi*4 + 0x28]
push ecx
push edi
push ebp
call ebx
test eax, eax
je 0x46f6a8
mov eax, dword [edi]
mov edx, dword [esp + 0x44]
lea esi, [eax + esi*4]
add esi, edi
cmp edx, 0xffff
mov dword [esp + 0x40], edx
jbe 0x46f694
push 0
lea ecx, [esp + 0x40]
push ecx
push 0xffff
push esi
push ebp
call ebx
test eax, eax
je 0x46f6a8
mov eax, dword [esp + 0x40]
sub eax, 0xffff
add esi, 0xffff
cmp eax, 0xffff
mov dword [esp + 0x40], eax
ja 0x46f666
mov eax, dword [esp + 0x40]
push 0
lea edx, [esp + 0x40]
push edx
push eax
push esi
push ebp
call ebx
test eax, eax
jne 0x46f6c2
push 0
push 0
push str.Error_Writing_File
call fcn.004b468e
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 0xc
Function at 0x40499e
Capabilities:
Read file on windows

Disassembly:
jmp 0x47dc40
push 0xffffffffffffffff
push 0x55655b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0x154
call fcn.004b14cf
add esp, 4
mov dword [esp + 0x18], eax
xor ebp, ebp
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x47dc8d
mov ecx, eax
call fcn.004025a9
mov edi, eax
jmp 0x47dc8f
xor edi, edi
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
push 0x586900
push eax
push edi
call fcn.004f9b26
add esp, 0xc
test eax, eax
jne 0x47dce0
push 0x6e
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebp
je 0x47dcca
mov ecx, edi
call fcn.00404250
push edi
call fcn.004b14fa
add esp, 4
xor eax, 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
mov ecx, dword [edi]
push ebp
push 0x3c
push ecx
call fcn.004fa081
mov edx, dword [edi]
push edx
push 1
lea eax, [esp + 0x28]
push 4
push eax
call fcn.004fa972
mov ecx, dword [esp + 0x30]
mov edx, dword [edi]
push ebp
push ecx
push edx
call fcn.004fa081
mov eax, dword [edi]
push eax
push 1
lea ecx, [esp + 0x44]
push 4
push ecx
call fcn.004fa972
add esp, 0x38
cmp dword [esp + 0x14], 0x4550
je 0x47dd43
push 0x714
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [edi]
push edx
call fcn.004f984c
add esp, 4
jmp 0x47dcba
mov eax, dword [edi]
push eax
call fcn.004f9f8c
mov ecx, dword [edi]
push ecx
push 1
lea edx, [edi + 8]
push 0x14
push edx
mov dword [edi + 4], eax
call fcn.004fa972
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push ebp
add eax, 0x14
push eax
push ecx
call fcn.004fa081
mov edx, dword [edi]
movzx eax, word [edi + 0x18]
push edx
push 1
push eax
lea ecx, [edi + 0x1c]
push ecx
call fcn.004fa972
movzx edx, word [edi + 0x18]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0x8c]
lea ecx, [edx + eax + 0x14]
mov edx, dword [edi]
push ebp
push ecx
push edx
call fcn.004fa081
xor esi, esi
add esp, 0x3c
cmp word [edi + 0xa], si
jbe 0x47ddf0
mov eax, dword [edi]
push eax
push 1
lea eax, [edi + 0xfc]
push 0x28
push eax
call fcn.004fa972
add esp, 0x10
cmp ebx, esi
jbe 0x47ddc9
cmp ebx, dword [edi + 0x108]
jbe 0x47dddc
movzx ecx, word [edi + 0xa]
mov esi, dword [edi + 0x108]
add ebp, 1
cmp ebp, ecx
jl 0x47dda7
jmp 0x47ddf0
mov edx, dword [edi + 0x110]
mov eax, dword [edi]
push 0
push edx
push eax
call fcn.004fa081
add esp, 0xc
mov eax, dword [edi + 0x10c]
test eax, eax
jne 0x47de15
push 0x714
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [edi]
push ecx
call fcn.004f984c
add esp, 4
jmp 0x47dcba
cmp dword [esp + 0x30], 0
jne 0x47de45
push eax
call fcn.004b14ff
mov edx, dword [edi]
mov esi, eax
mov eax, dword [edi + 0x10c]
push edx
push eax
push 1
push esi
call fcn.004fa972
push edi
call fcn.0047d310
push esi
call fcn.004b1504
add esp, 0x1c
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4049c1
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x4714f0
push ebp
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea edx, [ecx + eax + 0x18]
mov ecx, dword [eax + 0x54]
movzx eax, word [eax + 6]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
sub ecx, eax
sub ecx, edx
add ecx, esi
mov eax, 0xcccccccd
mul ecx
push edi
xor ebp, ebp
xor edi, edi
shr edx, 5
jne 0x471534
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret 8
push ebx
mov ebx, dword [esi + 0x3c]
movzx ecx, word [ebx + esi + 0x14]
add ebx, esi
cmp word [ebx + 6], di
lea ecx, [ecx + ebx + 0x18]
jbe 0x471574
movzx edx, word [ebx + 6]
lea ecx, [ecx]
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
add eax, esi
cmp eax, ebp
jbe 0x47155e
mov ebp, eax
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
add eax, esi
cmp eax, edi
jbe 0x47156c
mov edi, eax
add ecx, 0x28
sub edx, 1
jne 0x471550
mov eax, dword [ecx - 0x20]
sub ecx, 0x28
test eax, eax
je 0x471583
cmp eax, dword [ecx + 0x10]
jae 0x471589
mov edx, dword [ecx + 0x10]
mov dword [ecx + 8], edx
mov esi, dword [ebx + 0x38]
xor edx, edx
mov eax, ebp
div esi
test edx, edx
je 0x47159a
sub esi, edx
add ebp, esi
mov esi, dword [ebx + 0x3c]
xor edx, edx
mov eax, edi
div esi
mov dword [esp + 0x14], edi
test edx, edx
je 0x4715af
sub esi, edx
add edi, esi
mov eax, dword [esp + 0x18]
mov dword [eax + 0x14], edi
mov dword [eax + 0xc], ebp
mov edx, dword [ebx + 0x3c]
cmp dword [eax + 0x10], edx
jae 0x4715c4
mov dword [eax + 0x10], edx
mov edx, dword [ebx + 0x38]
cmp dword [eax + 8], edx
jae 0x4715cf
mov dword [eax + 8], edx
mov esi, eax
lea edi, [ecx + 0x28]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add word [ebx + 6], 1
mov eax, dword [eax + 8]
add eax, ebp
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x404aa7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x429b60
push 0xffffffffffffffff
push 0x54ce10
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
movzx ecx, al
movzx esi, ah
shr eax, 0x10
movzx ebp, al
mov eax, dword [esp + 0x4c]
mov edx, eax
movzx edi, ah
movzx eax, al
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
mov ebx, dword [eax]
mov eax, dword [eax + 8]
sub eax, ebx
mov ebx, dword [esp + 0x50]
shr edx, 0x10
cmp ebx, eax
movzx edx, dl
mov dword [esp + 0x18], eax
jle 0x429bc6
mov ebx, eax
mov eax, dword [esp + 0x48]
sub edi, esi
sub edx, ebp
sub eax, ecx
cmp ebx, 1
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edx
mov edi, ebx
jg 0x429be4
mov edi, 1
shl eax, 8
cdq
idiv edi
cmp ebx, 1
mov edi, ebx
mov dword [esp + 0x1c], eax
jg 0x429bfa
mov edi, 1
mov eax, dword [esp + 0x48]
shl eax, 8
cdq
idiv edi
cmp ebx, 1
mov edi, ebx
mov dword [esp + 0x20], eax
jg 0x429c14
mov edi, 1
mov eax, dword [esp + 0x4c]
shl eax, 8
cdq
idiv edi
shl ecx, 8
shl esi, 8
shl ebp, 8
cmp ebx, 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x14], ebp
mov ecx, ebx
mov dword [esp + 0x24], eax
jg 0x429c43
mov ecx, 1
mov eax, dword [esp + 0x18]
cdq
idiv ecx
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esi]
mov ebp, dword [ecx]
push 8
mov ecx, esi
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x24]
call eax
test ebx, ebx
mov dword [esp + 0x48], 0
jle 0x429d5e
lea eax, [ebx - 1]
cmp dword [esp + 0x48], eax
jne 0x429c85
mov ecx, dword [esp + 0x44]
mov edi, dword [ecx + 8]
jmp 0x429c8c
mov edx, dword [esp + 0x18]
lea edi, [edx + ebp]
mov eax, dword [esp + 0x14]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
xor ecx, ecx
mov ch, al
mov eax, dword [esp + 0x50]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov cl, al
mov eax, dword [esp + 0x4c]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
movzx edx, al
shl ecx, 8
or ecx, edx
mov eax, ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004b5f93
mov dword [esp + 0x38], 0
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.004b5b89
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esi + 4]
lea edx, [edi + 1]
push edx
push ecx
push ebp
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, esi
call fcn.004b5b89
or eax, 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], vtable.CBrush.0
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x28]
call fcn.0040410b
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
add dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add dword [esp + 0x50], ecx
add dword [esp + 0x14], edx
add eax, 1
cmp eax, ebx
mov ebp, edi
mov dword [esp + 0x48], eax
jl 0x429c73
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x14
Function at 0x404d40
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x461d70
push 0xffffffffffffffff
push 0x554b46
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5c1d10]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
lea eax, [ecx + 0x3c]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004015fa
xor edi, edi
mov dword [esp + 0x16c], edi
lea ecx, [esp + 0x1c]
call fcn.00404bc4
mov byte [esp + 0x16c], 1
mov eax, dword [esp + 0x14]
push 0x2e
push eax
call fcn.004f8d1c
mov edx, dword [esp + 0x1c]
add esp, 8
cmp eax, edi
jne 0x461df2
or ecx, 0xffffffff
jmp 0x461df6
sub eax, edx
mov ecx, eax
mov eax, dword [edx - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401bea
push 3
push 0x585df8
lea ecx, [esp + 0x1c]
call fcn.00404c0a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, eax
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x461e40
sub eax, edx
lea esi, [esp + eax + 0x49]
push esi
call fcn.004f814c
add esp, 4
cmp eax, edi
jle 0x461e67
push esi
call fcn.004f814c
add esp, 4
mov edi, eax
test ebp, ebp
jne 0x461e28
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x18]
add eax, 0x3c
add edi, 1
push edi
push ecx
add edx, 0x38
push str._s._.3d
push edx
call fcn.004012df
add esp, 0x10
mov byte [esp + 0x16c], 0
lea ecx, [esp + 0x1c]
call fcn.00402798
mov dword [esp + 0x16c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402798
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.004f409d
add esp, 0x15c
ret

Function at 0x404de0
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x463980
mov ecx, dword [ecx + 0x124]
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
push ebp
lea edx, [eax + ecx + 0x18]
push esi
xor eax, eax
test ebx, ebx
push edi
jbe 0x4639cb
mov ebp, dword [esp + 0x14]
lea edi, [edx + 0x10]
mov ecx, dword [edi - 8]
mov edx, dword [edi]
cmp ecx, edx
jae 0x4639b2
mov ecx, edx
cmp ecx, edx
jb 0x4639b4
mov ecx, edx
mov esi, dword [edi - 4]
cmp ebp, esi
jb 0x4639c1
add esi, ecx
cmp ebp, esi
jb 0x4639ce
add eax, 1
add edi, 0x28
cmp eax, ebx
jb 0x4639a3
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x404e35
Capabilities:
Enumerate gui resources

Disassembly:
jmp 0x486790
mov eax, dword [esp + 4]
push esi
push 2
push 0
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4867bc
push str.Could_not_load_the_image_file.
call fcn.004fa567
add esp, 4
xor eax, eax
pop esi
ret 4
lea ecx, [esi + 0xc]
call fcn.00403bac
mov ecx, dword [esi + 8]
push esi
push 0x40103c
push ecx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov dword [esi + 4], eax
pop esi
ret 4