joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
push edi
push eax
push ecx
mov ebx, 1
xor esi, esi
mov dword [ebp - 8], esi
push ebx
call fcn.0043d130
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add esp, 0xc
test edx, edx
je 0x4346ed
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, 0x7fffffff
mov dword [ecx + 0x280], eax
mov dword [edx + 0x284], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.MSVCRT.dll_longjmp]
mov dword [eax + 0x288], esi
mov eax, dword [ebp - 4]
push 0x40
push edx
push eax
mov dword [ecx + 0x28c], esi
call fcn.00437fe0
push esi
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 0x14
test eax, eax
je 0x4345b2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push esi
push ecx
push edi
push edx
call fcn.0043d200
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call fcn.00438070
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push edx
call fcn.00437410
add esp, 0x28
test eax, eax
jne 0x4345f3
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x434635
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xb4], 0x2000
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0043d320
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
add esp, 8
cmp dword [eax + 0xb0], 0
jne 0x434635
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x98], 0x435930
mov ecx, dword [ebp - 4]
mov dword [edx + 0x9c], fcn.00435980
mov edx, dword [ebp - 8]
mov dword [ecx + 0xa0], eax
test edx, edx
jne case.0x434680.0
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.0044a910
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x434680.5
jmp dword [eax*4 + 0x434730]
push str.zlib_memory_error
jmp 0x4346a9
mov edx, dword [ebp - 4]
push str.zlib_stream_error
push edx
jmp 0x4346ad
mov eax, dword [ebp - 4]
push str.zlib_version_error
push eax
jmp 0x4346ad
push str.Unknown_zlib_error
mov ecx, dword [ebp - 4]
push ecx
call fcn.004380a0
mov dword [ebp - 8], ebx
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
test edx, edx
mov edx, dword [ebp - 4]
je 0x4346f6
mov ecx, dword [eax + 0xb0]
push ecx
push edx
call fcn.0043d2f0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
mov dword [eax + 0xb0], 0
call fcn.0043d1b0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xb0]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp - 4]
push 0
push 0
push eax
mov dword [ecx + 0x88], edx
call fcn.00438450
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438000
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x43801a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x43801a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x443044
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x4a7e68], ebx
jne 0x44307a
push 0x4a7e4c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4a7e68], 1
push 0x4a7e4c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a7e64]
mov edi, eax
cmp eax, ebx
je 0x4430de
cmp dword [ebp - 4], ebx
jne 0x44321e
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x4430b1
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x4430a2
jmp 0x4430cf
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00442e99
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x443090
cmp dword [ebp - 4], ebx
jne 0x44321e
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x44321e
mov edi, dword [0x4a7e64]
jmp 0x44311e
cmp dword [edi + 0xc], 0x3f
jl 0x4431b8
mov edi, dword [edi]
cmp edi, ebx
jne 0x443112
push 0x310
push 8
push dword [0x4a7394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x443215
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x443207
push ebx
push ebx
push edi
push 0x442eea
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4431fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00442e99
mov eax, dword [0x4a7e64]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x4431b0
mov dword [eax + 4], edi
mov dword [0x4a7e64], edi
jmp 0x44321e
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00442e99
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x44321e
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x4a7394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4a7e4c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4445ac
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x158
push 8
push dword [0x4a7394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4a8214]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x4a8218], esi
and dword [esi + 0x88], 0
or dword [esi + 0x8c], 0xffffffff
or dword [esi + 0x90], 0xffffffff
push esi
mov dword [esi + 0x84], 0xffffff
mov dword [esi + 0x6c], 2
mov dword [esi + 0x70], 0x3f
call fcn.0044a631
mov dword [esi + 0x58], 0x44452b
mov dword [esi + 0x5c], 0x44456a
mov dword [esi + 0x10], fcn.004436c9
mov dword [esi + 0x30], 0x44384e
mov dword [esi + 0x64], 0x443957
mov dword [esi + 0x60], 0x4439a4
mov dword [esi + 0x34], 0x4440ca
mov dword [esi + 0x24], 0x443f69
mov dword [esi + 0x28], 0x443f92
mov dword [esi + 0x2c], 0x443fbd
mov dword [esi + 0x44], 0x4443bb
mov eax, esi
pop esi
ret 4

Function at 0x445a94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 0
mov ecx, dword [esi + 0xb4]
mov dword [ebp - 4], ecx
je 0x445b09
imul ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [esi + 0xac]
imul eax, dword [ebp + 0x10]
add eax, dword [esi + 0xa8]
mov edi, edx
add eax, ecx
cmp dword [ebp + 0x18], 0
jle 0x445af8
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0x14], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x14]
jne 0x445add
dec dword [ebp + 0x1c]
add edx, dword [ebp + 0xc]
inc dword [ebp + 0x10]
cmp dword [ebp + 0x1c], 0
jne 0x445abd
pop edi
pop ebx
leave
ret 0x18

Function at 0x4468ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [esi + 0xb4]
je 0x44694e
push ebx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x14]
mov ecx, edx
imul ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0xac]
imul eax, dword [ebp + 0x10]
add eax, dword [esi + 0xa8]
add eax, ecx
cmp dword [ebp + 0x1c], 0
jle 0x446937
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x14], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x14]
jne 0x44691d
mov edi, dword [ebp + 0x18]
add edi, dword [ebp + 0xc]
dec dword [ebp + 0x20]
inc dword [ebp + 0x10]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x4468ff
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x4469a8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, eax, 3
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], eax
je 0x446a42
mov eax, dword [ebp + 0x14]
imul ecx, ecx, 3
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
push edi
mov edi, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
imul ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
add ecx, esi
test edx, edx
jle 0x446a2a
mov eax, 0xff
sub eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], edx
mov dword [ebp - 8], eax
movzx eax, byte [ecx]
movzx edx, byte [edi]
imul eax, dword [ebp - 8]
imul edx, dword [ebp + 0x20]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x18]
jne 0x446a09
mov edi, dword [ebp + 0xc]
add edi, dword [ebp + 0x10]
dec dword [ebp + 0x1c]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 0
mov dword [ebp + 0xc], edi
jne 0x4469df
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x401800
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20330
call fcn.0040a050
mov eax, dword [0x4111b4]
xor eax, esp
mov dword [esp + 0x20328], eax
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x132]
push ecx
mov word [esp + 0x134], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
push 0x1fffe
push edx
lea eax, [esp + 0x33a]
push eax
mov word [esp + 0x33c], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor ecx, ecx
push 0x80
push ecx
lea edx, [esp + 0x22]
push edx
mov word [esp + 0x24], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
push 0x80
push eax
lea ecx, [esp + 0xaa]
push ecx
mov word [esp + 0xac], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
je 0x401990
push 0x104
lea edx, [esp + 0x12c]
push edx
push str._Config_Original_QQGameDebug.ini
push esi
call fcn.004086af
mov esi, eax
add esp, 0x10
mov dword [esp + 0x10], esi
test esi, esi
je 0x401978
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x128]
push eax
push 0x40
lea ecx, [esp + 0x20]
push ecx
push 0x40c3e8
push str.DebuggerSwitchLevel
push str.QQGame
call ebp
lea ecx, [esp + 0x18]
call fcn.00401d70
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x10]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x128]
push ecx
push 0x40
lea edx, [esp + 0x20]
push edx
push 0x40c3e8
push str.FileSwitchLevel
push str.QQGame
call ebp
lea ecx, [esp + 0x18]
call fcn.00401d70
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x10]
push 0
mov ecx, ebx
call eax
lea ecx, [esp + 0x128]
push ecx
push 0x10000
lea edx, [esp + 0x338]
push edx
push str.SwitchLevels
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [esp + 0x14], eax
test eax, eax
jbe 0x401976
cmp word [esp + 0x330], 0
lea edi, [esp + 0x330]
mov dword [esp + 0xc], edi
jne 0x4019bc
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20328]
xor ecx, esp
call fcn.00409ade
add esp, 0x20330
ret
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20328]
xor ecx, esp
call fcn.00409ade
add esp, 0x20330
ret
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, edi
lea edx, [esp + 0x330]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x401976
lea esi, [esp + 0x18]
call fcn.00401790
test eax, eax
je 0x401a34
lea eax, [esp + 0x128]
push eax
push 0x40
lea ecx, [esp + 0xa8]
push ecx
push str.Trace
mov edx, esi
push edx
push str.SwitchLevels
call ebp
lea ecx, [esp + 0xa0]
call fcn.00401d70
mov edi, eax
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, esi
push ecx
mov ecx, ebx
call edx
mov ebp, eax
xor esi, esi
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push edi
push ebp
push esi
mov ecx, ebx
call edx
inc esi
cmp esi, 2
jl 0x401a18
mov edi, dword [esp + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a40
sub eax, edx
sar eax, 1
lea eax, [edi + eax*2 + 2]
mov dword [esp + 0xc], eax
cmp word [eax], cx
jne 0x4019b0
mov ecx, dword [esp + 0x20334]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00409ade
add esp, 0x20330
ret
Function at 0x401a80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x420
mov eax, dword [0x4111b4]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
test edi, edi
je 0x401b01
push 0x104
lea edx, [esp + 0x14]
push edx
push str._Config_Original_QQGameDebug.ini
push edi
call fcn.004086af
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x401b7c
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 0x10]
push eax
push 0
push str.Log2Debugger
push str.QQGame
call ebx
mov edx, dword [esi]
mov ecx, esi
test eax, eax
je 0x401b1b
mov eax, dword [edx + 0x18]
call eax
jmp 0x401b22
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00409ade
add esp, 0x420
ret
mov eax, dword [edx + 0x1c]
push 1
call eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.Log2File
push str.QQGame
call ebx
test eax, eax
je 0x401b6f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x222]
push eax
mov word [esp + 0x224], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ebx, [esp + 0x218]
call fcn.00401ba0
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
mov eax, ebx
push eax
jmp 0x401b76
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 0
mov ecx, esi
call edx
mov eax, ebp
mov ecx, dword [esp + 0x424]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409ade
add esp, 0x420
ret

Function at 0x402240
Capabilities:
Create thread

Disassembly:
push esi
mov esi, edx
test eax, eax
je 0x4022bd
test ecx, ecx
je 0x4022bd
cmp dword [esi + 0x1c], 0
jne 0x4022bd
cmp dword [esi + 0x20], 0
jne 0x4022bd
cmp dword [esi + 0x24], 0
jne 0x4022bd
cmp dword [esi + 0x30], 0
jne 0x4022bd
mov dword [esi + 0x30], ecx
push eax
mov ecx, esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 1
call dword [0x40b104]
call fcn.004024c0
test eax, eax
je 0x4022bd
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x20], eax
test eax, eax
je 0x4022bd
push 0
push 0
push esi
push 0x402420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x1c], eax
pop esi
mov eax, ecx
ret
xor eax, eax
pop esi
ret

Function at 0x402640
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x804
mov eax, dword [0x4111b4]
xor eax, esp
mov dword [esp + 0x800], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x814]
lea edx, [esp + 0x818]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x3ff
push ecx
call dword [sym.imp.MSVCR90.dll__vsnwprintf]
add esp, 0x1c
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00409ade
add esp, 0x804
ret
Function at 0x402ea8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov ebx, ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push str.Path
push 0x40b5b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.0040299d
mov ecx, ebx
test eax, eax
jne 0x402f43
lea eax, [ebp - 0x20c]
push eax
call fcn.00402972
push dword [ebp + 0x10]
test eax, eax
push edi
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
je 0x402f3c
push esi
call fcn.00402d95
jmp 0x402f4d
call fcn.00402ea8
jmp 0x402f4d
push esi
push dword [ebp + 0x10]
push edi
call fcn.00402c2f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ade
leave
ret 0xc

Function at 0x40301d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x42c], eax
xor eax, eax
mov ebx, dword [ebp + 8]
mov word [ebp - 0x18], ax
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push 0x40b648
push str.NotUseDefaultDllPath
push 0x40b614
push ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], esi
call fcn.00402e0c
cmp word [ebp - 0x18], 0x31
jne 0x403094
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x430]
push dword [ebp - 0x42c]
push esi
jmp 0x403133
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x428]
push eax
push 0
push str.DllPath
push str.DefaultValue
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
push edi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
mov esi, dword [ebp - 0x430]
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x434]
lea eax, [ebp - 0x428]
push eax
mov ecx, esi
call fcn.00402cb7
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.00402972
test eax, eax
mov ecx, esi
lea eax, [ebp - 0x220]
je 0x40313b
push dword [ebp + 0x14]
push dword [ebp - 0x42c]
push eax
push ebx
call fcn.00402d95
jmp 0x40314a
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x42c]
call fcn.00402c2f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ade
leave
ret 0x10
Function at 0x403340
Capabilities:
Enumerate process modules

Disassembly:
push ebp
sub esp, 0x428
lea ebp, [esp - 4]
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp + 0x428], eax
push 0xc
mov eax, 0x40a5f8
call fcn.00409b4c
lea ecx, [ebp - 0x18]
call fcn.004032fd
xor edi, edi
push edi
push 8
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40341b
cmp dword [ebp - 0x14], edi
je 0x40341b
push 0x424
lea eax, [ebp + 4]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
push ebx
mov dword [ebp], 0x428
call sub.KERNEL32.dll_Module32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4033d2
push str.TenioDllFreeMap
push dword [ebp + 0x1c]
call esi
cmp eax, edi
je 0x4033c8
call eax
lea eax, [ebp]
push eax
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4033b8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea eax, [ebp]
push eax
push ebx
call sub.KERNEL32.dll_Module32FirstW
jmp 0x403410
push str.TenioSetDllSafe
push dword [ebp + 0x1c]
call esi
cmp eax, edi
je 0x403406
push edi
call eax
pop ecx
lea eax, [ebp]
push eax
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4033f4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x428]
xor ecx, ebp
call fcn.00409ade
add ebp, 0x42c
leave
ret

Function at 0x40343e
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x40a62a
call fcn.00409b4c
mov dword [ebp - 0x10], ecx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push str.Tenio_Initialize_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
call fcn.004028b1
mov ecx, dword [ebp - 0x10]
call fcn.00402880
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x403498
push str.factory2.dll
mov ecx, eax
call fcn.00402af0
mov dword [ebp - 0x14], eax
jmp 0x40349b
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x403504
push 2
call eax
mov esi, eax
pop ecx
cmp esi, ebx
je 0x403504
mov eax, dword [esi]
push 0x2e00c
push str.StartUp.dll
push ebx
mov ecx, esi
call dword [eax + 8]
mov edi, eax
cmp edi, ebx
je 0x4034f3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
test eax, eax
je 0x4034ea
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004027a9
push dword [ebp + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
mov eax, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x14]
call fcn.004026ad
push dword [ebp - 0x14]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00403340
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x10]
call fcn.004028de
mov ecx, dword [ebp - 0x10]
call fcn.004028a8
xor eax, eax
call fcn.00409beb
ret 0x10
Function at 0x40367f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403781
mov esi, 0x400
push esi
lea ecx, [ebp - 0xa0c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4036f4
lea eax, [ebp - 0xa0c]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x4036f4
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
pop ecx
test eax, eax
jbe 0x403781
push esi
lea eax, [ebp - 0xa0c]
push str.configOriginalCreateResource.ini
push eax
call dword [sym.imp.MSVCR90.dll_wcsncat]
add esp, 0xc
test eax, eax
je 0x403781
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.true
push str.Created
push str.CreateRes
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push str.false
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x403783
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409ade
leave
ret