joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402030
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402400
call fcn.00402330
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402090
cmp eax, 0xffffffff
je 0x402090
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402089
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402089
cmp edx, 0x10000000
jae 0x402089
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402086
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402110
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40214e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402146
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x402150
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402136
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402230
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402261
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402261
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x402261
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4082ba
Capabilities:
Encode data using xor

Disassembly:
call 0x408233
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x408263
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x40827f
xor edx, 0
jmp 0x40828a
xor edx, edx
jmp 0x4082a1
jmp 0x4082ad
xor eax, eax
push 0x8427d7c0
call 0x4082ba
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x4082f6
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x4082cf
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x40830d
add eax, 0
jno 0x408312
add esi, 0
ret 0x10
Function at 0x40907b
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x40909d
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x40923f
cmp edi, dword [ebp + 0x10]
jb 0x40923f
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.00408b67
inc edi
jmp 0x409126
jmp 0x409133
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.00408b67
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.00408b67
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x409187
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x40916b
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.004091b5
add dword [eax], 0x39
jle 0x409191
sub al, 0xf5
mov ch, al
call fcn.004091ca
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x40aea2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x40aeb8
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x40aec9
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.0040af0a
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x40d276
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x40d1bf
add ebx, 0
push ecx
call 0x40d1d4
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x100a6397
sub ebx, dword [0x100c5bd6]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x100c5bc6
call fcn.00408c9e
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.004081ac
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x40d332
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x40d332
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x40d2e9
mov eax, 1
lock xchg dword [0x100c5bd2], eax
push 0x3dd1fc71
call 0x40d276
push esi
add esp, 8
cmp eax, 0
jne 0x40d25f
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x40d285
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x40d29a
cmp ecx, edx
cmp eax, 0
je 0x40d2bf
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x40d2a9
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.0040d2d8
dec eax
loope 0x40d2db
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x100c5bd2], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x40d30f
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x40d324
jmp 0x40d32f
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x40d21d

Function at 0x414397
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x41466d
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x100b284a
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x100a9810
push 0xffffffffffffffff
call fcn.0040b597
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x414401
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.00414419
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x414661
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x414635
Function at 0x423e67
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x423e89
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x423e89
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x423e89
ret
cmp word [ebx + 4], 0x14c
jne 0x423e89
test word [ebx + 0x16], 2
je 0x423e89
test word [ebx + 0x16], 0x100
je 0x423e89
cmp word [ebx + 0x18], 0x10b
jne 0x423e89
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x423e89
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x423f15
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x423ea9
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0040adf4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x423e89
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x423f15
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x423e89
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x423e89
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x423e89
ret
cmp word [ebx + 4], 0x14c
jne 0x423e89
test word [ebx + 0x16], 2
je 0x423e89
test word [ebx + 0x16], 0x100
je 0x423e89
cmp word [ebx + 0x18], 0x10b
jne 0x423e89
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x423e89
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x423f15
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x423ea9
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0040adf4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x423e89
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x423fcc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x424025
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x423fcc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x423fdb
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x829c7e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x42402c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0040aea2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4240cb
add edi, 4
add eax, 2
dec ecx
jne 0x424011
call 0x424078
loope 0x42406e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4240c8
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4240d9
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x42408c
cmp eax, ecx
ja 0x42408c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x424116
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x42410c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0040b381
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x423fdb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x424025
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x423fcc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x423fdb
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x829c7e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x42402c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0040aea2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4240cb
add edi, 4
add eax, 2
dec ecx
jne 0x424011
call 0x424078
loope 0x42406e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4240c8
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4240d9
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x42408c
cmp eax, ecx
ja 0x42408c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x424116
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x42410c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0040b381
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x200
mov al, byte [0x421d68]
push ebx
push esi
push edi
mov byte [esp + 0xc], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x210]
lea ecx, [esp + 0x214]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0x14]
push 0x200
push eax
call fcn.0040cd38
mov edi, 0x417034
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
add esp, 0x200
ret

Function at 0x4011d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x70
mov al, byte [0x421d68]
push ebx
push esi
push edi
mov byte [esp + 0x18], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0xc], 0
xor ebx, ebx
stosb byte es:[edi], al
call sub.NETNOWIODLL.DLL_CloseGENPort
lea ecx, [esp + 0x18]
push ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str.INSTALL64
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sub.NETNOWIODLL.DLL_OpenGENPort
test eax, eax
jne 0x40125c
lea ecx, [esp + 0x18]
push ecx
call sub.NETNOWIODLL.DLL_OpenGENPort
test eax, eax
jne 0x40125c
pop edi
pop esi
pop ebx
add esp, 0x70
ret
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
cmp eax, 0xa800
mov dword [0x421d6c], edx
mov dword [esp + 0x14], 0xd
mov dword [esp + 0x10], eax
jae 0x4012f6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x18], 0
call sub.NETNOWIODLL.DLL_FindCH38XCard
test eax, eax
je 0x4012e4
mov eax, dword [esp + 0xc]
push eax
call fcn.004010f0
add esp, 4
test eax, eax
jne 0x4012df
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00401170
add esp, 4
test eax, eax
je 0x4012e4
mov edx, dword [esp + 0xc]
push edx
call fcn.004010f0
add esp, 4
test eax, eax
je 0x4012e4
mov ebx, 1
mov eax, dword [esp + 0x10]
add eax, 8
cmp eax, 0xa800
mov dword [esp + 0x10], eax
jb 0x401289
call sub.NETNOWIODLL.DLL_CloseGENPort
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x70
ret
Function at 0x401310
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
push esi
push edi
push 0xf003f
push 1
push 0
lea eax, [esp + 0x24]
push 1
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40136a
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0x421d74
push ecx
push 0
push 0x41709c
push ebx
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0xc], 1
jne 0x40136a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40138f
mov edi, 0x4392bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x421d74
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x421d74
pop ebx
pop ecx
ret

Function at 0x401940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
mov al, byte [0x421d68]
mov edx, dword [esp + 0x420]
push ebx
xor ecx, ecx
push esi
push edi
mov byte [esp + 0xc], al
mov dword [esp + 0xd], ecx
push edx
lea eax, [esp + 0x10]
mov dword [esp + 0x15], ecx
push 0x4174cc
push eax
mov byte [esp + 0x21], cl
call fcn.0040cce6
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push 0
push str.HardwareDeviceMapPARALLEL_PORTS
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a0a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor bl, bl
mov edi, 0x200
lea edx, [esp + 0x24]
lea ecx, [esp + 0x28]
push edx
lea edx, [esp + 0x1c]
push ecx
push edx
movsx eax, bl
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x238]
push ecx
push edx
push eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], edi
push eax
mov dword [esp + 0x44], edi
inc bl
call esi
test eax, eax
jne 0x401a0a
cmp dword [esp + 0x18], 1
jne 0x4019a7
lea ecx, [esp + 0xc]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.0040ce70
add esp, 8
test eax, eax
je 0x4019a7
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x41c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x41c
ret
Function at 0x4026b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x410
mov edx, ecx
xor eax, eax
push edi
mov edi, dword [esp + 0x418]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.HardwareDeviceMapPARALLEL_PORTS
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4027b4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebp
push esi
xor ebp, ebp
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov eax, 0x200
push edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
push 0
lea ecx, [esp + 0x230]
mov eax, ebp
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
inc ebp
call ebx
test eax, eax
jne 0x4027a6
cmp dword [esp + 0x18], 1
jne 0x402701
lea eax, [esp + 0x20]
push str.DosDevicesLPT
push eax
call fcn.0040d00e
mov esi, eax
add esp, 8
test esi, esi
je 0x402701
push 0x4174f4
push esi
call fcn.0040cf8e
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jne 0x402701
push esi
call fcn.0040ce63
mov edx, dword [esp + 0x42c]
lea ecx, [eax - 1]
add esp, 4
cmp ecx, edx
jae 0x402701
mov edx, dword [esp + 0x424]
mov byte [eax + edx - 1], 1
jmp 0x402701
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x410
ret
Function at 0x404020
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x154
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xcc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0xc8], 0x94
push eax
call esi
mov eax, dword [esp + 0xcc]
cmp eax, 4
jne 0x4040b9
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x404095
mov eax, dword [esp + 0xd8]
cmp eax, 1
jne 0x404081
pop edi
mov al, 4
pop esi
add esp, 0x154
ret
cmp eax, 2
jne 0x404229
pop edi
mov al, 3
pop esi
add esp, 0x154
ret
cmp eax, 0xa
jne 0x4040a5
pop edi
mov al, 1
pop esi
add esp, 0x154
ret
cmp eax, 0x5a
jne 0x404229
pop edi
mov al, 2
pop esi
add esp, 0x154
ret
cmp eax, 5
jne 0x40415a
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x4040d8
pop edi
mov al, 5
pop esi
add esp, 0x154
ret
cmp eax, 1
jne 0x4040e8
pop edi
mov al, 6
pop esi
add esp, 0x154
ret
cmp eax, 2
jne 0x404229
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x9c
push ecx
call esi
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp byte [esp + 0xc6], 1
jne 0x404144
cmp word [esp + 8], 9
jne 0x404144
pop edi
mov al, 0xb
pop esi
add esp, 0x154
ret
mov eax, dword [0x54e39c]
pop edi
neg eax
sbb al, al
pop esi
and al, 5
add al, 8
add esp, 0x154
ret
cmp eax, 6
jne 0x404229
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x4041ba
mov ecx, 0x26
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x9c
push eax
call esi
mov al, byte [esp + 0xc6]
cmp al, 1
mov eax, dword [0x54e39c]
je 0x4041a9
neg eax
sbb al, al
pop edi
and al, 5
pop esi
add al, 9
add esp, 0x154
ret
neg eax
sbb al, al
pop edi
and al, 5
pop esi
add al, 7
add esp, 0x154
ret
cmp eax, 1
jne 0x40420d
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x9c
push ecx
call esi
mov al, byte [esp + 0xc6]
cmp al, 1
mov eax, dword [0x54e39c]
je 0x4041fc
neg eax
sbb al, al
pop edi
and al, 5
pop esi
add al, 9
add esp, 0x154
ret
neg eax
sbb al, al
pop edi
and al, 5
pop esi
add al, 0xa
add esp, 0x154
ret
cmp eax, 2
jne 0x404229
mov edx, dword [0x54e39c]
pop edi
test edx, edx
setne al
add eax, 0x10
pop esi
add esp, 0x154
ret
pop edi
xor al, al
pop esi
add esp, 0x154
ret