joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401070
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42af39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4385e8]
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, dword [0x4385e8]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 4], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
push ebx
mov ecx, esi
mov byte [esp + 0x1c], 3
call fcn.004013b0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x28], ebx
mov edx, dword [0x4385e8]
mov eax, edi
mov dword [edi + 0x40], edx
mov dword [edi], 0x42d5d0
mov dword [edi + 0x44], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403470
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x42b148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.00427d22
mov edi, dword [eax + 0x10]
push 0x4383b4
lea ecx, [esp + 0xc]
call fcn.0041f470
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.0041f76a
mov eax, dword [esp + 8]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x403515
mov ecx, dword [esp + 8]
push ecx
push 4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 4
push 0
push 0
push 6
push eax
mov dword [0x43c6a4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea edx, [esi + 4]
push 1
push edx
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040783f
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0xc]
call fcn.0040787b
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
setne al
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.0041f402
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x403550
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
push esi
push edi
mov esi, ecx
push 4
push 0
push 0
mov eax, dword [esi + 0xc]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esi + 4]
push 1
push ecx
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.0040783f
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esi + 0xc], 0
call fcn.0040787b
pop edi
pop esi
add esp, 0xc
ret
Function at 0x403c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b26e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [esp + 0x50]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x66
mov dword [esp + 0x18], ebp
call fcn.00423be0
xor edi, edi
mov dword [ebp + 0x60], 0x42d9c0
mov dword [esp + 0x58], edi
mov dword [ebp + 0x64], edi
lea esi, [ebp + 0x68]
mov dword [esi + 4], edi
mov dword [esi], vtable.CFont.0
lea ebx, [ebp + 0x70]
mov dword [ebx + 4], edi
mov dword [ebx], vtable.CFont.0
lea ecx, [ebp + 0x78]
mov byte [esp + 0x58], 3
call fcn.00402890
lea ecx, [ebp + 0x94]
mov byte [esp + 0x58], 4
call fcn.004024c0
mov edx, dword [0x4385e8]
lea ecx, [ebp + 0xd4]
mov dword [ecx], edx
mov eax, dword [0x4385e8]
mov dword [ebp + 0xdc], eax
push 0x43c6a0
mov byte [esp + 0x5c], 7
mov dword [ebp], method.CDialog.virtual_0
mov dword [ebp + 0x5c], 0xffffffff
call fcn.0041f58b
call fcn.00427d22
call fcn.00427d22
mov eax, dword [eax + 0xc]
push 0x8c
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x438498
push 0x5a
mov ecx, esi
mov dword [ebp + 0xd8], eax
mov byte [ebp + 0x90], 0
call fcn.0042745f
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, 0x438498
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], 0xf
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push 0x20
push 0
push 0
mov edx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov ecx, ebx
call fcn.00425f16
mov ecx, dword [esp + 0x50]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 4

Function at 0x403ef0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x42b310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [0x4385e8]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [0x43c7c4]
mov byte [esp + 0x10], 1
cmp eax, 0x1f5348
jne 0x403f32
push 0xe005
jmp 0x403f37
push 0xe017
lea ecx, [esp + 8]
call fcn.00424081
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x43c768]
test eax, eax
jne 0x403f72
test esi, esi
jne 0x403f5c
xor eax, eax
jmp 0x403f5f
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x18]
push 0x20
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
mov byte [esp + 0x10], 0
call fcn.0041f402
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041f402
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x404ef0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret 4

Function at 0x404f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.0041ea37
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ebp
mov dword [esp + 0x30], 0
call fcn.0041f470
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00404d50
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x404f84
mov edx, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [edx + edi*4]
push eax
call fcn.00404ef0
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x404f6c
push ebp
mov ecx, esi
call fcn.00404ef0
push ebp
mov ecx, esi
call fcn.00404fd0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0041f402
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041ea6a
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x404fd0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42b436
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [esp], ecx
push ebp
lea ecx, [esp + 0x10]
call fcn.00408234
mov ebp, dword [esp + 0x35c]
lea eax, [esp + 0xf4]
push ebp
push 0x4384f8
push eax
mov dword [esp + 0x360], 0
call fcn.0040fee1
add esp, 0xc
lea ecx, [esp + 0xf4]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.004082f7
test eax, eax
je 0x40511d
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00408517
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.004084de
test eax, eax
jne 0x40510f
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.0040870f
push 0xc8
mov ecx, eax
mov byte [esp + 0x360], 1
call fcn.0041f7be
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x35c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041f402
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
lea eax, [esp + 0x34]
push eax
push ebp
push 0x4380c0
je 0x4050f1
lea ecx, [esp + 0x1d0]
push ecx
call fcn.0040fee1
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x1c4]
push edx
call fcn.00404fd0
jmp 0x40510f
lea ecx, [esp + 0x298]
push ecx
call fcn.0040fee1
add esp, 0x10
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40503e
pop edi
pop esi
lea ecx, [esp + 0x10]
call fcn.004082ad
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x40515f
call fcn.00408271
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret 4
call fcn.00408271
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 4
Function at 0x4053c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x42b488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push edi
push eax
lea ecx, [esp + 0x30]
call fcn.0041f177
mov ecx, dword [0x4385e8]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x2c]
xor edi, edi
mov byte [esp + 0x24], 1
cmp dword [eax - 8], esi
jle 0x405477
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + eax], 0x5c
jne 0x40546e
lea edx, [esi + 1]
lea eax, [esp + 0x10]
push edx
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0041e197
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0041f53b
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0041f402
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ecx
push edx
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0xc
call ebp
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x40540f
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.0041f402
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041f402
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x4054b0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4054cf
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push 0x438500
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405519
xor eax, eax
add esp, 0x14
ret
push 0x80020003
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x405550
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x405d10
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42b586
push eax
mov dword fs:[0], esp
sub esp, 0x10c
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
mov ebp, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x405d84
mov edi, 0x4380c8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43854c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0041f470
xor ebx, ebx
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], ebx
call fcn.0041e22d
cmp eax, ebx
jle 0x405e0a
push eax
lea ecx, [esp + 0x18]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041e197
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call fcn.0041f53b
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], bl
call fcn.0041f402
push 0x4384dc
lea ecx, [esp + 0x14]
call fcn.0041f76a
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00404f10
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.0041f402
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x405e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b5b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
lea eax, [esp + 0x10]
push edi
mov esi, ecx
push eax
call fcn.00405790
mov edi, dword [esp + 0x38]
push 0x438574
lea ecx, [esp + 0x14]
push edi
push ecx
mov dword [esp + 0x3c], 0
call fcn.0041f697
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0042412c
push 0x4380c8
lea edx, [esp + 0x10]
push edi
push edx
mov byte [esp + 0x3c], 2
call fcn.0041f697
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov byte [esp + 0x34], 3
call fcn.004053c0
mov ecx, dword [esp + 0x10]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x24]
call fcn.004242de
pop edi
pop esi
test eax, eax
jne 0x405f5f
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.0041f402
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00424221
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0041f402
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041f402
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov edx, dword [0x4385e8]
mov dword [esp], edx
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push eax
push 0x43855c
push ecx
mov byte [esp + 0x34], 4
call fcn.0041e5d5
mov eax, dword [esp + 0xc]
add esp, 0xc
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00424435
lea ecx, [esp + 0x10]
call fcn.004244f9
lea ecx, [esp]
mov byte [esp + 0x28], 3
call fcn.0041f402
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.0041f402
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00424221
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0041f402
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041f402
mov ecx, dword [esp + 0x20]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x406670
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41d960
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00410b70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41da2b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41da2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41d9de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41d9e9
or bh, 8
and edi, 0x8000000
je 0x41da04
mov eax, dword [0x43ffdc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41da2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41de00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41de2b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41de4f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41de6a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x421c97
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x421cd9
call fcn.00427d22
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x421cd9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x421cd0
xor eax, eax
jmp 0x421ce1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00421ce7
pop edi
pop esi
pop ebx
ret 4

Function at 0x423914
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x423936
cmp dword [edi + 0x3c], 0
jne 0x423936
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00427d22
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00423963
pop edi
pop esi
pop ebx
ret 8
Function at 0x4074c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49077b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048563a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407542
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048354c
mov eax, dword [eax]
push 0x52dc58
push eax
call fcn.00475784
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004858c5
test bl, bl
je 0x407542
push 0x52dc58
lea ecx, [esp + 0xc]
call fcn.00485c55
push 0x52dc64
lea ecx, [esp + 0xc]
call fcn.00485c55
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40757e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004858c5
jmp 0x407649
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407602
lea edx, [esp + 0x7c]
push 0x52dc60
push edx
call fcn.00475784
add esp, 8
test eax, eax
je 0x407602
lea eax, [esp + 0x7c]
push 0x52dc5c
push eax
call fcn.00475784
add esp, 8
test eax, eax
je 0x407602
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407592
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004858c5
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x407e50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407eb2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc