joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408922
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [0x7b0a00], 0x55004e
mov dword [0x7b0a04], 0x4c
test esi, esi
jne 0x40897b
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x7b0200
mov dword [esp], eax
call ebx
sub esp, 0xc
test eax, eax
je 0x408b6f
cmp eax, 0x400
jle 0x4089cc
jmp 0x408b6f
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00407f5f
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x7b0a00
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x408b6f
cmp eax, 0x400
jle 0x40894c
jmp 0x408b6f
mov dword [esp + 0xc], 0x7b0200
mov dword [esp + 8], 0x7b0a00
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x7afe00
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x416930]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x7b0200
mov dword [esp + 4], eax
call fcn.00408615
push edi
push edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x7b0200
call fcn.00407f5f
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x408b6f
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, ebx
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
mov esi, eax
test eax, eax
je 0x408b65
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00408025
sub esp, 0xc
test eax, eax
je 0x408b65
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], esi
call fcn.00407e34
push edx
push edx
lea edx, [esi + ebx]
test eax, eax
jne 0x408ac6
mov dword [esp + 4], str._Rename__r_n
add ebx, 0xa
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, ebx
push eax
push eax
jmp 0x408b05
add eax, 0xa
mov dword [esp + 4], 0x40b68b
mov dword [esp], eax
mov dword [ebp - 0x28], edx
call fcn.00407e34
mov dword [ebp - 0x20], eax
push ecx
push ecx
mov ecx, ebx
test eax, eax
je 0x408b05
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add ecx, esi
cmp edx, dword [ebp - 0x20]
jbe 0x408afd
mov al, byte [edx]
dec edx
dec ecx
mov byte [ecx + 1], al
jmp 0x408aef
mov eax, dword [ebp - 0x20]
sub eax, esi
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add ecx, esi
mov dword [esp + 4], 0x7afe00
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00407e9f
add ebx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040806b
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408bf4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x7b1200
mov dword [esp + 4], eax
call fcn.00408470
push ebx
push ebx
mov dword [esp], 0x7b1200
call fcn.00407da0
push edx
test eax, eax
jne 0x408c25
xor eax, eax
jmp 0x408ca1
mov dword [esp], eax
mov ebx, eax
call fcn.00408538
push ecx
test byte [0x41692c], 0x80
je 0x408c47
mov ax, word [ebx]
test ax, ax
je 0x408c21
cmp ax, 0x5c
je 0x408c21
sub ebx, 0x7b1200
sar ebx, 1
mov dword [esp], 0x7b1200
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
mov dword [esp], 0x7b1200
cmp ebx, eax
jge 0x408c86
call fcn.00408bbc
push edx
test eax, eax
je 0x408c77
test byte [eax], 0x10
je 0x408c21
mov dword [esp], 0x7b1200
call fcn.00407d2e
push eax
jmp 0x408c4f
call fcn.004084a4
push eax
mov dword [esp], 0x7b1200
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408f28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408f66
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408f6d
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40b660
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x40910c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x7b2264], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x409149
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409134
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409126
mov dword [ecx*4 + 0x7b2260], eax
inc ecx
cmp ecx, 0x100
jne 0x40911f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x40916b
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7b2260]
jmp 0x409153
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x401100
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push edi
push 0x104
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call sub.MSVCR80.dll_memset
mov edx, str.kernel
add esp, 0x18
mov ebp, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x40115a
mov byte [eax], cl
add eax, 1
sub ebp, 1
jne 0x401147
jmp 0x40115e
test ebp, ebp
jne 0x401161
sub eax, 1
push 0x103
mov byte [eax], 0
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPetRegistrar_s.ini
mov eax, 0x104
call fcn.00401000
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x20]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x12c]
call fcn.00401000
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x4011fa
lea eax, [esp + 0x104]
push eax
call fcn.00401360
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.0040339f
add esp, 0x20c
ret

Function at 0x4012a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x118], 0
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call sub.MSVCR80.dll_memset
push 0
push 0x40424c
mov eax, 0x104
lea edi, [esp + 0x28]
call fcn.00401000
add esp, 0x20
add esi, 0x104
push esi
push 0x104
lea edx, [esp + 0x114]
push edx
mov eax, edi
push eax
push str.Version
push str.Kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.MSVCR80.dll_atol]
mov ecx, dword [esp + 0x214]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.0040339f
add esp, 0x20c
ret
Function at 0x401540
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esi + 0x10]
sub esp, 0x10
push ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401582
mov eax, dword [esi + 0x10]
cmp edi, eax
je 0x4015fe
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x10], ebx
je 0x401584
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x401584
xor ebx, ebx
push ebp
push 0x40
push 0x1000
mov al, 0x68
push 0xd
mov dword [esi + 8], ebx
push 0
mov dword [esi + 0x10], edi
mov byte [esp + 0x18], 0x58
mov byte [esp + 0x19], al
mov dword [esp + 0x1a], esi
mov byte [esp + 0x1e], 0x50
mov byte [esp + 0x1f], al
mov ebp, 0x4017a0
mov bl, 0xc3
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebp
mov byte [eax + 0xc], bl
mov eax, dword [esi + 4]
push 0xd
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi + 4]
push ecx
push 0xfffffffffffffffc
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x401900
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc04
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0xc00], eax
push ebp
push edi
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
push str.kernel.ini
push esi
push str._s_s
mov eax, 0x400
lea edi, [esp + 0x20]
call fcn.00401000
add esp, 0x18
mov ecx, edi
push ecx
push 0
push str.version
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x3ff
lea edx, [esp + 0x40d]
push 0
push edx
mov ebp, eax
mov byte [esp + 0x414], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, edi
push eax
push 0x400
lea ecx, [esp + 0x410]
push ecx
push str.QQPenguin
push str.productname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x3ff
lea edx, [esp + 0x80d]
push 0
push edx
mov byte [esp + 0x814], 0
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x414]
push eax
push esi
push str._s_s.exe
mov eax, 0x400
lea edi, [esp + 0x820]
call fcn.00401000
mov ecx, edi
push 0
push ecx
call dword [sym.imp.MSVCR80.dll__access]
add esp, 0x20
test eax, eax
je 0x401a09
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc00]
xor ecx, esp
call fcn.0040339f
add esp, 0xc04
ret
mov ecx, dword [esp + 0xc08]
pop edi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0040339f
add esp, 0xc04
ret
Function at 0x401db0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, 0x1970
call fcn.00403c70
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x196c], eax
mov eax, dword [esp + 0x1978]
push ebx
push ebp
mov ebp, dword [esp + 0x197c]
push esi
push edi
xor ebx, ebx
push 0x7ff
mov esi, ecx
lea ecx, [esp + 0x97d]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x984], bl
call sub.MSVCR80.dll_memset
push 0x7ff
lea edx, [esp + 0x1189]
push ebx
push edx
mov byte [esp + 0x1190], bl
call sub.MSVCR80.dll_memset
push 0x7ff
lea eax, [esp + 0x195]
push ebx
push eax
mov byte [esp + 0x19c], bl
call sub.MSVCR80.dll_memset
push str.kernel.ini
push esi
push str._s_s
mov eax, 0x800
lea edi, [esp + 0x11a8]
call fcn.00401000
add esp, 0x30
mov ecx, edi
push ecx
push 0x800
lea edx, [esp + 0x980]
push edx
push 0x404544
push str.productname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x978], bl
je 0x401f6e
cmp ebp, ebx
lea edi, [esp + 0x178]
je 0x401f4e
push ebp
lea eax, [esp + 0x97c]
push eax
push esi
push str.__s_s.exe___s
mov eax, 0x800
call fcn.00401000
add esp, 0x10
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea ecx, [esp + 0x198]
push ecx
push ebx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x72], bx
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, ebx
jne 0x401f31
push 0x103
lea edx, [esp + 0x75]
push ebx
push edx
mov byte [esp + 0x7c], bl
call sub.MSVCR80.dll_memset
mov ebp, dword [esp + 0x20]
push ebp
push 0x40436c
mov eax, 0x104
lea edi, [esp + 0x84]
call fcn.00401000
add esp, 0x14
push ebx
push ebp
mov eax, edi
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
mov ecx, dword [esp + 0x197c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040339f
add esp, 0x1970
ret 0xc
lea ecx, [esp + 0x978]
push ecx
push esi
push str.__s_s.exe_
mov eax, 0x800
call fcn.00401000
add esp, 0xc
jmp 0x401eac
xor eax, eax
jmp 0x401f33

Function at 0x401f80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
mov edi, ecx
test edi, edi
je 0x401fff
test esi, esi
je 0x401fff
push ebx
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov ebx, 1
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPet_s
mov eax, 0x400
call fcn.00401000
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0040339f
add esp, 0x404
ret
mov ecx, dword [esp + 0x404]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0040339f
add esp, 0x404
ret
Function at 0x402020
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x534
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x13d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x144], bl
call sub.MSVCR80.dll_memset
push esi
push str._s.exe
mov eax, 0x400
lea edi, [esp + 0x14c]
call fcn.00401000
add esp, 0x14
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4020dd
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4020d6
mov edi, dword [sym.imp.MSVCR80.dll__stricmp]
mov ebp, dword [sym.imp.MSVCR80.dll__getpid]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x13c]
push eax
call edi
add esp, 8
test eax, eax
jne 0x4020c0
call ebp
cmp dword [esp + 0x18], eax
jne 0x4020d1
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4020a2
jmp 0x4020d6
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040339f
add esp, 0x534
ret
Function at 0x402810
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402875
push 0xf3
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402875
lea edx, [esp]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x402875
mov byte [eax + 1], 0
push edi
lea edi, [esp + 4]
call fcn.004010b0
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.ShowVerboseInfo
push str.QQPetURLLink
call edi
lea ecx, [esp + 4]
push ecx
neg eax
push 0
sbb eax, eax
push str.ShowTraceInfo
neg eax
push str.QQPetURLLink
mov dword [esi], eax
call edi
lea edx, [esp + 4]
push edx
neg eax
push 0
sbb eax, eax
push str.ShowErrorInfo
neg eax
push str.QQPetURLLink
mov dword [esi + 4], eax
call edi
neg eax
sbb eax, eax
neg eax
cmp dword [esi + 0x20], 0
mov dword [esi + 8], eax
pop edi
jne 0x4028eb
push str.QQPetURLLink
lea ecx, [esi + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040339f
add esp, 0x108
ret
Function at 0x402af0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe10
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0xe0c], eax
push esi
push edi
push 0x3ff
lea eax, [esp + 0xa15]
push 0
push eax
mov esi, ecx
mov edi, edx
mov byte [esp + 0xa1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x215]
push 0
push ecx
mov byte [esp + 0x21c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x615]
push 0
push edx
mov byte [esp + 0x61c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
push 0x1ff
mov dword [esp + 0xc], eax
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esp + 0x18], edx
mov byte [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.MSVCR80.dll__localtime64]
add esp, 4
push eax
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x18]
push 0x200
push edx
call dword [sym.imp.MSVCR80.dll_strftime]
add esp, 0x10
cmp dword [esi + 0x24], 0x10
jb 0x402bcb
mov esi, dword [esi + 0x10]
jmp 0x402bce
add esi, 0x10
push edi
push esi
push str.TRACE
push str._s:_s__s_r_n
mov eax, 0x3ff
lea edi, [esp + 0xa20]
call fcn.00401000
push ebx
mov eax, edi
push eax
push 0x3fe
lea ecx, [esp + 0x22c]
push 0x3ff
push ecx
call dword [sym.imp.MSVCR80.dll__vsnprintf_s]
add esp, 0x24
test eax, eax
jl 0x402c17
cmp eax, 0x3fe
ja 0x402c17
jne 0x402c1f
mov byte [esp + 0x60e], 0
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x14]
push eax
push str._s__s
mov eax, 0x3ff
lea edi, [esp + 0x61c]
call fcn.00401000
add esp, 0xc
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00402c70
mov ecx, dword [esp + 0xe14]
pop edi
pop esi
xor ecx, esp
call fcn.0040339f
mov esp, ebp
pop ebp
ret

Function at 0x402c70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
call dword [section..data]
cmp dword [0x40653c], 0
jne 0x402c98
call fcn.00402f10
mov dword [0x406540], eax
mov dword [0x40653c], 1
cmp dword [0x406540], 0
je 0x402d09
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
call fcn.00402d10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d09
mov ebx, esi
call fcn.00402de0
push 2
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push ebx
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402ce8
push ebx
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x402de0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x28
cmp ebx, 0xffffffff
push ebp
push esi
push edi
je 0x402f05
cmp dword [0x406540], 2
jne 0x402f05
call fcn.00402fd0
xor edi, edi
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
push edi
push ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea ecx, [esp + 0x18]
push ecx
push 8
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402ed4
lea eax, [edi + 8]
lea edx, [esp + 0x28]
lea esi, [esp + 0x20]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x402e68
sub eax, 4
add edx, 4
add esi, 4
cmp eax, 4
jae 0x402e50
cmp eax, edi
je 0x402ec5
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x402eb7
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402ec5
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x402eb7
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402ec5
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x402eb7
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402ec5
movzx ecx, byte [esi]
movzx edx, byte [edx]
sub ecx, edx
je 0x402ec5
cmp ecx, edi
mov eax, 1
jg 0x402ec7
or eax, 0xffffffff
jmp 0x402ec7
xor eax, eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
cmp eax, edi
je 0x402f05
push edi
lea edx, [esp + 0x1c]
push edx
push edi
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push 8
lea ecx, [esp + 0x34]
push ecx
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
add esp, 0x28
ret

Function at 0x402f10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402f76
push 0xf3
push 0x406650
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402f76
push 0x5c
push 0x406650
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x402f76
mov byte [eax + 1], 0
push edi
push str.ConfigDebug.ini
push 0x406650
push str._s_s
mov eax, 0x104
lea edi, [esp + 0x10]
call fcn.00401000
add esp, 0xc
mov ecx, edi
push ecx
push 0
push str.Log2File
push str.Base
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.0040339f
add esp, 0x108
ret

Function at 0x40339f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40601c]
jne 0x4033a9
repz ret
jmp fcn.0040379c