joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003dd82
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 0x1003dd98
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 0x1003dda9
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1003ddea
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 0x10040156
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 0x1004009f
add ebx, 0
push ecx
call 0x100400b4
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, 0x6d466257
sub ebx, dword [0x6d485a96]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6d485a86
call fcn.1003bb7e
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1003b08c
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x10040212
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x10040212
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 0x100401c9
mov eax, 1
lock xchg dword [0x6d485a92], eax
push 0x3dd1fc71
call 0x10040156
push esi
add esp, 8
cmp eax, 0
jne 0x1004013f
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10040165
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1004017a
cmp ecx, edx
cmp eax, 0
je 0x1004019f
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 0x10040189
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.100401b8
dec eax
loope 0x100401bb
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6d485a92], 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 0x100401ef
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x10040204
jmp 0x1004020f
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100400fd
Function at 0x10047277
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 0x1004754d
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6d47270a
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6d4696d0
push 0xffffffffffffffff
call fcn.1003e477
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 0x100472e1
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100472f9
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 0x10047541
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x10047515
Function at 0x10056d47
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 0x10056d69
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10056d69
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10056d69
ret
cmp word [ebx + 4], 0x14c
jne 0x10056d69
test word [ebx + 0x16], 2
je 0x10056d69
test word [ebx + 0x16], 0x100
je 0x10056d69
cmp word [ebx + 0x18], 0x10b
jne 0x10056d69
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10056d69
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10056df5
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10056d89
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1003dcd4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10056d69
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 0x10056df5
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 0x10056d69
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10056d69
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10056d69
ret
cmp word [ebx + 4], 0x14c
jne 0x10056d69
test word [ebx + 0x16], 2
je 0x10056d69
test word [ebx + 0x16], 0x100
je 0x10056d69
cmp word [ebx + 0x18], 0x10b
jne 0x10056d69
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10056d69
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10056df5
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10056d89
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1003dcd4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10056d69
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 0x10056eac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10056f05
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10056eac
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10056ebb
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 0x1045cb5e
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 0x10056f0c
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.1003dd82
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10056fab
add edi, 4
add eax, 2
dec ecx
jne 0x10056ef1
call 0x10056f58
loope 0x10056f4e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10056fa8
mov dh, 0xe8
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 0x10056fb9
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 0x10056f6c
cmp eax, ecx
ja 0x10056f6c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10056ff6
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10056fec
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1003e261
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10056ebb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10056f05
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10056eac
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10056ebb
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 0x1045cb5e
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 0x10056f0c
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.1003dd82
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10056fab
add edi, 4
add eax, 2
dec ecx
jne 0x10056ef1
call 0x10056f58
loope 0x10056f4e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10056fa8
mov dh, 0xe8
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 0x10056fb9
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 0x10056f6c
cmp eax, ecx
ja 0x10056f6c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10056ff6
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10056fec
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1003e261
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x417f00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
mov dword [edi + 0x10088], 0xeb00ffb8
push edi
jmp 0x417f2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417f20
mov eax, 1
add ebx, ebx
jne 0x417f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417f38
jne 0x417f54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417f38
xor ecx, ecx
sub eax, 3
jb 0x417f68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417fda
mov ebp, eax
add ebx, ebx
jne 0x417f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417f80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417fa4
inc ecx
add ebx, ebx
jne 0x417f90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417f85
jne 0x417fa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417f85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417fc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417fb5
jmp 0x417f26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417fc4
add edi, ecx
jmp 0x417f26
pop esi
mov edi, esi
mov ecx, 0x3c7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417fe2
cmp byte [edi], 6
jne 0x417fe2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x417fe7
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x418056
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18348]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18398]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418014
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x183a0]
or eax, eax
je 0x418050
mov dword [ebx], eax
add ebx, 4
jmp 0x418031
call dword [esi + 0x1839c]
mov ebp, dword [esi + 0x183a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x180b1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4180a2
sub esp, 0xffffff80
jmp 0x4012e0
Function at 0x401000
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40103f
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
mov edi, dword [esp + 0xc]
test esi, esi
jne 0x401046
lea eax, [esi + 0xd]
jmp 0x401063
xor al, al
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push 0x4705ac
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test edi, edi
je 0x401073
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
pop ecx
ret

Function at 0x401080
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x46a55b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4860f0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4860f0]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp + 0x24c], ebx
push SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401184
mov ebp, dword [esp + 0x14]
push 0x4705ac
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0x104
call fcn.00401a60
test eax, eax
jne 0x40114f
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov ecx, esi
push ecx
push eax
call fcn.0040d160
add esp, 8
test al, al
je 0x40114f
push 0x4705ac
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp ebp, ebx
je 0x40115a
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004567fb
add esp, 0x22c
ret
xor al, al
jmp 0x40115c
Function at 0x401560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401577
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4015a8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4015a4
cmp esi, eax
jae 0x4015a8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401594
cmp esi, eax
jb 0x4015ae
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401ace
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x401a9f
cmp eax, 2
jne 0x401aba
mov eax, dword [esp]
test esi, esi
je 0x401ac8
test eax, eax
je 0x401ac3
test al, 1
jne 0x401aba
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x401ac8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x401b50
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x46bdc8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4860f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esi], vtable.CCommandLineParser.0
mov eax, dword [0x488da4]
mov edx, dword [eax + 0xc]
mov ecx, 0x488da4
lea edi, [esi + 4]
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [esi + 8]
push eax
mov dword [esp + 0x1c], 0
call fcn.00402410
mov byte [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x401bb8
xor ecx, ecx
jmp 0x401bcf
mov ecx, eax
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401bc0
sub ecx, ebx
sar ecx, 1
push eax
mov ebx, ecx
mov eax, edi
call fcn.004018b0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x405710
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x46c288
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4860f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov ecx, str.http:__web.4399.com
call fcn.00401990
lea ecx, [esp + 8]
push ecx
mov ecx, str.SoftwareMicrosoftInternet_ExplorerMain
mov dword [esp + 0x1c], 0
call fcn.00401990
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 4]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.Start_Page
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
add esp, 0x18
ret
Function at 0x406030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46cc93
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4860f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov eax, 7
xor esi, esi
xor ecx, ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], esi
mov word [edi + 4], cx
mov dword [esp + 0x14], esi
xor edx, edx
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], esi
mov word [edi + 0x20], dx
mov byte [esp + 0x14], 1
push 4
mov dword [edi + 0x5c], esi
call fcn.00456a8e
add esp, 4
cmp eax, esi
je 0x406093
mov dword [eax], esi
jmp 0x406095
xor eax, eax
push 0xc
mov dword [edi + 0x60], eax
call fcn.00456a8e
add esp, 4
cmp eax, esi
je 0x4060b0
mov dword [eax + 8], esi
mov dword [eax + 4], esi
mov dword [eax], esi
jmp 0x4060b2
xor eax, eax
push esi
mov dword [edi + 0x64], eax
mov dword [edi + 0x58], esi
call fcn.00411d10
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x406220
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46bd3b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4860f0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4860f0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24c]
push 0x208
xor ebx, ebx
lea ecx, [esp + 0x2a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x30], ax
call fcn.00459a90
xor esi, esi
add esp, 0xc
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x20]
push edx
push 0x20019
push ebx
push 0x472940
mov dword [esp + 0x254], ebx
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4062fa
mov eax, dword [esp + 0x20]
push str.AppPath
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x24]
lea esi, [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call fcn.00401a60
test eax, eax
jne 0x4062f6
cmp dword [esp + 0x1c], ebx
je 0x4062f6
mov edx, esi
mov edi, ebp
call fcn.00401950
mov esi, dword [esp + 0x14]
jmp 0x406352
mov esi, dword [esp + 0x14]
push ebx
push 0x1c
lea edx, [esp + 0x2c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40631c
cmp esi, ebx
je 0x406318
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x406362
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406323
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.004018b0
push str.43994399GameHall_
push ebp
mov eax, 0x13
call fcn.00405e40
xor ebx, ebx
cmp esi, ebx
je 0x40635d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004567fb
add esp, 0x234
ret