joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478d80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push esi
push esi
push esi
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478df6
push edi
push dword [ebp - 4]
call fcn.004c8d7a
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478dec
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
push eax
push edi
call ebx
mov dword [ebp - 4], eax
test eax, eax
je 0x478dec
add eax, eax
push eax
call fcn.004c8d7a
add esp, 4
mov esi, eax
push dword [ebp - 4]
push esi
push edi
call ebx
push edi
call fcn.004c8d5f
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x479fb0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x54f9e0]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x479fe7
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
nop word [eax + eax]
push edi
push dword [esi]
call ebx
test eax, eax
jne 0x47a084
mov esi, dword [esi + 0x414]
test esi, esi
jne 0x479fd0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push edi
push 0x4f9d20
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x47a0b1
push 0x418
call fcn.004c8d7a
add esp, 4
mov ebx, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
call edi
push eax
call fcn.004c8d7a
add esp, 4
mov esi, eax
mov dword [ebx], esi
push dword [ebp + 8]
call edi
push dword [ebp + 8]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
push dword [ebp + 0xc]
lea eax, [ebx + 4]
push 0x104
push eax
call fcn.004c913a
push dword [ebp + 0x14]
lea eax, [ebx + 0x20c]
push 0x104
push eax
call fcn.004c913a
mov eax, dword [0x54f9e0]
add esp, 0x18
mov dword [ebx + 0x414], eax
mov al, 1
mov dword [0x54f9e0], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004c913a
add esi, 0x20c
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004c913a
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f170
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x6f4]
add edx, 1
mov dword [ebp - 0x6f4], edx
mov eax, dword [ebp - 0x6f0]
mov ecx, dword [ebp - 0x6f4]
cmp ecx, dword [eax + 0x18]
jae 0x47f2d2
mov edx, dword [ebp - 0x6f4]
mov eax, dword [ebp - 0x18a0]
mov ecx, dword [ebp - 0x2f8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x6f8], ecx
mov edx, dword [ebp - 0x6f4]
mov eax, dword [ebp - 0x18a4]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x18a8]
mov eax, dword [ebp - 0x2f8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18ac], eax
mov dword [ebp - 0x180], 0
jmp 0x47f136
mov ecx, dword [ebp - 0x180]
add ecx, 1
mov dword [ebp - 0x180], ecx
mov edx, dword [ebp - 0x6f8]
add edx, dword [ebp - 0x180]
movsx eax, byte [edx]
test eax, eax
je 0x47f1e8
mov ecx, dword [ebp - 0x180]
movsx edx, byte [ebp + ecx - 0x820]
test edx, edx
je 0x47f1e8
push edi
push ebx
add esp, 4
jmp fcn.0047f170
sub edi, 0x27b
or edi, 0xc75d
and edi, 0x17724
pop edi
push edi
push edx
add esp, 4
xor edi, 0x12955
add edi, 0x12fba
pop edi
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x180]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x180]
movsx eax, byte [ebp + edx - 0x820]
cmp ecx, eax
je 0x47f1da
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x180]
movsx edx, byte [ecx]
xor edx, 0x20
mov eax, dword [ebp - 0x180]
movsx ecx, byte [ebp + eax - 0x820]
cmp edx, ecx
jne 0x47f1e1
jmp 0x47f127
jmp 0x47f1e8
push ecx
push ecx
add esp, 4
or ecx, 0x492d
or ecx, 0x23ac
xor ecx, 0x13d1c
pop ecx
push edx
add edx, 0x17e41
or edx, 0x121c6
sub edx, 0xfb20
sub edx, 0x14a9f
pop edx
mov edx, dword [ebp - 0x6f8]
add edx, dword [ebp - 0x180]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x180]
movsx edx, byte [ebp + ecx - 0x820]
cmp eax, edx
jne 0x47f247
mov dword [ebp - 0xc30], 0
jmp 0x47f2b6
push edi
jmp 0x47f24f
sub edi, 0x14a75
call 0x47f265
add byte [esp + esi + 0x44], al
cmp byte ss:[edi], bh
xor al, 0x37
cmp bh, byte [ebx]
add esp, 4
call 0x47f275
add byte [esp + esi], dh
inc edx
dec ecx
xor eax, 0xc4834a3d
add al, 0x5f
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x180]
movsx ecx, byte [eax]
or ecx, 0x20
invalid
xchg ebp, eax
cmp dh, 0xff
Function at 0x47f275
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x6f4]
add edx, 1
mov dword [ebp - 0x6f4], edx
mov eax, dword [ebp - 0x6f0]
mov ecx, dword [ebp - 0x6f4]
cmp ecx, dword [eax + 0x18]
jae 0x47f2d2
mov edx, dword [ebp - 0x6f4]
mov eax, dword [ebp - 0x18a0]
mov ecx, dword [ebp - 0x2f8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x6f8], ecx
mov edx, dword [ebp - 0x6f4]
mov eax, dword [ebp - 0x18a4]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x18a8]
mov eax, dword [ebp - 0x2f8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18ac], eax
mov dword [ebp - 0x180], 0
jmp 0x47f136
mov ecx, dword [ebp - 0x180]
add ecx, 1
mov dword [ebp - 0x180], ecx
mov edx, dword [ebp - 0x6f8]
add edx, dword [ebp - 0x180]
movsx eax, byte [edx]
test eax, eax
je 0x47f1e8
mov ecx, dword [ebp - 0x180]
movsx edx, byte [ebp + ecx - 0x820]
test edx, edx
je 0x47f1e8
push edi
push ebx
add esp, 4
jmp fcn.0047f170
sub edi, 0x27b
or edi, 0xc75d
and edi, 0x17724
pop edi
push edi
push edx
add esp, 4
xor edi, 0x12955
add edi, 0x12fba
pop edi
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x180]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x180]
movsx eax, byte [ebp + edx - 0x820]
cmp ecx, eax
je 0x47f1da
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x180]
movsx edx, byte [ecx]
xor edx, 0x20
mov eax, dword [ebp - 0x180]
movsx ecx, byte [ebp + eax - 0x820]
cmp edx, ecx
jne 0x47f1e1
jmp 0x47f127
jmp 0x47f1e8
push ecx
push ecx
add esp, 4
or ecx, 0x492d
or ecx, 0x23ac
xor ecx, 0x13d1c
pop ecx
push edx
add edx, 0x17e41
or edx, 0x121c6
sub edx, 0xfb20
sub edx, 0x14a9f
pop edx
mov edx, dword [ebp - 0x6f8]
add edx, dword [ebp - 0x180]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x180]
movsx edx, byte [ebp + ecx - 0x820]
cmp eax, edx
jne 0x47f247
mov dword [ebp - 0xc30], 0
jmp 0x47f2b6
push edi
jmp 0x47f24f
sub edi, 0x14a75
call 0x47f265
add byte [esp + esi + 0x44], al
cmp byte ss:[edi], bh
xor al, 0x37
cmp bh, byte [ebx]
add esp, 4
call 0x47f275
add byte [esp + esi], dh
inc edx
dec ecx
xor eax, 0xc4834a3d
add al, 0x5f
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x180]
movsx ecx, byte [eax]
or ecx, 0x20
invalid
xchg ebp, eax
cmp dh, 0xff
Function at 0x47f5d1
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
xor ebx, 0x157c6
pop ebx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x47f5f8
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x14fc], ecx
jmp 0x47f652
movzx eax, word [ebp - 0x200]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x47f520
movzx edx, word [ebp - 0x200]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x47f520
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x47f63c
mov dword [ebp - 0x14f8], 0xffffffff
jmp 0x47f646
mov dword [ebp - 0x14f8], 1
mov eax, dword [ebp - 0x14f8]
mov dword [ebp - 0x14fc], eax
cmp dword [ebp - 0x14fc], 0
jne 0x47f69b
push ecx
push esi
add esp, 4
xor ecx, 0x935d
or ecx, 0x1749
pop ecx
push edi
push edx
add esp, 4
or edi, 0x21bd
sub edi, 0x13e55
pop edi
push ecx
and ecx, 0x4c8
add ecx, 0x17c68
pop ecx
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x2e0], ecx
jmp 0x47f703
push edi
push edi
add esp, 4
sub edi, 0x110b0
or edi, 0x152c5
pop edi
push esi
and esi, 0x118f2
xor esi, 0xed69
call 0x47f6c9
add byte [0x404a3843], dh
cmp edi, dword [edi + esi]
cmp eax, 0x5e04c483
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
cmp ecx, dword [ebp - 0xc3c]
je 0x47f6f9
mov edx, dword [ebp - 0x4dc]
cmp dword [edx + 0x30], 0
jne 0x47f4c4
mov dword [ebp - 0x2e0], 0

Function at 0x47f6c9
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
xor ebx, 0x157c6
pop ebx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x47f5f8
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x14fc], ecx
jmp 0x47f652
movzx eax, word [ebp - 0x200]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x47f520
movzx edx, word [ebp - 0x200]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x47f520
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x47f63c
mov dword [ebp - 0x14f8], 0xffffffff
jmp 0x47f646
mov dword [ebp - 0x14f8], 1
mov eax, dword [ebp - 0x14f8]
mov dword [ebp - 0x14fc], eax
cmp dword [ebp - 0x14fc], 0
jne 0x47f69b
push ecx
push esi
add esp, 4
xor ecx, 0x935d
or ecx, 0x1749
pop ecx
push edi
push edx
add esp, 4
or edi, 0x21bd
sub edi, 0x13e55
pop edi
push ecx
and ecx, 0x4c8
add ecx, 0x17c68
pop ecx
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x2e0], ecx
jmp 0x47f703
push edi
push edi
add esp, 4
sub edi, 0x110b0
or edi, 0x152c5
pop edi
push esi
and esi, 0x118f2
xor esi, 0xed69
call 0x47f6c9
add byte [0x404a3843], dh
cmp edi, dword [edi + esi]
cmp eax, 0x5e04c483
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
cmp ecx, dword [ebp - 0xc3c]
je 0x47f6f9
mov edx, dword [ebp - 0x4dc]
cmp dword [edx + 0x30], 0
jne 0x47f4c4
mov dword [ebp - 0x2e0], 0
Function at 0x4803a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop eax
push edi
xor edi, 0x72fd
call 0x4803be
add byte [edx + esi + 0x32], cl
cmp dword [ecx + 0x4b], eax
aas
dec edi
inc esi
add esp, 4
pop edi
mov edx, dword [ebp - 0x4e8]
mov dword [ebp - 0x710], edx
jmp 0x480438

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

Disassembly:
add esp, 4
pop eax
push edi
xor edi, 0x72fd
call 0x4803be
add byte [edx + esi + 0x32], cl
cmp dword [ecx + 0x4b], eax
aas
dec edi
inc esi
add esp, 4
pop edi
mov edx, dword [ebp - 0x4e8]
mov dword [ebp - 0x710], edx
jmp 0x480438

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

Disassembly:
add esp, 4
add eax, 0x17fcc
jmp 0x480401
pop eax
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax]
mov dword [ebp - 0x4e8], ecx
mov edx, dword [ebp - 0x4e8]
cmp edx, dword [ebp - 0xc58]
je 0x48042e
mov eax, dword [ebp - 0x4e8]
cmp dword [eax + 0x30], 0
jne 0x4801f9
mov dword [ebp - 0x710], 0

Function at 0x4a8350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lock inc dword [eax + 0x20]
push eax
push 0
push 0x49a000
call fcn.004d6098
add esp, 0xc
pop ebp
ret
Function at 0x40103b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4050f0
call fcn.00401dc8
mov edi, 0x94
mov eax, edi
call fcn.00401f20
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 [0x4072b8], ecx
mov eax, dword [esi + 4]
mov dword [0x4072c4], eax
mov edx, dword [esi + 8]
mov dword [0x4072c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4072bc], esi
cmp ecx, 2
je 0x40109b
or esi, 0x8000
mov dword [0x4072bc], esi
shl eax, 8
add eax, edx
mov dword [0x4072c0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4010d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4010d6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010ee
cmp eax, 0x20b
je 0x4010db
mov dword [ebp - 0x1c], esi
jmp 0x401102
cmp dword [ecx + 0x84], 0xe
jbe 0x4010d6
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010fc
cmp dword [ecx + 0x74], 0xe
jbe 0x4010d6
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401d74
pop ecx
test eax, eax
jne 0x40112e
cmp dword [0x4072a8], 1
jne 0x40111b
call fcn.00401529
push 0x1c
call fcn.004013b2
push 0xff
call fcn.00401217
pop ecx
pop ecx
call fcn.00401cd2
mov dword [ebp - 4], esi
call fcn.00401b27
test eax, eax
jge 0x401147
push 0x1b
call fcn.00401016
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407834], eax
call fcn.00401a05
mov dword [0x4072a0], eax
call fcn.00401963
test eax, eax
jge 0x40116d
push 8
call fcn.00401016
pop ecx
call fcn.00401730
test eax, eax
jge 0x40117e
push 9
call fcn.00401016
pop ecx
push 1
call fcn.00401247
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401194
push eax
call fcn.00401016
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004016d3
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4011b5
movzx eax, word [ebp - 0x40]
jmp 0x4011b8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401000
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4011d6
push edi
call fcn.00401372
call fcn.00401394
jmp 0x401208
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401e03
ret
Function at 0x4012b1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4072f8], esi
push edi
jne 0x4012d1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4072f4], esi
mov byte [0x4072f0], al
jne 0x401337
mov ecx, dword [0x407828]
test ecx, ecx
je 0x401318
mov eax, dword [0x407824]
sub eax, 4
cmp eax, ecx
jmp 0x401311
mov eax, dword [eax]
test eax, eax
je 0x401303
call eax
mov eax, dword [0x407824]
sub eax, 4
cmp eax, dword [0x407828]
mov dword [0x407824], eax
jae 0x4012fb
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x401337
mov eax, dword [edi]
test eax, eax
je 0x401330
call eax
add edi, 4
cmp edi, esi
jb 0x401328
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x401356
mov eax, dword [edi]
test eax, eax
je 0x40134f
call eax
add edi, 4
cmp edi, esi
jb 0x401347
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401370
push dword [ebp + 8]
mov dword [0x4072f8], 1
call fcn.00401217
pop ebp
ret

Function at 0x4013b2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x407170]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x407038]
je 0x4013e7
inc eax
cmp eax, 0x13
jb 0x4013d8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407038]
jne 0x40150d
mov eax, dword [0x4072a8]
cmp eax, 1
je 0x4014e5
cmp eax, edx
jne 0x401417
cmp dword [0x407034], 1
je 0x4014e5
cmp ecx, 0xfc
je 0x40150d
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40144d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402120
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402350
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401481
mov eax, edi
push eax
call fcn.00402350
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x405508
push edi
call fcn.00402220
add esp, 0x10
push edi
call fcn.00402350
push dword [esi + 0x40703c]
mov ebx, eax
call fcn.00402350
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401f20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402120
push edi
push ebx
call fcn.00402130
push 0x4054e8
push ebx
call fcn.00402130
push dword [esi + 0x40703c]
push ebx
call fcn.00402130
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402019
add esp, 0x2c
jmp 0x40150d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40703c]
push dword [esi]
call fcn.00402350
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040240c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402019
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x407414], ebx
push esi
push edi
jne 0x402099
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4020d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x407414], eax
je 0x4020d4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407418], eax
call esi
cmp dword [0x4072b8], 2
mov dword [0x40741c], eax
jne 0x402099
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x407424], eax
je 0x402099
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407420], eax
mov eax, dword [0x407420]
test eax, eax
je 0x4020de
call eax
test eax, eax
je 0x4020c5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x407424]
test eax, eax
je 0x4020c5
test byte [ebp - 8], 1
jne 0x4020de
cmp dword [0x4072c4], 4
jb 0x4020d8
or byte [ebp + 0x12], 0x20
jmp 0x4020fd
xor eax, eax
jmp 0x40210d
or byte [ebp + 0x12], 4
jmp 0x4020fd
mov eax, dword [0x407418]
test eax, eax
je 0x4020fd
call eax
mov ebx, eax
test ebx, ebx
je 0x4020fd
mov eax, dword [0x40741c]
test eax, eax
je 0x4020fd
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x407414]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40385e
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 0x40388c
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 0x403893
cmp ebx, dword [eax + 4]
jae 0x403893
xor eax, eax
jmp 0x403a83
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4038a4
xor eax, eax
inc eax
jmp 0x403a82
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4038ba
cmp ecx, edx
jae 0x4039ff
cmp dword [eax + 4], 0
je 0x4038c3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4038ab
cmp dword [ebp + 8], 0
je 0x4038e5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4039ff
cmp eax, esi
jae 0x4039ff
mov eax, dword [0x407430]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40390a
cmp dword [esi*4 + 0x407438], edi
je 0x403a03
inc esi
cmp esi, eax
jl 0x4038f8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403a7f
cmp dword [ebp - 8], 0x1000000
jne 0x403a7f
test byte [ebp - 0xc], 0xcc
je 0x403988
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403a7f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403a7f
cmp word [eax + 0x18], 0x10b
jne 0x403a7f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403a7f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403988
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403988
test byte [ecx + 0x27], 0x80
jne 0x4039ff
push 1
push 0x407478
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40389c
mov ecx, dword [0x407430]
test ecx, ecx
mov edx, ecx
jle 0x4039bc
lea eax, [ecx*4 + 0x407434]
cmp dword [eax], edi
je 0x4039bc
dec edx
sub eax, 4
test edx, edx
jg 0x4039b0
test edx, edx
jne 0x4039ed
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4039c9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4039e1
lea eax, [edx*4 + 0x407438]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4039cf
cmp ecx, 0x10
jge 0x4039ed
inc ecx
mov dword [0x407430], ecx
push 0
push 0x407478
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40389c
xor eax, eax
jmp 0x403a82
test esi, esi
jle 0x40389c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x407478
call ebx
test eax, eax
jne 0x40389c
cmp dword [esi*4 + 0x407438], edi
je 0x403a59
mov eax, dword [0x407430]
lea esi, [eax - 1]
test esi, esi
jl 0x403a47
cmp dword [esi*4 + 0x407438], edi
je 0x403a43
dec esi
jns 0x403a37
test esi, esi
jge 0x403a57
cmp eax, 0x10
jge 0x403a52
inc eax
mov dword [0x407430], eax
lea esi, [eax - 1]
jmp 0x403a59
je 0x403a71
xor ecx, ecx
test esi, esi
jl 0x403a71
lea eax, [ecx*4 + 0x407438]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403a5f
push 0
push 0x407478
call ebx
jmp 0x40389c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40490c
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.00401f20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4049a7
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 [0x4072b8]
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 0x4049a7
cmp eax, 1
je 0x4049c8
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 0x4049a7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404974
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4049a3
xor eax, eax
inc eax
jmp 0x4049e7
cmp edi, eax
jae 0x4049ab
xor eax, eax
jmp 0x4049e7
cmp eax, esi
jae 0x4049b2
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 [0x4072b8]
jmp 0x4049cb
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 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
mov ebx, 0x40915c
mov ecx, 0x4f0d378f
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x337d71d1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
jmp 0x401219