joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043f4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404624
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404477
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404624
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404477
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404640
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404500
xor eax, eax
push ebp
push 0x4044f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040423c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404660
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044de
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404500
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40461a
cmp byte [ebp - 0xd], 0
jne 0x404547
cmp byte [ebp - 0x12], 0
je 0x40461a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404560
dec ebx
cmp byte [ebx], 0x2e
je 0x40456f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40455f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40461a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4045ac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40461a
cmp byte [ebp - 0xd], 0
je 0x40461a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40461a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404500
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404624
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404477
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404624
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404477
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404640
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404500
xor eax, eax
push ebp
push 0x4044f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040423c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404660
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044de
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404500
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40461a
cmp byte [ebp - 0xd], 0
jne 0x404547
cmp byte [ebp - 0x12], 0
je 0x40461a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404560
dec ebx
cmp byte [ebx], 0x2e
je 0x40456f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40455f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40461a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4045ac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40461a
cmp byte [ebp - 0xd], 0
je 0x40461a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40461a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4047b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404816
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403e28
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b90
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404800
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40481d
lea eax, [ebp - 0x10]
call fcn.00403be0
ret

Function at 0x4065b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4065ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403cd0
jmp 0x4065f6
mov eax, ebx
mov edx, esi
call fcn.00403c34
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406600
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406621
mov al, byte [esp]
jmp 0x406623
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406ca8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406b20
mov eax, dword [0x4093b0]
cmp byte [eax], 0
je 0x406d24
mov eax, dword [0x409304]
call fcn.004029cc
call fcn.0040262c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405aa8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406d6c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406d5a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.00404200
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407718
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40777c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403e28
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040597c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407783
lea eax, [ebp - 0xc]
call fcn.00403be0
ret
Function at 0x10009d6d
Capabilities:
Query environment variable

Disassembly:
push 0x218
mov eax, 0x1000cfa9
call fcn.1000c02f
xor esi, esi
cmp dword [0x1000f134], esi
je 0x10009d9a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x10009e6f
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 4], esi
mov ebx, dword [ebp + 0x10]
add ebx, ebx
push ebx
lea ecx, [ebp - 0x224]
call fcn.10009642
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x10009df0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x224], esi
je 0x10009dec
push dword [ebp - 0x224]
call fcn.10004f2a
pop ecx
mov dword [ebp - 0x224], esi
xor eax, eax
jmp 0x10009e6f
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.10009504
test eax, eax
jge 0x10009e09
xor edi, edi
jmp 0x10009e46
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp dword [ebp + 0x10], esi
mov edi, eax
je 0x10009e46
cmp edi, ebx
ja 0x10009e46
cmp edi, esi
je 0x10009e3c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x14]
push esi
push esi
call fcn.1000937e
mov edi, eax
dec edi
jmp 0x10009e46
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10009e46
mov word [eax], si
push dword [ebp - 0x10]
call fcn.10004f2a
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x224], esi
je 0x10009e6d
push dword [ebp - 0x224]
call fcn.10004f2a
pop ecx
mov dword [ebp - 0x224], esi
mov eax, edi
call fcn.1000c107
ret 0xc

Function at 0x1000c020
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000f15c]
jne 0x1000c02a
repz ret
jmp fcn.1000c685

Function at 0x433004
Capabilities:
Check for vm using instruction vpcext
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x68597c66
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x3efa40cd
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10030e60
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10031024
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x10030e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10030e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10030e80
mov eax, 1
add ebx, ebx
jne 0x10030ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10030e98
jne 0x10030eb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10030e98
xor ecx, ecx
sub eax, 3
jb 0x10030ec8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10030f3a
mov ebp, eax
add ebx, ebx
jne 0x10030ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10030ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10030f04
inc ecx
add ebx, ebx
jne 0x10030ef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10030ee5
jne 0x10030f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10030ee5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10030f24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10030f15
jmp 0x10030e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10030f24
add edi, ecx
jmp 0x10030e86
pop esi
mov edi, esi
mov ecx, 0xccc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10030f42
cmp byte [edi], 0x12
jne 0x10030f42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10030f47
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x10030fb6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3144c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3149c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10030f74
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x314a0]
or eax, eax
je 0x10030fb0
mov dword [ebx], eax
add ebx, 4
jmp 0x10030f91
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10030fe7
cmp al, 0xef
ja 0x10030fda
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10030fbc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10030fc9
mov ebp, dword [esi + 0x314a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1003101b
sub esp, 0xffffff80
jmp 0x10014914
Function at 0x43d000
Capabilities:
Check for vm using instruction vpcext

Disassembly:
jmp 0x43d029
call fcn.0043d002
pop es
and byte [edi], al
insd dword es:[edi], dx
pop es
or al, 7
add dword [edi], eax
or byte [ecx], ah
sub al, byte [edi]
pop es
dec edx
and eax, dword [edi]
pop es
and al, byte [edi]
sysret
Function at 0x401308
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40600c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4013a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x401380
xor eax, eax
push ebp
push 0x401379
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4013bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401380
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40600c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40600c], ax
mov esp, ebp
pop ebp
ret

Function at 0x401a58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x401ab9
cmp word [0x407208], 0xd7b2
jne 0x401a81
cmp dword [0x407210], 0
jbe 0x401a81
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406040
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x401ae0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406018], 0
jne 0x401ad5
push 0
push 0x406060
push 0x406040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4025b8
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebx, edx
mov esi, eax
xor edi, edi
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov dword [esp], 0x128
push esp
push ebp
call sub.kernel32.dll_Process32First
jmp 0x402601
lea eax, [esp + 0x24]
push eax
push esi
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x4025fa
mov edi, dword [esp + 8]
test bl, bl
je 0x40260b
push esp
push ebp
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4025e3
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, edi
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402620
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffddc
mov edi, ecx
mov ebx, edx
mov esi, eax
xor ebp, ebp
push 0x104
push edi
call sub.kernel32.dll_RtlZeroMemory
push esi
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp], 0x224
push esp
push esi
call sub.kernel32.dll_Module32First
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40269d
push ebx
call sub.kernel32.dll_lstrlenA
test eax, eax
je 0x402678
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x40268c
lea eax, [esp + 0x120]
push eax
push edi
call sub.kernel32.dll_lstrcpyA
mov ebp, dword [esp + 0x14]
jmp 0x40269d
push esp
push esi
call sub.kernel32.dll_Module32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x40265f
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
add esp, 0x224
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402764
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, esi
call fcn.0040273c
test al, al
jne 0x402788
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x402790
Capabilities:
Create process on windows
Get hostname
Set file attributes

Disassembly:
push ebx
push esi
add esp, 0xfffff9f8
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0040273c
cmp al, 1
jne 0x40299d
call sub.user32.dll_GetForegroundWindow
call sub.kernel32.dll_GetTickCount
push 0
call sub.user32.dll_IsWindowEnabled
push 0
call sub.kernel32.dll_CloseHandle
call sub.user32.dll_GetForegroundWindow
push 1
call sub.kernel32.dll_Sleep
push 0
call sub.kernel32.dll_CloseHandle
push 0
call sub.user32.dll_IsWindowVisible
call sub.kernel32.dll_GetTickCount
push 0
call sub.user32.dll_IsWindowEnabled
push 0
call sub.kernel32.dll_CloseHandle
push 1
call sub.kernel32.dll_Sleep
call sub.user32.dll_GetForegroundWindow
push 0
call sub.user32.dll_IsWindowVisible
call sub.kernel32.dll_GetCurrentProcessId
call sub.kernel32.dll_GetTickCount
push 0
call sub.kernel32.dll_CloseHandle
push 1
call sub.kernel32.dll_Sleep
push 0
call sub.user32.dll_IsWindowVisible
push 0
call sub.user32.dll_IsWindowEnabled
call sub.user32.dll_GetForegroundWindow
call sub.kernel32.dll_GetTickCount
push 0
call sub.user32.dll_IsWindowEnabled
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push 1
call sub.kernel32.dll_Sleep
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
push 0
call sub.user32.dll_IsWindowEnabled
push esp
push 0x4029a8
lea eax, [esp + 0xc]
push eax
call sub.user32.dll_wvsprintfA
push 0x4029ac
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcpyA
call sub.kernel32.dll_GetTickCount
mov dword [esp], eax
push esp
push 0x4029a8
lea eax, [esp + 0xc]
push eax
call sub.user32.dll_wvsprintfA
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4029b4
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [esp + 0x104]
call fcn.00402764
cmp al, 1
jne 0x40299d
push 0x4029bc
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4029c8
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4029d0
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push esi
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4029dc
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push esi
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4029f4
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push esi
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0x402a04
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0
push 1
lea eax, [esp + 0x210]
push eax
call sub.kernel32.dll_lstrlenA
mov ecx, eax
lea edx, [esp + 0x210]
lea eax, [esp + 0x10c]
call fcn.00402a44
push 0
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_WinExec
mov bl, 1
mov eax, ebx
add esp, 0x608
pop esi
pop ebx
ret