joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4371f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
cmp dword [esi + 0x96], 0xffffffff
jne 0x43727b
mov edi, dword [esp + 0x24]
push 0x10
push edi
push 0
call fcn.004335f0
add esp, 0x10
test eax, eax
je 0x43722d
mov eax, dword [esi + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
add eax, 0x13
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0xc], 0x8074b50
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push ecx
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x437270
cmp dword [esp + 0x24], 0x10
je 0x4372e1
mov eax, 0xa
pop edi
pop esi
add esp, 0x10
ret
call fcn.00433d80
add esp, 4
cmp eax, 0x10
jge 0x43729a
mov ecx, dword [esp + 0x20]
push esi
push ecx
call fcn.00433dc0
add esp, 8
test eax, eax
jne 0x437275
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0xc], 0x8074b50
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x96]
push eax
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x437270
cmp dword [esp + 0x24], 0x10
jne 0x437270
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x4372f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esp + 8], 0x8074b50
mov eax, dword [esi + 0x96]
push esi
cmp eax, 0xffffffff
jne 0x43735e
mov edi, dword [esp + 0x14]
push 4
push edi
push 0
call fcn.004335f0
add esp, 0x10
test eax, eax
je 0x437333
mov eax, dword [esi + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
add eax, 0x13
pop ecx
ret
mov edx, dword [edi]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x10]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x437355
cmp dword [esp + 0x14], 4
je 0x4373a3
mov eax, 0xa
pop edi
pop esi
pop ecx
ret
call fcn.00433d80
add esp, 4
cmp eax, 4
jge 0x43737d
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.00433dc0
add esp, 8
test eax, eax
jne 0x43735a
mov eax, dword [esi + 0x96]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x437355
cmp dword [esp + 0x14], 4
jne 0x437355
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4377b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x96]
push ebp
lea esi, [edi + 0x16]
cmp eax, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x4378c3
mov eax, dword [esp + 0x30]
push esi
push eax
push 0
call fcn.004335f0
add esp, 0x10
test eax, eax
je 0x4377fd
mov eax, dword [ebp + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
pop ecx
ret
lea ecx, [esi + 1]
push ecx
call fcn.00448866
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4379ac
mov eax, dword [esp + 0x18]
mov dword [ebx], 0x6054b50
test byte [ebp + 0xdf1], 0x80
je 0x437849
mov dx, word [ebp + 0xdf2]
mov word [ebx + 4], dx
mov cx, word [ebp + 0xdf4]
mov word [ebx + 6], cx
mov dx, word [ebp + 0xdfa]
mov word [ebx + 8], dx
jmp 0x437856
lea ecx, [ebx + 4]
mov dword [ecx], 0
mov word [ebx + 8], ax
mov edx, dword [esp + 0x1c]
mov word [ebx + 0xa], ax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
test edi, edi
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], di
je 0x43788b
mov esi, dword [esp + 0x28]
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 0x16]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push 0
push eax
mov edx, dword [ecx]
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4378af
cmp dword [esp + 0x24], esi
je 0x43799b
push ebx
call fcn.00448616
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.00433d80
add esp, 4
cmp eax, esi
jge 0x4378e5
mov eax, dword [esp + 0x2c]
push ebp
push eax
call fcn.00433dc0
add esp, 8
test eax, eax
jne 0x4379b1
lea ecx, [esi + 1]
push ecx
call fcn.00448866
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4379ac
mov eax, dword [esp + 0x18]
mov dword [ebx], 0x6054b50
test byte [ebp + 0xdf1], 0x80
je 0x437931
mov dx, word [ebp + 0xdf2]
mov word [ebx + 4], dx
mov cx, word [ebp + 0xdf4]
mov word [ebx + 6], cx
mov dx, word [ebp + 0xdfa]
mov word [ebx + 8], dx
jmp 0x43793e
lea ecx, [ebx + 4]
mov dword [ecx], 0
mov word [ebx + 8], ax
mov edx, dword [esp + 0x1c]
mov word [ebx + 0xa], ax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
test edi, edi
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], di
je 0x437973
mov esi, dword [esp + 0x28]
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 0x16]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x96]
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4378af
cmp dword [esp + 0x24], esi
jne 0x4378af
push ebx
call fcn.00448616
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4379e0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x10], 0
mov esi, dword [edi + 0xdbc]
test esi, esi
je 0x437b9c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp word [esi + 0x4a], 0
jne 0x437a21
cmp word [esi + 0x4c], 0
je 0x437a9b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x46]
mov word [esi + 0x4a], 1
cmp byte [eax + ecx - 1], 0x2f
je 0x437a97
mov edx, dword [esi + 0x36]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
call fcn.0042e9f0
add esp, 4
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [edi + 0xd9c]
test eax, eax
jne 0x437a9b
mov eax, dword [esi + 0x36]
push eax
call fcn.004379c0
mov ecx, dword [esi + 0x46]
push ecx
call fcn.004379c0
mov eax, dword [esi + 0x46]
add esp, 8
cmp byte [eax], 0
je 0x437a86
push 0x495c8c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esi + 0x46]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [esi + 0x18], eax
jbe 0x437a9b
inc dword [esp + 0x10]
mov esi, dword [esi + 0x4e]
test esi, esi
jne 0x437a13
mov eax, dword [esp + 0x10]
test eax, eax
je 0x437b9c
shl eax, 2
push eax
call fcn.00448866
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x437ad8
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x108
ret
mov esi, dword [edi + 0xdbc]
xor ebx, ebx
test esi, esi
je 0x437b21
mov edi, ebp
cmp word [esi + 0x4a], 0
je 0x437b1a
mov ecx, dword [esi + 0x18]
test ecx, ecx
jbe 0x437b1a
mov eax, dword [esi + 0x46]
cmp byte [ecx + eax - 1], 0x2f
jne 0x437b1a
test ebx, ebx
je 0x437b14
mov ecx, dword [edi - 4]
mov edx, dword [ecx + 0x46]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x437b1a
mov dword [edi], esi
inc ebx
add edi, 4
mov esi, dword [esi + 0x4e]
test esi, esi
jne 0x437ae6
push 0x435660
push 4
push ebx
push ebp
call fcn.0044addf
add esp, 0x10
xor ebp, ebp
test ebx, ebx
jbe 0x437b8f
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 0x36]
cmp byte [esi], 0
je 0x437b87
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x2f
jne 0x437b60
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi - 1], 0
test ebp, ebp
je 0x437b7b
mov ecx, dword [edi - 4]
mov eax, dword [edi]
mov edx, dword [ecx + 0x46]
mov ecx, dword [eax + 0x46]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x437b87
mov edx, dword [edi]
mov eax, dword [edx + 0x36]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
inc ebp
add edi, 4
cmp ebp, ebx
jb 0x437b3c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00448616
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
Function at 0x437bd0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov edx, dword [ecx + 0x3e]
mov eax, edx
xor eax, esi
and eax, 0xff
shr edx, 8
mov eax, dword [eax*4 + 0x493df8]
xor eax, edx
mov edx, dword [ecx + 0x42]
mov dword [ecx + 0x3e], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 0x46]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 0x42], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x493df8]
xor eax, edx
mov dword [ecx + 0x46], eax
ret
Function at 0x438740
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp eax, 1
push edi
mov ebx, eax
jge 0x438754
mov ebx, 1
cmp eax, 9
jle 0x43875e
mov ebx, 9
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esi + 0x56]
mov dword [esi + 0x5e], ebp
cmp eax, ebp
jne 0x43877c
mov dword [esi + 0x5e], 1
mov dword [esi + 0x56], 0x10000
cmp dword [esi + 0x4a], ebp
jne 0x4387b1
push 2
push 0x8000
call fcn.00449872
add esp, 8
cmp eax, ebp
mov dword [esi + 0x4a], eax
jne 0x4387b1
push esi
push ebp
push 0x17c
call fcn.00433fe0
add esp, 8
push eax
push 4
call fcn.0042f690
add esp, 0xc
cmp dword [esi + 0x4e], ebp
jne 0x4387fc
push 2
push 0x8000
call fcn.00449872
push 2
push 0x4000
mov dword [esi + 0x4e], eax
call fcn.00449872
mov ecx, dword [esi + 0x4e]
add esp, 0x10
cmp ecx, ebp
mov dword [esi + 0x52], eax
je 0x4387e2
cmp eax, ebp
jne 0x4387fc
push esi
push ebp
push 0x186
call fcn.00433fe0
add esp, 8
push eax
push 4
call fcn.0042f690
add esp, 0xc
mov eax, dword [esi + 0x52]
mov ecx, 0x1fff
xor edx, edx
mov word [eax + 0x7ffe], bp
mov edi, dword [esi + 0x52]
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
stosw word es:[edi], ax
mov cx, word [ebx*8 + 0x493b52]
xor eax, eax
mov dword [esi + 0x7e], ecx
mov dx, word [ebx*8 + 0x493b50]
mov dword [esi + 0x82], edx
mov ax, word [ebx*8 + 0x493b54]
xor ecx, ecx
mov dword [esi + 0x86], eax
mov cx, word [ebx*8 + 0x493b56]
cmp ebx, 1
mov dword [esi + 0x7a], ecx
jne 0x43885c
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x438868
cmp ebx, 9
jne 0x438868
mov eax, dword [esp + 0x18]
or byte [eax], 2
mov edx, dword [esi + 0x4a]
push esi
push 0x8000
push edx
mov dword [esi + 0x6a], ebp
mov dword [esi + 0x5a], ebp
call dword [esi + 0x3f3a]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x76], eax
jne 0x438897
mov dword [esi + 0x72], 1
mov dword [esi + 0x76], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, 0x106
mov dword [esi + 0x72], ebp
cmp eax, edi
jae 0x4388b8
cmp dword [esi + 0x72], ebp
jne 0x4388b8
push esi
call fcn.00438a90
mov eax, dword [esi + 0x76]
add esp, 4
cmp eax, edi
jb 0x4388a3
mov ecx, dword [esi + 0x4a]
mov dword [esi + 0x62], ebp
xor eax, eax
mov edi, dword [esi + 0x62]
xor edx, edx
mov dl, byte [ecx + eax]
and edi, 0x1ff
and edx, 0x3fff
shl edi, 5
xor edx, edi
inc eax
cmp eax, 2
mov dword [esi + 0x62], edx
jb 0x4388c0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43bd00
Capabilities:
Check if file exists
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push esi
mov byte [esp + 4], 0x5c
mov byte [esp + 5], 0x5c
mov byte [esp + 6], 0x2e
mov byte [esp + 7], 0x5c
mov byte [esp + 8], 0x52
mov byte [esp + 9], 0x4e
mov byte [esp + 0xa], 0x42
mov byte [esp + 0xb], 0x4f
mov byte [esp + 0xc], 0x44
mov byte [esp + 0xd], 0x52
mov byte [esp + 0xe], 0x56
mov ax, word [esp + 0x1c]
add al, 0x30
mov byte [esp + 0xf], al
mov esi, dword [esp + 0x18]
mov byte [esp + 0x10], 0
mov dword [esi], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x43bdab
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x43bd87
cmp eax, 3
jbe 0x43bda0
mov eax, dword [esi]
or eax, eax
je 0x43bd93
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x43bdd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.0043f9b0
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.0043f980
cmp edi, 1
jne 0x43be15
cmp word [esi + 6], 0xffff
jne 0x43be1b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x43bec0
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret
Function at 0x43bf90
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
sub esp, 0x58
push esi
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x25], 0x79
mov byte [esp + 0x26], 0x73
mov byte [esp + 0x27], 0x74
sub si, si
mov byte [esp + 0x28], 0x65
mov byte [esp + 0x29], 0x6d
mov byte [esp + 0x2a], 0x5c
mov byte [esp + 0x2b], 0x43
mov byte [esp + 0x2c], 0x75
mov byte [esp + 0x2d], 0x72
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x2f], 0x65
mov byte [esp + 0x30], 0x6e
mov byte [esp + 0x31], 0x74
mov byte [esp + 0x32], 0x43
mov byte [esp + 0x33], 0x6f
mov byte [esp + 0x34], 0x6e
mov byte [esp + 0x35], 0x74
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], 0x6f
mov byte [esp + 0x38], 0x6c
mov byte [esp + 0x39], 0x53
mov byte [esp + 0x3a], 0x65
mov byte [esp + 0x3b], 0x74
mov byte [esp + 0x3c], 0x5c
mov byte [esp + 0x3d], 0x53
mov byte [esp + 0x3e], 0x65
mov byte [esp + 0x3f], 0x72
mov byte [esp + 0x40], 0x76
mov byte [esp + 0x41], 0x69
mov byte [esp + 0x42], 0x63
mov byte [esp + 0x43], 0x65
mov byte [esp + 0x44], 0x73
mov byte [esp + 0x45], 0x5c
mov byte [esp + 0x46], 0x56
mov byte [esp + 0x47], 0x78
mov byte [esp + 0x48], 0x44
mov byte [esp + 0x49], 0x5c
mov byte [esp + 0x4a], 0x53
mov byte [esp + 0x4b], 0x65
mov byte [esp + 0x4c], 0x6e
mov byte [esp + 0x4d], 0x74
mov byte [esp + 0x4e], 0x69
mov byte [esp + 0x4f], 0x6e
mov byte [esp + 0x50], 0x65
mov byte [esp + 0x51], 0x6c
mov byte [esp + 0x52], 0x5c
mov byte [esp + 0x53], 0x53
mov byte [esp + 0x54], 0x65
mov byte [esp + 0x55], 0x74
mov byte [esp + 0x56], 0x75
mov byte [esp + 0x57], 0x70
mov byte [esp + 0x58], 0
mov byte [esp + 0x10], 0x49
mov byte [esp + 0x11], 0x6f
mov byte [esp + 0x12], 0x45
mov byte [esp + 0x13], 0x6e
mov byte [esp + 0x14], 0x74
mov byte [esp + 0x15], 0x72
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x17], 0
mov dword [esp + 0xc], 0xa
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x28]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyA
or eax, eax
jne 0x43c12f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.ADVAPI32.dll_RegQueryValueA
or eax, eax
jne 0x43c125
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0043c790
or al, al
je 0x43c125
mov si, word [esp + 8]
mov eax, dword [esp + 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov ax, si
pop esi
add esp, 0x58
ret
Function at 0x43f250
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x43f273
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0043eeb0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0043ef10
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.0043efd0
lea eax, [esp + 0x18]
push eax
call fcn.0043c550
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x43f240
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x43f324
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0043f220
or ax, ax
je 0x43f2ec
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x43f310
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x43f310
lea eax, [esp + 0xa]
push esi
push eax
call fcn.0043c660
or al, al
jne 0x43f324
jmp 0x43f31f
lea eax, [esp + 8]
push esi
push eax
call fcn.0043c5b0
or al, al
jne 0x43f324
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x43f33c
cmp ax, 0xffff
je 0x43f33c
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x43f360
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x43f383
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0043eeb0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0043ef10
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.0043efd0
lea eax, [esp + 0x18]
push eax
call fcn.0043c550
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x43f350
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x43f434
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0043f220
or ax, ax
je 0x43f434
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x43f434
cmp byte [esp + eax + 0xa], 0x3a
jne 0x43f434
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.0043c5b0
or al, al
jne 0x43f420
jmp 0x43f42f
mov ax, word [esi]
cmp ax, 1
jl 0x43f42f
cmp ax, 4
jle 0x43f434
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x43f460
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0043eeb0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0043ef10
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0043f0c0
lea eax, [esp + 4]
push 0x10
push eax
call fcn.0043f070
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x43f450
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x43f4cf
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.0043c3e0
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
sbb al, al
inc al
pop esi
add esp, 0x50
ret 8

Function at 0x43f4e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.0043eeb0
lea eax, [esp]
push 0x10
push eax
call fcn.0043ef10
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.0043f020
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
inc cl
mov al, cl
add esp, 0x30
ret 4

Function at 0x43f550
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
lea eax, [esp + 8]
push 0
push eax
call fcn.0043c570
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.0043eeb0
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0043ef10
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.0043ef70
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0043f120
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0043f1d0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.0043f180
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x43f540
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x43f623
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.0043c3e0
or al, al
je 0x43f5f1
mov word [esi], 2
jmp 0x43f623
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.0043c3e0
or al, al
je 0x43f60b
mov word [esi], 3
jmp 0x43f623
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.0043c3e0
or al, al
je 0x43f623
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x450e4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x499ae0
cmp edx, dword [eax]
je 0x450e6f
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x450e60
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x499ae0]
jne 0x450f9d
mov eax, dword [0x4a7ad0]
cmp eax, 1
je 0x450f77
test eax, eax
jne 0x450ea0
cmp dword [0x496e44], 1
je 0x450f77
cmp edx, 0xfc
je 0x450f9d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x450ed7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00449120
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00449210
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x450f1a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00449210
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x485340
push edi
call fcn.00448b40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00449120
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00449130
lea eax, [ebp - 0xa0]
push 0x485320
push eax
call fcn.00449130
push dword [esi + 0x499ae4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00449130
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00455cfe
add esp, 0x2c
pop edi
jmp 0x450f9d
lea eax, [ebp + 8]
lea esi, [esi + 0x499ae4]
push 0
push eax
push dword [esi]
call fcn.00449210
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret