joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f490
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4592a6
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.00412a81
mov ebp, dword [esp + 0x35c]
lea eax, [esp + 0xf4]
push ebp
push str._s.
push eax
mov dword [esp + 0x360], 0
call fcn.0041dd35
add esp, 0xc
lea ecx, [esp + 0xf4]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00412b44
test eax, eax
je 0x40f5dd
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00412d64
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00412d2b
test eax, eax
jne 0x40f5cf
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.00412f5c
push 0xc8
mov ecx, eax
mov byte [esp + 0x360], 1
call fcn.0043f3c4
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.0043ef94
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 str._s_s
je 0x40f5b1
lea ecx, [esp + 0x1d0]
push ecx
call fcn.0041dd35
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x1c4]
push edx
call fcn.0040f490
jmp 0x40f5cf
lea ecx, [esp + 0x298]
push ecx
call fcn.0041dd35
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 0x40f4fe
pop edi
pop esi
lea ecx, [esp + 0x10]
call fcn.00412afa
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x40f61f
call fcn.00412abe
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret 4
call fcn.00412abe
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 4
Function at 0x40f6d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4592e8
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.0043ed09
mov ecx, dword [0x47407c]
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 0x40f787
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + eax], 0x5c
jne 0x40f77e
lea edx, [esi + 1]
lea eax, [esp + 0x10]
push edx
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0043c24b
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0043f0cd
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0043ef94
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 0x40f71f
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.0043ef94
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043ef94
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x40f7c0
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 0x40f7df
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
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 0x40f829
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 0x40ffe0
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4593f6
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 0x410054
mov edi, 0x4710f4
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, str.SetupFile.bin
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.0043f002
xor ebx, ebx
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], ebx
call fcn.0043c42b
cmp eax, ebx
jle 0x4100da
push eax
lea ecx, [esp + 0x18]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043c24b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call fcn.0043f0cd
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], bl
call fcn.0043ef94
push str.ChinaVnet
lea ecx, [esp + 0x14]
call fcn.0043f370
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.0040f3d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.0043ef94
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x410150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x459428
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.0040fc90
mov edi, dword [esp + 0x38]
push str.param.ini
lea ecx, [esp + 0x14]
push edi
push ecx
mov dword [esp + 0x3c], 0
call fcn.0043f229
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00445020
push 0x4710f4
lea edx, [esp + 0x10]
push edi
push edx
mov byte [esp + 0x3c], 2
call fcn.0043f229
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov byte [esp + 0x34], 3
call fcn.0040f6d0
mov ecx, dword [esp + 0x10]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x24]
call fcn.004451d2
pop edi
pop esi
test eax, eax
jne 0x41022f
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.0043ef94
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00445115
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0043ef94
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0043ef94
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov edx, dword [0x47407c]
mov dword [esp], edx
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push eax
push str._Env__r_nSourcePath_s_r_n
push ecx
mov byte [esp + 0x34], 4
call fcn.0043c78e
mov eax, dword [esp + 0xc]
add esp, 0xc
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00445329
lea ecx, [esp + 0x10]
call fcn.004453ed
lea ecx, [esp]
mov byte [esp + 0x28], 3
call fcn.0043ef94
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.0043ef94
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00445115
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0043ef94
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0043ef94
mov ecx, dword [esp + 0x20]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x4108d0
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 0x4254f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x475bf0
cmp edx, dword [eax]
je 0x425518
add eax, 8
inc ecx
cmp eax, 0x475c80
jl 0x425509
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x475bf0]
jne 0x425646
mov eax, dword [0x479038]
cmp eax, 1
je 0x425620
test eax, eax
jne 0x425549
cmp dword [0x475258], 1
je 0x425620
cmp edx, 0xfc
je 0x425646
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x425580
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00426980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004266a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4255c3
lea eax, [ebp - 0x1a4]
push eax
call fcn.004266a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x460b50
push edi
call fcn.0041e910
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00426980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00426990
lea eax, [ebp - 0xa0]
push 0x460b30
push eax
call fcn.00426990
push dword [esi + 0x475bf4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00426990
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042a48d
add esp, 0x2c
pop edi
jmp 0x425646
lea eax, [ebp + 8]
lea esi, [esi + 0x475bf4]
push 0
push eax
push dword [esi]
call fcn.004266a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430050
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.004303b0
test eax, eax
jne 0x430134
push ebx
push ebp
push eax
push eax
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0xffffffff
je 0x4300b9
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
mov dword [esi + 0x38], ecx
push 0
mov dword [esi + 0x34], edx
mov edx, dword [esi + 4]
push eax
lea ecx, [esi + 0x1c]
push 0x24
push ecx
push edx
call ebx
mov eax, dword [esi + 0x170]
xor ebp, ebp
test eax, eax
jle 0x43010e
push edi
mov eax, dword [esi + 0x16c]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push 0
mov edi, dword [eax + ebp*4]
push ecx
push 0x128
push edi
push edx
call ebx
mov eax, dword [edi + 0xc]
test eax, eax
jle 0x430102
mov edi, dword [edi + 0x128]
test edi, edi
je 0x430102
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
push edx
call ebx
mov eax, dword [esi + 0x170]
inc ebp
cmp ebp, eax
jl 0x4300c6
pop edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop ebp
pop ebx
test eax, eax
jne 0x430128
mov eax, 6
pop esi
add esp, 0x1c
ret
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x430560
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x45b058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov eax, dword [0x47407c]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 1
cmp dword [eax - 8], esi
jle 0x430603
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + eax], 0x5c
jne 0x4305fa
lea ecx, [esi + 1]
lea edx, [esp + 0xc]
push ecx
push 0
push edx
lea ecx, [esp + 0x38]
call fcn.0043c24b
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.0043f0cd
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0043ef94
mov edx, dword [esp + 8]
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0xc
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x43059d
pop edi
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0043ef94
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043ef94
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x430a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebx
call fcn.00445020
mov edi, dword [esp + 0x30]
mov byte [esp + 0x24], 1
cmp edi, ebx
je 0x430af0
mov eax, dword [esp + 0x38]
push ebx
cmp eax, 1
jne 0x430ad7
mov eax, dword [esp + 0x30]
push 2
push eax
lea ecx, [esp + 0x18]
call fcn.004451d2
mov esi, eax
cmp esi, ebx
je 0x430af0
mov edx, dword [esp + 0xc]
push 2
push ebx
lea ecx, [esp + 0x14]
call dword [edx + 0x28]
jmp 0x430aec
mov eax, dword [esp + 0x30]
push 0x1001
push eax
lea ecx, [esp + 0x18]
call fcn.004451d2
mov esi, eax
cmp esi, ebx
jne 0x430b24
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.00445115
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043ef94
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
mov ecx, dword [esp + 0x34]
push ecx
push edi
lea ecx, [esp + 0x14]
call fcn.00445329
lea ecx, [esp + 0xc]
call fcn.004453ed
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.00445115
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043ef94
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x43b640
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.00420030
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43b70b
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 0x43b70b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43b6be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x43b6c9
or bh, 8
and edi, 0x8000000
je 0x43b6e4
mov eax, dword [0x47a79c]
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 0x43b70b
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 0x43bae0
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 0x43bb0b
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 0x43bb2f
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 0x43bb4a
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 0x4405bf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4405f7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043f43b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043f413
jmp 0x440603
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4423c1
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 0x442403
call fcn.00450272
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x442403
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4423fa
xor eax, eax
jmp 0x44240b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00442411
pop edi
pop esi
pop ebx
ret 4

Function at 0x444671
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 0x444693
cmp dword [edi + 0x3c], 0
jne 0x444693
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00450272
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.004446d2
pop edi
pop esi
pop ebx
ret 8
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2a415507
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1ec07be3
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219