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

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.622c2220
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.622c2220
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x622c1710
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x622fb050]
test esi, esi
jle 0x622c1830
mov eax, dword [0x622fb054]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x622c1744
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x622c17c7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x622c1730
mov dword [esp], ebx
call fcn.622c1f00
mov edi, eax
test eax, eax
je 0x622c1857
mov eax, dword [0x622fb054]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.622c2040
mov edx, dword [0x622fb054]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x622c1837
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x622c17c0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x622c17d0
add dword [0x622fb050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x622fb054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x622c17c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.622c16b0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x622c174e
mov eax, dword [0x622fb054]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.622c16b0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.622c16b0
lea esi, [esi]
nop
Function at 0x622c1b70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x622fb060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x622fb058]
sub esp, 4
test ebx, ebx
je 0x622c1bc5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x622c1bbe
test esi, esi
je 0x622c1bbe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x622c1ba0
mov dword [esp], 0x622fb060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x622c1f00
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x622c0000], 0x5a4d
jne 0x622c1f25
mov ecx, dword [0x622c003c]
cmp dword [ecx + 0x622c0000], 0x4550
lea edx, [ecx + 0x622c0000]
je 0x622c1f30
ret
cmp word [ecx + 0x622c0018], 0x10b
jne 0x622c1f25
push esi
movzx eax, word [ecx + 0x622c0014]
push ebx
movzx esi, word [ecx + 0x622c0006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x622c0000
test si, si
je 0x622c1f78
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x622c1f6e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x622c1f7a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x622c1f60
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x2c
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
mov esi, dword [edi + eax + 0x78]
add esi, edi
mov eax, dword [esi + 0x20]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], ebx
je 0x622c2450
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ebx*4]
add eax, edi
mov dword [esp], eax
call fcn.622c2510
cmp eax, dword [ebp + 8]
jne 0x622c244d
add ebx, ebx
add ebx, edi
add ebx, dword [esi + 0x24]
movzx eax, word [ebx]
lea eax, [edi + eax*4]
add eax, dword [esi + 0x1c]
add edi, dword [eax]
mov eax, edi
jmp 0x622c2452
inc ebx
jmp 0x622c241d
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x622c245c
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
cmp word [eax], 0x5a4d
jne 0x622c2483
mov edx, dword [eax + 0x3c]
lea ecx, [edx - 0x40]
cmp ecx, 0x3bf
ja 0x622c2483
cmp dword [eax + edx], 0x4550
je 0x622c2486
dec eax
jmp 0x622c2465
ret
Function at 0x622c24ac
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp byte [edx - 1], 0xcc
je 0x622c250a
test eax, eax
jne 0x622c24c6
sub edx, 0x20
mov bl, byte [edx]
cmp bl, 0xe9
je 0x622c24d3
cmp byte [edx + 3], 0xe9
jne 0x622c24d8
inc ecx
xor eax, eax
jmp 0x622c24b9
xor eax, eax
cmp bl, 0xb8
jne 0x622c250c
cmp byte [edx + 5], 0xe8
jne 0x622c250c
cmp byte [edx + 6], 3
jne 0x622c250c
cmp byte [edx + 0xd], 0x8b
jne 0x622c250c
cmp byte [edx + 0xe], 0xd4
jne 0x622c250c
movzx eax, byte [edx + 2]
shl eax, 8
mov ebx, eax
movzx eax, byte [edx + 1]
or eax, ebx
add eax, ecx
jmp 0x622c250c
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x622c2510
Capabilities:
Resolve function by brute ratel badger hash

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test dl, dl
je 0x622c252f
imul eax, eax, 0x801
inc ecx
or eax, 0x2800000
add eax, edx
jmp 0x622c2518
pop ebp
ret
Function at 0x4032d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x403339
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00403070
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x403a60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x403af2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x403ae4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x403adc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x403aa5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4033c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40341b
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403410
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
ret

Function at 0x403420
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push SysReAllocStringLen
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403490
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
neg eax
sbb eax, eax
pop esi
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret

Function at 0x403b60
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x108
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c02
cmp byte [esp + 0x10c], 1
jne 0x403be7
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push 1
push 0
push str.MyCalendar
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
pop edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x108
ret 4
mov ecx, dword [esp]
push str.MyCalendar
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x108
ret 4
Function at 0x404c70
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov eax, dword [0x4343d0]
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x404c8d
mov ecx, dword [0x436468]
call fcn.00403840
mov eax, dword [0x4343d0]
cmp dword [0x436470], 1
cdq
je 0x404cba
mov ecx, 0x3c
idiv ecx
test edx, edx
jne 0x404cd0
push edx
lea edx, [esp + 4]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp eax, 1
mov dword [0x436470], eax
jne 0x404cd0
jmp 0x404cc5
mov ecx, 0xe10
idiv ecx
test edx, edx
jne 0x404cd0
mov ecx, dword [0x436468]
call fcn.00403870
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x4343c4]
mov eax, dword [esp + 0xa]
and eax, 0xffff
cmp ecx, eax
jne 0x404d14
mov ecx, dword [esp + 6]
mov eax, dword [0x4343c8]
and ecx, 0xffff
cmp eax, ecx
jne 0x404d14
mov edx, dword [esp + 4]
mov eax, dword [0x4343cc]
and edx, 0xffff
cmp eax, edx
je 0x404d1f
mov ecx, dword [0x436468]
call fcn.00403a10
inc dword [0x4343d0]
add esp, 0x14
ret 0x10

Function at 0x404dd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push 0x8000
push eax
mov dword [ebx], 0
call fcn.0040d4d0
mov esi, eax
add esp, 8
test esi, esi
jge 0x404df9
pop esi
xor eax, eax
pop ebx
ret
push edi
push esi
call fcn.00419a32
mov dword [ebx], eax
inc eax
push eax
call fcn.0041e2b3
mov ecx, dword [ebx]
mov edi, eax
push ecx
push edi
push esi
call fcn.0040d7b6
push esi
call fcn.0040d200
mov edx, dword [ebx]
add esp, 0x18
mov eax, edi
mov byte [edx + edi], 0
pop edi
pop esi
pop ebx
ret
Function at 0x411af6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4357f8
cmp edx, dword [eax]
je 0x411b18
add eax, 8
inc ecx
cmp eax, 0x435888
jl 0x411b09
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4357f8]
jne 0x411c46
mov eax, dword [0x43849c]
cmp eax, 1
je 0x411c20
test eax, eax
jne 0x411b49
cmp dword [0x4351b4], 1
je 0x411c20
cmp edx, 0xfc
je 0x411c46
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411b80
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412940
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412a30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411bc3
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412a30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a570
push edi
call fcn.0040cef0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412940
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412950
lea eax, [ebp - 0xa0]
push 0x42a550
push eax
call fcn.00412950
push dword [esi + 0x4357fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412950
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414279
add esp, 0x2c
pop edi
jmp 0x411c46
lea eax, [ebp + 8]
lea esi, [esi + 0x4357fc]
push 0
push eax
push dword [esi]
call fcn.00412a30
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 0x419390
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.0040ea20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41945b
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 0x41945b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41940e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419419
or bh, 8
and edi, 0x8000000
je 0x419434
mov eax, dword [0x439c3c]
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 0x41945b
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 0x419830
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 0x41985b
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 0x41987f
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 0x41989a
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 0x41a76e
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 0x41a790
cmp dword [edi + 0x3c], 0
jne 0x41a790
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00422e82
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.0041a7bd
pop edi
pop esi
pop ebx
ret 8

Function at 0x41d3c7
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 0x41d409
call fcn.00422e82
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d409
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d400
xor eax, eax
jmp 0x41d411
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d417
pop edi
pop esi
pop ebx
ret 4

Function at 0x4233df
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42340d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42342b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423345
jmp 0x42342b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42342b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00423345
test edi, edi
mov eax, edi
jne 0x423415
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401270
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc14
lea eax, [esp + 0x414]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x414]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x4012a8
mov byte [eax], 0
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x41c]
push str.compctrl.dll
push eax
lea ecx, [esp + 0x24]
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4013cc
push str.ComponentRemove
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
call eax
test eax, eax
jge 0x401309
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
add esp, 0xc14
ret 0x10
cmp eax, 0xf9060
push esi
jne 0x401324
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
add esp, 0xc14
ret 0x10
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4013cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4013cc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x12]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x16]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x834]
push str._s__d_d_d_d_d
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0x20
lea eax, [esp + 0x81c]
lea ecx, [esp + 0x1c]
push 3
push eax
push ecx
call esi
push 4
lea edx, [esp + 0x820]
push 0
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0xc14
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x569649f0
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3c36960
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401ee0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x40
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x3f
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x4c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 4]
push 0x442260
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
pop edi
inc eax
add esp, 0x40
ret