joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451d98
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x478bb8]
cmp dword [eax + 0x30], 0
je 0x451e42
cmp dword [ebx + 0x94], 0
jne 0x451e3c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451d28
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451e3c
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 0x451e02
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451e3c
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.00417e10
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451e11
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4529a4
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 0x4529d9
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.0040421c
jmp 0x4529e6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404180
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453a60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453aa1
mov eax, esi
call fcn.0043a35c
test al, al
je 0x453aa1
mov eax, dword [ebx + 0x84]
call fcn.0043a084
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453aa1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a084
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x462eb8
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 0x462ec0
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4630b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4630c8
mov eax, esi
call fcn.00460d44
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404180
lea ecx, [ebp - 0x10]
mov edx, 0x4630dc
mov eax, esi
call fcn.00460d44
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404180
lea ecx, [ebp - 0x14]
mov edx, 0x4630f4
mov eax, esi
call fcn.00460d44
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404180
lea ecx, [ebp - 0x18]
mov edx, 0x463110
mov eax, esi
call fcn.00460d44
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404180
lea ecx, [ebp - 0x1c]
mov edx, 0x46312c
mov eax, esi
call fcn.00460d44
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404180
lea ecx, [ebp - 0x24]
mov edx, 0x463144
mov eax, esi
call fcn.00460d44
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408310
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004086f0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x46315c
mov eax, esi
call fcn.00460d44
mov eax, dword [ebp - 0x28]
call fcn.004599b8
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x46316c
mov eax, esi
call fcn.00460d44
mov eax, dword [ebp - 0x2c]
call fcn.004599b8
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x463184
mov eax, esi
call fcn.00460d44
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004086f0
inc eax
je 0x463055
lea ecx, [ebp - 0x34]
mov edx, 0x463184
mov eax, esi
call fcn.00460d44
mov eax, dword [ebp - 0x34]
call fcn.004086b4
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.00409c40
fstp qword [ebp - 0x3c]
wait
call fcn.00409fa4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x463070
lea ecx, [ebp - 0x40]
mov edx, 0x463184
mov eax, esi
call fcn.00460d44
mov eax, dword [ebp - 0x40]
call fcn.004599b8
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x463194
mov eax, esi
call fcn.00460d44
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404180
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4630b9
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404150
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404150
ret
Function at 0x46d81c
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 [0x414d54]
call fcn.00404ab8
xor eax, eax
push ebp
push 0x46d960
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x477504], 0
jne 0x46d86f
mov ecx, dword [0x477654]
mov dl, 1
mov eax, dword [0x407448]
call fcn.0040bdc0
call fcn.00403ae4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d60
mov eax, ebx
call fcn.00404968
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46d970
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.00405b50
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404978
test eax, eax
jle 0x46d907
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 0x46d900
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004043b4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040439c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004082a0
test eax, eax
jne 0x46d900
mov ebx, 0x15
jmp 0x46d90c
mov ebx, 0x10
jmp 0x46d90c
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 [0x477504]
call fcn.0046d774
mov eax, dword [ebp - 8]
call fcn.0046d774
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d967
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404150
lea eax, [ebp - 0x10]
mov edx, dword [0x414d54]
call fcn.00404b88
ret

Function at 0x474eec
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x478f60]
call fcn.00402918
call fcn.004028dc
mov eax, dword [0x478f88]
call fcn.00408a80
test al, al
je 0x474f2e
push 0xa
push 0x474f40
push 0x474f40
mov eax, dword [0x478f88]
call fcn.004045ec
push eax
push 0x474f44
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x474f33
call fcn.00474edc
mov eax, dword [0x477ae4]
mov eax, dword [eax]
call fcn.00452eec
ret
Function at 0x401fb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x401ff9
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push esi
call fcn.0040a5d8
test eax, eax
jne 0x401fec
push 0x4382cc
call fcn.00419cb6
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop esi
pop ebp
jmp fcn.00401d70
push 0x4382f8
call fcn.00419cb6
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x406070
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
mov edi, dword [ebp + 8]
je 0x4060a7
mov eax, 0xb7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419355
mov esp, ebp
pop ebp
ret 4
push 0x104
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0041ce40
add esp, 0xc
lea eax, [ebp - 0x120]
push edi
push str..pipe_s
push 0x104
push eax
call fcn.0041cb0f
add esp, 0x10
lea eax, [ebp - 0x18]
push 1
push eax
mov dword [ebp - 0x12c], 0xc
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x128], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x12c]
push eax
push 0
push 0x400
push 0x400
push 1
push 0
push 3
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x40616d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push esi
push str.CreateNamedPipe_error__d__0x_X_
push 0x52
push 0x43addc
call fcn.00405530
add esp, 0x14
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419355
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00419355
mov esp, ebp
pop ebp
ret 4

Function at 0x4061f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 8], 0
push dword [eax]
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406241
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x406241
mov eax, dword [esi + 8]
mov dword [eax], ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419355
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x6d
jne 0x406276
push str.pipe_client_disconnected
push 0xc0
push 0x43af7c
call fcn.00405530
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419355
mov esp, ebp
pop ebp
ret
push esi
push esi
push str.ReadFile_error__d__0x_X_
push 0xc2
push 0x43afa8
call fcn.00405530
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419355
mov esp, ebp
pop ebp
ret
Function at 0x4062d0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
call fcn.0041ce40
add esp, 0xc
lea eax, [ebp - 0x10f]
push 0x103
push eax
push 0
mov byte [ebp - 0x110], 0x22
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x110]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x406320
mov ax, word [0x43b194]
push 2
push 0
push 0
mov word [edi], ax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40634f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x406393
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x43b22c
push 0x43b220
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40638a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x406393
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x40639e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419355
mov esp, ebp
pop ebp
ret

Function at 0x4065a0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov edi, 0x1e
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x28], ebx
call fcn.00406500
mov esi, eax
test esi, esi
jne 0x406674
cmp dword [ebp - 0x20], 4
je 0x406672
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40660b
lea esi, [edi - 0x18]
jmp 0x406674
push 0x14
push 0x43b38c
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x406637
call esi
mov esi, eax
test esi, esi
jne 0x406674
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40664c
call esi
mov esi, eax
jmp 0x406674
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
call fcn.00406500
cmp dword [ebp - 0x20], 4
je 0x406672
push 0x3e8
call esi
dec edi
jne 0x406652
mov esi, 0x102
jmp 0x406674
xor esi, esi
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x406684
push eax
call edi
test ebx, ebx
je 0x40668b
push ebx
call edi
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419355
mov esp, ebp
pop ebp
ret 4
Function at 0x407810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edi
call fcn.0041b74e
mov ecx, dword [ebp - 0x10]
mov esi, edi
mov dword [ecx + 0x3c], edx
add esp, 4
mov dword [ecx + 0x38], eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407844
sub esi, edx
lea ecx, [ecx]
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ecx + 0x10]
mov ebx, esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407879
mov eax, dword [ebp - 8]
cmp esi, eax
jne 0x407879
mov ebx, eax
jmp 0x4078a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.WriteFile_error__d__0x_X_
push 0xf7
push 0x43b000
call fcn.00405530
add esp, 0x14
test edi, edi
jne 0x4078c2
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add edi, ebx
mov dword [ebp - 0xc], edi
sub esi, ebx
jne 0x407850
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419355
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419355
mov esp, ebp
pop ebp
ret 4

Function at 0x408961
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi + edi*8 - 1], esi
dec dword [edi]
scasd eax, dword es:[edi]
invalid
invalid

Function at 0x4089e4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call 0xe99e1239
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
Function at 0x408bd9
Capabilities:
Encrypt data using rc4 prga
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.004085e9
add esp, 0xc
les ecx, [edi + edi*8]
inc ebp
or al, 0x66
mov eax, dword [ebp + 0xc]
les ecx, [edi + edi*8]
inc ebp
or al, 0x66
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x408bb5
call fcn.00408678
cli
xor edx, ebx
mov edi, dword cs:[esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x408e67
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x408c1d
cmp dword [eax + 0xc], ebx
je 0x408cc0
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00408678
mov esi, 0x5d39ec08
cmp dword [ebp + 0xc], ebx
jne 0x408c4c
push edi
invalid
xchg ebp, eax
dec eax
invalid
call fcn.00408678
test al, 0xa2
in al, dx
dec ecx
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x408d2c
add eax, esi
cmp dword [eax], ebx
je 0x408d2c
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x408d27
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x408d11
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x408d19
cmp edx, ebx
jne 0x408e67
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x408ce8
add eax, dword [eax + 4]
jmp 0x408cd5
mov dword [ebp + 0xc], ebx
jmp 0x408d37
Function at 0x4095d9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00408688
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040863d
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00408678
enter 0x4eb1, 0xffffffffffffffdb
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.00408678
adc al, 0x59
xor eax, dword ds:[eax - 0x7fff1f9b]
loope 0x40969a
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.00408688
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040863d
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
Function at 0x407e11
Capabilities:
Get system firmware table

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push 0x52534d42
mov dword [ebp - 4], eax
mov esi, ecx
mov edi, ecx
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ebx, eax
test ebx, ebx
jne 0x407e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407e52
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x407e91
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x407e91
push ebx
push edi
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ecx, eax
test ecx, ecx
je 0x407e91
cmp ecx, ebx
ja 0x407e8a
cmp ecx, 9
jb 0x407e8a
mov eax, dword [edi + 4]
add eax, 8
cmp eax, ecx
jbe 0x407eaa
mov esi, 0x8000ffff
jmp 0x407ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407ea8
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x407eb1
mov eax, dword [ebp - 4]
mov dword [eax], edi
jmp 0x407ebd
test edi, edi
je 0x407ebd
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x409040
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x409590
call fcn.004093a8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40a364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x408e68
cmp eax, esi
jne 0x408e5b
xor esi, esi
inc esi
mov edi, esi
jmp 0x408e6b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408e3f
xor esi, esi
inc esi
cmp dword [0x40a368], esi
jne 0x408e7d
push 0x1f
call fcn.0049a000
pop ecx
jmp 0x408eb7
cmp dword [0x40a368], ebx
jne 0x408eb1
mov dword [0x40a368], esi
push 0x4010cc
push 0x4010c0
call fcn.00408f9c
pop ecx
pop ecx
test eax, eax
je 0x408eb7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x408f8c
mov dword [0x40a014], esi
cmp dword [0x40a368], esi
jne 0x408eda
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40a368], 2
test edi, edi
jne 0x408ee7
xor eax, eax
mov ecx, 0x40a364
xchg dword [ecx], eax
cmp dword [0x40a36c], 0
je 0x408f13
push 0x40a36c
call fcn.00409200
pop ecx
test eax, eax
je 0x408f13
push ebx
push 2
push ebx
mov esi, dword [0x40a36c]
mov ecx, esi
call dword [0x40b0d4]
call esi
push dword [0x40a020]
push dword [0x40a01c]
push dword [0x40a018]
call fcn.00407429
add esp, 0xc
mov dword [0x40a010], eax
cmp dword [0x40a028], 0
jne 0x408f71
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40a014], 0
jne 0x408f85
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40a010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004092f5
jmp 0x408e23

Function at 0x4090e4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4095b0
call fcn.004093a8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x409144
cmp eax, 0xffffffff
je 0x409144
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40913d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40913d
cmp edx, 0x10000000
jae 0x40913d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40913a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4091b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4091ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4091e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4091f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4091d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4092c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4092f1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4092f1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4092f1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret