joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40724b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x428530]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4072a1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test edi, edi
je 0x407298
push 5
push 0
push edi
call esi
push 5
push edi
push ebx
call esi
pop esi
jmp 0x4072b3
push str.wininit.ini
push edi
push ebx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00409bc8
leave
ret

Function at 0x407520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40754b
mov eax, dword [ecx + 4]
test eax, eax
je 0x40754b
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00409e92
sub eax, dword [ebp + 0xc]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x40754d
xor eax, eax
pop ebp
ret 8
Function at 0x4075a9
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
mov eax, dword [0x428530]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc50], ebx
mov dword [ebp - 0xc48], esi
test ebx, ebx
je 0x4077f4
and dword [ebp - 0xc4c], 0
test esi, esi
jne 0x407616
push 0x400
lea eax, [ebp - 0xc44]
push esi
push eax
call fcn.00409be0
lea eax, [ebp - 0xc44]
push eax
call fcn.00407dfe
lea eax, [ebp - 0xc44]
add esp, 0x10
mov dword [ebp - 0xc48], eax
mov esi, eax
push esi
call fcn.0040c0e0
cmp byte [esi + eax - 1], 0x5c
pop ecx
jne 0x40762e
mov dword [ebp - 0xc4c], 1
push ebx
call fcn.00407201
pop ecx
test eax, eax
je 0x4077f4
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test edi, edi
jne 0x407650
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407656
push 0xb
push edi
push ebx
call esi
test eax, eax
jne 0x4077f4
mov ebx, 0x3ff
push ebx
push eax
mov byte [ebp - 0x844], al
lea eax, [ebp - 0x843]
push eax
call fcn.00409be0
push ebx
xor ebx, ebx
lea eax, [ebp - 0x443]
push ebx
push eax
mov byte [ebp - 0x444], 0
call fcn.00409be0
add esp, 0x18
cmp edi, ebx
je 0x4076fa
push edi
call fcn.00407201
pop ecx
test eax, eax
je 0x4076ef
push edi
lea eax, [ebp - 0x444]
push str._s.bak
push eax
call fcn.0040afc4
add esp, 0xc
push 0x5c
push edi
call fcn.0040b190
pop ecx
pop ecx
cmp dword [ebp - 0xc4c], ebx
je 0x4076c8
inc eax
push eax
push dword [ebp - 0xc48]
lea eax, [ebp - 0x844]
push str._s_s.bak
push eax
call fcn.0040afc4
add esp, 0x10
push 0xb
lea eax, [ebp - 0x444]
push eax
push edi
call esi
push 0xb
push edi
push dword [ebp - 0xc50]
jmp 0x40774d
mov edi, dword [ebp - 0xc50]
push edi
lea eax, [ebp - 0x444]
push str._s.bak
push eax
call fcn.0040afc4
add esp, 0xc
push 0x5c
push edi
call fcn.0040b190
pop ecx
pop ecx
cmp dword [ebp - 0xc4c], ebx
je 0x407728
inc eax
push eax
push dword [ebp - 0xc48]
lea eax, [ebp - 0x844]
push str._s_s.bak
push eax
call fcn.0040afc4
add esp, 0x10
push 0xb
lea eax, [ebp - 0x444]
push eax
push edi
call esi
cmp byte [ebp - 0x844], bl
je 0x4077f4
cmp byte [ebp - 0x444], bl
je 0x4077f4
lea eax, [ebp - 0x444]
push eax
call fcn.00407201
pop ecx
test eax, eax
je 0x4077f4
push 0
call fcn.0040a380
push 0x3f
mov edi, eax
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], bl
call fcn.00409be0
push edi
lea eax, [ebp - 0x44]
push 0x42200c
push eax
call fcn.0040afc4
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.0040c210
add esp, 0x24
push 0xb
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x444]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x844]
jne 0x4077ea
push str..bak
push eax
call fcn.0040c210
mov eax, ebx
pop ecx
inc ebx
pop ecx
cmp eax, 0xa
jl 0x4077b3
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0040724b
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409bc8
leave
ret
Function at 0x407803
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
mov eax, dword [0x428530]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x404]
push str._s
push eax
call fcn.0040afc4
add esp, 0xc
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4078e2
lea eax, [ebp - 0x518]
push 0x42136c
push eax
call fcn.0040c6f0
pop ecx
pop ecx
test eax, eax
je 0x4078be
lea eax, [ebp - 0x518]
push 0x421368
push eax
call fcn.0040c6f0
pop ecx
pop ecx
test eax, eax
je 0x4078be
lea eax, [ebp - 0x518]
push eax
push esi
lea eax, [ebp - 0x404]
push 0x421fd4
push eax
call fcn.0040afc4
add esp, 0x10
test byte [ebp - 0x544], 0x10
lea eax, [ebp - 0x404]
je 0x4078b1
push eax
call fcn.00407803
pop ecx
jmp 0x4078be
push 0
push 0
push eax
call fcn.004075a9
add esp, 0xc
lea eax, [ebp - 0x544]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40784f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409bc8
leave
ret

Function at 0x40794c
Capabilities:
Enumerate files on windows

Disassembly:
push 0x548
mov eax, 0x4202be
call fcn.0040c5c1
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x410]
push str._s_s
push eax
call fcn.0040afc4
add esp, 0x10
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4079ee
test esi, esi
je 0x4079ee
mov dword [ebp - 0x554], esi
and dword [ebp - 4], 0
test byte [ebp - 0x550], 0x10
jne 0x4079d5
lea eax, [ebp - 0x524]
push eax
push edi
lea eax, [ebp - 0x410]
push 0x421fd4
push eax
call fcn.0040afc4
push 0
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004075a9
add esp, 0x1c
lea eax, [ebp - 0x550]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4079a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0040c60b
ret
Function at 0x4079f4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xd4c
mov eax, 0x4202f1
call fcn.0040c5c1
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xd54], eax
lea eax, [ebp - 0x810]
push str._s
push eax
call fcn.0040afc4
add esp, 0xc
lea eax, [ebp - 0xd50]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407b72
test edi, edi
je 0x407b72
mov dword [ebp - 0xd58], edi
and dword [ebp - 4], 0
mov esi, 0x421fd4
lea eax, [ebp - 0xd24]
push eax
push ebx
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.0040afc4
lea eax, [ebp - 0xd24]
push eax
push dword [ebp - 0xd54]
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0040afc4
add esp, 0x20
test byte [ebp - 0xd50], 0x10
je 0x407b3d
lea eax, [ebp - 0xd24]
push 0x42136c
push eax
call fcn.0040c6f0
pop ecx
pop ecx
test eax, eax
je 0x407b55
lea eax, [ebp - 0xd24]
push 0x421368
push eax
call fcn.0040c6f0
pop ecx
pop ecx
test eax, eax
je 0x407b55
cmp byte [ebp + 0x10], 0
je 0x407b08
lea eax, [ebp - 0xd24]
push eax
lea eax, [ebp - 0xc10]
push str.___s__
push eax
call fcn.0040afc4
push 0x400
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0xc10]
push eax
call fcn.00407ea7
add esp, 0x18
lea eax, [ebp - 0x410]
push eax
call fcn.0040721f
pop ecx
test eax, eax
jne 0x407b26
lea eax, [ebp - 0x410]
push eax
call fcn.004071c3
pop ecx
push 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004079f4
jmp 0x407b52
push 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004075a9
add esp, 0xc
lea eax, [ebp - 0xd50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407a5a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0040c60b
ret

Function at 0x407de9
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
xor eax, eax
push eax
push eax
push 0x26
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
pop ebp
ret

Function at 0x407dfe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x428530]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
ja 0x407e3a
test eax, eax
je 0x407e3a
lea eax, [ebp - 0x404]
push eax
jmp 0x407e3f
push str.c:_temp
push edi
call fcn.0040c200
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409bc8
leave
ret
Function at 0x407ea7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push str._system_
push esi
call fcn.0041cd1e
pop ecx
pop ecx
test eax, eax
jne 0x407ed0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
inc eax
jmp 0x407f38
push str._system32_
push esi
call fcn.0041cd1e
pop ecx
pop ecx
test eax, eax
jne 0x407ef3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00407e67
pop ecx
pop ecx
push 2
pop eax
jmp 0x407f38
push str._windows_
push esi
call fcn.0041cd1e
pop ecx
pop ecx
test eax, eax
jne 0x407f14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 3
jmp 0x407ef0
push str._driver_
push esi
call fcn.0041cd1e
pop ecx
pop ecx
test eax, eax
jne 0x407f36
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00407e87
pop ecx
pop ecx
push 4
jmp 0x407ef0
xor eax, eax
pop esi
pop ebp
ret

Function at 0x409bc8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428530]
jne 0x409bd2
repz ret
jmp fcn.0041132c
Function at 0x41c23d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428530]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00410dd5
and dword [ebp - 0x14], 0
cmp dword [0x42b02c], 0
mov dword [ebp - 0x18], eax
jne 0x41c2f0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c398
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41c398
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42b02c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42b030], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42b034], eax
call edi
push eax
call esi
mov dword [0x42b03c], eax
test eax, eax
je 0x41c2f0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42b038], eax
mov eax, dword [0x42b038]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c349
cmp dword [0x42b03c], ecx
je 0x41c349
push eax
call esi
push dword [0x42b03c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c349
test ebx, ebx
je 0x41c349
call edi
test eax, eax
je 0x41c340
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c340
test byte [ebp - 8], 1
jne 0x41c349
or dword [ebp + 0x10], 0x200000
jmp 0x41c37c
mov eax, dword [0x42b030]
cmp eax, dword [ebp - 0x18]
je 0x41c37c
push eax
call esi
test eax, eax
je 0x41c37c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c37c
mov eax, dword [0x42b034]
cmp eax, dword [ebp - 0x18]
je 0x41c37c
push eax
call esi
test eax, eax
je 0x41c37c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42b02c]
call esi
test eax, eax
je 0x41c398
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c39a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409bc8
leave
ret
Function at 0x401e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44d7b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x401e79
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427c0e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401e82
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x401eb9
push 0x442e08
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004283c7
add esp, 0xc
test eax, eax
jne 0x401e69
push esi
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004283c7
add esp, 0xc
test eax, eax
jne 0x401e69
lea eax, [ebp - 0x210]
push eax
call fcn.00403d00
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.00427c0e
mov esp, ebp
pop ebp
ret
Function at 0x404000
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 0x40401b
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 0x404052
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40404e
jmp 0x404040
cmp esi, eax
jae 0x404052
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404040
cmp esi, eax
jb 0x404059
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 0x4043c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43afc8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1410
call fcn.0042bc30
mov eax, dword [0x44d7b0]
xor eax, esp
mov dword [esp + 0x140c], eax
push esi
push edi
mov eax, dword [0x44d7b0]
xor eax, esp
push eax
lea eax, [esp + 0x1420]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00412be3
push str.rxbb_mfApp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
cmp eax, 0xb7
jne 0x40444b
push 0
push 0x4431f4
call fcn.0040f612
test edi, edi
je 0x4044dc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4044dc
call fcn.004137cf
lea eax, [esp + 0x14]
push eax
call fcn.00404900
add esp, 8
push eax
mov ecx, 0x451c60
mov dword [esp + 0x142c], 0
call fcn.00404db0
or edi, 0xffffffff
mov dword [esp + 0x1428], edi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40449c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x443204
mov ecx, esi
call fcn.00413cbd
lea ecx, [esp + 0x14]
push ecx
call fcn.00405a70
lea edx, [esp + 0x14]
mov dword [esp + 0x1428], 1
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.00414c7b
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x142c], edi
call fcn.00404510
xor eax, eax
mov ecx, dword [esp + 0x1420]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x140c]
xor ecx, esp
call fcn.00427c0e
mov esp, ebp
pop ebp
ret
Function at 0x4048d0
Capabilities:
Terminate process

Disassembly:
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4048f2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x404a10
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
test ebx, ebx
je 0x404a59
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp ebx, eax
je 0x404a59
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
mov edi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
ret

Function at 0x405df0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44d7b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405e65
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427c0e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00427c0e
mov esp, ebp
pop ebp
ret
Function at 0x405e80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x44d7b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x405ea8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427c0e
mov esp, ebp
pop ebp
ret
push esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ef2
push 0x224
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.00429790
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
push esi
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x405f03
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427c0e
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
xor ebx, ebx
lea ecx, [ecx]
lea edx, [ebp - 0x208]
push 0x443444
push edx
call fcn.00427f63
add esp, 8
test eax, eax
je 0x405f38
lea eax, [ebp - 0x228]
push eax
push esi
call edi
test eax, eax
jne 0x405f10
jmp 0x405f3d
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
neg ebx
sbb eax, eax
and eax, dword [ebp - 0x214]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00427c0e
mov esp, ebp
pop ebp
ret
Function at 0x4062d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, eax
push edi
mov dword [ebp - 4], 0
call fcn.00405e80
mov esi, eax
add esp, 4
test esi, esi
je 0x40632a
push edi
push 0
push 0xa
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x40632a
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x406323
push 0x4434bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x406332
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x406323
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 4]
push eax
push 1
call esi
test eax, eax
je 0x40639f
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
call edi
lea edx, [ebp - 0x24]
push edx
call ebx
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 4]
push eax
push 1
call esi
test eax, eax
jne 0x406372
mov edi, dword [ebp - 8]
pop ebx
mov ecx, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push edi
call esi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d70b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40d752
call fcn.00407b66
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d752
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d76e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d210
mov esi, eax
test edi, edi
je 0x40d76c
test ebx, ebx
je 0x40d76c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411b21
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x439469
call fcn.0042967f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x411b46
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x411b98
call fcn.0040e423
push eax
lea ecx, [ebp - 0x10]
call fcn.00401960
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00428fa6
push eax
call fcn.00403750
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a20
mov eax, esi
call fcn.00429757
ret 8

Function at 0x4123a5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44d7b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x4123ed
push 0x43de98
push 4
push eax
call fcn.0042b58d
push eax
call fcn.00403750
add esp, 0x10
jmp 0x412403
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x412486
push edi
call fcn.00429b40
mov edi, dword [eax]
call fcn.00429b40
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00428fe1
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00429b40
cmp dword [eax], 0
je 0x41245a
call fcn.00429b40
push dword [eax]
call fcn.00407bea
pop ecx
jmp 0x412461
call fcn.00429b40
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x412486
cmp dword [ebp - 0x11c], esi
jae 0x412486
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x412488
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00427c0e
leave
ret