joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10112f40
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x5c6b7
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10112fb8
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x41
jl 0x10112f91
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x5a
jg 0x10112f91
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
lea eax, [eax + edx + 0x20]
mov dword [ebp - 0xc], eax
jmp 0x10112fa3
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x10112f5b
mov eax, dword [ebp - 0xc]
and eax, 0x7fffffff
mov esp, ebp
pop ebp
ret

Function at 0x10112fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 1
jmp 0x10113006
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x10113064
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
push edx
call fcn.10112f40
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x10113062
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
mov cx, word [edx + eax*2]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
mov eax, edx
jmp 0x10113066
jmp 0x10112ffd
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10113070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call dword [0x1000a048]
mov esp, ebp
pop ebp
ret
Function at 0x101132f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x18], 0x43
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x46
mov byte [ebp - 0x11], 0x69
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x41
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0x57
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x74
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x46
mov byte [ebp - 6], 0x69
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0x65
mov byte [ebp - 3], 0
mov byte [ebp - 0x2c], 0x43
mov byte [ebp - 0x2b], 0x6c
mov byte [ebp - 0x2a], 0x6f
mov byte [ebp - 0x29], 0x73
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x48
mov byte [ebp - 0x26], 0x61
mov byte [ebp - 0x25], 0x6e
mov byte [ebp - 0x24], 0x64
mov byte [ebp - 0x23], 0x6c
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x18]
push eax
call fcn.101130f0
add esp, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.101130f0
add esp, 4
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x2c]
push edx
call fcn.101130f0
add esp, 4
mov dword [ebp - 0x1c], eax
push 0
push 0x80
push 4
push 0
push 1
push 0x10000000
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x101133d1
xor al, al
jmp 0x101133f6
mov dword [ebp - 0x38], 0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push edx
call dword [ebp - 0x1c]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x101242c0
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x5c6b7
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10124338
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x41
jl 0x10124311
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x5a
jg 0x10124311
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
lea eax, [eax + edx + 0x20]
mov dword [ebp - 0xc], eax
jmp 0x10124323
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x101242db
mov eax, dword [ebp - 0xc]
and eax, 0x7fffffff
mov esp, ebp
pop ebp
ret
Function at 0x10124350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 1
jmp 0x10124386
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x101243e4
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
push edx
call fcn.101242c0
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x101243e2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
mov cx, word [edx + eax*2]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
mov eax, edx
jmp 0x101243e6
jmp 0x1012437d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x101243f0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0
push ebx
push ecx
mov ebx, dword fs:[0x30]
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
pop ecx
pop ebx
push 0x3777cccb
mov eax, dword [ebp - 0x14]
push eax
call fcn.10124350
add esp, 8
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
call dword [ebp - 0x18]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10124570
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov byte [ebp - 0x24], 0x47
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x53
mov byte [ebp - 0x20], 0x79
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6d
mov byte [ebp - 0x1b], 0x44
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0x72
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x63
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x79
mov byte [ebp - 0x12], 0x41
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x24]
push eax
call fcn.10124680
add esp, 4
mov dword [ebp - 0x10], eax
push 0x1c368da0
call fcn.10124470
add esp, 4
mov dword [ebp - 0xc], eax
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ecx]
mov byte [ebp - 0x41], dl
add dword [ebp - 0x3c], 1
cmp byte [ebp - 0x41], 0
jne 0x10124600
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x48]
mov byte [ecx - 2], 0
push 0x100050f0
mov edx, dword [ebp + 8]
push edx
call fcn.10124500
add esp, 8
call dword [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.10124250
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10124500
add esp, 8
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x78
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10124500
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x101247e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push 0x74e3bb2e
call fcn.10124470
add esp, 4
mov dword [ebp - 0x14c], eax
push 0x3749ca10
call fcn.10124470
add esp, 4
mov dword [ebp - 4], eax
push 0x49f43cb7
call fcn.10124470
add esp, 4
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x18], 0x23ec5044
mov dword [ebp - 0x14], 0x33af2093
push 0
push 2
call dword [ebp - 0x14c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x148], 0x128
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [ebp - 4]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x140]
push eax
call fcn.101246b0
add esp, 8
test eax, eax
je 0x101248d4
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call fcn.101246b0
add esp, 8
test eax, eax
je 0x101248d4
lea eax, [ebp - 0x124]
push eax
push 0x100050d0
call dword [0x10005008]
test eax, eax
je 0x101248d4
mov dword [0x10007128], 0
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x154], ecx
lea edx, [ebp - 0x154]
push edx
push 0x10001550
call dword [0x10005094]
cmp dword [0x10007128], 0xa
jbe 0x101248d0
mov eax, 1
jmp 0x10124936
xor eax, eax
jmp 0x10124936
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [ebp - 0x150]
test eax, eax
jne 0x10124852
mov byte [ebp - 0x10], 0x4d
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 0xb], 0x6e
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x66
mov byte [ebp - 8], 0x66
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x72
mov byte [ebp - 5], 0
lea edx, [ebp - 0x10]
push edx
push 0
call dword [0x1000509c]
test eax, eax
je 0x10124934
mov eax, 1
jmp 0x10124936
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10126470
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
push 0x40566d67
call fcn.10124470
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [0x10005038]
push 0x100050b0
lea edx, [ebp - 0x110]
push edx
call fcn.10124500
add esp, 8
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [0x1000501c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x101264d0
jmp 0x10126725
cmp dword [ebp - 0x250], 0x10
jne 0x1012653f
movsx edx, byte [ebp - 0x224]
cmp edx, 0x2e
je 0x1012653f
mov byte [ebp - 0x254], 0x5c
mov byte [ebp - 0x253], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x360]
push ecx
call dword [0x10005038]
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x360]
push eax
call fcn.10124500
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x360]
push edx
call fcn.10124500
add esp, 8
lea eax, [ebp - 0x360]
push eax
call fcn.10126470
add esp, 4
push 0x100050b8
lea ecx, [ebp - 0x224]
push ecx
call fcn.10125a20
add esp, 8
test eax, eax
je 0x101265c5
lea edx, [ebp - 0x224]
push edx
call dword [0x10005000]
movsx eax, byte [ebp + eax - 0x225]
cmp eax, 0x74
jne 0x101265c5
mov byte [ebp - 0x46c], 0x5c
mov byte [ebp - 0x46b], 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x468]
push edx
call dword [0x10005038]
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x468]
push ecx
call dword [0x10005018]
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x468]
push eax
call dword [0x10005018]
lea ecx, [ebp - 0x468]
push ecx
call dword [0x10005058]
push 0x100050c0
lea edx, [ebp - 0x224]
push edx
call fcn.10125a20
add esp, 8
test eax, eax
je 0x10126702
lea eax, [ebp - 0x224]
push eax
call dword [0x10005000]
movsx ecx, byte [ebp + eax - 0x225]
cmp ecx, 0x65
jne 0x10126702
mov byte [ebp - 0x57c], 0x5c
mov byte [ebp - 0x57b], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x578]
push eax
call dword [0x10005038]
lea ecx, [ebp - 0x57c]
push ecx
lea edx, [ebp - 0x578]
push edx
call fcn.10124500
add esp, 8
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x578]
push ecx
call fcn.10124500
add esp, 8
push 0
lea edx, [ebp - 0x578]
push edx
call fcn.10125a80
add esp, 8
movzx eax, al
test eax, eax
je 0x10126702
push 0x104
lea ecx, [ebp - 0x698]
push ecx
call dword [0x10005014]
mov byte [ebp - 0x58c], 0x5c
mov byte [ebp - 0x58b], 0x5c
mov byte [ebp - 0x58a], 0x73
mov byte [ebp - 0x589], 0x79
mov byte [ebp - 0x588], 0x73
mov byte [ebp - 0x587], 0x74
mov byte [ebp - 0x586], 0x65
mov byte [ebp - 0x585], 0x6d
mov byte [ebp - 0x584], 0x2e
mov byte [ebp - 0x583], 0x65
mov byte [ebp - 0x582], 0x78
mov byte [ebp - 0x581], 0x65
mov byte [ebp - 0x580], 0
lea edx, [ebp - 0x58c]
push edx
lea eax, [ebp - 0x698]
push eax
call dword [0x10005018]
lea ecx, [ebp - 0x698]
push ecx
lea edx, [ebp - 0x578]
push edx
call fcn.10125a80
add esp, 8
push 0x64
call dword [ebp - 4]
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [0x10005030]
test eax, eax
jne 0x101264d0
mov edx, dword [ebp - 8]
push edx
call dword [0x10005050]
mov esp, ebp
pop ebp
ret
Function at 0x402f34
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x417064]
xor eax, eax
test edx, edx
je 0x402f78
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp], edx
movzx eax, cx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
leave
ret

Function at 0x404a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x404ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x404ae6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x404b7a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x404b35
cmp eax, 0x40
je 0x404b35
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x404ad9
cmp eax, 0x40
je 0x404ad9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x404ad9
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00404a70
lea esi, [esi]
lea edi, [edi]
Function at 0x404e00
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00404de0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
je 0x404ea0
movzx edx, byte [ebx]
cmp dl, 9
je 0x404ee4
cmp dl, 0x20
je 0x404ee4
cmp dl, 0x22
je 0x404e84
cmp dl, 9
mov eax, edx
je 0x404e98
cmp dl, 0x20
je 0x404ef0
test dl, dl
lea esi, [esi]
jne 0x404e72
jmp 0x404ea0
cmp al, 0x20
je 0x404ef0
test al, al
nop
je 0x404ea0
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x404e64
jmp 0x404e98
cmp al, 0x22
je 0x404e8e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x404e80
cmp al, 0x22
jne 0x404e98
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404ef0
cmp al, 9
je 0x404ef0
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x404eaf
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00402985
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
jmp 0x404e31
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x404ef0
cmp al, 0x20
jne 0x404ea0
nop
jmp 0x404ef0
Function at 0x40d5a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040802b
mov dword [ebp - 0x14], eax
cmp dword [0x4ad780], esi
jne 0x40d69b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d628
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d77b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d77b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d77b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad780], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad784], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad788], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad790], eax
test eax, eax
je 0x40d698
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad78c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6d5
push 4
pop eax
jmp 0x40d77d
cmp dword [ebp - 0x14], esi
je 0x40d6d5
push dword [0x4ad780]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6ba
mov eax, dword [0x4ad78c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d733
cmp dword [0x4ad790], edi
je 0x40d733
push eax
call ebx
push dword [0x4ad790]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d733
test eax, eax
je 0x40d733
call ecx
test eax, eax
je 0x40d728
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d728
test byte [ebp - 8], 1
jne 0x40d733
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d763
mov eax, dword [0x4ad784]
cmp eax, edi
je 0x40d760
push eax
call ebx
test eax, eax
je 0x40d760
call eax
mov esi, eax
test esi, esi
je 0x40d760
mov eax, dword [0x4ad788]
cmp eax, edi
je 0x40d760
push eax
call ebx
test eax, eax
je 0x40d760
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad780]
call ebx
test eax, eax
je 0x40d77b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d77d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040432c
mov esp, ebp
pop ebp
ret