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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f108
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x439684]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x40ea30
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x40ea3c
mov al, 1
jmp 0x40ebdf
mov dword [ebp - 0x10], 8
call fcn.0040c550
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.0040c550
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0040c5e0
add esp, 8
movzx eax, al
test eax, eax
je 0x40ea7f
xor al, al
jmp 0x40ebdf
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00404f50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.00402dc0
mov ecx, eax
call fcn.0040e790
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00402af0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402dc0
mov ecx, eax
call fcn.0040e790
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.0040fb90
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40eafa
cmp dword [ebp - 0x6c], 1
je 0x40eb01
cmp dword [ebp - 0x6c], 3
je 0x40eb9b
jmp 0x40ebb3
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00402dc0
mov ecx, eax
call fcn.0040e790
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40eb64
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402dc0
mov ecx, eax
call fcn.0040e790
push eax
call fcn.00417f81
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40eb64
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c40
mov al, byte [ebp - 0x61]
jmp 0x40ebdf
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x40eb87
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c40
mov al, byte [ebp - 0x62]
jmp 0x40ebdf
cmp dword [ebp - 0x38], 0
jne 0x40eb99
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040d820
jmp 0x40ebcb
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c40
mov al, byte [ebp - 0x63]
jmp 0x40ebdf
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c40
mov al, byte [ebp - 0x64]
jmp 0x40ebdf
jmp 0x40ea92
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00415541
mov esp, ebp
pop ebp
ret

Function at 0x415541
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439684]
jne 0x41554b
repz ret
jmp fcn.0041c62c
Function at 0x41f46f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41f4a0
call fcn.0041bada
mov dword [eax], esi
call fcn.0041bac7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004158e9
add esp, 0x14
push 0x16
pop eax
jmp 0x41f4f5
test dword [ebp + 0xc], 0xfffffff9
jne 0x41f47c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41f4cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041baed
pop ecx
call fcn.0041bac7
mov eax, dword [eax]
jmp 0x41f4f5
test al, 0x10
jne 0x41f4f3
test al, 1
je 0x41f4f3
test byte [ebp + 0xc], 2
je 0x41f4f3
call fcn.0041bada
mov dword [eax], 5
call fcn.0041bac7
mov dword [eax], 0xd
jmp 0x41f4c4
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4270ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041c01e
and dword [ebp - 4], 0
cmp dword [0x43b694], 0
mov ebx, eax
jne 0x42715d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42720e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42720e
push eax
call fcn.0041bfac
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43b694], eax
call esi
push eax
call fcn.0041bfac
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43b698], eax
call esi
push eax
call fcn.0041bfac
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43b69c], eax
call esi
push eax
call fcn.0041bfac
pop ecx
mov dword [0x43b6a4], eax
test eax, eax
je 0x42715d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041bfac
pop ecx
mov dword [0x43b6a0], eax
mov eax, dword [0x43b6a0]
cmp eax, ebx
je 0x4271b5
cmp dword [0x43b6a4], ebx
je 0x4271b5
push eax
call fcn.0041c027
push dword [0x43b6a4]
mov esi, eax
call fcn.0041c027
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4271b5
test edi, edi
je 0x4271b5
call esi
test eax, eax
je 0x4271ac
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4271ac
test byte [ebp - 0xc], 1
jne 0x4271b5
or dword [ebp + 0x10], 0x200000
jmp 0x4271ee
mov eax, dword [0x43b698]
cmp eax, ebx
je 0x4271ee
push eax
call fcn.0041c027
pop ecx
test eax, eax
je 0x4271ee
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4271ee
mov eax, dword [0x43b69c]
cmp eax, ebx
je 0x4271ee
push eax
call fcn.0041c027
pop ecx
test eax, eax
je 0x4271ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43b694]
call fcn.0041c027
pop ecx
test eax, eax
je 0x42720e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x427210
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4016c0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4016e4
xor eax, eax
pop ecx
ret
push esi
push str.C:WINDOWS_system32LoadPowerProfile.exe
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 4]
push eax
push str.C:WINDOWS_system32LoadPowerProfile.exe
push 1
push 0
push str.LoadPowerProfile
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret
Function at 0x401e80
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x2a4
mov eax, dword [0x427a94]
xor eax, esp
mov dword [esp + 0x29c], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401ebf
xor eax, eax
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.0040c4e6
add esp, 0x2a4
ret
push 0x100
lea ecx, [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x401ea8
lea edx, [esp + 0x198]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401ea8
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00414940
mov edx, dword [esp + 0x10]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x423504
push 0x42b6f0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x29c]
xor ecx, esp
mov eax, 1
call fcn.0040c4e6
add esp, 0x2a4
ret

Function at 0x40c4e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427a94]
jne 0x40c4f0
repz ret
jmp fcn.004103ab
Function at 0x41b917
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004113fc
and dword [ebp - 4], 0
cmp dword [0x42b67c], 0
mov ebx, eax
jne 0x41b9c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ba79
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4232e0
push edi
call esi
test eax, eax
je 0x41ba79
push eax
call fcn.0041138a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b67c], eax
call esi
push eax
call fcn.0041138a
mov dword [esp], 0x4232bc
push edi
mov dword [0x42b680], eax
call esi
push eax
call fcn.0041138a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b684], eax
call esi
push eax
call fcn.0041138a
pop ecx
mov dword [0x42b68c], eax
test eax, eax
je 0x41b9c8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041138a
pop ecx
mov dword [0x42b688], eax
mov eax, dword [0x42b688]
cmp eax, ebx
je 0x41ba20
cmp dword [0x42b68c], ebx
je 0x41ba20
push eax
call fcn.00411405
push dword [0x42b68c]
mov esi, eax
call fcn.00411405
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ba20
test edi, edi
je 0x41ba20
call esi
test eax, eax
je 0x41ba17
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ba17
test byte [ebp - 0xc], 1
jne 0x41ba20
or dword [ebp + 0x10], 0x200000
jmp 0x41ba59
mov eax, dword [0x42b680]
cmp eax, ebx
je 0x41ba59
push eax
call fcn.00411405
pop ecx
test eax, eax
je 0x41ba59
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ba59
mov eax, dword [0x42b684]
cmp eax, ebx
je 0x41ba59
push eax
call fcn.00411405
pop ecx
test eax, eax
je 0x41ba59
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b67c]
call fcn.00411405
pop ecx
test eax, eax
je 0x41ba79
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ba7b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
jmp section..htext
Function at 0x40158d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4015e8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4015d9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4015d5
cmp esi, ecx
jae 0x4015d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4015c3
cmp esi, ecx
jb 0x4015dd
xor eax, eax
jmp 0x4015e7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4018c1
Capabilities:
Enumerate gui resources

Disassembly:
push 0x38
mov eax, 0x43eaa9
call fcn.004207b3
mov dword [ebp - 0x10], ecx
xor eax, eax
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
call fcn.00426d39
pop ecx
mov esi, eax
mov dword [ebp - 0x20], edx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push 0x4028cf
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], 0x44db0c
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x401938
push edi
call fcn.00426d39
sub eax, esi
pop ecx
sbb edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
js 0x4018e4
jg 0x401938
cmp eax, 0x14
jb 0x4018e4
push edi
call fcn.00426d39
mov esi, edx
mov dword [ebp - 0x10], esi
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ebx, ebx
je 0x401a2d
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
sub eax, ecx
sbb edx, esi
test edx, edx
jg 0x401a2d
jl 0x40196e
cmp eax, 0x1e
jae 0x401a2d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Frame_Notification_Bar
lea edx, [ebp - 0x1c]
mov ecx, ebx
call fcn.004029bf
pop ecx
test eax, eax
je 0x4019cb
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4019c8
push esi
call edi
test eax, eax
je 0x4019c8
push str.DirectUIHWND
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.004029bf
pop ecx
test eax, eax
je 0x4019c8
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4019c5
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.00401aa5
pop ecx
test al, al
jne 0x4019df
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
and dword [ebp - 0x14], 0
push 0
call fcn.00426d39
pop ecx
mov ecx, dword [ebp - 0x20]
jmp 0x401957
push ebx
call edi
test eax, eax
je 0x401a2d
push 0x50
call fcn.00420147
pop ecx
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
and dword [ebp - 4], 0
mov ecx, eax
push dword [ebp - 0x18]
call fcn.0040179b
or dword [ebp - 4], 0xffffffff
mov edi, eax
test edi, edi
je 0x401a2d
push 0
mov dword [edi + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, edi
mov dword [edi + 0x38], eax
call fcn.00401ef2
test al, al
jne 0x401a35
push ecx
mov ecx, edi
call fcn.00401898
xor eax, eax
call fcn.0042077c
ret
push dword [edi + 0xc]
push ecx
push ecx
mov ecx, edi
call fcn.00402203
test eax, eax
je 0x401a25
push edi
call fcn.00402ec2
mov ecx, edi
mov dword [eax], edi
call fcn.004027aa
mov ecx, ebx
call fcn.00401ce7
mov esi, dword [sym.imp.USER32.dll_SetTimer]
xor ebx, ebx
push ebx
push 5
push 1
push dword [edi]
call esi
push ebx
push 0x28
push 2
push dword [edi]
call esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x401a91
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push dword [edi]
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x401a7d
mov eax, edi
jmp 0x401a2f
Function at 0x4033b1
Capabilities:
Enumerate gui resources

Disassembly:
push 0x34
mov eax, 0x43ebdb
call fcn.004207b3
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0
call fcn.00426d39
pop ecx
mov esi, eax
mov dword [ebp - 0x14], edx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
xor edi, edi
mov dword [ebp - 0x28], 0x44dcdc
push 0x4028cf
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
jne 0x403427
push edi
call fcn.00426d39
mov ebx, dword [ebp - 0x10]
sub eax, esi
pop ecx
sbb edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
js 0x4033cf
jg 0x403420
cmp eax, 0x14
jb 0x4033cf
xor al, al
jmp 0x40353d
mov eax, dword [0x459be8]
test eax, eax
jne 0x4034bd
push 0x18
call fcn.00420147
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
call fcn.0040133b
push eax
lea ecx, [edi + 0x14]
call fcn.00402b5c
push dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x14]
mov dword [edi + 4], ebx
call fcn.00402ac8
mov dword [0x459be8], edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x459be8]
push ebx
push ecx
mov dword [ecx + 8], eax
call fcn.0040361f
test eax, eax
jne 0x4034b0
mov esi, dword [0x459be8]
test esi, esi
je 0x4034a7
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.00401745
push 0x18
push esi
call fcn.00420768
pop ecx
pop ecx
mov eax, edi
mov dword [0x459be8], eax
jmp 0x4034b5
mov eax, dword [0x459be8]
test eax, eax
je 0x403420
push edi
push 5
push 1
push dword [eax]
mov dword [eax + 4], ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call esi
mov eax, dword [0x459be8]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x459be8]
push dword [eax]
call esi
mov eax, dword [0x459be8]
push edi
push edi
push dword [eax]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [0x459be8]
lea eax, [ebp - 0x3c]
push 1
push edi
push edi
push dword [esi]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push eax
jmp 0x403535
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
call edi
test eax, eax
jne 0x403515
mov al, 1
call fcn.0042077c
ret
Function at 0x405f73
Capabilities:
Create directory
Extract resource via kernel32 functions
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push 0xc
mov eax, 0x43f41b
call fcn.004207b3
push 0x44ca18
lea ecx, [ebp - 0x10]
call fcn.00402b0d
xor ebx, ebx
lea ecx, [ebp - 0x14]
push ebx
mov edx, str.ZWpvZnA
mov dword [ebp - 4], ebx
call fcn.0041b686
pop ecx
push dword [eax]
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00401745
test esi, esi
je 0x4060bf
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4060bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4060bf
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4060bf
push 0
mov edx, str.BlB2TUpNUFdCT08NRltG
lea ecx, [ebp - 0x14]
call fcn.0041b686
pop ecx
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00402eae
mov byte [ebp - 4], 0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401745
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
mov edx, str.VEEI
lea ecx, [ebp + 0xc]
call fcn.0041b686
pop ecx
push 0x40
push dword [eax]
push dword [ebp - 0x10]
call fcn.00427009
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
mov edi, eax
call fcn.00401745
test edi, edi
jne 0x406099
push 0x44ca18
mov ecx, dword [ebp + 8]
call fcn.00402b0d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401745
mov eax, dword [ebp + 8]
jmp 0x4060df
push edi
push esi
push 1
push ebx
call fcn.0042752f
add esp, 0x10
push edi
cmp eax, esi
je 0x4060b9
call fcn.00427277
mov dword [esp], 0x44ca18
jmp 0x406081
call fcn.00427277
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406893
mov esi, dword [ebp + 8]
add eax, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.00401745
mov eax, esi
call fcn.0042077c
ret 8
Function at 0x40613e
Capabilities:
Create process on windows

Disassembly:
push 0xa0
mov eax, 0x43f451
call fcn.004207b3
lea ecx, [ebp - 0xac]
call fcn.0041c0c8
xor esi, esi
lea eax, [ebp - 0x58]
push 0x3c
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00421f80
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov edx, str.TFNGTQ
push esi
call fcn.0041b686
pop ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.0041c92d
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402b0d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x3c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x14]
or esi, 0xffffffff
test eax, eax
cmovne esi, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401745
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401745
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401745
lea ecx, [ebp - 0xac]
call fcn.0041c137
mov eax, esi
call fcn.0042077c
ret 4
Function at 0x407985
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x43f547
call fcn.00420855
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x407a02
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x407a02
call fcn.00407180
mov esi, eax
jmp 0x407b08
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x407a25
call fcn.00407180
jmp 0x407afb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x407a1b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x407a58
mov esi, 0x8007000e
jmp 0x407afd
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x407a8c
cmp eax, 0xffffffff
ja 0x407a8c
cmp eax, 0x400
jbe 0x407a7e
push eax
lea ecx, [ebp - 0x418]
call fcn.0040962b
jmp 0x407aaa
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x407aaa
push 0x80070216
call fcn.00401536
mov eax, 0x407a9c
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x407a4e
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x407a1b
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040857a
mov esi, eax
test edi, edi
je 0x407b08
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407b21
lea ecx, [ebp - 0x418]
call fcn.00409622
mov eax, esi
call fcn.004207a2
ret 0x10