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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x403dd0
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x472ed8]
or ecx, dword [ebx*4 + 0x4730d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4732d8]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4734d8]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x472fd8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4731d8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4733d8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4735d8]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x472ed8]
or ecx, dword [ebx*4 + 0x4730d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4732d8]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4734d8]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x472fd8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4731d8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4733d8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4735d8]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x403dd0
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret 4
Function at 0x407800
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x457cab
mov eax, dword fs:[0]
push eax
mov eax, 0x271c
call fcn.00443f40
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 0x2718], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x2730]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40785d
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x2710
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x2744], 0
call fcn.004406c0
add esp, 0xc
test esi, esi
jne 0x407894
xor eax, eax
jmp 0x4078af
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4078a0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.004029b0
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x4078e3
push esi
lea ecx, [esp + 0x18]
call fcn.00402ba0
mov ecx, dword [esp + 0x14]
test esi, esi
mov word [ecx + edi*2], 0x5c
jl 0x407a2c
cmp esi, dword [ecx - 8]
jg 0x407a2c
test ebx, ebx
mov dword [ecx - 0xc], esi
mov word [ecx + esi*2], 0
jne 0x40790b
xor eax, eax
jmp 0x40791f
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407910
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00407380
mov ebp, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40799a
mov dword [esp + 0x2738], eax
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407970
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2730]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2718]
xor ecx, esp
call fcn.0043e923
add esp, 0x2728
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0x40
mov edi, eax
push esi
sub edi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
jbe 0x4079f4
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
nop
cmp edi, 0x2710
push 0
jbe 0x4079e6
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
lea edx, [esp + 0x28]
push edx
push esi
call ebx
sub edi, 0x2710
jne 0x4079c0
jmp 0x4079f4
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2738], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407a22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x407972
push 0x80070057
call fcn.00402660
int3
Function at 0x40ae90
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4576c8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4736e8
mov dword [esp + 0x10], 0
call fcn.00402930
mov ecx, dword [0x4736e8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
mov dword [esp + 0xc], ecx
jne 0x40af10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aefc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
test al, 0x10
mov eax, dword [esp + 0x14]
jne 0x40aee3
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40af31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x40af50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x457a42
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x818]
mov dword fs:[0], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
push 0x4622b0
mov ecx, esi
mov dword [esp + 0x824], 2
call fcn.00402680
mov eax, dword [0x4736e8]
mov ebp, dword [esp + 0x82c]
mov edi, dword [esp + 0x828]
push eax
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push 0x4622b0
push ebp
push edi
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40afe6
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004029b0
lea eax, [edi - 0x10]
mov byte [esp + 0x820], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b026
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x820], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b04a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0043e923
add esp, 0x818
ret 8
Function at 0x40b100
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4736e8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b154
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
ret 8
Function at 0x40b590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4580e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b5d5
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
lea esi, [esp + 0x10]
mov dword [esp + 0x4c], 0
call fcn.00401420
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b61e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x463b34
push 0x463b48
lea edi, [esp + 0x14]
call fcn.0040ada0
mov edi, dword [esp + 0x14]
lea eax, [edi - 0x10]
push eax
mov dword [esp + 0x1c], eax
call fcn.00402ac0
add esp, 0xc
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esi, 0xfffffff0
cmp eax, 0xffffffff
jne 0x40b678
lea ecx, [esi + 0xc]
or edx, eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b737
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40b737
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b691
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.004234fb
mov eax, dword [eax + 8]
push 0x50
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
lea ecx, [esp + 0x24]
push ecx
push 0x18
push eax
mov dword [ebx + 0x7c], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
mov dword [ebx + 0x74], edx
mov edx, dword [ebx + 0x20]
push ecx
push edx
mov dword [ebx + 0x78], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push 1
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00413c92
push 0
mov ecx, ebx
call fcn.0041703c
push 0x3f5
mov ecx, ebx
call fcn.00413b11
push 0
mov ecx, eax
call fcn.00413cd0
mov ecx, ebx
call fcn.0040b770
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b75c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b840
Capabilities:
Enumerate files on windows
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4580a6
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b894
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
xor edi, edi
mov dword [esp + 0x278], 0
mov dword [esp + 0x18], edi
call fcn.0040d190
test ax, ax
mov word [0x4767a4], ax
je 0x40b9fe
lea ecx, [esp + 0x14]
push ecx
lea esi, [esp + 0x14]
call fcn.00401420
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b8fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xf
push 0x463cb0
lea ecx, [esp + 0x18]
call fcn.00407380
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40b9fe
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x40b930
push 0x5c
push esi
call fcn.0043f400
add esp, 8
test eax, eax
jne 0x40b944
or eax, 0xffffffff
jmp 0x40b948
sub eax, esi
sar eax, 1
add eax, 1
push eax
push 0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040b2e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 1
call fcn.00402930
mov byte [esp + 0x278], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b996
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x48]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b9a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00407380
mov esi, dword [esp + 0x10]
push esi
push 0
push str.Language
push str.Language
call edi
mov cx, word [0x4767a4]
movzx edx, cx
cmp edx, eax
je 0x40ba4f
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b930
mov edi, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi - 0x10]
mov dword [esp + 0x278], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ax, di
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0043e923
add esp, 0x26c
ret
movzx edi, cx
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4768b4
call fcn.00402930
movzx edx, di
push edx
xor ecx, ecx
call fcn.0040bd50
add esp, 4
jmp 0x40b9f7
Function at 0x40c350
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
mov esi, dword [0x4768b4]
mov dword [esp + 4], 0
mov ecx, 0x4622b0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c38d
test dx, dx
je 0x40c389
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c38d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c367
xor eax, eax
jmp 0x40c392
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c44a
mov eax, dword [0x4768b0]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x1f4
or ecx, edx
jge 0x40c3c8
push 0x1f4
mov ecx, 0x4768b0
call fcn.00402ba0
mov eax, dword [0x4768b0]
push esi
push 0x1f4
push eax
mov eax, dword [esp + 0x18]
push 0
push eax
push str.Text
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40c44a
mov edx, dword [0x4768b0]
test edx, edx
jne 0x40c3f3
xor eax, eax
jmp 0x40c411
mov eax, edx
lea esi, [eax + 2]
jmp 0x40c400
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c400
sub eax, esi
sar eax, 1
js 0x40c440
cmp eax, dword [edx - 8]
jg 0x40c440
mov dword [edx - 0xc], eax
mov ecx, dword [0x4768b0]
mov word [ecx + eax*2], 0
mov eax, dword [0x4768b0]
add eax, 0xfffffff0
push eax
call fcn.00402ac0
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
pop ecx
ret
push 0x80070057
call fcn.00402660
mov edx, dword [0x4768b0]
test edx, edx
jne 0x40c458
xor eax, eax
jmp 0x40c471
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c460
sub eax, esi
sar eax, 1
js 0x40c440
cmp eax, dword [edx - 8]
jg 0x40c440
mov dword [edx - 0xc], eax
mov edx, dword [0x4768b0]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x10]
push eax
mov ecx, edi
call fcn.00402680
mov eax, edi
pop esi
pop ecx
ret
Function at 0x40ce40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4578d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ce80
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 0
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ceb2
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x28]
push ebp
mov byte [esp + 0x24], 1
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
lea ecx, [esp + 0x14]
push 0x463d90
push ecx
call fcn.00402e70
mov eax, dword [esi - 8]
mov edi, dword [0x4768b4]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
add esp, 0xc
or eax, ecx
jge 0x40cf11
push 0x400
lea ecx, [esp + 0x18]
call fcn.00402ba0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x30]
push 0x400
push esi
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40cf67
test esi, esi
jne 0x40cf36
xor eax, eax
jmp 0x40cf51
mov eax, esi
lea edx, [eax + 2]
jmp 0x40cf40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf40
sub eax, edx
sar eax, 1
js 0x40cf6f
cmp eax, dword [esi - 8]
jg 0x40cf6f
push esi
mov dword [esi - 0xc], eax
push ebp
mov word [esi + eax*2], 0
call dword [sym.imp.USER32.dll_SetWindowTextW]
test esi, esi
jne 0x40cf79
xor eax, eax
jmp 0x40cf91
push 0x80070057
call fcn.00402660
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf80
sub eax, edx
sar eax, 1
js 0x40cf6f
cmp eax, dword [esi - 8]
jg 0x40cf6f
push edi
push fcn.0040ce40
mov dword [esi - 0xc], eax
push ebp
mov word [esi + eax*2], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [0x4767a8]
test eax, eax
je 0x40cfc1
push 0
push eax
push 0x30
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d00a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
Function at 0x40d030
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x457fcb
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 0xd0], eax
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
movzx edi, word [0x4767a4]
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d08a
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
lea esi, [esp + 0x10]
mov dword [esp + 0xec], 0
call fcn.00401420
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d0d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4768b8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00407380
mov esi, dword [esp + 0xc]
push esi
push 0x409
push str.Lang
push str.huaqin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx eax, ax
cmp ax, di
je 0x40d136
movzx ecx, di
push ecx
push 0x4622d4
lea edx, [esp + 0x1c]
call fcn.0040d2c0
add esp, 8
push esi
lea edx, [esp + 0x18]
push edx
push str.Lang
push str.huaqin
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d15d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0043e923
add esp, 0xe0
ret
Function at 0x40d190
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x457f98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 8], eax
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d1da
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
lea esi, [esp + 0x10]
mov dword [esp + 0x24], 0
call fcn.00401420
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4768b8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00407380
mov esi, dword [esp + 0xc]
push esi
push 0x409
push str.Lang
push str.huaqin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx edi, ax
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d277
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ax, di
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0043e923
add esp, 0x18
ret