joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f620
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
mov al, byte [0x426040]
mov ecx, 0x40
push esi
mov byte [esp + 4], al
push edi
lea edi, [esp + 9]
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x426040]
lea edi, [esp + 0x10d]
mov ecx, 0x40
mov byte [esp + 0x10c], al
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x214]
cmp esi, 1
jne 0x40f6be
lea eax, [esp + 8]
push str.spnserv.dat
lea ecx, [esp + 0x110]
push eax
push str._s_s
push ecx
call fcn.00413de0
add esp, 0x10
cmp dword [0x431c20], 0
je 0x40f6b1
push 0x431c20
call fcn.0040f5c0
add esp, 4
push 0x431c20
call fcn.0040f5f0
add esp, 4
cmp esi, 2
jne 0x40f705
lea eax, [esp + 8]
push str.spserv.dat
lea ecx, [esp + 0x110]
push eax
push str._s_s
push ecx
call fcn.00413de0
add esp, 0x10
cmp dword [0x431c40], 0
je 0x40f6f8
push 0x431c40
call fcn.0040f5c0
add esp, 4
push 0x431c40
call fcn.0040f5f0
add esp, 4
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
add esp, 0x208
ret

Function at 0x40f760
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3cc
mov dword [esp + 8], 1
push esi
mov ecx, 0xb
push edi
mov esi, str.SoftwareRainbow_TechnologiesSentinelSuperPro
mov dword [esp + 0xc], 0x20f
mov byte [esp + 0xc0], 0
lea edi, [esp + 0x2d0]
lea edx, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [str.NSPOPTS]
mov eax, str.NSPOPTS
mov dword [edx], ecx
mov eax, dword [eax + 4]
lea ecx, [esp + 0x2d0]
mov dword [edx + 4], eax
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f89d
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc0]
lea edx, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
test esi, esi
je 0x40f811
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x3cc
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xc0], 0
jne 0x40f82c
mov eax, esi
pop edi
pop esi
add esp, 0x3cc
ret
lea eax, [esp + 0x18]
push 0xa
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0xc8]
push ecx
mov dword [esp + 0x24], str.spnsrvxx.exe
push edx
call fcn.00413740
lea ecx, [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0x10
push str.:l:f:d
push ecx
push edx
call fcn.00413470
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x40f87b
mov eax, 0xffffffff
pop edi
pop esi
add esp, 0x3cc
ret
mov eax, dword [esi]
push eax
call fcn.0040f8b0
add esp, 4
mov eax, dword [esi + 4]
push eax
call fcn.0040fc20
add esp, 4
push esi
call fcn.004137e0
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x3cc
ret
Function at 0x40fdc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov eax, 0x65
mov ecx, 0x72
push ebx
xor ebx, ebx
mov byte [esp + 5], al
mov byte [esp + 4], 0x54
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 6], cl
mov byte [esp + 0xe], al
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], bl
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0x10], 0x76
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x40fe4a
cmp al, 4
lea eax, [esp + 4]
push eax
jbe 0x40fe40
call fcn.0040fe60
add esp, 4
mov ebx, eax
mov eax, ebx
pop ebx
add esp, 0x10
ret
call fcn.0040fe60
add esp, 4
mov ebx, eax
mov eax, ebx
pop ebx
add esp, 0x10
ret

Function at 0x40fe60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [esp + 0x1c], ebx
push str.SystemCurrentControlSetControlProductOptions
mov dword [esp + 0x1c], ebx
push reloc.WSOCK32.dll_bind
call ebp
test eax, eax
jne 0x40ff24
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push ebx
push str.ProductSuite
push edx
call edi
test eax, eax
jne 0x40ff24
cmp dword [esp + 0x14], ebx
je 0x40ff24
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push 0x40
call ebp
mov esi, eax
test esi, esi
je 0x40ff2f
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push ebx
push str.ProductSuite
push edx
call edi
test eax, eax
jne 0x40ff24
cmp dword [esp + 0x18], 7
jne 0x40ff24
mov ebp, esi
cmp byte [esi], bl
je 0x40ff24
mov edi, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40ff1f
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x40ff00
jmp 0x40ff24
mov ebx, 1
test esi, esi
je 0x40ff2f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0
je 0x40ff43
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x410740
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov dword [esp], 0x10
push esi
push edi
push 0x4e8
push 5
push 6
call fcn.00411570
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
je 0x4107d7
mov edx, dword [esp + 8]
lea edi, [esp + 0xc]
xor eax, eax
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov word [esp + 0xc], 6
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x4107d7
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x4107d7
lea eax, [esp + 0xc]
push eax
call fcn.004106c0
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00413de0
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push eax
call fcn.00413de0
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x14
ret

Function at 0x413850
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
push 0x74
push 1
call fcn.00417140
add esp, 8
mov esi, eax
cmp esi, edi
je 0x4138b0
push esi
call fcn.00417000
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esi + 0x48], eax
push edx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [esp + 0x14]
push esi
mov dword [esi + 4], 0xffffffff
push 0x4138d0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4138c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004137e0
add esp, 4
test edi, edi
je 0x4138c6
push edi
call fcn.004142a0
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x413ce0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00413da0
cmp dword [0x423e8c], 1
mov esi, dword [esp + 0x10]
jne 0x413d03
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x423e88], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x423e84], bl
jne 0x413d5d
cmp dword [0x432d8c], 0
je 0x413d4b
mov edi, dword [0x432d88]
sub edi, 4
cmp edi, dword [0x432d8c]
jb 0x413d4b
mov eax, dword [edi]
test eax, eax
je 0x413d40
call eax
sub edi, 4
cmp edi, dword [0x432d8c]
jae 0x413d38
push 0x42101c
push 0x421014
call fcn.00413dc0
add esp, 8
push 0x421024
push 0x421020
call fcn.00413dc0
add esp, 8
test ebx, ebx
je 0x413d7c
call fcn.00413db0
pop edi
pop esi
pop ebx
ret
mov dword [0x423e8c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x414340
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f568
push 0x413ac0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
shr eax, 0x10
mov dword [0x423e5c], edx
mov dword [0x423e58], ecx
mov dword [0x423e50], eax
shl ecx, 8
add ecx, edx
mov dword [0x423e54], ecx
call fcn.00416590
test eax, eax
jne 0x4143aa
push 0x1c
call fcn.00414480
add esp, 4
call fcn.00416fa0
test eax, eax
jne 0x4143bd
push 0x10
call fcn.00414480
add esp, 4
mov dword [ebp - 4], 0
call fcn.00419420
call fcn.00414de0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x432d84], eax
call fcn.00419290
mov dword [0x4240b0], eax
test eax, eax
je 0x4143f0
cmp dword [0x432d84], 0
jne 0x4143fa
push 0xffffffffffffffff
call fcn.00413ca0
add esp, 4
call fcn.00419020
call fcn.00418f30
call fcn.00413c70
mov eax, dword [0x423e6c]
mov dword [0x423e70], eax
push eax
mov eax, dword [0x423e64]
push eax
mov eax, dword [0x423e60]
push eax
call fcn.00402830
add esp, 0xc
push eax
call fcn.00413ca0
jmp 0x414457
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
call fcn.004165d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4251d8], eax
cmp eax, 0xffffffff
jne 0x416fba
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.00417140
add esp, 8
mov esi, eax
test esi, esi
je 0x416ffc
push esi
mov eax, dword [0x4251d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x416ffc
push esi
call fcn.00417000
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4251d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x417083
push 0x74
push 1
call fcn.00417140
add esp, 8
mov edi, eax
test edi, edi
je 0x417079
push edi
mov eax, dword [0x4251d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x417079
push edi
call fcn.00417000
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x417083
push 0x10
call fcn.00414480
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x417090
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4251d8], 0xffffffff
push esi
je 0x41712f
mov esi, dword [esp + 8]
test esi, esi
jne 0x4170b8
mov eax, dword [0x4251d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x417121
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4170c8
push eax
call fcn.004137e0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4170d8
push eax
call fcn.004137e0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4170e8
push eax
call fcn.004137e0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4170f8
push eax
call fcn.004137e0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x417108
push eax
call fcn.004137e0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x417118
push eax
call fcn.004137e0
add esp, 4
push esi
call fcn.004137e0
add esp, 4
push 0
mov eax, dword [0x4251d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x419290
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x425290], ebx
jne 0x4192df
call esi
cmp eax, ebx
mov edi, eax
je 0x4192bd
mov dword [0x425290], 1
jmp 0x4192df
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4192d5
mov dword [0x425290], 2
jmp 0x4192df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x425290], 1
jne 0x41938e
test edi, edi
jne 0x419302
call esi
mov edi, eax
test edi, edi
jne 0x419302
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x41931c
add esi, 2
cmp word [esi], 0
jne 0x41930a
add esi, 2
cmp word [esi], 0
jne 0x41930a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x41937d
push ebp
call fcn.00413ba0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x41937d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41936c
push ebx
call fcn.004137e0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x425290], 2
jne 0x419412
test ebx, ebx
jne 0x4193b1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4193b1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4193c6
inc ebp
cmp byte [ebp], 0
jne 0x4193b8
inc ebp
cmp byte [ebp], 0
jne 0x4193b8
sub ebp, ebx
inc ebp
push ebp
call fcn.00413ba0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4193eb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x419640
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4252c0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x419667
add eax, 8
inc ecx
cmp eax, 0x425350
jb 0x419658
cmp dword [ecx*8 + 0x4252c0], edx
lea ebx, [ecx*8]
jne 0x41982b
cmp dword [0x4240bc], 1
je 0x4197e7
cmp dword [0x4240bc], 0
jne 0x41969e
cmp dword [0x4240c0], 1
je 0x4197e7
cmp edx, 0xfc
je 0x41982b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4196db
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x41971f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x41f918
push ebp
call fcn.00414150
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41f8f8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x4252c4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0041ce50
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x431c60], 0
je 0x4197fd
mov eax, dword [0x431c60]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x419807
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4252c4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub 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 ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x41c260
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x41c288
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x431c60
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x41c2c9
push 2
push 0
push edx
call fcn.0041c4e0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x41c365
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x41c39e
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x41c32c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x41c31a
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x41c301
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c394
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x41c2ec
jmp 0x41c39e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c394
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x41c39e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x41c44a
cmp dword [esp + 0x10], 0
je 0x41c3fa
cmp dword [esp + 0x10], 5
jne 0x41c3dd
call fcn.00414320
mov dword [eax], 9
call fcn.00414330
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004142a0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x41c424
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x41c424
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.00414320
mov dword [eax], 0x1c
call fcn.00414330
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x41e150
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x425e4c]
push esi
test eax, eax
push edi
push ebp
jne 0x41e198
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x41e178
mov eax, 1
jmp 0x41e19e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41e191
mov eax, 2
jmp 0x41e19e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [0x425e4c], eax
cmp eax, 1
jne 0x41e1c3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x425e4c], eax
cmp eax, 2
jne 0x41e251
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x41e1df
mov edi, dword [0x425370]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x41e200
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.00413ba0
add esp, 4
mov esi, eax
test esi, esi
jne 0x41e216
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41e246
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x41e256
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x41e26e
push esi
call fcn.004137e0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x41e246
push esi
call fcn.004137e0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41e280
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x425e50]
push esi
test eax, eax
push edi
push ebp
jne 0x41e2c8
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x41e2a8
mov eax, 2
jmp 0x41e2ce
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e2c1
mov eax, 1
jmp 0x41e2ce
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x425e50], eax
cmp eax, 2
jne 0x41e2f3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x425e50], eax
cmp eax, 1
jne 0x41e38f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x41e30f
mov edi, dword [0x425370]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x41e330
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.00413ba0
add esp, 4
mov esi, eax
test esi, esi
jne 0x41e34d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e384
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x41e394
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x41e3af
push esi
call fcn.004137e0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41e384
push esi
call fcn.004137e0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret