joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4754bc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4754d3
add esp, 0xfffffff0
call fcn.004037a0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423dfc
mov eax, dword [0x50e254]
cmp word [eax + 2], 0
jne 0x4754fb
mov eax, dword [0x50e254]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476c3c
mov eax, dword [0x50e3b4]
cmp word [eax + 2], 0
jne 0x475515
mov eax, dword [0x50e3b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476e34
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417ad8]
call fcn.0040340c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417ad8]
call fcn.0040340c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x426428]
call fcn.0042e4b0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47569c
mov eax, dword [0x50e0ac]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e880
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4773e4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x50e0ac]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d680
test eax, eax
je 0x47560a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409678
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d6a8
test eax, eax
je 0x47561e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004045c0
mov eax, dword [0x50de24]
cmp byte [eax], 0
jne 0x475652
mov eax, ebx
call fcn.004757c4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004775c0
mov eax, ebx
call fcn.00477f84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x475692
call fcn.004037f8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475a44
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x50fbf4]
cmp dword [eax + 0x30], 0
je 0x475aee
cmp dword [ebx + 0x94], 0
jne 0x475ae8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4759d4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x475ae8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x475aae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x475ae8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a6d0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x475abd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x476650
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x476685
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404440
jmp 0x476692
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043a4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47779c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4777dd
mov eax, esi
call fcn.0045d9dc
test al, al
je 0x4777dd
mov eax, dword [ebx + 0x84]
call fcn.0045d6d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4777dd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045d6d8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x48ab2c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417060]
call fcn.00404efc
xor eax, eax
push ebp
push 0x48ac70
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50c5b4], 0
jne 0x48ab7f
mov ecx, dword [0x50de60]
mov dl, 1
mov eax, dword [0x407b20]
call fcn.0040c89c
call fcn.00403ccc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e44
mov eax, ebx
call fcn.00404bc0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x48ac80
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405fd0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404bd0
test eax, eax
jle 0x48ac17
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x48ac10
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004045d8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004045c0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004089fc
test eax, eax
jne 0x48ac10
mov ebx, 0x15
jmp 0x48ac1c
mov ebx, 0x10
jmp 0x48ac1c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x50c5b4]
call fcn.0048aa84
mov eax, dword [ebp - 8]
call fcn.0048aa84
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405fe8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ac77
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404374
lea eax, [ebp - 0x10]
mov edx, dword [0x417060]
call fcn.00404fcc
ret

Function at 0x499d70
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x499d9e
mov eax, ebx
call fcn.0049a824
cmp dword [ebx + 0x40], 0
je 0x499d97
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x499e0f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x499e01
cmp dword [ebx + 8], 0
je 0x499dc0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x499dd2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x499e01
cmp dword [ebx + 8], 0
je 0x499db3
cmp eax, 3
je 0x499de5
dec eax
jne 0x499db3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x499db3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x499db3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x499e2d
cmp dword [ebx + 0x14], 0xcc
je 0x499e2d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00499e38
pop ebx
ret
Function at 0x4b9010
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4b9018
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b920a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4b9220
mov eax, esi
call fcn.004b6e9c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004043a4
lea ecx, [ebp - 0x10]
mov edx, 0x4b9234
mov eax, esi
call fcn.004b6e9c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004043a4
lea ecx, [ebp - 0x14]
mov edx, 0x4b924c
mov eax, esi
call fcn.004b6e9c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004043a4
lea ecx, [ebp - 0x18]
mov edx, 0x4b9268
mov eax, esi
call fcn.004b6e9c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004043a4
lea ecx, [ebp - 0x1c]
mov edx, 0x4b9284
mov eax, esi
call fcn.004b6e9c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004043a4
lea ecx, [ebp - 0x24]
mov edx, 0x4b929c
mov eax, esi
call fcn.004b6e9c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408a6c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408e84
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4b92b4
mov eax, esi
call fcn.004b6e9c
mov eax, dword [ebp - 0x28]
call fcn.004b093c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4b92c4
mov eax, esi
call fcn.004b6e9c
mov eax, dword [ebp - 0x2c]
call fcn.004b093c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4b92dc
mov eax, esi
call fcn.004b6e9c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408e84
inc eax
je 0x4b91ad
lea ecx, [ebp - 0x34]
mov edx, 0x4b92dc
mov eax, esi
call fcn.004b6e9c
mov eax, dword [ebp - 0x34]
call fcn.00408e48
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a624
fstp qword [ebp - 0x3c]
wait
call fcn.0040a9b4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4b91c8
lea ecx, [ebp - 0x40]
mov edx, 0x4b92dc
mov eax, esi
call fcn.004b6e9c
mov eax, dword [ebp - 0x40]
call fcn.004b093c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4b92ec
mov eax, esi
call fcn.004b6e9c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004043a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9211
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404374
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404374
ret
Function at 0x4bff9c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4bfff6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004bff8c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004af5a8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004af1a8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfffd
lea eax, [ebp - 4]
call fcn.00404350
ret

Function at 0x4d7e5c
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x4d7e6c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4d7e81
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x4d7f84
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x14], 0
je 0x4d7f99
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, ebx
call fcn.004d7ef0
mov esi, eax
mov eax, ebx
call fcn.0040343c
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4d85f8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d8698
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4d8682
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4d865b
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404548
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4d8649
call sub.wsock32.dll_WSACleanup
cmp dword [ebp - 4], 0
je 0x4d867c
mov eax, dword [ebp - 4]
mov edx, 0x4d86b0
call fcn.0040475c
jne 0x4d8680
xor ebx, ebx
jmp 0x4d8682
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d869f
lea eax, [ebp - 4]
call fcn.00404350
ret

Function at 0x4d86bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff0
lea eax, [esp + 0xc]
push eax
push 0x4d8728
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4d8719
mov dword [esp], 4
push esp
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x4d8758
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4d8706
cmp byte [esp + 4], 1
sete bl
jmp 0x4d870d
call fcn.004d85f8
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4d8720
call fcn.004d85f8
mov ebx, eax
mov eax, ebx
add esp, 0x10
pop ebx
ret
Function at 0x4d8b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404800
xor eax, eax
push ebp
push 0x4d8c11
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4d8c28
call fcn.00404954
test eax, eax
jne 0x4d8b98
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4d8c34
call fcn.0040465c
test bl, bl
je 0x4d8bd7
lea edx, [ebp - 8]
mov eax, 0x4d8c44
call fcn.004d87d0
cmp dword [ebp - 8], 0
je 0x4d8bd7
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404810
push eax
mov eax, dword [ebp - 8]
call fcn.00404810
push eax
push 0x4d8c4c
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4d8bf6
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404810
push eax
push 0x4d8c4c
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8c18
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404374
ret

Function at 0x4d8c54
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d8d0f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x106]
mov ecx, 0x106
call fcn.004045c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040d4c8
mov eax, dword [ebx]
call fcn.004d9110
test al, al
jne 0x4d8cf1
lea edx, [ebp - 0x114]
mov eax, dword [0x50e36c]
mov eax, dword [eax]
call fcn.0047714c
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.00409420
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040d4c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8d16
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00404374
ret

Function at 0x4d8d1c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d8d86
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.00409828
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040d4c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8d8d
lea eax, [ebp - 0x10c]
call fcn.00404350
ret
Function at 0x4d8d94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d8e03
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x106]
mov ecx, 0x106
call fcn.004045c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040d4c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8e0a
lea eax, [ebp - 0x10c]
call fcn.00404350
ret

Function at 0x4d8e10
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d8f9c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 0xc
jne 0x4d8e3e
mov eax, esi
call fcn.00404350
jmp 0x4d8f81
cmp bl, 1
jb 0x4d8ebb
cmp bl, 4
ja 0x4d8ebb
dec bl
je 0x4d8e66
dec bl
je 0x4d8e74
dec bl
je 0x4d8e82
dec bl
jne 0x4d8e90
mov eax, esi
mov edx, 0x4d8fb4
call fcn.004043a4
jmp 0x4d8e97
mov eax, esi
mov edx, 0x4d8fc4
call fcn.004043a4
jmp 0x4d8e97
mov eax, esi
mov edx, 0x4d8fd4
call fcn.004043a4
jmp 0x4d8e97
mov eax, esi
mov edx, 0x4d8fe8
call fcn.004043a4
jmp 0x4d8e97
mov eax, esi
call fcn.00404350
lea eax, [ebp - 4]
push eax
mov edx, dword [esi]
mov ecx, 0x80000001
mov eax, 0x4d8ffc
call fcn.004d94d0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004043a4
jmp 0x4d8f6d
mov eax, esi
call fcn.004d8d94
cmp bl, 6
je 0x4d8f6d
xor eax, eax
mov al, bl
add eax, 0xfffffffb
cmp eax, 6
ja case.0x4d8edb.6
jmp dword [eax*4 + 0x4d8ee2]
mov eax, esi
mov edx, 0x4d9048
call fcn.00404618
jmp 0x4d8f6d
mov eax, esi
mov edx, 0x4d9058
call fcn.00404618
jmp 0x4d8f6d
mov eax, esi
mov edx, 0x4d9068
call fcn.00404618
jmp 0x4d8f6d
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
mov ecx, 3
mov edx, 1
call fcn.00404870
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x4d9078
call fcn.0040465c
jmp 0x4d8f6d
mov eax, esi
call fcn.004d8d1c
jmp 0x4d8f6d
mov eax, esi
call fcn.004d8c54
jmp 0x4d8f6d
mov eax, esi
mov edx, dword [0x5100a4]
call fcn.004043a4
lea edx, [ebp - 0xc]
mov eax, dword [esi]
call fcn.0040d4c8
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004043a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8fa3
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404374
ret

Function at 0x4d9110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404810
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4d9129
test al, 0x10
jne 0x4d912d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4d9304
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.004da8b8
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
setae al
add esp, 0x94
ret
Function at 0x4da694
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00404810
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4da74e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x4da758]
fnstsw ax
sahf
je 0x4da6f8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.004da640
fld qword [ebp + 8]
fcomp dword [0x4da758]
fnstsw ax
sahf
je 0x4da714
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.004da640
fld qword [ebp + 0x10]
fcomp dword [0x4da758]
fnstsw ax
sahf
je 0x4da730
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.004da640
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4da798
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.00404810
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4da7f3
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize
mov edx, eax
mov eax, dword [esp + 8]
call fcn.004da75c
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret

Function at 0x4da800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x4da883
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4da883
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x4da883
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x4da883
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x4da883
xor edx, edx
push ebp
push 0x4da879
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.0041d9d4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4da883
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4da980
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
test byte [esp], 1
je 0x4da993
add ebx, 0x20
test byte [esp], 2
je 0x4da99c
add ebx, 2
test byte [esp], 4
je 0x4da9a3
inc ebx
test byte [esp], 8
je 0x4da9ac
add ebx, 4
test byte [esp], 0x10
je 0x4da9b8
add ebx, 0x100
test byte [esp], 0x20
je 0x4da9c4
add ebx, 0x1000
push ebx
mov eax, esi
call fcn.00404810
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
pop edx
pop esi
pop ebx
ret

Function at 0x4dab48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4dac55
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
xor ebx, ebx
xor eax, eax
push ebp
push 0x4dac33
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4dac07
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, esi
call fcn.004dad78
cmp dword [ebp - 0xc], 0
je 0x4dac06
cmp dword [ebp - 8], 0xffffffff
jne 0x4dabbd
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov eax, edi
call fcn.00404810
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
call fcn.004dad78
mov eax, dword [ebp - 0x10]
call fcn.00404610
add eax, 2
push eax
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, esi
call fcn.004dad78
lea eax, [ebp - 0x14]
mov edx, 0x4dac6c
call fcn.00404618
mov eax, dword [ebp - 0x14]
call fcn.00404810
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
inc ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x4dab83
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dac3a
cmp dword [ebp - 8], 0xffffffff
je 0x4dac32
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret