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

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42529c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x413879
xor eax, eax
jmp 0x413a02
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x426a80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4138b5
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00417887
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x413990
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4139ce
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x413919
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41390a
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4138ea
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413959
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x413962
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4138db
jmp 0x413964
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4139fd
cmp dword [ebp - 0x6c], edi
je 0x4139ce
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4139c3
call fcn.00413e23
mov dword [eax], 9
call fcn.00413e2c
mov dword [eax], esi
jmp 0x4139f8
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4139b8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x413964
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x413964
push dword [ebp - 0x6c]
call fcn.00413e35
pop ecx
jmp 0x4139f8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4139e6
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4139e6
xor eax, eax
jmp 0x413a00
call fcn.00413e23
mov dword [eax], 0x1c
call fcn.00413e2c
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x413a00
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040f602
add ebp, 0x3a0
leave
ret
Function at 0x4142b8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4142e6
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4142ed
cmp ebx, dword [eax + 4]
jae 0x4142ed
xor eax, eax
jmp 0x4144dd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4142fe
xor eax, eax
inc eax
jmp 0x4144dc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x414314
cmp ecx, edx
jae 0x414459
cmp dword [eax + 4], 0
je 0x41431d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x414305
cmp dword [ebp + 8], 0
je 0x41433f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x414459
cmp eax, esi
jae 0x414459
mov eax, dword [0x4265d8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x414364
cmp dword [esi*4 + 0x4265e0], edi
je 0x41445d
inc esi
cmp esi, eax
jl 0x414352
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4144d9
cmp dword [ebp - 8], 0x1000000
jne 0x4144d9
test byte [ebp - 0xc], 0xcc
je 0x4143e2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4144d9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4144d9
cmp word [eax + 0x18], 0x10b
jne 0x4144d9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4144d9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4143e2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4143e2
test byte [ecx + 0x27], 0x80
jne 0x414459
push 1
push 0x426620
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4142f6
mov ecx, dword [0x4265d8]
test ecx, ecx
mov edx, ecx
jle 0x414416
lea eax, [ecx*4 + 0x4265dc]
cmp dword [eax], edi
je 0x414416
dec edx
sub eax, 4
test edx, edx
jg 0x41440a
test edx, edx
jne 0x414447
push 0xf
pop ebx
cmp ecx, ebx
jg 0x414423
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41443b
lea eax, [edx*4 + 0x4265e0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x414429
cmp ecx, 0x10
jge 0x414447
inc ecx
mov dword [0x4265d8], ecx
push 0
push 0x426620
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4142f6
xor eax, eax
jmp 0x4144dc
test esi, esi
jle 0x4142f6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x426620
call ebx
test eax, eax
jne 0x4142f6
cmp dword [esi*4 + 0x4265e0], edi
je 0x4144b3
mov eax, dword [0x4265d8]
lea esi, [eax - 1]
test esi, esi
jl 0x4144a1
cmp dword [esi*4 + 0x4265e0], edi
je 0x41449d
dec esi
jns 0x414491
test esi, esi
jge 0x4144b1
cmp eax, 0x10
jge 0x4144ac
inc eax
mov dword [0x4265d8], eax
lea esi, [eax - 1]
jmp 0x4144b3
je 0x4144cb
xor ecx, ecx
test esi, esi
jl 0x4144cb
lea eax, [ecx*4 + 0x4265e0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4144b9
push 0
push 0x426620
call ebx
jmp 0x4142f6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41541e
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 0x4155f2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x426a80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4155f2
test cl, 0x48
je 0x415489
cmp byte [eax + 5], 0xa
je 0x415489
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x4154db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4154c3
call fcn.00413e23
mov dword [eax], 9
call fcn.00413e2c
mov dword [eax], esi
jmp 0x4154d3
cmp eax, 0x6d
je 0x4155f2
push eax
call fcn.00413e35
pop ecx
or eax, 0xffffffff
jmp 0x4155f4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4155ed
test eax, eax
je 0x415502
cmp byte [ebx], 0xa
jne 0x415502
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41550b
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x4155e7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4155d7
cmp al, 0xd
je 0x41553d
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4155c9
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x415557
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x415552
add dword [ebp + 0x10], 2
jmp 0x4155ab
mov dword [ebp + 0x10], eax
jmp 0x4155c5
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 0x41557f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4155c5
cmp dword [ebp - 0xc], 0
je 0x4155c5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4155a0
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4155ab
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4155c8
cmp ebx, dword [ebp + 0xc]
jne 0x4155b0
cmp byte [ebp - 1], 0xa
jne 0x4155b0
mov byte [ebx], 0xa
jmp 0x4155c8
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004156a4
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4155c9
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x415521
jmp 0x4155e7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4155e7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4155f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4172b2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42674c], ebx
push esi
push edi
jne 0x417332
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41736d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420fe4
push edi
call esi
test eax, eax
mov dword [0x42674c], eax
je 0x41736d
push 0x420fd4
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x426750], eax
call esi
cmp dword [0x42652c], 2
mov dword [0x426754], eax
jne 0x417332
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42675c], eax
je 0x417332
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x426758], eax
mov eax, dword [0x426758]
test eax, eax
je 0x417377
call eax
test eax, eax
je 0x41735e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42675c]
test eax, eax
je 0x41735e
test byte [ebp - 8], 1
jne 0x417377
cmp dword [0x426538], 4
jb 0x417371
or byte [ebp + 0x12], 0x20
jmp 0x417396
xor eax, eax
jmp 0x4173a6
or byte [ebp + 0x12], 4
jmp 0x417396
mov eax, dword [0x426750]
test eax, eax
je 0x417396
call eax
mov ebx, eax
test ebx, ebx
je 0x417396
mov eax, dword [0x426754]
test eax, eax
je 0x417396
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42674c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b568
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040f2a0
mov eax, dword [0x42529c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004156a4
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41b69b
push 2
push esi
push dword [ebp + 8]
call fcn.004156a4
add esp, 0xc
cmp eax, ebx
je 0x41b69b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41b63b
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00411990
push 0x8000
push dword [ebp + 8]
call fcn.0041cbfb
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41b5f1
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00413848
add esp, 0xc
cmp eax, 0xffffffff
je 0x41b611
sub edi, eax
test edi, edi
jg 0x41b5e9
jmp 0x41b629
call fcn.00413e2c
cmp dword [eax], 5
jne 0x41b626
call fcn.00413e23
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041cbfb
pop ecx
pop ecx
jmp 0x41b683
jge 0x41b683
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004156a4
push dword [ebp + 8]
call fcn.004174a6
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 0x41b683
call fcn.00413e23
mov dword [eax], 0xd
call fcn.00413e2c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004156a4
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41b69d
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040f602
leave
ret
Function at 0x41bb8e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41bba7
or eax, 0xffffffff
jmp 0x41bc08
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41bc04
push 0x3d
push esi
call fcn.0041cd29
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41bc04
cmp esi, eax
je 0x41bc04
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x42654c]
sete cl
cmp eax, dword [0x426550]
mov dword [ebp - 8], ecx
jne 0x41bbea
mov edi, eax
call fcn.0041bb2d
mov dword [0x42654c], eax
cmp eax, ebx
jne 0x41bc43
cmp dword [ebp + 0xc], ebx
je 0x41bc0c
cmp dword [0x426554], ebx
je 0x41bc0c
call fcn.00417e82
test eax, eax
je 0x41bc43
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41bc15
xor eax, eax
jmp 0x41bc07
push 4
call fcn.0040f095
cmp eax, ebx
pop ecx
mov dword [0x42654c], eax
je 0x41bc04
mov dword [eax], ebx
cmp dword [0x426554], ebx
jne 0x41bc43
push 4
call fcn.0040f095
cmp eax, ebx
pop ecx
mov dword [0x426554], eax
je 0x41bc04
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x42654c]
call fcn.0041bae0
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41bca4
cmp dword [esi], ebx
je 0x41bca4
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040da3b
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41bc87
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41bce5
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41bc7e
mov eax, edi
shl eax, 2
push eax
push dword [0x42654c]
call fcn.00413200
cmp eax, ebx
pop ecx
pop ecx
je 0x41bce5
jmp 0x41bce0
cmp dword [ebp - 8], ebx
jne 0x41bd50
cmp edi, ebx
jge 0x41bcb3
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42654c]
call fcn.00413200
cmp eax, ebx
pop ecx
pop ecx
je 0x41bc04
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x42654c], eax
cmp dword [ebp + 0xc], ebx
je 0x41bd3a
push dword [ebp - 4]
call fcn.00413c30
inc eax
inc eax
push eax
call fcn.0040f095
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41bd3a
push dword [ebp - 4]
push esi
call fcn.00414100
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41bd33
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040da3b
pop ecx
cmp dword [ebp - 8], ebx
je 0x41bd48
push dword [ebp - 4]
call fcn.0040da3b
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41bc07
push dword [ebp - 4]
call fcn.0040da3b
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41bc11
Function at 0x41d05c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x422080
call fcn.00410f30
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4267d0], edi
jne 0x41d0a0
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41d08b
mov dword [0x4267d0], ebx
jmp 0x41d0a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41d0a0
mov dword [0x4267d0], 2
mov eax, dword [0x4267d0]
cmp eax, ebx
jne 0x41d0c0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41d183
cmp eax, 2
je 0x41d0c9
cmp eax, edi
jne 0x41d0f1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x41d0dc
mov eax, dword [0x4265d0]
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 - 0x20], eax
cmp eax, edi
jne 0x41d0f8
xor eax, eax
jmp 0x41d183
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040f2a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x41d12b
cmp esi, edi
jne 0x41d141
push dword [ebp - 0x20]
call fcn.0040f095
pop ecx
mov esi, eax
cmp esi, edi
je 0x41d0f1
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41d174
cmp dword [ebp + 0x14], edi
jne 0x41d15e
push edi
push edi
jmp 0x41d164
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 - 0x24], edi
je 0x41d180
push esi
call fcn.0040da3b
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00410f6b
ret
Function at 0x41d18c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x422090
call fcn.00410f30
xor esi, esi
cmp dword [0x4267d4], esi
jne 0x41d1d0
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41d1bb
mov dword [0x4267d4], edi
jmp 0x41d1d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41d1d0
mov dword [0x4267d4], 2
mov eax, dword [0x4267d4]
cmp eax, 2
je 0x41d2b1
cmp eax, esi
je 0x41d2b1
cmp eax, 1
jne 0x41d215
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x41d1fe
mov eax, dword [0x4265d0]
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 0x41d21c
xor eax, eax
jmp 0x41d2c3
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f2a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41d252
cmp edi, esi
jne 0x41d26d
lea eax, [ebx + ebx]
push eax
call fcn.0040f095
pop ecx
mov edi, eax
cmp edi, esi
je 0x41d215
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 0x41d2a0
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x41d28a
push esi
push esi
jmp 0x41d290
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 0x41d2ac
push edi
call fcn.0040da3b
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x41d2c3
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.00410f6b
ret

Function at 0x41d695
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42529c]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.0041d56b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00411990
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41d6f7
cmp dword [ebp - 0x1c], 5
jb 0x41d70f
jmp 0x41d70b
cmp dword [ebp - 0x10], 1
jne 0x41d70f
cmp dword [ebp - 0x1c], 4
ja 0x41d70b
jne 0x41d70f
cmp dword [ebp - 0x18], 0
jbe 0x41d70f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x4220ac
call fcn.00406980
test eax, eax
jge 0x41d730
mov byte [0x426298], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.0040f602
add ebp, 0x78
leave
ret
Function at 0x4016b9
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xaca
jge 0x4016d4
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be4d9
jg 0x4016ee
inc edi
cmp edi, 0x332fe31
jl 0x4016c5
cmp dword [0x209ba4c], 0x400
jne 0x401753
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
call fcn.00401cc2
call fcn.00401b51
push esi
call fcn.0040217a
push esi
call fcn.00401fda
pop ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00401ec0
fstp st(0)
mov eax, esp
mov dword [eax], esi
push ecx
mov dword [eax + 4], esi
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00401b90
fstp st(0)
add esp, 0x10
xor edi, edi
cmp edi, 0xd036
jge 0x401765
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x40178b
inc edi
cmp edi, 0x263ff
jl 0x401755
mov eax, dword [0x44eda4]
mov dword [0x209ba4c], eax
call fcn.0040143c
mov edi, 0x3078f
cmp dword [0x209ba4c], 0x51f
jne 0x4017b7
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
jne 0x40179f
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x405860
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434440]
jne 0x40586a
repz ret
jmp fcn.0040858a
Function at 0x406fe5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404a88
and dword [ebp - 0x14], 0
cmp dword [0x4598c8], 0
mov dword [ebp - 0x18], eax
jne 0x407098
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407140
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407140
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4598c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4598cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4598d0], eax
call edi
push eax
call esi
mov dword [0x4598d8], eax
test eax, eax
je 0x407098
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4598d4], eax
mov eax, dword [0x4598d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4070f1
cmp dword [0x4598d8], ecx
je 0x4070f1
push eax
call esi
push dword [0x4598d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4070f1
test ebx, ebx
je 0x4070f1
call edi
test eax, eax
je 0x4070e8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4070e8
test byte [ebp - 8], 1
jne 0x4070f1
or dword [ebp + 0x10], 0x200000
jmp 0x407124
mov eax, dword [0x4598cc]
cmp eax, dword [ebp - 0x18]
je 0x407124
push eax
call esi
test eax, eax
je 0x407124
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407124
mov eax, dword [0x4598d0]
cmp eax, dword [ebp - 0x18]
je 0x407124
push eax
call esi
test eax, eax
je 0x407124
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4598c8]
call esi
test eax, eax
je 0x407140
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407142
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405860
leave
ret