joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x485d90], 0
je 0x46617f
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x484f18]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x46617f
mov eax, dword [0x485d94]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x485d90]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x46614e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x485d90]
call fcn.004207e4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x466146
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x466146
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x466146
mov eax, dword [ebp - 0x14]
call fcn.0046eaa8
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x466146
push ebp
call fcn.00465fec
pop ecx
test al, al
jne 0x466146
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x466102
mov eax, dword [ebp - 0x14]
call fcn.0046d604
dec eax
jle 0x466146
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0043eadc
cmp byte [ebp - 1], 0
je 0x466146
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x466146
mov edx, dword [ebp - 0x14]
mov eax, dword [0x485d94]
call fcn.004657b4
inc edi
dec ebx
jne 0x466095
mov eax, dword [0x485d94]
cmp dword [eax + 8], 0
jle 0x466166
mov eax, dword [0x485d94]
call fcn.00465844
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46617f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00465e54
pop ecx
test al, al
jne 0x46617f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46972c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x469778
mov eax, esi
call fcn.0045860c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x469778
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x469778
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4698b7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4697b8
cmp eax, 0x108
ja 0x4697b8
mov eax, esi
call fcn.0045860c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4698ae
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4698b7
jmp 0x4698ae
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x469897
cmp eax, 0x20a
ja 0x469897
test byte [esi + 0x50], 0x80
jne 0x4697ea
sub eax, 0x203
je 0x4697e7
sub eax, 3
je 0x4697e7
sub eax, 3
jne 0x4697ea
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4697fe
dec eax
je 0x469813
dec eax
je 0x469830
dec eax
je 0x469813
jmp 0x469837
mov ecx, ebx
mov eax, dword [0x484f18]
mov eax, dword [eax]
mov edx, esi
call fcn.00461f78
jmp 0x4698ae
cmp byte [esi + 0x5d], 1
jne 0x469829
mov eax, esi
mov si, 0xffed
call fcn.0043eadc
jmp 0x4698b7
or word [esi + 0x54], 1
jmp 0x4698ae
and word [esi + 0x54], 0xfffe
jmp 0x4698ae
mov eax, dword [0x485d4c]
cmp byte [eax + 0x20], 0
je 0x4698ae
mov eax, dword [0x485d4c]
cmp dword [eax + 0x1c], 0
je 0x4698ae
mov eax, dword [ebx]
mov edx, dword [0x485d4c]
cmp eax, dword [edx + 0x1c]
jne 0x4698ae
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00458550
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0043eadc
jmp 0x4698b7
cmp eax, 0xb00b
jne 0x4698ae
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00468068
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46cca0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x46ccbc
cmp dword [esi + 4], 0
je 0x46cce9
test byte [ebx + 0x55], 1
jne 0x46ccdb
mov eax, ebx
call fcn.0046b964
test eax, eax
jne 0x46ccdb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x46cdf9
mov edx, esi
mov eax, ebx
call fcn.0046c7c0
jmp 0x46cdf9
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46cdf2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046eaa8
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00469660
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0046cca0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046eaa8
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cdf9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4732cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x484f04]
cmp byte [eax + 0xc], 0
je 0x473439
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473432
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x485da0], 0
jne 0x473320
push 0x473440
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x473448
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485da0], eax
cmp dword [0x481594], 0
jne 0x47341b
push 0x473458
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x481594], eax
cmp dword [0x481594], 0
je 0x47341b
push 0x473464
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485da4], eax
push 0x473474
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485da8], eax
push 0x473488
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485dac], eax
push 0x4734a0
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485db0], eax
push 0x4734b8
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485db4], eax
push 0x4734cc
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485db8], eax
push 0x4734e4
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485dbc], eax
push 0x4734fc
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485dc0], eax
push 0x473518
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485dc4], eax
push 0x473524
mov eax, dword [0x481594]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x485dc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473439
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x475acc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x475ae8
call fcn.00476e50
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x475b04
test bl, 1
je 0x475b04
call fcn.00479540
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x475ce8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004769ec
test byte [ebp + 0xd], 0xc0
jne 0x475d0c
mov eax, dword [0x482364]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x475d19
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x475d46
je 0x475d58
sub ecx, 0x100
je 0x475d66
sub ecx, 0x100
je 0x475d6d
sub ecx, 0x100
je 0x475d5f
jmp 0x475d74
sub ecx, 0x600
je 0x475d6d
sub ecx, 0x100
je 0x475d58
jmp 0x475d74
mov edi, 1
jmp 0x475d79
mov edi, 2
jmp 0x475d79
mov edi, 4
jmp 0x475d79
mov edi, 5
jmp 0x475d79
mov edi, 3
test byte [ebp + 0xd], 1
je 0x475da0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x481ddc]
test al, 0x80
je 0x475d99
mov ebx, 0x80
jmp 0x475db2
mov ebx, 1
jmp 0x475db2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x475db2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x475dc4
je 0x475dcd
dec eax
je 0x475dd6
jmp 0x475ddf
mov dword [ebp - 4], SysStringLen
jmp 0x475dee
mov dword [ebp - 4], 0x40000000
jmp 0x475dee
mov dword [ebp - 4], 0xc0000000
jmp 0x475dee
push 1
call fcn.00476de4
pop ecx
mov ebx, eax
jmp 0x475ede
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x475e0a
sub eax, 0x10
je 0x475e11
sub eax, 0x10
je 0x475e1a
sub eax, 0x10
je 0x475e23
jmp 0x475e23
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x475e2a
mov dword [ebp - 8], 1
jmp 0x475e2a
mov dword [ebp - 8], 2
jmp 0x475e2a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x475e97
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x475e8c
test byte [ebp + 0xd], 1
je 0x475e87
mov ebx, 0x50
jmp 0x475e8c
mov ebx, 2
push ebx
call fcn.00476de4
pop ecx
mov ebx, eax
jmp 0x475ede
mov edi, esi
push edi
call fcn.00475c4c
pop ecx
test eax, eax
je 0x475eab
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x475eb7
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00476b0c
add esp, 8
mov ebx, eax
inc eax
jne 0x475ede
push 4
call fcn.00476de4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00476a20
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4794d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x47953a
call fcn.00479488
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00474950
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00474950
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4795b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x48318c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x479692
cmp dword [0x483188], 0
jne 0x479692
cmp dword [0x48336c], 0
je 0x47964c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00479388
add esp, 8
mov ebx, eax
test eax, eax
jne 0x479632
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00479388
add esp, 8
mov ebx, eax
test eax, eax
jne 0x479632
lea ebx, [ebp - 0x84]
jmp 0x479633
inc ebx
call fcn.00479574
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4796cd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x483190
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00474950
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x483193
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4796cd
cmp dword [0x483188], 0
je 0x4796ac
cmp dword [0x483188], 0xffffffff
je 0x4796cd
push esi
call dword [0x483188]
pop ecx
mov eax, dword [0x48318c]
test eax, eax
je 0x4796cd
cmp dword [0x48318c], 0xffffffff
je 0x4796cd
cmp byte [eax], 0
je 0x4796cd
push esi
push eax
call fcn.004794d8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479e64
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x486630], 0
jne 0x479ee5
cmp dword [0x486650], 0
jne 0x479e94
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x486650], eax
test eax, eax
jne 0x479e94
push str.GetEnvironmentStrings_failed
call fcn.004796e4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x486650]
jmp 0x479ea8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00474950
pop ecx
mov edi, eax
test eax, eax
jne 0x479ea0
lea edi, [ebp + 1]
push edi
call fcn.004741b8
pop ecx
mov ebx, eax
mov dword [0x486634], ebx
test ebx, ebx
jne 0x479ed2
xor eax, eax
jmp 0x479fa8
push edi
mov edx, dword [0x486650]
push edx
push ebx
call fcn.00474784
add esp, 0xc
jmp 0x479f05
xor esi, esi
mov ebx, dword [0x486630]
jmp 0x479eff
push eax
call fcn.00474950
pop ecx
test eax, eax
jne 0x479efb
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x479eef
lea ebx, [esi + 4]
push 4
mov dword [0x486638], ebx
inc ebx
push ebx
call fcn.00473c90
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x479f28
xor eax, eax
jmp 0x479fa8
cmp dword [0x486630], 0
jne 0x479f59
xor esi, esi
mov ebx, dword [0x486634]
mov eax, dword [esp]
mov ebp, eax
jmp 0x479f4a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00474950
pop ecx
mov edi, eax
test eax, eax
jne 0x479f40
jmp 0x479f8a
xor esi, esi
mov ebx, dword [0x486630]
mov eax, dword [esp]
mov edi, eax
jmp 0x479f84
push eax
call fcn.00474950
pop ecx
test eax, eax
je 0x479f79
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x479f7d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x479f68
mov eax, dword [0x486630]
test eax, eax
je 0x479f9a
push eax
call fcn.004741c8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x486630], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10001530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.10016cd7
Function at 0x100026c0
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 0x100026d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10002714
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10002710
lea ebx, [ebx]
cmp esi, eax
jae 0x10002714
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10002700
cmp esi, eax
jb 0x1000271a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x100088f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14
mov eax, dword [0x10071350]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov esi, ecx
call fcn.100167a0
call fcn.10015660
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add eax, 8
mov eax, dword [eax]
push eax
push 0x19
push str.WUDIONTIME
push str.BENBEN_FUN
call edi
mov dword [esi + 0x80], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 5
push str.WUDIOFFTIME
push str.BENBEN_FUN
call edi
mov dword [esi + 0x84], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0x3a
push str.WDSHIJIAN
push str.BENBEN_FUN
call edi
mov dword [esi + 0x9c], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0x258
push str.SXFW
push str.BENBEN_FUN
call edi
mov dword [esi + 0xd8], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 1
push str.WYCADD
push str.BENBEN_FUN
call edi
mov dword [esi + 0xf4], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0
push str.JWSD
push str.BENBEN_FUN
call edi
mov dword [esi + 0x11c], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0x14
push str.SYJG
push str.BENBEN_FUN
call edi
mov dword [esi + 0x138], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0x64
push str.DDFW
push str.BENBEN_FUN
call edi
mov dword [esi + 0x130], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0
push str.HZJS
push str.BENBEN_FUN
call edi
mov dword [esi + 0x128], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0x258
push str.LDFW
push str.BENBEN_FUN
call edi
mov dword [esi + 0x144], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0x3c
push str.HTJG
push str.BENBEN_FUN
call edi
mov dword [esi + 0x148], eax
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x10055520
push str.WEICHONGKEY
push str.BENBEN_HEYAO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 8]
push edx
lea eax, [esi + 0x108]
push 0x10054c24
push eax
call fcn.100039d0
add esp, 0xc
push 0
mov ecx, esi
call fcn.100195b6
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.10026ddc
add esp, 0x14
ret
Function at 0x100101c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10045b78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10071350]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.100167a0
push 0xffffffffffffffff
push 0xa0
xor edi, edi
push edi
push 0x10054cfc
push edi
lea ecx, [ebp + 0xcc]
call fcn.10016f18
push 0xffffffffffffffff
push 0xa0
push edi
push 0x10054cfc
lea ecx, [ebp + 0x78]
push edi
call fcn.10016f18
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push edi
push str.GUOLVCOUNT
push str.BENBEN_GUOLV
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov dword [esp + 0x20], esi
call fcn.1001f082
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x1001025b
push 0x80004005
call fcn.100026a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edi
call fcn.1001f082
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x10010289
push 0x80004005
call fcn.100026a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x2c], 1
test esi, esi
jle 0x10010380
push edi
lea ecx, [esp + 0x1c]
push str.GUOLVID_d
push ecx
call fcn.100039d0
add esp, 0xc
call fcn.10015660
mov edx, dword [esp + 0x18]
add eax, 8
mov eax, dword [eax]
push eax
push 0
push edx
push str.BENBEN_GUOLV
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.1000f0e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.10003910
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10010319
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
push 0x1005c544
push ebx
call fcn.100275cd
add esp, 8
test eax, eax
sete al
test al, al
je 0x1001034b
push esi
lea ecx, [esp + 0x18]
push 0x10054cac
push ecx
call fcn.100039d0
mov ebx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push 0
push 0
push ebx
push edi
push 1
lea ecx, [ebp + 0x78]
call fcn.10016f64
push esi
push 0
push 0
push 0
push 0
push 4
push 0
push eax
lea ecx, [ebp + 0x78]
call fcn.10016fa7
inc edi
cmp edi, dword [esp + 0x20]
jl 0x100102a6
add ebx, 0xfffffff0
mov byte [esp + 0x2c], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x100103a1
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100103c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret