joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403100
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xec4
push edi
mov ecx, 0x23c
xor eax, eax
lea edi, [esp + 0x5d5]
mov byte [esp + 0x5d4], 0
mov byte [esp + 0xfc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x135
xor eax, eax
lea edi, [esp + 0xfd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
call fcn.004036b0
mov ecx, dword [esp + 0xed0]
add esp, 4
mov dword [0x40722c], ecx
call fcn.00402230
call fcn.00402be0
call fcn.00402db0
mov eax, dword [0x407228]
pop edi
test eax, eax
je 0x403197
lea edx, [esp + 0x5d0]
push edx
call dword [eax + 0x6f8]
mov ecx, dword [0x407228]
lea eax, [esp + 0xfc]
push 1
push eax
call dword [ecx + 0x550]
add esp, 0xc
mov eax, dword [0x40722c]
lea edx, [esp + 0x94]
push 0x64
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jg 0x4031e6
mov al, byte [0x409c30]
test al, al
je 0x4031d2
push 0xf
lea ecx, [esp + 0x959]
push 0x409c34
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [0x40722c]
lea edx, [esp + 0x955]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [esp + 0x4bc], 1
je 0x403200
lea ecx, [esp + 0x6d2]
push ecx
call fcn.004032c0
add esp, 4
mov edx, dword [0x40722c]
push 0x401fd0
push 0x46
push 0x2618
push edx
call dword [esp + 0x28]
mov dword [0x408fdc], eax
add esp, 0xec4
ret
Function at 0x403f50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x258
lea eax, [esp]
push ebx
push esi
push edi
push eax
call fcn.00403ef0
mov al, byte [esp + 0x10]
add esp, 4
test al, al
jne 0x403f7a
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x258
ret
mov edx, dword [esp + 0x268]
lea ecx, [esp + 0x138]
push 0x12b
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x404103
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
cmp dl, 0x2a
jne 0x404014
mov bl, byte [esp + ecx + 0xc]
lea eax, [esp + ecx + 0xc]
cmp bl, dl
jne 0x404014
mov byte [eax], 0
lea edi, [esp + 0xd]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x138]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x404103
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x258
ret
cmp byte [esp + ecx + 0xc], 0x2a
jne 0x40404b
mov byte [esp + ecx + 0xc], 0
push ecx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x13c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x404103
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x258
ret
cmp dl, 0x2a
jne 0x4040bb
lea edi, [esp + 0xd]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x138]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x404103
lea esi, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4040ee
test cl, cl
je 0x4040b7
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4040ee
add eax, 2
add esi, 2
test cl, cl
jne 0x404093
xor eax, eax
jmp 0x4040f3
lea esi, [esp + 0xc]
lea eax, [esp + 0x138]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4040ee
test cl, cl
je 0x4040ea
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4040ee
add eax, 2
add esi, 2
test cl, cl
jne 0x4040c6
xor eax, eax
jmp 0x4040f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404103
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x258
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x258
ret
Function at 0x401500
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [esp + 0x218]
push edi
push ebp
push 0x104
push eax
push str.NoString
push ecx
push str.MainBitmap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, str.NoString
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401560
test cl, cl
je 0x40155c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401560
add eax, 2
add esi, 2
test cl, cl
jne 0x401538
xor eax, eax
jmp 0x401565
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4015cc
mov edi, str.C:Program_Files_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
mov edi, str.Cannot_find_the_MainBitmap_section_of_the_init_file
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041c7c5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 4

Function at 0x401650
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x34
lea eax, [esp]
push ebx
push ebp
mov ebp, ecx
push esi
push ebp
push 0x32
push eax
push str.NoString
push str.Title
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, str.NoString
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4016a6
test cl, cl
je 0x4016a2
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4016a6
add eax, 2
add esi, 2
test cl, cl
jne 0x40167e
xor eax, eax
jmp 0x4016ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4016e4
push edi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x214]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0xb
mov ecx, ebp
call fcn.00401fa0
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret
Function at 0x401700
Capabilities:
Read .ini file
Terminate process

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
push 0x50
mov dword [esp + 0x20], 0x42d164
mov dword [esp + 0x24], 0x42d160
mov dword [esp + 0x28], 0x42d15c
mov dword [esp + 0x2c], 0x42d158
mov dword [esp + 0x30], 0x42d154
mov dword [esp + 0x34], str.654321
call fcn.00412bab
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 4
mov dword [esp + 0x14], eax
lea ebp, [esp + 0x1c]
lea edi, [eax + 8]
mov dword [esp + 0x10], 5
mov eax, dword [esp + 0x18]
mov edx, dword [ebp]
push eax
lea ecx, [esp + 0x38]
push 0x104
push ecx
push str.NoString
push edx
push str.HighlightArea
call ebx
mov esi, str.NoString
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4017ad
test cl, cl
je 0x4017a9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4017ad
add eax, 2
add esi, 2
test cl, cl
jne 0x401789
xor eax, eax
jmp 0x4017b2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401811
lea eax, [esp + 0x34]
push 0x42d13c
push eax
call fcn.00407748
push eax
call fcn.0040773d
push 0x42d13c
push 0
mov dword [edi - 8], eax
call fcn.00407748
push eax
call fcn.0040773d
push 0x42d13c
push 0
mov dword [edi - 4], eax
call fcn.00407748
push eax
call fcn.0040773d
push 0x42d13c
push 0
mov dword [edi], eax
call fcn.00407748
push eax
call fcn.0040773d
add esp, 0x30
mov dword [edi + 4], eax
jmp 0x401827
push 0xffffffffffffffff
push 0
push 0xef18
call fcn.0041c7fd
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x10]
add ebp, 4
add edi, 0x10
dec eax
mov dword [esp + 0x10], eax
jne 0x401761
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x401850
Capabilities:
Read .ini file
Terminate process

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
push 0x28
mov dword [esp + 0x20], 0x42d164
mov dword [esp + 0x24], 0x42d160
mov dword [esp + 0x28], 0x42d15c
mov dword [esp + 0x2c], 0x42d158
mov dword [esp + 0x30], 0x42d154
mov dword [esp + 0x34], str.654321
call fcn.00412bab
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 4
mov dword [esp + 0x14], eax
mov ebp, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x10], 5
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push eax
lea ecx, [esp + 0x38]
push 0x104
push ecx
push str.NoString
push edx
push 0x42d168
call ebx
mov esi, str.NoString
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4018fb
test cl, cl
je 0x4018f7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4018fb
add eax, 2
add esi, 2
test cl, cl
jne 0x4018d7
xor eax, eax
jmp 0x401900
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401936
lea eax, [esp + 0x34]
push 0x42d13c
push eax
call fcn.00407748
push eax
call fcn.0040773d
push 0x42d13c
push 0
mov dword [ebp], eax
call fcn.00407748
push eax
call fcn.0040773d
add esp, 0x18
mov dword [ebp + 4], eax
jmp 0x40194c
push 0xffffffffffffffff
push 0
push 0xef19
call fcn.0041c7fd
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x10]
add edi, 4
add ebp, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x4018b0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x401a50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
mov ebp, ecx
push esi
push ebp
push 0x104
push eax
push str.NoString
push str.HtmlFileName
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, str.NoString
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401aac
test cl, cl
je 0x401aa8
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401aac
add eax, 2
add esi, 2
test cl, cl
jne 0x401a84
xor eax, eax
jmp 0x401ab1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401aed
push edi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x34a]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push 0xb
mov ecx, ebp
call fcn.00401fa0
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x401b10
Capabilities:
Read .ini file
Terminate process

Disassembly:
sub esp, 0x34
lea eax, [esp]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push ebp
push 0x32
push eax
push str.NoString
push str.FontType
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, str.NoString
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401b67
test cl, cl
je 0x401b63
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401b67
add eax, 2
add esi, 2
test cl, cl
jne 0x401b3f
xor eax, eax
jmp 0x401b6c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401b99
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x44e]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401ba2
push 0xb
mov ecx, ebp
call fcn.00401fa0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebp
push 0
push str.FontWeight
push str.General
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 1
mov dword [ebp + 0x484], eax
jl 0x401bcd
cmp eax, 9
jle 0x401bdf
push 0xffffffffffffffff
push 0
push 0xef1d
call fcn.0041c7fd
push 0
call edi
push ebp
push 0
push str.FontHeight
push str.General
call esi
mov dword [ebp + 0x480], eax
mov ebp, dword [ebp + 0x484]
cmp ebp, 1
jl 0x401c07
cmp ebp, 0x4000
jle 0x401c19
push 0xffffffffffffffff
push 0
push 0xef1e
call fcn.0041c7fd
push 0
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret

Function at 0x401c30
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0
push str.RectWidth
push str.MainTextRect
call edi
mov ecx, dword [esp + 0xc]
push esi
push 0
push str.RectHeight
push str.MainTextRect
mov dword [ecx], eax
call edi
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx], eax
mov eax, 1
ret 8
Function at 0x401e30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x64
lea eax, [esp]
push ebx
push ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov ebp, ecx
push edi
push ebp
push 0x64
push eax
push str.NoString
push str.InitWave
push str.WaveFile
call ebx
mov esi, str.NoString
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401e85
test cl, cl
je 0x401e81
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401e85
add eax, 2
add esi, 2
test cl, cl
jne 0x401e61
xor eax, eax
jmp 0x401e8a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401ee1
mov edi, str.C:Program_Files_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
lea eax, [esp + 0x14]
push 0x64
push eax
push str.NoString
push str.PassSnd
push str.PassOverSound
call ebx
mov esi, str.NoString
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401f2b
test cl, cl
je 0x401f27
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401f2b
add eax, 2
add esi, 2
test cl, cl
jne 0x401f03
xor eax, eax
jmp 0x401f30
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401f83
mov edi, str.C:Program_Files_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret 8
Function at 0x401fa0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4228bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x304
mov eax, dword [0x42de0c]
push esi
push edi
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x31c]
mov dword [esp + 0x314], 0
push ecx
lea ecx, [esp + 0xc]
call fcn.004141e6
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
mov eax, dword [edx - 8]
push eax
call fcn.004140bf
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.C:Program_Files_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.00407840
add esp, 8
mov byte [eax], 0
lea edx, [esp + 0xc]
lea eax, [esp + 0x10c]
push edx
lea ecx, [esp + 0x210]
push eax
push ecx
call fcn.004077ec
add esp, 0xc
lea edx, [esp + 0x20c]
push 0
push 0
push edx
call fcn.0041c7c5
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403c20
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x422a7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5e0
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00402130
xor ebx, ebx
mov dword [esp + 0x5f0], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [esi + 0xd0], ax
push eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.00403690
push eax
lea ecx, [esi + 0xc4]
mov byte [esp + 0x5f4], 1
call fcn.00413e7d
lea ecx, [esp + 8]
mov byte [esp + 0x5f0], bl
call fcn.00413d90
mov cx, word [esi + 0xd0]
lea edx, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.004037c0
push eax
lea ecx, [esi + 0xcc]
mov byte [esp + 0x5f4], 2
call fcn.00413e7d
lea ecx, [esp + 8]
mov byte [esp + 0x5f0], bl
call fcn.00413d90
mov ax, word [esi + 0xd0]
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004036e0
push eax
lea ecx, [esi + 0xc8]
mov byte [esp + 0x5f4], 3
call fcn.00413e7d
lea ecx, [esp + 8]
mov byte [esp + 0x5f0], bl
call fcn.00413d90
lea ecx, [esp + 0xc]
mov dword [esp + 0x5f0], 0xffffffff
call fcn.00403600
mov ecx, dword [esp + 0x5e8]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5ec
ret

Function at 0x405a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x422d97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x42de0c]
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 1
call fcn.00420a7b
mov eax, dword [eax + 4]
mov edi, dword [esp + 0x28]
mov esi, dword [0x431300]
mov cx, word [eax + 0xd0]
mov eax, edi
shr eax, 4
inc eax
push ecx
and eax, 0xffff
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x405b64
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405b6e
and edi, 0xf
mov esi, eax
jle 0x405af0
mov eax, edi
xor ecx, ecx
dec eax
mov cx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x405ae4
xor ebx, ebx
push 0
mov bx, word [esi]
push 0
push 0
add esi, 2
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x405b6e
push ebp
push edi
call fcn.00412bab
add esp, 4
mov ebp, eax
push 0
push 0
push edi
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push ebp
lea ecx, [esp + 0x34]
call fcn.00411272
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.00413e7d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.00413d90
push ebp
call fcn.00412bd4
add esp, 4
pop ebp
jmp 0x405b6e
push edi
lea ecx, [esp + 0x10]
call fcn.004141e6
mov esi, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00413b05
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00413d90
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x406200
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
push ecx
push 0
push 0x43141c
push 0x406240
push 0
push 0
mov dword [0x43141c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x431418], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
ret 4

Function at 0x40bf21
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e988
cmp edx, dword [eax]
je 0x40bf43
add eax, 8
inc ecx
cmp eax, 0x42ea18
jl 0x40bf34
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e988]
jne 0x40c071
mov eax, dword [0x433430]
cmp eax, 1
je 0x40c04b
test eax, eax
jne 0x40bf74
cmp dword [0x42e294], 1
je 0x40c04b
cmp edx, 0xfc
je 0x40c071
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bfab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040ddc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408ae0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40bfee
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408ae0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4274f4
push edi
call fcn.0040eec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040ddc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ddd0
lea eax, [ebp - 0xa0]
push 0x4274d4
push eax
call fcn.0040ddd0
push dword [esi + 0x42e98c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ddd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ee37
add esp, 0x2c
pop edi
jmp 0x40c071
lea eax, [ebp + 8]
lea esi, [esi + 0x42e98c]
push 0
push eax
push dword [esi]
call fcn.00408ae0
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