joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100109c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100109cf
pop dword [ebp - 0x40]
mov eax, 0x100109cf
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x7e49c39b
sub dword [ebp - 0x50], 0x2ff77e50
mov dword [ebp - 0x4c], 0xf55062d2
sub dword [ebp - 0x4c], 0xc31d168d
mov dword [ebp - 0x48], 0xb6cbb413
sub dword [ebp - 0x48], 0x6a7f6fe5
mov dword [ebp - 0x44], 0x4ab69a88
sub dword [ebp - 0x44], 0x4ab69a88
lea eax, [ebp - 0x50]
push eax
mov eax, 0x7d6bf650
sub eax, 0x6d6a6614
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x411c9bbb
add dword [ebp - 0x50], 0x3355cd9b
mov dword [ebp - 0x4c], 0xd0ef7323
sub dword [ebp - 0x4c], 0x8f8311ae
mov dword [ebp - 0x48], 0x512a55e7
sub dword [ebp - 0x48], 0xedbae97b
mov dword [ebp - 0x44], 0x78c654b5
add dword [ebp - 0x44], 0x8739ab4b
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x367ef
push 0
call eax
mov ecx, 0xa6a1d6b7
add ecx, 0x595e70e2
mov edi, eax
mov edx, 0x10022800
add edx, dword [ebp - 0x40]
mov esi, 0x33e1d860
add esi, 0xab579cbb
mov ebx, dword [edx]
sub dword [ebp - 0x2c], edx
add ebx, esi
xor dword [ebp - 0xc], 0xdd973e86
mov dword [edi], ebx
add dword [ebp - 0x3c], ebx
add edi, 0xee6b8373
sub edi, 0xee6b836f
add edx, 0xbf4c58fe
add edx, 0x40b3a706
loop 0x10010ae1
add eax, 0x50149069
sub eax, 0x50137f32
mov ebx, eax
add eax, 0x154749d1
add eax, 0xeab8b634
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x10014d90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x1001f83c]
push dword [esp + 4]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x234]
call eax
test eax, eax
je 0x10014dd2
push 0x51b
push str.hprof_util.c
push str.Unable_to_get_necessary_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret

Function at 0x10016400
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
xorps xmm0, xmm0
push edx
movups xmmword [edx], xmm0
mov eax, dword [0x1001f83c]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x22c]
call eax
test eax, eax
je 0x10016449
push 0x50e
push str.hprof_util.c
push str.Unable_to_get_potential_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402cd0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41c660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
call fcn.00414e40
xor edi, edi
mov esi, 1
mov dword [esp + 0x30], edi
lea ebp, [ebx + 0x40]
push esi
lea eax, [esp + 0x1c]
push str.COM_d
push eax
call fcn.00410632
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 8]
add esp, 0xc
push ecx
push edx
mov ecx, ebp
call fcn.0041090a
inc esi
cmp esi, 9
jl 0x402d09
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x14], edi
cmp eax, edi
jle 0x402dd5
mov eax, dword [ebx + 0x48]
xor edi, edi
test eax, eax
jle 0x402dc1
add ebx, 0x2c
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, ebp
call fcn.00401390
mov ecx, dword [esp + 0x14]
mov esi, dword [eax]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov byte [esp + 0x38], 1
call fcn.00401390
mov eax, dword [eax]
push esi
push eax
call fcn.00404ff0
mov ebx, eax
add esp, 8
neg ebx
sbb ebx, ebx
lea ecx, [esp + 0x20]
neg ebx
call fcn.00414f8b
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 0
call fcn.00414f8b
test bl, bl
jne 0x402db3
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, dword [ecx + 0x48]
jl 0x402d51
jmp 0x402dbd
push 1
push edi
mov ecx, ebp
call fcn.00410936
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x402d41
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00414f8b
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x4036a0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x41c86f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x41d444
lea ecx, [esi + 0x38]
mov dword [esp + 0x10], 0xc
call fcn.00414f8b
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 0xb
call fcn.00414f8b
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 0xa
call fcn.00414f8b
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 9
call fcn.00414f8b
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 8
call fcn.00414f8b
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 7
call fcn.00414f8b
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 6
call fcn.00414f8b
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 5
call fcn.00414f8b
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 4
call fcn.00414f8b
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 3
call fcn.00414f8b
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 2
call fcn.00414f8b
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.00414f8b
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.00414f8b
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00414f8b
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403c00
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
mov word [ebx + 0x3e], 0x4e4
je 0x403c1a
lea edi, [ebx + 4]
jmp 0x403c1c
xor edi, edi
mov ecx, 0xd
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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 + 0x14]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
ja 0x403c6e
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
push esi
call fcn.004153c7
add esp, 4
mov dword [ebx + 0x38], eax
push eax
push esi
lea eax, [esp + 0x20]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x403c98
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
mov eax, dword [ebx + 0x38]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x423404
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x403cc0
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
test ebx, ebx
je 0x403cc9
lea edi, [ebx + 4]
jmp 0x403ccb
xor edi, edi
mov esi, dword [esp + 0xc]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x38]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403d02
cmp dword [esp + 0x10], 4
jb 0x403d02
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [ebx + 0x3c], edx
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, 0xfeef04bd
pop edi
pop esi
pop ebx
sete al
add esp, 0x110
ret 4
Function at 0x404d10
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00404dd0
mov eax, dword [0x428ecc]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x404d34
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x428ec8], 1
mov byte [0x428ec4], bl
jne 0x404d8e
mov ecx, dword [0x42a48c]
test ecx, ecx
je 0x404d7c
mov esi, dword [0x42a488]
sub esi, 4
cmp esi, ecx
jb 0x404d7c
mov eax, dword [esi]
test eax, eax
je 0x404d75
call eax
mov ecx, dword [0x42a48c]
sub esi, 4
cmp esi, ecx
jae 0x404d67
push 0x423078
push 0x423070
call fcn.00404df0
add esp, 8
push 0x423084
push 0x42307c
call fcn.00404df0
add esp, 8
test ebx, ebx
je 0x404dad
call fcn.00404de0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x428ecc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404e10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f370
push 0x408138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x428e9c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x428e98], ecx
shl ecx, 8
add ecx, edx
mov dword [0x428e94], ecx
shr eax, 0x10
mov dword [0x428e90], eax
call fcn.004080f0
test eax, eax
jne 0x404e7a
push 0x1c
call fcn.00404fc0
add esp, 4
call fcn.004071b0
test eax, eax
jne 0x404e8d
push 0x10
call fcn.00404fc0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00407ee0
call fcn.00406680
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42a484], eax
call fcn.00407d80
mov dword [0x428ed0], eax
test eax, eax
je 0x404ec0
mov eax, dword [0x42a484]
test eax, eax
jne 0x404eca
push 0xffffffffffffffff
call fcn.00404cd0
add esp, 4
call fcn.00407ad0
call fcn.004079e0
call fcn.00404ca0
mov esi, dword [0x42a484]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x404fa9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x404f11
test al, al
je 0x404f11
and eax, 0xff
push eax
call fcn.00407980
add esp, 4
test eax, eax
je 0x404eeb
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404eeb
cmp byte [esi], 0x22
jne 0x404f1a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x404f2a
cmp al, 0x20
ja 0x404f2a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404f1a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x404f4b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x404f50
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00404cd0
jmp 0x404f8e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x404f1a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404fa9
Function at 0x4071b0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00407580
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x423ce0], eax
je 0x407208
push 0x74
push 1
call fcn.00409060
mov esi, eax
add esp, 8
test esi, esi
je 0x407208
mov eax, dword [0x423ce0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x407208
push esi
call fcn.00407210
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x407230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x423ce0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40729e
push 0x74
push 1
call fcn.00409060
mov esi, eax
add esp, 8
test esi, esi
je 0x407294
mov ecx, dword [0x423ce0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x407294
push esi
call fcn.00407210
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00404fc0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x407d80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4291b0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x407dc2
call edi
mov esi, eax
test esi, esi
je 0x407dac
mov eax, 1
jmp 0x407dbd
call ebp
mov ebx, eax
test ebx, ebx
je 0x407ecf
mov eax, 2
mov dword [0x4291b0], eax
cmp eax, 1
jne 0x407e62
test esi, esi
jne 0x407ddb
call edi
mov esi, eax
test esi, esi
je 0x407ecf
cmp word [esi], 0
mov eax, esi
je 0x407df5
add eax, 2
cmp word [eax], 0
jne 0x407de3
add eax, 2
cmp word [eax], 0
jne 0x407de3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x407e54
push edi
call fcn.00405b60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407e54
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x407e46
push ebx
call fcn.00405c30
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x407ecf
test ebx, ebx
jne 0x407e73
call ebp
mov ebx, eax
test ebx, ebx
je 0x407ecf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x407e8b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407e7b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407e7b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00405b60
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x407ead
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x408250
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x423e58
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x408274
add eax, 8
inc ebp
cmp eax, 0x423ee8
jb 0x408265
cmp ecx, dword [ebp*8 + 0x423e58]
jne 0x40841b
mov eax, dword [0x428ed8]
cmp eax, 1
je 0x4083dd
test eax, eax
jne 0x4082a0
cmp dword [0x423984], 1
je 0x4083dd
cmp ecx, 0xfc
je 0x40841b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4082db
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x408324
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41f81c
add ebx, ecx
push ebx
call fcn.0040a5b0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41f7fc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x423e5c]
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
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040a520
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x42a380]
test eax, eax
je 0x4083ee
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4083f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x423e5c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40a830
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40a85c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x42a380]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x40a897
push 2
push ebp
push ecx
call fcn.0040a730
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40a9f9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40a941
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40a8f2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40a8df
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40a8c2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a9ea
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40a93d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40a8be
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40a9d9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a995
cmp eax, 5
jne 0x40a97e
call fcn.00406710
mov dword [eax], 9
call fcn.00406720
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00406690
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40a9b5
cmp byte [ebp], 0x1a
jne 0x40a9b5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00406710
mov dword [eax], 0x1c
call fcn.00406720
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40a93d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40aa2a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40a941
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40a941
Function at 0x40c600
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x429338]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x40c648
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x40c628
mov eax, 2
jmp 0x40c643
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c728
mov eax, 1
mov dword [0x429338], eax
cmp eax, 2
jne 0x40c668
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x40c73a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40c683
mov ecx, dword [0x4291f0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x40c6a2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00405b60
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c6b9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c71f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x40c700
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40c71f
push esi
call fcn.00405c30
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x40c72f
push esi
call fcn.00405c30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00405c30
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40fbc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00406350
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40fc8b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40fc8b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40fc3e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40fc49
or bh, 8
and edi, 0x8000000
je 0x40fc64
mov eax, dword [0x42a4fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40fc8b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret