joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b65
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x1004b8f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
movzx dx, byte [eax + 1]
xor ebx, ebx
mov bh, byte [eax]
xor edx, ebx
mov word [ecx], dx
inc ecx
inc ecx
inc eax
inc eax
dec esi
jne 0x1004b79
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x1004b99
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
jne 0x1004bb1
xor eax, eax
inc eax
jmp 0x1004c3f
cmp dword [ebp + 0xc], 0xfde9
mov dword [ebp - 4], ebx
je 0x1004bc3
lea eax, [ebp - 0xc]
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x1001144]
push edi
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, ebx
je 0x1004c00
lea eax, [edi + 1]
push eax
push 0x40
call dword [0x10010e0]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1004c04
push 8
call dword [0x1001140]
xor eax, eax
jmp 0x1004c3d
push dword [ebp - 4]
push ebx
push edi
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, ebx
je 0x1004c32
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [0x100113c]
mov esi, eax
push dword [ebp - 8]
call dword [0x10010dc]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1005b41
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [0x100118c]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [0x100ab84]
shr esi, 0x14
and esi, 1
mov dword [ebp - 0xc], esi
call ebx
xor edi, edi
cmp esi, edi
mov esi, dword [0x1001240]
mov dword [ebp - 8], eax
je 0x1005b8b
push 1
call fcn.01001b99
push edi
push edi
push 0xc8
push dword [0x1009838]
call esi
push edi
push edi
push 0xb8
push dword [0x1009838]
call esi
push edi
neg eax
push edi
sbb eax, eax
push 0xe
push dword [0x1009838]
neg eax
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
push 2
call dword [0x10010e0]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1005be5
cmp dword [ebp - 0xc], edi
je 0x1005bdb
push edi
push 1
push 0xc8
push dword [0x1009838]
call esi
push dword [ebp - 8]
call ebx
jmp 0x1005cd5
lea eax, [ebp - 0x38]
push eax
push dword [0x1009830]
call dword [0x1001188]
push dword [ebp - 4]
call dword [0x10010f0]
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0xd
push dword [0x1009838]
call esi
push edi
push dword [0x100ab80]
push 0xf
push dword [0x1009830]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
push edi
push dword [ebp + 8]
push 0x1001394
push 0x1001794
push 0x200
call dword [0x10011e0]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x1005c63
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], edi
je 0x1005cc3
push edi
push 1
push 0xc8
push dword [0x1009838]
call esi
jmp 0x1005cc3
push 0xffffffffffffffec
push dword [0x1009838]
call dword [0x1001270]
or eax, 0x200
push eax
push 0xffffffffffffffec
push dword [ebp + 8]
call dword [0x100126c]
push 1
push dword [0x100ab7c]
push 0x30
push dword [ebp + 8]
call esi
push dword [ebp - 0x14]
push edi
push 0xc
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1005cdc
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], edi
je 0x1005cba
push edi
push 1
push 0xc8
push dword [0x1009838]
call esi
push dword [ebp + 8]
call dword [fcn.010011a8]
push dword [ebp - 4]
call dword [0x10010e8]
push dword [ebp - 4]
call dword [0x10010dc]
xor eax, eax
jmp 0x1005d97
push dword [ebp - 4]
call dword [0x10010e8]
push dword [0x1009838]
call dword [fcn.010011a8]
mov eax, dword [ebp + 8]
mov dword [0x1009838], eax
mov eax, dword [0x100ab8c]
cmp eax, edi
je 0x1005d09
push eax
call dword [0x10010dc]
mov eax, dword [ebp - 4]
push edi
push edi
push 0xc5
push dword [0x1009838]
mov dword [0x100ab8c], eax
call dword [0x10012a4]
push 5
push dword [0x1009830]
call dword [0x10011b0]
push edi
push dword [ebp - 0x18]
push 0xb9
push dword [0x1009838]
call esi
push dword [0x1009838]
call dword [0x1001278]
push dword [ebp - 8]
call ebx
cmp dword [0x1009840], edi
je 0x1005d94
lea eax, [ebp - 0x28]
push eax
push dword [0x1009830]
call dword [0x1001188]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
call fcn.010019e0
push 1
call fcn.01001c42
push 5
push dword [0x1009834]
call dword [0x10011b0]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x60f330
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x165000]
push edi
jmp 0x60f34a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x60f351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x60f340
mov eax, 1
add ebx, ebx
jne 0x60f363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x60f374
jne 0x60f393
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x60f393
dec eax
add ebx, ebx
jne 0x60f380
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x60f358
add ebx, ebx
jne 0x60f38f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x60f3e5
xor ecx, ecx
sub eax, 3
jb 0x60f3ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x60f41a
sar eax, 1
mov ebp, eax
jmp 0x60f3b6
add ebx, ebx
jne 0x60f3b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x60f384
inc ecx
add ebx, ebx
jne 0x60f3c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x60f384
add ebx, ebx
jne 0x60f3d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x60f3c6
jne 0x60f3e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x60f3c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x60f404
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x60f3f6
jmp 0x60f346
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x60f404
add edi, ecx
jmp 0x60f346
pop esi
mov edi, esi
mov ecx, 0x384c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x60f422
cmp byte [edi], 0x13
jne 0x60f422
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 0x60f427
lea edi, [esi + 0x20c000]
mov eax, dword [edi]
or eax, eax
je 0x60f49f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2123dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x212508]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x60f454
mov ecx, edi
jns 0x60f483
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21250c]
or eax, eax
je 0x60f499
mov dword [ebx], eax
add ebx, 4
jmp 0x60f471
call dword [esi + 0x21251c]
mov ebp, dword [esi + 0x212510]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x60f4d3
sub esp, 0xffffff80
jmp 0x46936e
Function at 0x4010e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40110d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40112e
cmp esi, eax
jae 0x401107
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401120
cmp esi, eax
jae 0x401107
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4011b0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401214
mov edx, dword [esp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011e8
mov ecx, dword [esp + 4]
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x18]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret

Function at 0x402f00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00402d20
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401d20
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402f92
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4038d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
push edi
mov dword [esp + 8], 0
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403939
mov esi, dword [ebp + 8]
push 0x44b7d1
mov ecx, esi
call fcn.00403820
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov esi, dword [ebp + 8]
je 0x40397e
push 0x44b7d1
mov ecx, esi
call fcn.00403820
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004037b0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4052c0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x447e4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
push eax
mov esi, ecx
push 0x66
mov dword [esp + 0x14], esi
call fcn.00435834
xor ebx, ebx
lea ecx, [esi + 0x70]
mov dword [esp + 0x18], ebx
mov dword [esi], method.CDialog.virtual_0
call fcn.004163f0
lea edi, [esi + 0xc0]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00436f0f
mov dword [edi], vtable.CListCtrl.0
lea edi, [esi + 0x120]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.00436f0f
mov dword [edi], vtable.CButton.0
lea edi, [esi + 0x178]
mov ecx, edi
mov byte [esp + 0x18], 3
mov dword [esi + 0x170], ebx
mov dword [esi + 0x174], ebx
call fcn.00436f0f
mov dword [edi], vtable.CComboBox.0
mov dword [esi + 0x1c8], ebx
mov ecx, dword [0x45d0f0]
mov dword [esi + 0x110], ecx
mov edx, dword [0x45f748]
mov dword [esi + 0x114], edx
mov eax, dword [0x45f740]
mov dword [esi + 0x118], eax
mov ecx, dword [0x45f74c]
mov byte [esp + 0x18], 4
mov dword [esi + 0x1c8], ecx
call fcn.0043fc15
call fcn.0043fc15
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x200
push 0x45f758
mov dword [esi + 0x11c], eax
push ebx
mov dword [0x45f958], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4053f1
push 0x2f
push 0x45f758
call fcn.00425250
add esp, 8
cmp eax, ebx
jne 0x4053ed
push 0x5c
push 0x45f758
call fcn.00425250
add esp, 8
cmp eax, ebx
je 0x405403
mov byte [eax], bl
jmp 0x405403
push 0x200
push 0x45f758
call fcn.0042edd5
add esp, 8
mov edi, 0x45f758
dec edi
lea esp, [esp]
mov eax, 0x45f758
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405418
sub eax, edx
cmp byte [edi + eax], 0x5c
je 0x40543f
mov eax, 0x45f758
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405430
sub eax, edx
cmp byte [edi + eax], 0x2f
jne 0x405455
mov eax, 0x45f758
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405447
sub eax, edx
mov byte [edi + eax], bl
jmp 0x405410
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x408920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x2c]
push edi
mov ecx, ebp
mov dword [esp + 0x10], 0
call fcn.0043344b
mov esi, eax
call fcn.0043617d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
test esi, esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
jbe 0x4089a3
cmp eax, 2
jge 0x4089a3
add eax, esi
js 0x40899e
cmp eax, dword [0x45f980]
jge 0x40899e
mov ecx, dword [0x45f97c]
lea eax, [ecx + eax*4]
push eax
lea ecx, [esp + 0x10]
call fcn.00402e20
jmp 0x4089e3
jmp fcn.00432a1d
push eax
push edi
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.0043378c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00402e20
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0xc]
add esi, 0xfffffff0
push esi
call fcn.00401d20
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408a1b
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x409cc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4480db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push esi
push edi
push 0x45f758
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.00403820
mov eax, dword [0x45f74c]
test eax, eax
mov dword [esp + 0x41c], 0
jne 0x409d16
push 0xd
push str.chinese.lang
jmp 0x409d2b
cmp eax, 1
jne 0x409d24
push 0x12
push str.chinese_big5.lang
jmp 0x409d2b
push 0xd
push str.english.lang
lea ecx, [esp + 0x14]
call fcn.00408070
mov edx, dword [ebp + 0xc]
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
push eax
push 0x3ff
lea ecx, [esp + 0x18]
push ecx
push 0x44b7d1
push edx
push str.string
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00403820
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x41c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409da4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x414]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409dc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4480fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push esi
push edi
push 0x45f758
lea ecx, [esp + 0x14]
call fcn.00403820
mov eax, dword [0x45f74c]
test eax, eax
mov dword [esp + 0x434], 0
jne 0x409e0f
push 0xd
push str.chinese.lang
jmp 0x409e24
cmp eax, 1
jne 0x409e1d
push 0x12
push str.chinese_big5.lang
jmp 0x409e24
push 0xd
push str.english.lang
lea ecx, [esp + 0x18]
call fcn.00408070
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0xff
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push eax
push 0x3ff
lea ecx, [esp + 0x30]
push ecx
push 0x44b7d1
push str.caption
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x28]
test al, al
je 0x409e7a
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x28]
push edx
call fcn.00439970
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push ecx
call edi
push eax
call fcn.00437916
mov esi, eax
test esi, esi
je 0x409f32
jmp 0x409ea0
mov ecx, esi
call fcn.00439991
push 0xa
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00427824
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0xff
lea ecx, [esp + 0x30]
push ecx
push 0x44b7d1
lea edx, [esp + 0x24]
push edx
push ebx
mov byte [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x28]
test al, al
je 0x409ef0
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00439970
mov esi, dword [esi + 0x1c]
push 2
push esi
call edi
push eax
call fcn.00437916
mov esi, eax
test esi, esi
je 0x409f32
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push 5
push edx
call edi
push eax
call fcn.00437916
cmp esi, eax
je 0x409f32
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00437916
cmp eax, dword [ebp + 8]
je 0x409ea0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x434], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4489ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
push eax
push 0x6a
mov dword [esp + 0x24], 2
call fcn.00435834
mov byte [esp + 0x1c], 3
mov dword [esi], method.CDialog.virtual_0
lea ebp, [esi + 0x74]
call fcn.0043617d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
lea ecx, [esi + 0x78]
mov byte [esp + 0x1c], 4
call fcn.00433e74
lea edi, [esi + 0x8c]
mov ecx, edi
mov byte [esp + 0x1c], 5
call fcn.00436f0f
mov dword [edi], vtable.CComboBox.0
mov byte [esp + 0x1c], 6
lea edi, [esi + 0xdc]
call fcn.0043617d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 7
call fcn.0043617d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xe0], eax
mov byte [esp + 0x1c], 8
lea ebx, [esi + 0xe4]
call fcn.0043617d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0
push 0x44b7d1
mov ecx, edi
mov byte [esp + 0x24], 9
call fcn.00402ba0
push 0
push 0x44b7d1
lea ecx, [esi + 0xe0]
call fcn.00402ba0
push 0
push 0x44b7d1
mov ecx, ebx
call fcn.00402ba0
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.00402e20
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.00402e20
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.00402e20
mov eax, dword [esp + 0x24]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41017c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41019f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x413958
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x448ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x10], eax
jge 0x41397b
push 0xffffffffffffffff
call fcn.004260ad
lea eax, [esp + 0x18]
mov dword [esi + 0x10], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0x411490
call fcn.00413800
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0x4119d0
call fcn.00413800
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x1c], 0x412d10
call fcn.00413800
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0x411db0
call fcn.00413800
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x416a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea edx, [ebx + 0x208]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x416a68
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesClassNet
push 0x80000002
call esi
test eax, eax
jne 0x416b01
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push eax
push edi
push edx
call esi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x416af8
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0
push str.DriverDesc
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416ae1
cmp dword [esp + 0x10], 1
je 0x416af1
mov eax, dword [str.Unknown]
mov dword [ebx], eax
mov ecx, dword [0x44d9a0]
mov dword [ebx + 4], ecx
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret