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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418a09
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.004054b8
mov dword [ebp - 0x1a], 1
mov word [ebp - 0xe], 0x80
lea eax, [ebp - 0x24]
mov ecx, 0x418a20
mov edx, ebx
call fcn.00404178
mov eax, dword [ebp - 0x24]
call fcn.0040432c
mov dword [ebp - 0x16], eax
mov eax, esi
call fcn.0040432c
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418a10
lea eax, [ebp - 0x24]
call fcn.00403ee8
ret

Function at 0x418a24
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
xor eax, eax
push ebp
push 0x418aaa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
mov edx, 0x1e
call fcn.004054b8
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x14
lea eax, [ebp - 0x28]
mov ecx, 0x418ac0
mov edx, dword [ebp - 4]
call fcn.00404178
mov eax, dword [ebp - 0x28]
call fcn.0040432c
mov dword [ebp - 0x1a], eax
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418ab1
lea eax, [ebp - 0x28]
call fcn.00403ee8
lea eax, [ebp - 4]
call fcn.00403ee8
ret

Function at 0x418ac4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
mov ebx, eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push 0xa
call sub.kernel32.dll_Sleep
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.kernel32.dll_Sleep
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x418b70]
call fcn.00402c2c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418b74
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x418b7d
mov eax, dword [ebp - 4]
add esp, 0xfffff7dc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4824], ecx
mov dword [ebp - 0x4828], ecx
mov dword [ebp - 0x481c], ecx
mov dword [ebp - 0x4820], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
xor eax, eax
push ebp
push 0x418d24
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.0040432c
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x418cfe
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x418cf7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4800
lea eax, [ebp - 0x4818]
push eax
push 3
push 0x30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_EnumServicesStatusA
mov esi, dword [ebp - 0x14]
dec esi
and esi, esi
jl 0x418cd0
inc esi
lea ebx, [ebp - 0x480c]
cmp dword [ebx], 4
je 0x418c81
push dword [edi]
lea eax, [ebp - 0x481c]
mov edx, dword [ebx - 0xc]
call fcn.004040c4
push dword [ebp - 0x481c]
push 0x418d3c
lea eax, [ebp - 0x4820]
mov edx, dword [ebx - 8]
call fcn.004040c4
push dword [ebp - 0x4820]
push 0x418d48
push 0x418d58
mov eax, edi
mov edx, 6
call fcn.004041ec
jmp 0x418cc6
push dword [edi]
lea eax, [ebp - 0x4824]
mov edx, dword [ebx - 0xc]
call fcn.004040c4
push dword [ebp - 0x4824]
push 0x418d3c
lea eax, [ebp - 0x4828]
mov edx, dword [ebx - 8]
call fcn.004040c4
push dword [ebp - 0x4828]
push 0x418d64
push 0x418d58
mov eax, edi
mov edx, 6
call fcn.004041ec
add ebx, 0x24
dec esi
jne 0x418c35
cmp dword [ebp - 0x10], 0
jne 0x418bfd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418cfe
cmp dword [ebp - 0xc], 0
jbe 0x418cf6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418d2b
lea eax, [ebp - 0x4828]
mov edx, 4
call fcn.00403f0c
lea eax, [ebp - 4]
call fcn.00403ee8
ret
Function at 0x418d6c
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
mov eax, dword [ebp - 8]
call fcn.0040431c
mov eax, dword [ebp - 0xc]
call fcn.0040431c
mov eax, dword [ebp + 8]
call fcn.0040431c
xor eax, eax
push ebp
push 0x418e55
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.0040432c
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x418e32
xor edx, edx
push ebp
push 0x418e2b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
call fcn.0040432c
push eax
push 0
push 2
push 0x10
push 0xf01ff
mov eax, dword [ebp - 0xc]
call fcn.0040432c
push eax
mov eax, dword [ebp - 8]
call fcn.0040432c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateServiceA
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], eax
push 0x418e32
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418e5c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f0c
lea eax, [ebp + 8]
call fcn.00403ee8
ret

Function at 0x418e64
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
mov eax, dword [ebp - 8]
call fcn.0040431c
xor eax, eax
push ebp
push 0x418f19
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.0040432c
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x418efe
xor eax, eax
push ebp
push 0x418ef7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.0040432c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
push ebx
call sub.advapi32.dll_DeleteService
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418efe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418f20
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f0c
ret
Function at 0x418f28
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
mov eax, dword [ebp - 8]
call fcn.0040431c
xor eax, eax
push ebp
push 0x418fe3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.0040432c
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x418fc8
xor eax, eax
push ebp
push 0x418fc1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.0040432c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
call sub.advapi32.dll_ControlService
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418fc8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418fea
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f0c
ret

Function at 0x418ff0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
mov eax, dword [ebp - 8]
call fcn.0040431c
xor eax, eax
push ebp
push 0x4190b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.0040432c
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x419095
xor eax, eax
push ebp
push 0x41908e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.0040432c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call sub.advapi32.dll_StartServiceA
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419095
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4190b7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f0c
ret
Function at 0x41c424
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41c600
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetTopWindow
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x41c5e7
mov byte [ebp - 5], 1
mov esi, dword [ebp - 4]
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, edi
call fcn.00408120
inc eax
jne 0x41c5e7
mov edx, ebx
mov eax, edi
call fcn.0040800c
mov eax, 0x32c
call fcn.00402894
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ebx
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0x10]
add eax, 8
mov ecx, 0x105
call fcn.004054a4
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push eax
push ebx
call sub.user32.dll_GetClassNameA
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0x10]
add eax, 0x10d
mov ecx, 0x105
call fcn.004054a4
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0xc]
call fcn.0041bf9c
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404100
cmp dword [ebp - 0x228], 0
jne 0x41c549
mov esi, 0x41c614
lea edi, [ebp - 0x214]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0x10]
add eax, 0x212
mov ecx, 0x105
call fcn.004054a4
lea eax, [ebp - 0x224]
push eax
push ebx
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x224]
mov dword [eax + 0x318], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x224]
mov dword [eax + 0x31c], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x21c]
mov dword [eax + 0x320], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x218]
mov dword [eax + 0x324], edx
push ebx
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41c5c0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x328], 1
jmp 0x41c5ca
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x328], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0040800c
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x41c46a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c607
lea eax, [ebp - 0x228]
call fcn.00403ee8
ret

Function at 0x41c90c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
and eax, eax
je 0x41c947
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404100
jmp 0x41c953
mov eax, ebx
mov edx, 0x41c960
call fcn.00403f3c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c968
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.advapi32.dll_GetUserNameA
and eax, eax
je 0x41c9a3
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404100
jmp 0x41c9af
mov eax, ebx
mov edx, 0x41c9bc
call fcn.00403f3c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c9c4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x90]
cmp eax, 3
jne 0x41c9f5
mov bl, 4
jmp 0x41ca46
cmp eax, 4
jne 0x41ca23
mov eax, dword [ebp - 0x8c]
cmp eax, 0xa
jne 0x41ca09
mov bl, 2
jmp 0x41ca46
cmp eax, 0x5a
jne 0x41ca12
mov bl, 3
jmp 0x41ca46
cmp dword [ebp - 0x84], 2
jne 0x41ca1f
mov bl, 4
jmp 0x41ca46
mov bl, 1
jmp 0x41ca46
cmp eax, 5
jne 0x41ca46
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x41ca36
mov bl, 5
jmp 0x41ca46
cmp eax, 1
jne 0x41ca3f
mov bl, 6
jmp 0x41ca46
cmp eax, 2
jne 0x41ca46
mov bl, 7
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d314
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffd8
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
jmp 0x41d4f5
push 1
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
mov edx, 0x10
call fcn.004054b8
xor esi, esi
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x28]
mov ecx, 0x10
mov eax, dword [ebp - 0xc]
call fcn.00406d68
mov ebx, eax
cmp ebx, 0xfffffffe
jne 0x41d37d
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x420d5c]
sub eax, dword [edx]
cmp eax, dword [ebp + 8]
jae 0x41d502
jmp 0x41d4f5
cmp ebx, 0x10
jl 0x41d4f5
cmp dword [ebp - 0x1c], 0xaaaaaaaa
jne 0x41d502
mov dl, 1
mov eax, dword [0x4058a4]
call fcn.00403474
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x10]
call fcn.00406230
cmp edx, dword [ebp - 0x24]
jne 0x41d3c3
cmp eax, dword [ebp - 0x28]
jae 0x41d3c9
jmp 0x41d502
jl 0x41d502
xor eax, eax
push ebp
push 0x41d4ee
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x41d429
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x1028]
mov ecx, 0x1000
mov eax, dword [ebp - 0xc]
call fcn.00406d68
mov ebx, eax
cmp ebx, 0xfffffffe
jne 0x41d413
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x420d5c]
sub eax, dword [edx]
cmp eax, dword [ebp + 8]
jb 0x41d429
call fcn.0040390c
jmp 0x41d502
test ebx, ebx
jle 0x41d429
add esi, ebx
lea edx, [ebp - 0x1028]
mov ecx, ebx
mov eax, dword [ebp - 0x10]
call fcn.004063d8
mov eax, esi
xor edx, edx
cmp edx, dword [ebp - 0x24]
jne 0x41d439
cmp eax, dword [ebp - 0x28]
jae 0x41d444
jmp 0x41d43b
jge 0x41d444
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x10], 0
jne 0x41d3d9
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040621c
mov dl, 1
mov eax, dword [0x4058a4]
call fcn.00403474
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x41d4d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00411248
cmp eax, dword [ebp - 0x20]
je 0x41d486
call fcn.0040390c
call fcn.0040390c
jmp 0x41d4f5
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040621c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040b8dc
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040621c
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d4d8
mov eax, dword [ebp - 0x14]
call fcn.004034a4
ret
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x10], 0
jne 0x41d331
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c1970
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c19af
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c19af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c19af
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4c19af
cmp dword [ecx + 0x74], 0xe
jbe 0x4c19af
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4c7503
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4c75a0
push ebx
push esi
call fcn.004c74cc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004c7460
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c754d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c759f
push edi
push eax
call fcn.004c8120
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4c756d
call fcn.004c5fc1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c759e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004c7460
add esp, 0x20
test eax, eax
jne 0x4c758c
push edi
call fcn.004c5fc1
jmp 0x4c7594
push ebx
call fcn.004c5fc1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4c889d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d1048
push 0x4d1040
push str.FlsAlloc
push 0x1f
call fcn.004c875c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c88d1
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cf130]
call esi
jmp 0x4c88d7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c891b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d1058
push 0x4d1050
push str.FlsGetValue
push 0x21
call fcn.004c875c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c8952
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cf130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4c895a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d1060
push 0x4d1058
push str.FlsSetValue
push 0x22
call fcn.004c875c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c8994
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4cf130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4cddf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cde1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cde1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c

Function at 0x431980
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e000]
push edi
or ebp, 0xffffffff
jmp 0x4319a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4319a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x431998
mov eax, 1
add ebx, ebx
jne 0x4319bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4319b0
jne 0x4319cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4319b0
xor ecx, ecx
sub eax, 3
jb 0x4319e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x431a52
mov ebp, eax
add ebx, ebx
jne 0x4319eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4319f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x431a1c
inc ecx
add ebx, ebx
jne 0x431a08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4319fd
jne 0x431a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4319fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x431a3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x431a2d
jmp 0x43199e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x431a3c
add edi, ecx
jmp 0x43199e
pop esi
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x431aa4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431a59
mov ecx, edi
jns 0x431a88
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31080]
or eax, eax
je 0x431a9e
mov dword [ebx], eax
add ebx, 4
jmp 0x431a76
call dword [esi + 0x3107c]
mov ebp, dword [esi + 0x31084]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x431ad8
sub esp, 0xffffff80
jmp 0x42d758
Function at 0x401470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401496
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40152a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4014e5
cmp eax, 0x40
je 0x4014e5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401489
cmp eax, 0x40
je 0x401489
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401489
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]