joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dbfb9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004dbf35
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4dc128
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4dc128
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4dc0dd
jg 0x4dc015
test eax, eax
je 0x4dc0d3
push 1
push 0x1000
call fcn.004da245
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4dc038
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4dc0ca
push 0x8000
push ebx
call fcn.004d240e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4dc061
jg 0x4dc05c
cmp ecx, 0x1000
jb 0x4dc061
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004d5828
add esp, 0x10
cmp eax, 0xffffffff
je 0x4dc0a6
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4dc05c
jl 0x4dc08d
test ecx, ecx
jne 0x4dc04e
push dword [ebp - 0xc]
push ebx
call fcn.004d240e
push esi
call fcn.004d8827
add esp, 0xc
xor ebx, ebx
jmp 0x4dc136
cmp byte [edi + 0x24], 0
je 0x4dc0bd
cmp dword [edi + 0x20], 5
jne 0x4dc0bd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4dc0c8
mov ebx, dword [edi + 0x18]
jmp 0x4dc0ca
xor ebx, ebx
push esi
call fcn.004d8827
pop ecx
jmp 0x4dc136
test ecx, ecx
jg 0x4dc09f
jl 0x4dc0dd
test eax, eax
jae 0x4dc09f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d0b29
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4dc0fd
cmp byte [edi + 0x1c], 0
je 0x4dc09f
jmp 0x4dc12e
push ebx
call fcn.004dbecb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4dc09f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4dc136
cmp byte [edi + 0x1c], 0
je 0x4dc133
mov ebx, dword [edi + 0x18]
jmp 0x4dc136
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004d0b29
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ddbd4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4ddc1f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ddd6f
test al, al
jne 0x4ddc19
sub edx, 2
cmp edx, edi
jne 0x4ddbff
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ddc41
lea eax, [edi + 2]
cmp edx, eax
je 0x4ddc41
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ddb20
add esp, 0x10
jmp 0x4ddd3b
push esi
lea ecx, [ebp - 0x255]
call fcn.004ddd6f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ddc84
push dword [ebp - 0x25c]
jmp 0x4ddc31
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4ddcc1
cmp word [ebp - 0x226], 0
je 0x4ddce2
cmp word [ebp - 0x226], ax
jne 0x4ddcc1
cmp word [ebp - 0x224], 0
je 0x4ddce2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ddb20
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ddd2e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ddc9b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ddd16
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ddd3b
push 0x4dd950
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004cde00
add esp, 0x10
jmp 0x4ddd0b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b96d5
leave
ret

Function at 0x4de651
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4de662
pop esi
ret
push ebx
push edi
push esi
call fcn.004de61a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d8861
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4de68a
push ebx
push esi
push edi
call fcn.004bc5f0
add esp, 0xc
push 0
call fcn.004d8827
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4dea5a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004de69f
Function at 0x4e0cd9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004d8480
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e0d48
cmp esi, dword [ebp - 4]
je 0x4e0d43
cmp dword [ebp + 0xc], 0
je 0x4e0d43
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4e0d20
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004e082b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4e0d4a
xor eax, eax
inc eax
jmp 0x4e0d4a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4e0daf
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004d8480
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004d8480
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4e0e26
cmp word [ecx], dx
je 0x4e0e26
mov eax, dword [0x509d14]
push edi
dec eax
push eax
push 0x509c00
call fcn.004e0d4e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4e0e99
cmp word [eax], dx
je 0x4e0e99
mov eax, dword [edi]
test eax, eax
je 0x4e0e4a
cmp word [eax], dx
je 0x4e0e4a
lea eax, [ebp - 0x10]
push eax
call fcn.004e0731
jmp 0x4e0e53
lea eax, [ebp - 0x10]
push eax
call fcn.004e07cc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4e0ec3
mov eax, dword [0x509bfc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5098f0
call fcn.004e0d4e
add esp, 0xc
test al, al
je 0x4e0ec3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4e0e8e
cmp word [eax], di
je 0x4e0e8e
lea eax, [ebp - 0x10]
push eax
call fcn.004e0731
pop ecx
jmp 0x4e0ec5
lea eax, [ebp - 0x10]
push eax
call fcn.004e07cc
jmp 0x4e0e8b
mov eax, dword [edi]
test eax, eax
je 0x4e0eb0
cmp word [eax], dx
je 0x4e0eb0
lea eax, [ebp - 0x10]
push eax
call fcn.004e06e6
pop ecx
jmp 0x4e0ec3
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4e0f8e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004e0bd3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4e0f8e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4e0f8e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4e0f8e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e0f1b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004da9b5
test ebx, ebx
je 0x4e0f89
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004da9b5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e0f8e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e0f8e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004d12b2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4e0f90
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b96d5
leave
ret
Function at 0x4e50ff
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4e5142
call fcn.004c5277
mov dword [eax], 0xf
call fcn.004c528a
mov dword [eax], 0xd
call fcn.004c0590
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b96d5
leave
ret
test eax, eax
jne 0x4e5149
inc eax
jmp 0x4e5136
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4e5134
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4e5136

Function at 0x4e6290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e62bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e62bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402360
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00402420
mov eax, dword [0x41ca30]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x402384
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 [0x41ca2c], 1
mov byte [0x41ca28], bl
jne 0x4023de
mov ecx, dword [0x41dfe8]
test ecx, ecx
je 0x4023cc
mov esi, dword [0x41dfe4]
sub esi, 4
cmp esi, ecx
jb 0x4023cc
mov eax, dword [esi]
test eax, eax
je 0x4023c5
call eax
mov ecx, dword [0x41dfe8]
sub esi, 4
cmp esi, ecx
jae 0x4023b7
push 0x417074
push 0x41706c
call fcn.00402440
add esp, 8
push 0x417080
push 0x417078
call fcn.00402440
add esp, 8
test ebx, ebx
je 0x4023fd
call fcn.00402430
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x41ca30], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4042b0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004051d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x417900], eax
je 0x404308
push 0x74
push 1
call fcn.00405c40
mov esi, eax
add esp, 8
test esi, esi
je 0x404308
mov eax, dword [0x417900]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404308
push esi
call fcn.00404310
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 0x404330
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 [0x417900]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40439e
push 0x74
push 1
call fcn.00405c40
mov esi, eax
add esp, 8
test esi, esi
je 0x404394
mov ecx, dword [0x417900]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404394
push esi
call fcn.00404310
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.004020d0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x404b20
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x41cca8]
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 0x404b62
call edi
mov esi, eax
test esi, esi
je 0x404b4c
mov eax, 1
jmp 0x404b5d
call ebp
mov ebx, eax
test ebx, ebx
je 0x404c6f
mov eax, 2
mov dword [0x41cca8], eax
cmp eax, 1
jne 0x404c02
test esi, esi
jne 0x404b7b
call edi
mov esi, eax
test esi, esi
je 0x404c6f
cmp word [esi], 0
mov eax, esi
je 0x404b95
add eax, 2
cmp word [eax], 0
jne 0x404b83
add eax, 2
cmp word [eax], 0
jne 0x404b83
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 0x404bf4
push edi
call fcn.00402580
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404bf4
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 0x404be6
push ebx
call fcn.00402460
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 0x404c6f
test ebx, ebx
jne 0x404c13
call ebp
mov ebx, eax
test ebx, ebx
je 0x404c6f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x404c2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404c1b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404c1b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402580
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x404c4d
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 0x404ff0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4179b8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x405014
add eax, 8
inc ebp
cmp eax, 0x417a48
jb 0x405005
cmp ecx, dword [ebp*8 + 0x4179b8]
jne 0x4051bb
mov eax, dword [0x41c9ec]
cmp eax, 1
je 0x40517d
test eax, eax
jne 0x405040
cmp dword [0x4175a8], 1
je 0x40517d
cmp ecx, 0xfc
je 0x4051bb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40507b
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 0x4050c4
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 0x4152d4
add ebx, ecx
push ebx
call fcn.004064f0
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, 0x4152b4
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 + 0x4179bc]
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.00406460
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x41dee0]
test eax, eax
je 0x40518e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x405198
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4179bc]
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 0x408180
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x41ce90]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4081c8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4081a8
mov eax, 2
jmp 0x4081c3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4082a8
mov eax, 1
mov dword [0x41ce90], eax
cmp eax, 2
jne 0x4081e8
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 0x4082ba
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x408203
mov ecx, dword [0x41cd40]
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 0x408222
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00402580
mov esi, eax
add esp, 4
test esi, esi
jne 0x408239
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 0x40829f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x408280
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 0x40829f
push esi
call fcn.00402460
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 0x4082af
push esi
call fcn.00402460
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402460
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x409b24
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [ecx - 0x8b7b], cl
dec dword [ebx - 0xe0807bb]
test edx, edx
je 0x409b3a
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
invalid
inc ebp
invalid
Function at 0x409b9c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
invalid
call fcn.00409811
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040984c
jne 0x409b38
in eax, dx
adc cl, byte [ebp + 0x5d88e845]
call 0xe99e240d
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040985c
push eax
push esi
push dword [ebp + 8]
call fcn.00409811
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040985c
push eax
push esi
push dword [ebp + 8]
call fcn.00409811
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040985c
push eax
push esi
push dword [ebp + 8]
call fcn.00409811
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040984c
retf 0x5fe7

Function at 0x40a0ca
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebx, 0x40fffffc
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
test dword [esi + 0x25fffffc], edi

Function at 0x40a0de
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esi + 0x25fffffc], edi
lea eax, [ebp - 0x354]
push eax
call fcn.0040985c
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00409811
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
add byte [eax], al

Function at 0x40a11a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
test dword [eax + 0x4fffff9], edx
add byte [eax], al