joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402219
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42443b
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x435070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x431040
push 0
call fcn.0040eb17
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 8
push 0xf
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040eb61
push 0x1ac
lea eax, [ebp - 0x1d8]
push 0
push eax
call fcn.0040c4a0
add esp, 0x10
lea ecx, [ebp - 0x1d8]
call fcn.004038f0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x40225c
xor eax, eax
mov dword [ebp - 0x14], eax
mov esi, eax
push 0xfffffffffffffff5
call ebx
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [ebp - 0x2a]
lea eax, [ebp - 0x14]
push eax
movsx eax, word [ebp - 0x2c]
imul ecx, eax
push esi
push ecx
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx ecx, word [ebp - 0x2a]
lea eax, [ebp - 0x14]
push eax
movsx eax, word [ebp - 0x2c]
imul ecx, eax
push esi
push ecx
push 7
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea ecx, [ebp - 0x1d8]
call fcn.00403c50
mov edx, str.Select_map:
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Summoners_Rift:_1
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.The_Twisted_Treeline:_2
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Howling_Abyss:_3
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
push 0x435f80
call fcn.004033f0
mov edx, str.Rules:_8
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Credits:_9
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Exit:_0
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 0x20
mov edx, 0x431118
mov ecx, eax
call fcn.00403150
lea edx, [ebp - 0x1d9]
call fcn.004034a0
movsx eax, byte [ebp - 0x1d9]
add eax, 0xffffffd0
cmp eax, 9
ja case.0x4021e4.52
jmp dword [eax*4 + 0x402288]
push 0
lea ecx, [ebp - 0x1d8]
call fcn.00403cf0
call fcn.00402330
jmp 0x4020c6
push 1
lea ecx, [ebp - 0x1d8]
call fcn.00403cf0
call fcn.00402330
jmp 0x4020c6
push 2
lea ecx, [ebp - 0x1d8]
call fcn.00403cf0
call fcn.00402330
jmp 0x4020c6
lea ecx, [ebp - 0x1d8]
call fcn.004048c0
call fcn.00402330
jmp 0x4020c6
lea ecx, [ebp - 0x1d8]
call fcn.004046b0
call fcn.00402330
jmp 0x4020c6
xor esi, esi
lea ecx, [ebp - 0x1d8]
call fcn.00404b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409537
mov esp, ebp
pop ebp
ret
Function at 0x402230
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42443b
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x435070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x431040
push 0
call fcn.0040eb17
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 8
push 0xf
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040eb61
push 0x1ac
lea eax, [ebp - 0x1d8]
push 0
push eax
call fcn.0040c4a0
add esp, 0x10
lea ecx, [ebp - 0x1d8]
call fcn.004038f0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x40225c
xor eax, eax
mov dword [ebp - 0x14], eax
mov esi, eax
push 0xfffffffffffffff5
call ebx
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [ebp - 0x2a]
lea eax, [ebp - 0x14]
push eax
movsx eax, word [ebp - 0x2c]
imul ecx, eax
push esi
push ecx
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx ecx, word [ebp - 0x2a]
lea eax, [ebp - 0x14]
push eax
movsx eax, word [ebp - 0x2c]
imul ecx, eax
push esi
push ecx
push 7
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea ecx, [ebp - 0x1d8]
call fcn.00403c50
mov edx, str.Select_map:
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Summoners_Rift:_1
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.The_Twisted_Treeline:_2
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Howling_Abyss:_3
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
push 0x435f80
call fcn.004033f0
mov edx, str.Rules:_8
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Credits:_9
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Exit:_0
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 0x20
mov edx, 0x431118
mov ecx, eax
call fcn.00403150
lea edx, [ebp - 0x1d9]
call fcn.004034a0
movsx eax, byte [ebp - 0x1d9]
add eax, 0xffffffd0
cmp eax, 9
ja case.0x4021e4.52
jmp dword [eax*4 + 0x402288]
push 0
lea ecx, [ebp - 0x1d8]
call fcn.00403cf0
call fcn.00402330
jmp 0x4020c6
push 1
lea ecx, [ebp - 0x1d8]
call fcn.00403cf0
call fcn.00402330
jmp 0x4020c6
push 2
lea ecx, [ebp - 0x1d8]
call fcn.00403cf0
call fcn.00402330
jmp 0x4020c6
lea ecx, [ebp - 0x1d8]
call fcn.004048c0
call fcn.00402330
jmp 0x4020c6
lea ecx, [ebp - 0x1d8]
call fcn.004046b0
call fcn.00402330
jmp 0x4020c6
xor esi, esi
lea ecx, [ebp - 0x1d8]
call fcn.00404b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409537
mov esp, ebp
pop ebp
ret
Function at 0x402245
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42443b
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x435070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x431040
push 0
call fcn.0040eb17
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 8
push 0xf
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040eb61
push 0x1ac
lea eax, [ebp - 0x1d8]
push 0
push eax
call fcn.0040c4a0
add esp, 0x10
lea ecx, [ebp - 0x1d8]
call fcn.004038f0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x40225c
xor eax, eax
mov dword [ebp - 0x14], eax
mov esi, eax
push 0xfffffffffffffff5
call ebx
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [ebp - 0x2a]
lea eax, [ebp - 0x14]
push eax
movsx eax, word [ebp - 0x2c]
imul ecx, eax
push esi
push ecx
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx ecx, word [ebp - 0x2a]
lea eax, [ebp - 0x14]
push eax
movsx eax, word [ebp - 0x2c]
imul ecx, eax
push esi
push ecx
push 7
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea ecx, [ebp - 0x1d8]
call fcn.00403c50
mov edx, str.Select_map:
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Summoners_Rift:_1
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.The_Twisted_Treeline:_2
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Howling_Abyss:_3
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
push 0x435f80
call fcn.004033f0
mov edx, str.Rules:_8
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Credits:_9
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
mov edx, str.Exit:_0
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 0x20
mov edx, 0x431118
mov ecx, eax
call fcn.00403150
lea edx, [ebp - 0x1d9]
call fcn.004034a0
movsx eax, byte [ebp - 0x1d9]
add eax, 0xffffffd0
cmp eax, 9
ja case.0x4021e4.52
jmp dword [eax*4 + 0x402288]
push 0
lea ecx, [ebp - 0x1d8]
call fcn.00403cf0
call fcn.00402330
jmp 0x4020c6
push 1
lea ecx, [ebp - 0x1d8]
call fcn.00403cf0
call fcn.00402330
jmp 0x4020c6
push 2
lea ecx, [ebp - 0x1d8]
call fcn.00403cf0
call fcn.00402330
jmp 0x4020c6
lea ecx, [ebp - 0x1d8]
call fcn.004048c0
call fcn.00402330
jmp 0x4020c6
lea ecx, [ebp - 0x1d8]
call fcn.004046b0
call fcn.00402330
jmp 0x4020c6
xor esi, esi
lea ecx, [ebp - 0x1d8]
call fcn.00404b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409537
mov esp, ebp
pop ebp
ret
Function at 0x4046b0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x435070]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0xfffffffffffffff5
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [esp + 0x16]
lea eax, [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
movsx eax, word [esp + 0x18]
imul ecx, eax
push esi
push ecx
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx ecx, word [esp + 0x16]
lea eax, [esp + 0x10]
push eax
movsx eax, word [esp + 0x18]
imul ecx, eax
push esi
push ecx
push 7
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov edx, str.Ultimate_Bravery
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
lea esi, [ebx + 0x178]
mov edx, 0x4312e0
mov ecx, 0x435f80
call fcn.00403150
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x404763
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00406de0
add esp, 4
push eax
call fcn.004033f0
add esp, 4
lea esi, [ebx + 0x20]
mov edx, str.For_League_patch:
mov ecx, 0x435f80
call fcn.00403150
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x404796
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00406de0
add esp, 4
push eax
call fcn.004033f0
add esp, 4
mov edx, str.Based_on:_http:__www.ultimate_bravery.com__langen
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
push eax
call fcn.004033f0
add esp, 4
mov edx, str.Code:_nOskar_okg_Kaczmarek
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
mov edx, str.Data:_nRados
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
mov edx, str.Testers:_nKacper_Wymiatacz_Dziubkowski
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
mov edx, str.Marcin_Atom_Dziubkowski
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
mov edx, str.Rados
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
mov edx, str.Jan_Pinjesz_Jeschke
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
mov edx, str.Szymon_Mnieciu_Podg
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
mov edx, str.Remigiusz_Dorthion_W
mov ecx, 0x435f80
call fcn.00403150
push eax
call fcn.004033f0
add esp, 4
push 0x435f80
call fcn.004033f0
add esp, 4
mov edx, str.Press_any_key_to_back.__n_
mov ecx, eax
call fcn.00403150
call fcn.00402330
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409537
mov esp, ebp
pop ebp
ret
Function at 0x40756f
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x424ace
call fcn.00409e02
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x40768f
cmp byte [edi + 0x3d], bl
je 0x40768f
mov eax, dword [edi]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.00409da2
mov ecx, edi
call esi
cmp eax, 0xffffffff
sete al
test al, al
je 0x4075b7
xor al, al
jmp 0x407691
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.00405950
lea eax, [edi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4075ea
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
push dword [ebp - 0x30]
mov ecx, dword [esi + 0x20]
call fcn.00409da2
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x407618
sub eax, 1
jne 0x407674
mov edi, dword [ebp - 0x2c]
jmp 0x40761e
mov edi, dword [ebp - 0x2c]
mov byte [edi + 0x3d], bl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x40762e
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x34]
sub esi, edx
je 0x407656
cmp eax, 0x10
jae 0x40763d
lea ecx, [ebp - 0x28]
push dword [edi + 0x4c]
push esi
push 1
push ecx
call fcn.004111d1
add esp, 0x10
cmp esi, eax
jne 0x40767f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [edi + 0x3d], 0
je 0x40767d
test esi, esi
jne 0x4075de
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.004065d0
jmp 0x4075d8
dec eax
sub eax, 1
jne 0x407683
inc eax
jmp 0x407681
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.004022d0
mov al, bl
jmp 0x407691
mov al, 1
call fcn.00409dbd
ret
Function at 0x4079e4
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x424b23
call fcn.00409e02
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x407a12
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x407b76
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x407a40
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x407a40
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x407b76
cmp dword [esi + 0x4c], 0
je 0x407b74
mov ecx, esi
call fcn.0040786d
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x407a76
push dword [esi + 0x4c]
push eax
call fcn.00407104
pop ecx
test al, al
mov eax, dword [ebp + 8]
pop ecx
jne 0x407b76
jmp 0x407b74
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.00405950
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x407aad
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call fcn.00409da2
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x407b6c
cmp eax, 1
jg 0x407b50
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x407af6
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x38]
sub edi, edx
je 0x407b23
cmp eax, 0x10
jae 0x407b05
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.004111d1
add esp, 0x10
cmp edi, eax
jne 0x407b6c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x407b26
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x3c], edx
jne 0x407b69
test edi, edi
jne 0x407aa1
cmp dword [ebp - 0x18], 0x20
jae 0x407b6c
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.004065d0
jmp 0x407a9b
cmp eax, 3
jne 0x407b6c
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.00407104
pop ecx
pop ecx
test al, al
je 0x407b6c
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.004022d0
mov eax, ebx
call fcn.00409dbd
ret 4

Function at 0x40df90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4285b0
push 0x4285a8
push str.FlsAlloc
push 0
call fcn.0040df10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40dfc2
push dword [ebp + 8]
mov ecx, esi
call fcn.00409da2
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x40e007
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4285c0
push 0x4285b8
push str.FlsGetValue
push 2
call fcn.0040df10
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x40e038
mov ecx, esi
call fcn.00409da2
call esi
jmp 0x40e03e
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x40e041
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4285c8
push 0x4285c0
push str.FlsSetValue
push 3
call fcn.0040df10
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x40e075
mov ecx, esi
call fcn.00409da2
call esi
jmp 0x40e07b
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x419556
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004193d3

Function at 0x41cff2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cc8c
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x460f5b8e
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..rsrc
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6ec2cde
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4015ee
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [ebp + 0xc], eax
jne 0x401665
lea ecx, [ebp - 0x20]
call fcn.00401d0c
and byte [ebp - 0xc], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov eax, 0x104
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.004016d7
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x10]
call fcn.004016b0
lea ecx, [ebp - 0x20]
call fcn.0040185e
push 1
push dword [ebp - 0x1c]
push 0
push str.http:__consumer.installshield.com
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x20]
call fcn.00401672
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x401c56
Capabilities:
Check os version
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jae 0x401cd1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x804
jne 0x401c92
push 0x41e098
jmp 0x401cbc
cmp ax, 0x404
jne 0x401c9f
push 0x41e090
jmp 0x401cbc
and eax, 0xff
cmp ax, 0x11
jne 0x401cb1
push str.MS_UI_Gothic
jmp 0x401cbc
cmp ax, 0x12
jne 0x401cd1
push 0x41e078
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
mov word [eax], 9
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x401d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
jne 0x401d3a
mov dword [esp + 0x1c], 0x409
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00401f73
push dword [0x41b3e0]
mov ecx, esi
mov edi, eax
push 0
call fcn.00401e19
mov ecx, dword [esp + 0x18]
push 1
mov eax, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
shr eax, 4
inc eax
pop ebp
push dword [esp + 0x1c]
and ecx, 0xf
movzx esi, ax
push esi
push 6
push edi
mov dword [esp + 0x28], ecx
call ebx
test eax, eax
jne 0x401dab
mov eax, dword [esp + 0x1c]
push 2
and ax, 0x3ff
pop ebp
or ah, 4
push eax
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x401dab
push 3
pop ebp
push 6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401e0f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401dd9
xor edx, edx
mov cx, word [eax]
test cx, cx
je 0x401dd1
inc eax
inc eax
cmp edx, dword [esp + 0x18]
movzx ecx, cx
je 0x401dfe
lea eax, [eax + ecx*2]
jmp 0x401dd3
inc eax
inc eax
inc edx
cmp edx, 0x10
jl 0x401db9
cmp ebp, 1
jne 0x401df7
mov eax, dword [esp + 0x1c]
push 2
and ax, 0x3ff
pop ebp
or ah, 4
push eax
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x401dab
cmp ebp, 2
jne 0x401e0f
jmp 0x401d9a
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 0
call fcn.00401ed5
mov al, 1
jmp 0x401e11
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8