joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476779
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
sub eax, 1
jb 0x47679b
je 0x4768a6
jmp 0x4768b6
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004763b9
test eax, eax
je 0x4768b6
xor eax, eax
push ebp
push 0x47689f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 4]
test eax, eax
je 0x476889
mov eax, dword [ebp - 4]
mov dword [eax + 4], 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
xor edx, edx
call fcn.004755f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.004755f5
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
xor edx, edx
call fcn.004755f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor edx, edx
call fcn.004755f5
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4764bd
push 0
push 0
call sub.kernel32.dll_CreateThread
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
or edx, 0xffffffff
call fcn.004755f5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
je 0x476889
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 8]
call fcn.00475625
test eax, eax
jne 0x476889
xor ecx, ecx
or edx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.004768f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4768b6
mov eax, dword [ebp - 4]
call fcn.0047645d
ret
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
call fcn.00476475
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
setne al
neg al
sbb eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x4768da
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x480cd1
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004054b1
xor eax, eax
push ebp
push 0x480d4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004054c1
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x480d1a
mov eax, dword [ebx + 4]
call fcn.004054c1
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480d56
lea eax, [ebp - 4]
call fcn.00405001
ret
Function at 0x481d21
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x481ebe
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00403201
cmp word [ebx + 0xa2], 0
je 0x481d6a
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x481d7e
lea esi, [ebp - 8]
jmp 0x481d80
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x481d8d
xor edi, edi
jmp 0x481d9a
mov eax, dword [ebx + 0x80]
call fcn.004054c1
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.004054c1
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00481489
mov eax, dword [ebp - 0x14]
call fcn.004054c1
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.004054c1
push eax
mov eax, dword [ebp - 0x10]
call fcn.004054c1
push eax
mov eax, ebx
call fcn.004815bd
push eax
mov eax, ebx
call fcn.00481591
push eax
mov eax, ebx
call fcn.00481545
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00481355
mov eax, dword [ebp - 0x18]
call fcn.004054c1
push eax
mov eax, dword [ebx + 8]
call fcn.004054c1
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x481e23
call fcn.0040e8cd
xor edx, edx
push ebp
push 0x481e9c
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x481e61
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x481e57
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x481e85
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481ea3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x481ecd
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x481ef9
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004054c1
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x481f1e
call fcn.0040e8cd
xor eax, eax
push ebp
push 0x481f55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x481f3e
call fcn.0040e8cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481f5c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x485df9
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x485e27
mov eax, ebx
call fcn.004868ad
cmp dword [ebx + 0x40], 0
je 0x485e20
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x485e98
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x485e8a
cmp dword [ebx + 8], 0
je 0x485e49
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 0x485e5b
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x485e8a
cmp dword [ebx + 8], 0
je 0x485e3c
cmp eax, 3
je 0x485e6e
dec eax
jne 0x485e3c
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 0x485e3c
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x485e3c
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x485eb6
cmp dword [ebx + 0x14], 0xcc
je 0x485eb6
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.00485ec1
pop ebx
ret
Function at 0x497af1
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x497c7f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x497c5d
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 4]
push eax
push edx
push 0
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
je 0x497b3e
call fcn.00404a49
jmp 0x497c64
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
call fcn.00402dc9
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x497ba2
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.00402de9
mov eax, dword [ebp - 0xc]
call fcn.00402dc9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x497c1c
test eax, eax
je 0x497bb2
call fcn.0040d1a5
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 8], 0
jbe 0x497b50
cmp dword [ebx + 8], 3
jne 0x497c02
cmp dword [ebx + 4], 1
jne 0x497c02
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x497c02
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040a32d
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x40]
call fcn.00405055
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x18]
mov edx, 0x497c95
call fcn.0040530d
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4a5860]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, ebx
mov eax, esi
call fcn.00497af1
add ebx, 0x20
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
ja 0x497bbb
jmp 0x497b50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497c64
xor eax, eax
push ebp
push 0x497c52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetCloseEnum
mov eax, dword [ebp - 0x10]
call fcn.00402de9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497c5c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497c86
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00405025
ret
Function at 0x498279
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
lea eax, [ebp - 0x170]
mov edx, dword [0x4085d9]
call fcn.004059d9
xor eax, eax
push ebp
push 0x498500
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4984bf
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4a7cfc]
mov edx, dword [eax]
call dword [edx + 8]
lea edx, [ebp - 8]
mov eax, dword [0x4a5858]
mov eax, dword [eax]
call fcn.004a1231
xor edx, edx
push ebp
push 0x4984ae
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x174]
mov ecx, 0x498519
mov edx, dword [ebp - 8]
call fcn.0040530d
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x170]
xor edx, edx
call fcn.00409d2d
test eax, eax
jne 0x498495
xor eax, eax
push ebp
push 0x498478
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 8]
call fcn.0040530d
mov eax, dword [ebp - 0x178]
call fcn.0049c3bd
test al, al
je 0x49846e
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 8]
call fcn.0040530d
mov eax, dword [ebp - 0x17c]
call fcn.004054c1
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x49846e
push 0x498521
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0xc], eax
push 0x498531
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
push 0x49853d
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push 0x498549
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
push 0x498559
push ebx
call sub.kernel32.dll_GetProcAddress
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x498468
cmp dword [ebp - 0x14], 0
je 0x498468
cmp dword [ebp - 0x10], 0
je 0x498468
cmp dword [ebp - 0x18], 0
je 0x498468
test edi, edi
je 0x498468
mov dl, 1
mov eax, dword [0x49c199]
call fcn.004041e1
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
lea eax, [esi + 0x1c]
mov edx, dword [ebp - 0x164]
mov ecx, 0xff
call fcn.0040529d
mov edx, esi
mov eax, dword [0x4a7cfc]
call fcn.00415d1d
cmp byte [ebp - 1], 0
je 0x49846e
call edi
test al, al
jne 0x49846e
mov eax, dword [0x4a5b78]
mov eax, dword [eax]
call fcn.004054c1
push eax
mov eax, dword [0x4a5654]
mov eax, dword [eax]
call fcn.004054c1
push eax
call dword [ebp - 0x10]
jmp 0x49846e
push ebx
call sub.kernel32.dll_FreeLibrary
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x498482
lea eax, [ebp - 0x170]
call fcn.00409d7d
test eax, eax
je 0x498321
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4984b5
lea eax, [ebp - 0x170]
call fcn.00409da1
ret
Function at 0x498ae5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x498aed
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b1
xor eax, eax
push ebp
push 0x498ca6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x498c81
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x413d4d]
call fcn.004041e1
mov ebx, eax
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 8]
xor edx, edx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 8]
call fcn.00409781
sub eax, 1
jb 0x498b64
je 0x498ba9
dec eax
je 0x498bee
dec eax
je 0x498c30
jmp 0x498c70
push 1
push 0
lea ecx, [ebp - 0xc]
mov edx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.004054c1
push eax
lea ecx, [ebp - 0x10]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004054c1
push eax
push 0x498cb5
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x498c70
push 0
push 0
lea ecx, [ebp - 0x14]
mov edx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.004054c1
push eax
lea ecx, [ebp - 0x18]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.004054c1
push eax
push 0x498cb5
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x498c70
push 3
push 0
lea ecx, [ebp - 0x1c]
mov edx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.004054c1
push eax
lea ecx, [ebp - 0x20]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.004054c1
push eax
push 0x498cb5
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x498c70
push 6
push 0
lea ecx, [ebp - 0x24]
mov edx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.004054c1
push eax
lea ecx, [ebp - 0x28]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.004054c1
push eax
push 0x498cb5
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, ebx
call fcn.00404211
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x498c8b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498cad
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00405025
ret

Function at 0x49c2c9
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x49c313
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov cl, 1
mov edx, 0x49c331
mov eax, dword [ebp - 8]
call fcn.0049c20d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49c31d
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x49d779
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49d811
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00405271
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.004052c1
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.00405521
mov eax, dword [ebp - 0x104]
mov edx, 0x49d825
call fcn.0040540d
je 0x49d7f8
mov eax, ebx
mov edx, 0x49d825
call fcn.004052c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d818
lea eax, [ebp - 0x104]
call fcn.00405001
ret
Function at 0x49dc29
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
push ebp
push 0x49dd3c
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov byte [ebp - 1], 0
push eax
push edx
mov eax, dword [0x4a6664]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x49dd32
push ebx
mov eax, dword [0x4a6664]
push eax
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x49dd32
push ebx
mov eax, dword [0x4a6664]
push eax
call sub.kernel32.dll_SizeofResource
mov ebx, eax
dec edi
je 0x49dc90
dec edi
je 0x49dd0d
jmp 0x49dd32
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004054c1
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x49dd32
xor eax, eax
push ebp
push 0x49dd06
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
call sub.kernel32.dll_LockResource
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x49dce6
cmp ebx, dword [ebp - 8]
je 0x49dcea
xor eax, eax
jmp 0x49dcec
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dd32
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, dword [ebp + 8]
mov edx, ebx
call fcn.0040564d
mov eax, dword [ebp + 8]
call fcn.00405519
push eax
push esi
call sub.kernel32.dll_LockResource
mov ecx, ebx
pop edx
call fcn.00403075
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49dd46
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49dd55
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov edi, eax
mov esi, 3
mov ebx, 0x4a54bc
mov al, byte [ebx]
cmp al, 7
ja 0x49dd78
and eax, 0x7f
bt dword [ebp - 1], eax
jae 0x49dd95
push 0
push 0
push 0
xor eax, eax
mov al, byte [ebx + 1]
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov al, byte [ebx + 1]
push eax
call sub.user32.dll_keybd_event
add ebx, 2
dec esi
jne 0x49dd6b
xor esi, esi
push 0
push esi
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov ebx, edi
push ebx
call sub.user32.dll_keybd_event
or esi, 2
push 0
push esi
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
mov esi, 0xfffffffd
mov edi, 0x4a54c0
mov al, byte [edi]
cmp al, 7
ja 0x49dde3
and eax, 0x7f
bt dword [ebp - 1], eax
jae 0x49ddff
push 0
push 2
push 0
mov bl, byte [edi + 1]
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
sub edi, 2
inc esi
jne 0x49ddd6
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x49e075
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x49e08e
mov eax, dword [0x4a5978]
mov eax, dword [eax]
call fcn.00457779
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp esi, eax
ja 0x49e082
pop esi
pop ebx
ret

Function at 0x4a0281
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_1
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.kernel32.dll_Sleep_1
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 [0x4a0321]
fstp qword [ebp - 0x10]
wait
fld qword [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a0325
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a0388
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x18]
shr eax, 0xa
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00409701
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x4a039d
call fcn.0040530d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a038f
lea eax, [ebp - 0x24]
call fcn.00405001
ret

Function at 0x4a03a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a0439
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00405271
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.004052c1
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.00405521
mov eax, dword [ebp - 0x104]
mov edx, 0x4a044d
call fcn.0040540d
je 0x4a0420
mov eax, ebx
mov edx, 0x4a044d
call fcn.004052c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0440
lea eax, [ebp - 0x104]
call fcn.00405001
ret