joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x43139f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [esi + 0x144]
lea ebx, [esi + 0x78]
push dword [esi + 0x20]
lea eax, [esi + 0x1f0]
push ebx
push eax
mov dword [ebp - 8], 1
call 0x441077
mov edi, eax
test edi, edi
jns 0x4313dc
push 0x43bb08
jmp 0x43155c
lea eax, [esi + 0xe8]
push ebx
push eax
call 0x446171
mov edi, eax
test edi, edi
jns 0x4313f9
push str.ItnIt9I
jmp 0x43155c
cmp dword [esi + 0x268], 1
jne 0x43144d
lea eax, [ebp - 4]
push eax
push 1
lea ebx, [esi + 0x274]
push ebx
call fcn.0043243d
mov edi, eax
test edi, edi
jns 0x431424
push 0x43ba96
jmp 0x43155c
push ebx
call fcn.00432659
mov edi, eax
test edi, edi
jns 0x43143a
push 0x43ba68
jmp 0x43155c
cmp dword [ebp - 4], 0
je 0x43144d
push dword [ebp - 4]
call dword [0x401270]
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0xe4]
push eax
push dword [esi + 0x144]
lea eax, [esi + 0x9c]
push dword [esi + 0x20]
lea ebx, [esi + 0x78]
push eax
push ebx
call 0x445441
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x431483
push 0x43ba46
jmp 0x43155c
cmp dword [ebp - 8], eax
jne 0x43149b
push 0xe0000035
push 1
call fcn.00431047
xor edi, edi
jmp 0x431562
cmp dword [esi + 0xa8], eax
je 0x4314b6
cmp dword [esi + 0x20], 2
jle 0x4314b6
lea ecx, [esi + 0x34]
push ecx
push eax
push dword [ebp + 8]
call 0x444429
push esi
push dword [ebp + 8]
call 0x440787
mov edi, eax
test edi, edi
jns 0x4314cf
push 0x43b7c4
jmp 0x43155c
push esi
call 0x43bddf
mov edi, eax
test edi, edi
jns 0x4314e2
push 0x43ba28
jmp 0x43155c
push ebx
push dword [esi + 0x1c]
call 0x4422cd
mov edi, eax
test edi, edi
jns 0x4314f8
push 0x43ba08
jmp 0x43155c
push ebx
lea eax, [esi + 0xe8]
push eax
call fcn.00436a91
mov edi, eax
test edi, edi
jns 0x431512
push 0x43b9e2
jmp 0x43155c
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x43153a
cmp word [eax], 0
je 0x43153a
push 0
push eax
push 0x402658
push ebx
call 0x43a71b
mov edi, eax
test edi, edi
jns 0x43153a
push 0x43b994
jmp 0x43155c
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
mov eax, esi
call fcn.00431249
mov edi, eax
test edi, edi
js 0x431557
cmp dword [ebp + 8], 0
jne 0x43153a
jmp 0x431564
push 0x43b97e
push edi
call 0x4561c7
pop ecx
pop ecx
push esi
call 0x4404af
lea eax, [esi + 0x78]
push eax
call 0x43b523
cmp dword [esi + 0x284], 0xffffffff
je 0x43159f
cmp dword [esi + 0x268], 1
jne 0x43158a
mov eax, dword [esi + 0x18]
jmp 0x43158c
xor eax, eax
push eax
push dword [esi + 0xe4]
lea eax, [esi + 0x274]
push eax
call fcn.00432947
push dword [esi + 0x34]
call dword [0x401358]
test eax, eax
je 0x4315bb
push 0
push 0
push 0x10
push dword [esi + 0x34]
call dword [0x40135c]
cmp dword [ebp - 4], 0
je 0x4315ca
push dword [ebp - 4]
call dword [0x401270]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x10001140
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x10008f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
lea ecx, [esp + 8]
call fcn.10002fe0
mov eax, dword [ebx]
movzx edx, word [eax + 0x14]
xor ecx, ecx
cmp word [eax + 6], cx
mov dword [esp + 0x18], ecx
lea esi, [edx + eax + 0x18]
mov dword [esp + 0xc], ecx
jbe 0x10001229
push ebp
add esi, 0x10
push edi
mov eax, dword [esi]
test eax, eax
jne 0x100011cc
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + 0x38]
test ebp, ebp
jle 0x1000120d
mov ecx, dword [esi - 4]
mov edx, dword [ebx + 4]
push 4
push 0x1000
add ecx, edx
push ebp
push ecx
lea ecx, [esp + 0x20]
call fcn.10003160
mov ecx, ebp
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [esi - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x1000120d
mov ecx, dword [ebx + 4]
push 4
push 0x1000
push eax
mov eax, dword [esi - 4]
add eax, ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10003160
mov edi, dword [esp + 0x28]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, edi
add edx, ecx
cmp ecx, edx
mov ebp, eax
mov edi, ebp
je 0x1000120a
jmp 0x10001200
mov al, byte [ecx]
mov byte [edi], al
inc edi
inc ecx
cmp ecx, edx
jne 0x10001200
mov dword [esi - 8], ebp
mov ecx, dword [ebx]
mov eax, dword [esp + 0x14]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x10001188
pop edi
pop ebp
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.10003220
mov ecx, dword [esp + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x10001250
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push 0xffffffffffffffff
push 0x10008f98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], esi
call fcn.10002fe0
mov edi, dword [esi]
movzx eax, word [edi + 0x14]
xor ebp, ebp
cmp word [edi + 6], bp
mov dword [esp + 0x20], ebp
lea eax, [eax + edi + 0x18]
jbe 0x10001366
push ebx
lea ebx, [eax + 0x24]
jmp 0x100012a0
mov ecx, dword [ebx]
test ecx, 0x2000000
je 0x100012c5
mov ecx, dword [ebx - 0x14]
mov edx, dword [ebx - 0x1c]
push 0x4000
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.10003190
jmp 0x1000134f
mov eax, ecx
and eax, 0x80000000
test ecx, 0x20000000
je 0x100012f4
test ecx, 0x40000000
je 0x100012e8
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x10001310
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x10001310
test ecx, 0x40000000
je 0x10001308
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x10001310
neg eax
sbb eax, eax
and eax, 7
inc eax
test ecx, 0x4000000
je 0x1000131d
or eax, 0x200
mov esi, dword [ebx - 0x14]
mov edx, esi
test edx, edx
jne 0x10001339
test cl, 0x40
je 0x10001330
mov edx, dword [edi + 0x20]
jmp 0x10001337
test cl, cl
jns 0x1000134f
mov edx, dword [edi + 0x24]
test edx, edx
jbe 0x1000134f
mov edx, dword [ebx - 0x1c]
lea ecx, [esp + 0x18]
push ecx
push eax
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.100031c0
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
movzx ecx, word [edi + 6]
inc ebp
add ebx, 0x28
cmp ebp, ecx
jl 0x100012a0
pop ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.10003220
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10001740
Capabilities:
Parse pe header

Disassembly:
push 0xffffffffffffffff
push 0x10009003
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 4], ebx
push 0x40
mov dword [esp + 0x10], esi
mov dword [esi + 0x10], 0x10
call fcn.1000371a
add esp, 4
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
lea ecx, [esp + 8]
mov dword [esp + 0x18], ebx
mov byte [esi + 0x18], bl
mov byte [esi + 0x19], bl
call fcn.10002fe0
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov byte [esp + 0x18], 1
je 0x100017cc
mov ecx, esi
call fcn.100014a0
lea ecx, [esp + 8]
mov byte [esi + 0x19], 1
mov byte [esp + 0x18], bl
call fcn.10003220
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push ebp
mov ebp, dword [eax + 0x3c]
add ebp, eax
cmp dword [ebp], 0x4550
je 0x100017f8
mov ecx, esi
call fcn.100014a0
lea ecx, [esp + 0xc]
mov byte [esi + 0x19], 1
mov byte [esp + 0x1c], bl
call fcn.10003220
jmp 0x10001881
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x34]
push edi
push 4
push 0x2000
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10003160
mov edi, eax
cmp edi, ebx
jne 0x1000183f
mov edx, dword [ebp + 0x50]
push 4
push 0x2000
push edx
push ebx
lea ecx, [esp + 0x20]
call fcn.10003160
mov edi, eax
cmp edi, ebx
jne 0x1000183f
mov ecx, esi
call fcn.100014a0
mov byte [esi + 0x19], 1
jmp 0x10001873
push 4
mov dword [esi + 4], edi
mov eax, dword [ebp + 0x50]
push 0x1000
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.10003160
mov ecx, dword [ebp + 0x54]
push 4
push 0x1000
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.10003160
mov dword [esi + 8], eax
mov byte [esi + 0x18], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.10003220
pop edi
mov ecx, dword [esp + 0x14]
pop ebp
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x10001940
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
push 0x100
mov ebx, eax
call fcn.1000371a
add esp, 4
mov esi, eax
xor edi, edi
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x10001960
mov eax, 1
sub eax, esi
mov dword [esp + 0x14], eax
mov eax, 2
sub eax, esi
mov dword [esp + 0x18], eax
mov eax, 3
sub eax, esi
mov dword [esp + 0x10], edi
mov ecx, esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
cdq
idiv ebp
xor eax, eax
mov al, byte [edx + ebx]
xor edx, edx
mov dl, byte [ecx]
add edx, edi
add eax, edx
and eax, 0xff
mov edi, eax
mov dl, byte [edi + esi]
mov al, byte [ecx]
mov byte [edi + esi], al
mov eax, dword [esp + 0x14]
add eax, ecx
mov byte [ecx], dl
cdq
idiv ebp
xor eax, eax
mov al, byte [ecx + 1]
add eax, edi
movzx edx, byte [edx + ebx]
add edx, eax
mov al, byte [ecx + 1]
and edx, 0xff
mov edi, edx
mov dl, byte [edi + esi]
mov byte [edi + esi], al
mov byte [ecx + 1], dl
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx]
cdq
idiv ebp
xor eax, eax
mov al, byte [edx + ebx]
xor edx, edx
mov dl, byte [ecx + 2]
add edx, edi
add eax, edx
and eax, 0xff
mov edi, eax
mov dl, byte [edi + esi]
mov al, byte [ecx + 2]
mov byte [edi + esi], al
mov eax, dword [esp + 0x1c]
add eax, ecx
mov byte [ecx + 2], dl
cdq
idiv ebp
xor eax, eax
mov al, byte [ecx + 3]
add ecx, 4
add eax, edi
movzx edx, byte [edx + ebx]
add edx, eax
mov al, byte [ecx - 1]
and edx, 0xff
mov edi, edx
mov dl, byte [edi + esi]
mov byte [edi + esi], al
mov eax, dword [esp + 0x10]
add eax, 4
cmp eax, 0x100
mov byte [ecx - 1], dl
mov dword [esp + 0x10], eax
jl 0x10001992
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [ecx + ebp]
xor eax, eax
xor edi, edi
cmp ebp, edx
je 0x10001a9d
xor ecx, ecx
inc eax
and eax, 0xff
mov cl, byte [eax + esi]
mov bl, byte [eax + esi]
add ecx, edi
and ecx, 0xff
mov edi, ecx
xor ecx, ecx
mov cl, byte [edi + esi]
mov byte [edi + esi], bl
xor ebx, ebx
mov byte [eax + esi], cl
mov bl, byte [edi + esi]
add ebx, ecx
and ebx, 0xff
mov cl, byte [ebx + esi]
xor byte [ebp], cl
inc ebp
cmp ebp, edx
jne 0x10001a62
push esi
call fcn.10003728
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1000372d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000381d
mov eax, 0x94
call fcn.10005170
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10003892
mov ecx, dword [esi + 0x10]
mov dword [0x1000cd78], ecx
mov eax, dword [esi + 4]
mov dword [0x1000cd84], eax
mov edx, dword [esi + 8]
mov dword [0x1000cd88], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000cd7c], esi
je 0x10003798
or esi, 0x8000
mov dword [0x1000cd7c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000cd80], eax
call fcn.1000509b
test eax, eax
pop ecx
je 0x10003892
call fcn.1000448f
test eax, eax
jne 0x100037c5
call fcn.100050ec
jmp 0x10003892
call fcn.10004ff9
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000d594], eax
call fcn.10004ed7
mov dword [0x1000cd54], eax
call fcn.100049b8
test eax, eax
jl 0x10003816
call fcn.10004e35
test eax, eax
jl 0x10003811
call fcn.10004c02
test eax, eax
jl 0x10003811
push 0
call fcn.100047b0
test eax, eax
pop ecx
jne 0x10003811
inc dword [0x1000cd50]
jmp 0x100038a3
call fcn.10004bb6
call fcn.10004278
jmp 0x100037bb
test eax, eax
jne 0x1000384d
cmp dword [0x1000cd50], eax
jle 0x10003892
dec dword [0x1000cd50]
cmp dword [0x1000cdb4], eax
jne 0x1000383c
call fcn.100048ee
call fcn.10004bb6
call fcn.10004278
call fcn.100050ec
jmp 0x100038a3
cmp eax, 2
jne 0x10003896
push 0x8c
push 1
call fcn.100048fd
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10003892
push esi
push dword [0x1000c2e0]
call dword [0x1000cd6c]
test eax, eax
push esi
je 0x1000388c
call fcn.10004295
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100038a3
call fcn.100046e5
pop ecx
xor eax, eax
jmp 0x100038a6
cmp eax, 3
jne 0x100038a3
push 0
call fcn.10004460
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000481a
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1000a428
call fcn.1000532c
push 8
call fcn.10005c10
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1000cdb8], esi
jne 0x1000484e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1000cdb4], esi
mov al, byte [ebp + 0x10]
mov byte [0x1000cdb0], al
cmp dword [ebp + 0xc], edi
jne 0x10004898
cmp dword [0x1000d588], edi
je 0x10004888
mov eax, dword [0x1000d584]
sub eax, 4
mov dword [0x1000d584], eax
cmp eax, dword [0x1000d588]
jb 0x10004888
mov eax, dword [eax]
cmp eax, edi
je 0x10004869
call eax
jmp 0x10004869
push 0x1000c024
mov eax, 0x1000c020
call fcn.10004798
pop ecx
push 0x1000c030
mov eax, 0x1000c028
call fcn.10004798
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x100048c9
cmp dword [ebp + 0x10], edi
jne 0x100048d7
mov dword [0x1000cdb8], esi
push dword [ebp + 8]
call fcn.10004756
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x100048d6
push 8
call fcn.10005b5b
pop ecx
ret
call fcn.10005367
ret
Function at 0x10005481
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1000c2dc]
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 + 0x1000c3a8]
je 0x100054b6
inc eax
cmp eax, 0x13
jb 0x100054a7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000c3a8]
jne 0x100055dc
mov eax, dword [0x1000cd5c]
cmp eax, 1
je 0x100055b4
cmp eax, edx
jne 0x100054e6
cmp dword [0x1000cd60], 1
je 0x100055b4
cmp ecx, 0xfc
je 0x100055dc
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 0x1000551c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10007040
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10007140
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10005550
mov eax, edi
push eax
call fcn.10007140
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000a850
push edi
call fcn.10007830
add esp, 0x10
push edi
call fcn.10007140
push dword [esi + 0x1000c3ac]
mov ebx, eax
call fcn.10007140
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10005170
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10007040
push edi
push ebx
call fcn.10007050
push 0x1000a830
push ebx
call fcn.10007050
push dword [esi + 0x1000c3ac]
push ebx
call fcn.10007050
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10007736
add esp, 0x2c
jmp 0x100055dc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1000c3ac]
push dword [esi]
call fcn.10007140
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.10007985
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10007736
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000d094], ebx
push esi
push edi
jne 0x100077b6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100077f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1000d094], eax
je 0x100077f1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1000d098], eax
call esi
cmp dword [0x1000cd78], 2
mov dword [0x1000d09c], eax
jne 0x100077b6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000d0a4], eax
je 0x100077b6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1000d0a0], eax
mov eax, dword [0x1000d0a0]
test eax, eax
je 0x100077fb
call eax
test eax, eax
je 0x100077e2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000d0a4]
test eax, eax
je 0x100077e2
test byte [ebp - 8], 1
jne 0x100077fb
cmp dword [0x1000cd84], 4
jb 0x100077f5
or byte [ebp + 0x12], 0x20
jmp 0x1000781a
xor eax, eax
jmp 0x1000782a
or byte [ebp + 0x12], 4
jmp 0x1000781a
mov eax, dword [0x1000d098]
test eax, eax
je 0x1000781a
call eax
mov ebx, eax
test ebx, ebx
je 0x1000781a
mov eax, dword [0x1000d09c]
test eax, eax
je 0x1000781a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000d094]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000894e
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.10005170
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100089e9
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 [0x1000cd78]
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 0x100089e9
cmp eax, 1
je 0x10008a0a
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 0x100089e9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100089b6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100089e5
xor eax, eax
inc eax
jmp 0x10008a29
cmp edi, eax
jae 0x100089ed
xor eax, eax
jmp 0x10008a29
cmp eax, esi
jae 0x100089f4
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 [0x1000cd78]
jmp 0x10008a0d
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 0x404218
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404239
jl 0x404230
test edi, edi
jne 0x404239
xor eax, eax
xor edx, edx
jmp 0x4042fa
cmp dword [ebx + 0x38], 0
je 0x40424e
push eax
push edi
push dword [ebp + 8]
call fcn.00404300
jmp 0x4042fa
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404295
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404295
cmp eax, edi
jb 0x40426f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406740
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40429b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4042ef
mov ecx, ebx
call fcn.00403a67
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4042da
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a604
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4042ef
jmp 0x4042ad
test edx, edx
je 0x4042ef
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a604
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x405e06
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405e45
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405e45
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405e45
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405e45
cmp dword [ecx + 0x74], 0xe
jbe 0x405e45
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41142e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x429718]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411470
cmp byte [ebx], 0xa
jne 0x411470
or byte [edi + eax + 0x28], 4
jmp 0x411475
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x411578
mov cl, byte [eax]
cmp cl, 0x1a
je 0x411553
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4114a4
mov eax, dword [ebp - 8]
jmp 0x4114c4
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4114e0
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4114be
add eax, 2
mov cl, 0xa
jmp 0x4114c1
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x411486
jmp 0x411578
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41154e
cmp dword [ebp - 0x10], 0
je 0x41154e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x429718]
test byte [eax + edi + 0x28], 0x48
je 0x41152d
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x41151d
mov byte [esi], 0xa
jmp 0x411577
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x429718]
mov byte [eax + edi + 0x2a], cl
jmp 0x411577
cmp byte [ebp - 1], 0xa
jne 0x411537
cmp esi, ebx
je 0x411518
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413619
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411578
mov byte [esi], 0xd
jmp 0x411577
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x429718]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x411575
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x411578
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret