joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cff0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x46d00f
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jge 0x46d017
xor esi, esi
jmp 0x46d021
cmp esi, 2
jle 0x46d021
mov esi, 2
mov ecx, esi
mov edx, ebx
shl ecx, 0xb
add edx, ecx
push 0x526974
lea ebp, [esi + edx]
lea edi, [ebp + 0x16948]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
xor eax, eax
test esi, esi
jl 0x46d0cd
mov ecx, dword [esi*8 + 0x51dbe0]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x46d082
mov eax, dword [esi*8 + 0x51dbe4]
push 0x7ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [ebp + 0x17147], 0
mov eax, 1
test ecx, ecx
jne 0x46d08b
or esi, 0xffffffff
jmp 0x46d08c
inc esi
test eax, eax
je 0x46d043
mov eax, dword [ebx + 0x4578]
test eax, eax
je 0x46d0c6
lea esi, [ebx + 0x1814b]
push 0x526974
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebx + 0x457c]
mov edx, dword [esp + 0x14]
push ecx
push esi
push edi
push 0
push edx
push 0
push 0xd
call dword [ebx + 0x4578]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
test eax, eax
jne 0x46d090
push 0x526974
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x46d550
Capabilities:
Check if file exists
Delete file
Get file attributes
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x5296dc]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x46d56c
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [edi + 4]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x46d5a4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46d5a4
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x46d59c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46d5a4
pop edi
mov eax, 0x1c
pop esi
ret
push 0
push 0x8000020
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x16808], eax
inc eax
neg eax
sbb eax, eax
pop edi
and al, 0xe4
pop esi
add eax, 0x1c
ret
Function at 0x46e570
Capabilities:
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x5296dc]
sub esp, 0x10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x46e621
mov ecx, dword [esi + 0x16808]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ecx
call ebp
mov ax, word [esi + 0x45d6]
mov cx, word [esi + 0x45d8]
lea edx, [esp + 0x18]
mov dword [esi + 0x16808], 0xffffffff
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x2cf0]
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x46e610
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
mov ecx, dword [esi + 0x3cf0]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret

Function at 0x46e630
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
sub esp, 0x64
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x46e650
mov eax, 4
pop esi
add esp, 0x64
ret
mov eax, dword [esi + 0x40]
push ebx
test eax, eax
push edi
mov ebx, 1
jne 0x46e710
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x46e710
mov eax, dword [esp + 0x74]
xor ebx, ebx
test eax, eax
je 0x46e710
cmp byte [eax], 0
je 0x46e710
push eax
call fcn.004615e0
mov edi, eax
mov eax, dword [esi + 0x4ee4]
add esp, 4
test eax, eax
je 0x46e710
push edi
call fcn.00461560
add esp, 4
test eax, eax
je 0x46e710
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
add edi, 0x40
push edi
lea ecx, [esp + 0x54]
push str._c:_
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x14
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x28]
push 0x14
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
push str.PKBACK__03d
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46e710
mov ebx, 1
mov eax, ebx
pop edi
pop ebx
pop esi
add esp, 0x64
ret

Function at 0x46e790
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46e7ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46e7d4
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.004b56d0
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
pop ebx
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
ret
Function at 0x46eb60
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x46eb71
ret
mov cx, word [eax + 0x4f78]
or cl, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
and eax, 0xffff
shr eax, 8
ret

Function at 0x46eb90
Capabilities:
Generate random numbers using the delphi lcg
Get thread local storage value
Hash data with crc32

Disassembly:
mov eax, dword [0x5296dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ec08
mov edx, dword [eax + 0x4f70]
push esi
mov esi, dword [esp + 8]
mov ecx, edx
xor ecx, esi
and ecx, 0xff
shr edx, 8
mov ecx, dword [ecx*4 + 0x51ceb0]
xor ecx, edx
mov edx, dword [eax + 0x4f74]
mov dword [eax + 0x4f70], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [eax + 0x4f78]
imul ecx, ecx, 0x8088405
inc ecx
mov esi, edx
mov dword [eax + 0x4f74], ecx
and esi, 0xff
shr ecx, 0x18
xor ecx, esi
pop esi
shr edx, 8
mov ecx, dword [ecx*4 + 0x51ceb0]
xor ecx, edx
mov dword [eax + 0x4f78], ecx
ret

Function at 0x46ec10
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ec5d
mov esi, dword [esp + 8]
mov dword [eax + 0x4f70], 0x12345678
mov dword [eax + 0x4f74], 0x23456789
mov dword [eax + 0x4f78], 0x34567890
mov al, byte [esi]
test al, al
je 0x46ec5d
movsx ecx, al
push ecx
call fcn.0046eb90
mov al, byte [esi + 1]
add esp, 4
inc esi
test al, al
jne 0x46ec49
pop esi
ret

Function at 0x46ec60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, ecx
dec ecx
mov eax, dword [edi + 0x14f7c]
test edx, edx
je 0x46eca7
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x51ceb0]
xor eax, edx
inc ecx
dec esi
jne 0x46ec7f
pop esi
mov dword [edi + 0x14f7c], eax
pop ebx
pop edi
ret
mov dword [edi + 0x14f7c], eax
pop edi
ret
Function at 0x46fed0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x5296dc]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x46fef2
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
lea ecx, [esp + 0xc]
push esi
mov dword [esi + 0x3d40], edi
push ecx
mov dword [esi + 0x16818], edi
mov dword [esi + 0x16824], edi
mov dword [esi + 0x16820], edi
mov dword [esi + 0x3d44], edi
xor ebx, ebx
mov dword [esi + 0x1682c], edi
call fcn.0046fe10
add esp, 8
cmp eax, edi
jne 0x46ff77
mov eax, dword [esi + 0x1682c]
cmp eax, ebx
jbe 0x46ff36
mov ebx, eax
cmp dword [esi + 0x1680c], edi
jne 0x46ff65
cmp dword [esi], edi
jne 0x46ff65
cmp dword [esp + 0xc], edi
jne 0x46ff65
lea edx, [esp + 0xc]
push esi
push edx
mov dword [esi + 0x1682c], edi
call fcn.0046fe10
add esp, 8
cmp eax, edi
je 0x46ff2a
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x16818]
push esi
push eax
call fcn.0046f1c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x46ff80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x46ffa0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
lea esi, [ebx + 0x16828]
push ebx
push esi
call fcn.0046d640
xor ebp, ebp
push ebx
mov bp, word [esi]
push esi
inc ebp
xor edi, edi
call fcn.0046d640
xor eax, eax
mov edx, dword [esp + 0x28]
mov ax, word [esi]
add esp, 0x10
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
cmp eax, edx
ja 0x470011
mov edx, dword [esp + 0x14]
lea edx, [edx + edi*4]
mov dword [edx], ecx
inc edi
add edx, 4
dec eax
jne 0x46ffe0
dec ebp
je 0x47001b
push ebx
push esi
call fcn.0046d640
xor eax, eax
add esp, 8
mov ax, word [esi]
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
lea edx, [eax + edi]
cmp edx, dword [esp + 0x18]
jbe 0x46ffd9
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
mov esi, dword [esp + 0x18]
mov eax, edi
sub eax, esi
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, 4
pop ebx
ret
Function at 0x471fb0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x5296dc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x47208d
mov eax, 0xfffe97cc
push ebx
push ebp
sub eax, esi
push edi
mov ebp, 0x3fc0
lea edi, [esi + 0x16933]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x14fa0], 6
jge 0x471ff3
push esi
call fcn.0046d5d0
add esp, 4
mov cl, byte [esi + 0x14f9c]
mov bl, byte [0x51d2bc]
and cl, bl
xor ebx, ebx
mov byte [edi], cl
mov edx, dword [esi + 0x14f9c]
mov ecx, dword [esi + 0x14fa0]
shr edx, 6
add ecx, 0xfffffffa
mov dword [esi + 0x14f9c], edx
mov dword [esi + 0x14fa0], ecx
mov al, byte [edi]
test al, al
jbe 0x472078
cmp dword [esi + 0x14fa0], 8
jge 0x47203b
push esi
call fcn.0046d5d0
add esp, 4
mov dl, byte [esi + 0x14f9c]
mov al, byte [0x51d2c0]
and dl, al
mov eax, dword [esi + 0x16830]
add eax, ebp
mov byte [eax + ebx], dl
mov eax, dword [esi + 0x14f9c]
mov edx, dword [esi + 0x14fa0]
shr eax, 8
add edx, 0xfffffff8
mov dword [esi + 0x14f9c], eax
mov dword [esi + 0x14fa0], edx
mov al, byte [edi]
inc ebx
cmp bl, al
jb 0x472029
mov ecx, dword [esp + 0x10]
dec edi
add ecx, edi
sub ebp, 0x40
test ecx, ecx
jge 0x471fe1
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x472870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x526980]
push esi
push edi
xor edi, edi
test eax, eax
je 0x4728d5
mov eax, dword [0x5298e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4728d5
push 0xd278
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4728cd
push esi
call fcn.00478f60
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x5298e0]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x473ad0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1040
call fcn.004ad6f0
mov eax, dword [esp + 0x1044]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp]
push ecx
call fcn.00473b80
add esp, 4
lea edx, [esp]
push edx
push 0
push 0x2be
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x808]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x80c]
push ecx
call fcn.00475d90
add esp, 0x1050
ret

Function at 0x4742a0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x60
mov eax, dword [0x5298e0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov dword [esp + 4], eax
je 0x4743f4
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x24]
push 0x40
push edx
mov esi, dword [ecx]
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x4743f4
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [esp + 0x24]
push str.IMI_VBSTATCONTROL
push ecx
call fcn.004833f0
test eax, eax
je 0x4743f4
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x422
push esi
call edi
test al, 1
mov dword [esp + 0x7c], eax
je 0x47439b
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x20]
push 0
push edx
call ebp
test eax, eax
je 0x47439b
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [esp + 0x18], 0x12
jne 0x474351
mov eax, dword [esp + 0x10]
mov dword [eax + 0xa0], 1
jmp 0x474376
test byte [esp + 0x7c], 2
je 0x474376
push 0
push 0
push 0x424
push esi
call edi
test eax, eax
je 0x474376
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xa0], 1
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
call ebp
test eax, eax
jne 0x47433a
lea edx, [esp + 0x30]
push edx
push 0
push 0x41d
push esi
call edi
lea eax, [esp + 0x30]
mov ebx, dword [esp + 0x74]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4743d5
push ebx
push 0
push 0x41c
push esi
call edi
push 0
push 0
push 0x41e
push esi
call edi
mov ecx, dword [esp + 0x78]
push 0
and ecx, 0xffff
push ecx
push 0x41e
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x60
ret 0xc
Function at 0x4745b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5298e0]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4746fe
mov ebp, dword [esi + 0xac8]
test ebp, ebp
jne 0x4745e0
mov eax, dword [esi + 0x3e18]
test eax, eax
je 0x4746fe
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
mov ecx, edi
or ecx, ebx
jne 0x4745f4
xor edi, edi
jmp 0x47461c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0
push 0x64
push edx
push eax
call fcn.004b56d0
push ebx
push edi
push edx
push eax
call fcn.004b5a40
mov edi, eax
cmp edi, 0x64
jle 0x47461c
mov edi, 0x64
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esi + 0x3e14], edi
je 0x4746ab
mov ebx, dword [esp + 0x14]
lea ecx, [esi + 0x95c]
push ebx
push ecx
call ebp
lea eax, [esi + 0x958]
lea ecx, [esi + 0xabc]
mov dword [esi + 0xac4], eax
mov dword [esi + 0xac0], 0x164
mov dword [eax], edi
mov eax, dword [esi + 0x3e40]
cmp eax, 0xc8
mov dword [ecx], 1
jl 0x474697
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x474697
mov edx, dword [esi + 0xad0]
push ecx
push 0
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4746e9
mov dword [esi + 0xa0], 1
jmp 0x4746e9
mov eax, dword [esi + 0xad0]
push ecx
push 0
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4746e9
cmp dword [esi + 0x3e40], 0xc8
jl 0x4746d6
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x4746d6
mov ecx, dword [esi + 0x3e1c]
mov ebx, dword [esp + 0x14]
push ecx
push edi
push ebx
call dword [esi + 0x3e18]
jmp 0x474687
mov edx, dword [esi + 0x3e1c]
mov ebx, dword [esp + 0x14]
push edx
push edi
push ebx
call dword [esi + 0x3e18]
lea eax, [esi + 0x2e14]
push ebx
push eax
call ebp
push esi
call fcn.00476250
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x474710
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5298e0]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x474727
pop esi
pop ebx
ret
mov ebx, dword [esi + 0xac8]
test ebx, ebx
jne 0x474740
mov eax, dword [esi + 0x3e24]
test eax, eax
jne 0x474740
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x47474e
xor edi, edi
jmp 0x47478b
cmp ecx, 0x186a0
jle 0x47476f
mov eax, 0x51eb851f
imul ecx
mov ecx, edx
mov eax, dword [esp + 0x1c]
sar ecx, 5
mov edx, ecx
shr edx, 0x1f
add ecx, edx
jmp 0x47477c
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov edi, eax
cmp edi, 0x64
jle 0x47478b
mov edi, 0x64
xor ebp, ebp
mov dword [esi + 0x3e20], edi
test ebx, ebx
je 0x474807
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x95c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x958]
lea ecx, [esi + 0xabc]
mov dword [esi + 0xac4], eax
push ecx
mov dword [eax], edi
mov eax, dword [esi + 0x3e40]
cmp eax, 0xc8
push ebp
mov dword [ecx], ebp
mov dword [esi + 0xac0], 0x164
push 0x4a
jl 0x4747f8
mov ecx, dword [esi + 0xad0]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x47486a
mov ebp, 1
mov dword [esi + 0xa0], ebp
jmp 0x47486a
mov edx, dword [esi + 0xad0]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x47486a
mov eax, dword [esi + 0x3e40]
cmp eax, 0x12c
jg 0x474840
je 0x474855
sub eax, 0x64
je 0x474829
sub eax, 0x64
je 0x474855
mov ecx, dword [esi + 0x3e28]
push ecx
jmp 0x47485c
mov eax, dword [esi + 0x3e28]
mov ebx, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [esi + 0x3e24]
xor ebp, ebp
jmp 0x47486a
sub eax, 0x190
je 0x474855
sub eax, 0x64
je 0x474855
mov ecx, dword [esi + 0x3e28]
push ecx
jmp 0x47485c
mov edx, dword [esi + 0x3e28]
push edx
mov ebx, dword [esp + 0x18]
push edi
push ebx
call dword [esi + 0x3e24]
mov ebp, eax
lea eax, [esi + 0x3614]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.00476250
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x474a20
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.004ad6f0
mov eax, dword [esp + 0x100c]
push esi
mov ecx, dword [eax + 0x3e3c]
test ecx, ecx
je 0x474b65
push 0x800
push 2
push 0x6c
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 8]
push 0x3a
push edx
mov byte [esp + 0x80f], 0
call fcn.00483440
lea ecx, [esp + 9]
cmp eax, ecx
je 0x474ad1
lea edx, [esp + 8]
push 0x51ce38
push edx
call fcn.004833f0
lea ecx, [esp + 8]
cmp eax, ecx
je 0x474ad1
lea edx, [esp + 0x808]
push 0x800
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x474ac0
lea eax, [esp + 0x808]
push 0x51cdf4
push eax
call esi
lea ecx, [esp + 8]
lea edx, [esp + 0x808]
push ecx
push edx
call esi
jmp 0x474ae4
lea eax, [esp + 8]
lea ecx, [esp + 0x808]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push 4
push 0
push 3
lea edx, [esp + 0x81c]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x474b65
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0xc]
push 0
push eax
push 2
push 0x51ce1c
push esi
call edi
mov ebx, dword [esp + 0x1014]
lea ecx, [esp + 0xc]
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push esi
call edi
lea edx, [esp + 0xc]
push 0
push edx
push 2
push 0x51ce1c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x1004
ret

Function at 0x474b70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
jl 0x474bd8
mov esi, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x474bbf
push edi
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call edi
lea ecx, [esp + 0x14]
push 0
push ecx
push 2
push 0x51ce1c
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push 0
push edx
push 5
push str.____r_n
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
pop esi
ret
Function at 0x475d90
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.004ad6f0
mov eax, dword [0x5298e0]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x475eef
mov eax, dword [esi + 0x920]
test eax, eax
je 0x475eef
cmp dword [esi + 0x934], 0xffffffff
jne 0x475e9f
push 0x800
push 0
push 0x2bd
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0xc]
push 0x3a
push edx
mov byte [esp + 0x813], 0
call fcn.00483440
lea ecx, [esp + 0xd]
cmp eax, ecx
je 0x475e61
lea edx, [esp + 0xc]
push 0x51ce38
push edx
call fcn.004833f0
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x475e61
lea edx, [esp + 0x80c]
push 0x800
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x475e50
lea eax, [esp + 0x80c]
push 0x51cdf4
push eax
call edi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x80c]
push ecx
push edx
call edi
jmp 0x475e74
lea eax, [esp + 0xc]
lea ecx, [esp + 0x80c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push 4
push 0
push 3
lea edx, [esp + 0x820]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x934], eax
je 0x475eef
mov eax, dword [esi + 0x934]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1010]
lea ecx, [esp + 8]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi + 0x934]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
call edi
mov ecx, dword [esi + 0x934]
lea eax, [esp + 8]
push 0
push eax
push 2
push 0x51ce1c
push ecx
call edi
pop edi
pop esi
add esp, 0x1004
ret