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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42ec98]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x40f267
xor eax, eax
jmp 0x40f3d5
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x457060]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40f29a
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004134e7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40f36c
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x40f3a7
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x40f2f5
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40f2e6
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x40f2c9
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f335
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x40f33e
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40f2ba
jmp 0x40f340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x40f3d0
cmp dword [ebp - 8], edi
je 0x40f3a7
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x40f399
call fcn.0040bbbf
mov dword [eax], 9
call fcn.0040bbc8
mov dword [eax], esi
jmp 0x40f3a2
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f38e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x40f340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x40f340
push dword [ebp - 8]
call fcn.0040bbd1
pop ecx
or eax, 0xffffffff
jmp 0x40f3d3
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40f3bc
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40f3bc
xor eax, eax
jmp 0x40f3d3
call fcn.0040bbbf
mov dword [eax], 0x1c
call fcn.0040bbc8
mov dword [eax], edi
jmp 0x40f3a2
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004087e5
leave
ret
Function at 0x412b29
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x412cef
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x457060]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x412cef
test cl, 0x48
je 0x412b8f
mov al, byte [eax + 5]
cmp al, 0xa
je 0x412b8f
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x412bc9
call fcn.0040bbbf
mov dword [eax], 9
call fcn.0040bbc8
mov dword [eax], esi
jmp 0x412bd9
cmp eax, 0x6d
je 0x412cef
push eax
call fcn.0040bbd1
pop ecx
or eax, 0xffffffff
jmp 0x412cf1
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x412cea
test edx, edx
je 0x412c04
cmp byte [ebx], 0xa
jne 0x412c04
or al, 4
jmp 0x412c06
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x412ce4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x412cd4
cmp al, 0xd
je 0x412c3a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x412cc6
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x412c54
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x412c4f
add dword [ebp + 0x10], 2
jmp 0x412ca8
mov dword [ebp + 0x10], eax
jmp 0x412cc2
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x412cc2
cmp dword [ebp - 0xc], 0
je 0x412cc2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x412c9d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x412ca8
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x412cc5
cmp ebx, dword [ebp + 0xc]
jne 0x412cad
cmp byte [ebp - 1], 0xa
jne 0x412cad
mov byte [ebx], 0xa
jmp 0x412cc5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041256d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x412cc6
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x412c1e
jmp 0x412ce4
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x412ce4
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x412cf1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4131b2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x455fa0], ebx
push esi
push edi
jne 0x413232
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41326d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42990c
push edi
call esi
test eax, eax
mov dword [0x455fa0], eax
je 0x41326d
push 0x4298fc
push edi
call esi
push 0x4298e8
push edi
mov dword [0x455fa4], eax
call esi
cmp dword [0x455b50], 2
mov dword [0x455fa8], eax
jne 0x413232
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x455fb0], eax
je 0x413232
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x455fac], eax
mov eax, dword [0x455fac]
test eax, eax
je 0x413277
call eax
test eax, eax
je 0x41325e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x455fb0]
test eax, eax
je 0x41325e
test byte [ebp - 8], 1
jne 0x413277
cmp dword [0x455b5c], 4
jb 0x413271
or byte [ebp + 0x12], 0x20
jmp 0x413296
xor eax, eax
jmp 0x4132a6
or byte [ebp + 0x12], 4
jmp 0x413296
mov eax, dword [0x455fa4]
test eax, eax
je 0x413296
call eax
mov ebx, eax
test ebx, ebx
je 0x413296
mov eax, dword [0x455fa8]
test eax, eax
je 0x413296
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x455fa0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414590
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00408ee0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414625
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x455b50]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x414625
cmp eax, 1
je 0x41463d
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414625
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4145fa
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x414621
xor eax, eax
inc eax
jmp 0x414659
cmp esi, ebx
jae 0x414629
xor eax, eax
jmp 0x414659
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x455b50]
jmp 0x41463f
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414aee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x414b19
cmp eax, 1
je 0x414b19
jle 0x414b21
cmp eax, 3
jle 0x414b19
cmp eax, 4
jne 0x414b21
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x414b4c
call fcn.0040bbbf
mov dword [eax], 0x16
call fcn.0040bbc8
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x414cc5
inc eax
cmp byte [eax], bl
jne 0x414b3b
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x414b4c
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x414b3b
push esi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0040b150
mov dword [ebp - 0x68], esi
mov esi, dword [0x457044]
add esp, 0xc
cmp esi, ebx
je 0x414b93
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x457060]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x414b93
dec esi
dec ecx
cmp esi, ebx
jne 0x414b73
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
movzx eax, ax
push 1
push eax
call fcn.0040c3ba
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x414bf9
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x457060]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x414be5
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x414bea
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x414bbe
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x414c2a
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x414c10
mov edi, esi
jmp 0x414c13
push 3
pop edi
cmp edx, edi
jge 0x414c23
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x414c07
mov dword [ebp - 0xc], 8
call fcn.0040bbbf
mov dword [eax], ebx
call fcn.0040bbc8
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.00408e68
cmp esi, ebx
pop ecx
jne 0x414c7a
push edi
call fcn.0040bbd1
pop ecx
or eax, 0xffffffff
jmp 0x414cc3
cmp dword [ebp + 8], 2
jne 0x414c86
push ebx
call fcn.00409100
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x414cb3
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x414cbc
cmp dword [ebp + 8], 4
je 0x414cac
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414ec3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414ee3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040bbd1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x414f06
test byte [esp + 8], 2
je 0x414f06
call fcn.0040bbbf
mov dword [eax], 0xd
call fcn.0040bbc8
mov dword [eax], 5
jmp 0x414edf
xor eax, eax
ret

Function at 0x4150b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00408ee0
mov eax, dword [0x42ec98]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041256d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4151da
push 2
push esi
push dword [ebp + 8]
call fcn.0041256d
add esp, 0xc
cmp eax, ebx
je 0x4151da
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41517d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0040b150
push 0x8000
push dword [ebp + 8]
call fcn.00415be1
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x415136
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040f23e
add esp, 0xc
cmp eax, 0xffffffff
je 0x415156
sub edi, eax
test edi, edi
jg 0x41512e
jmp 0x41516e
call fcn.0040bbc8
cmp dword [eax], 5
jne 0x41516b
call fcn.0040bbbf
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00415be1
pop ecx
pop ecx
jmp 0x4151c5
jge 0x4151c5
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041256d
push dword [ebp + 8]
call fcn.0040b99c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4151c5
call fcn.0040bbbf
mov dword [eax], 0xd
call fcn.0040bbc8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0041256d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4151dc
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004087e5
leave
ret
Function at 0x415901
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x429978
call fcn.0040c618
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x455fd4], edi
jne 0x415945
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415930
mov dword [0x455fd4], ebx
jmp 0x415945
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415945
mov dword [0x455fd4], 2
mov eax, dword [0x455fd4]
cmp eax, ebx
jne 0x415965
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x415a28
cmp eax, 2
je 0x41596e
cmp eax, edi
jne 0x415996
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x415981
mov eax, dword [0x455e80]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x41599d
xor eax, eax
jmp 0x415a28
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00408ee0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4159d0
cmp esi, edi
jne 0x4159e6
push dword [ebp - 0x24]
call fcn.00408e56
pop ecx
mov esi, eax
cmp esi, edi
je 0x415996
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x415a19
cmp dword [ebp + 0x14], edi
jne 0x415a03
push edi
push edi
jmp 0x415a09
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x415a25
push esi
call fcn.00408e68
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040c653
ret
Function at 0x415a31
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x429988
call fcn.0040c618
xor esi, esi
cmp dword [0x455fd8], esi
jne 0x415a75
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415a60
mov dword [0x455fd8], edi
jmp 0x415a75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415a75
mov dword [0x455fd8], 2
mov eax, dword [0x455fd8]
cmp eax, 2
je 0x415b56
cmp eax, esi
je 0x415b56
cmp eax, 1
jne 0x415aba
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x415aa3
mov eax, dword [0x455e80]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x415ac1
xor eax, eax
jmp 0x415b68
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00408ee0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x415af7
cmp edi, esi
jne 0x415b12
lea eax, [ebx + ebx]
push eax
call fcn.00408e56
pop ecx
mov edi, eax
cmp edi, esi
je 0x415aba
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415b45
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x415b2f
push esi
push esi
jmp 0x415b35
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x415b51
push edi
call fcn.00408e68
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x415b68
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040c653
ret

Function at 0x4197ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x419842
call fcn.004221db
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x419842
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41985d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00418966
test ebx, ebx
mov esi, eax
je 0x41985b
test edi, edi
je 0x41985b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41a668
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x41a69f
call fcn.004221db
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a6b0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41a6e9
cmp word [esi + 2], reloc.kernel32.dll_ReadConsoleW
mov ecx, dword [esi]
jne 0x41a6ce
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41a6d6
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41a6e7
test ax, ax
jne 0x41a6e7
test si, si
je 0x41a6e9
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41a6f8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41a94a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, reloc.kernel32.dll_LocalFree
call fcn.0040b0f0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.004221db
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41a998
call fcn.004221db
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41a9a9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41a9b5
or eax, 0xffffffff
jmp 0x41aab8
mov ecx, esi
call fcn.0041a492
mov dword [ebp - 0x14], eax
call fcn.00417b48
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41a9f8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41a9f8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41a9f8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00418e92
push dword [ebp - 0x14]
call fcn.00417aa0
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041a73d
xor ebx, ebx
cmp eax, ebx
je 0x41aa6c
test byte [esi + 0x38], 0x10
je 0x41aa3a
push 4
pop edi
mov ecx, esi
call fcn.00419b09
test ah, 1
je 0x41aa32
push 5
pop edi
push edi
mov ecx, esi
call fcn.00417544
cmp dword [esi + 0x1c], ebx
je 0x41aa6c
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00419c29
jmp 0x41aa6c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41aa80
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41aa99
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41aa99
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041a4cc
cmp dword [esi + 0x54], ebx
je 0x41aab5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41d43b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42ec98]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, reloc.kernel32.dll_lstrlenA
cmp esi, eax
ja 0x41d48d
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x41d48d
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41d499
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004087e5
leave
ret 8