joyce8/EMBER2024-capa huggingface dataset:
Function at 0x872250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x886808
push 0x876288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x872329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x872329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.008751d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x872329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x872329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x87232c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00872351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x872d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x872d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x872d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x872d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x872d94
push eax
push esi
call fcn.0087520b
add esp, 8
pop esi
ret 0x10

Function at 0x872da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x872e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x872e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x88b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00874dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x872dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x872e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x872ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x872eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x88b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00874dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x872eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x872e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x873000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x873131
push esi
call fcn.00876145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00865080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x873131
push 0
push ebp
call fcn.008653a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00865260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x87308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008652f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x873121
push 0x88b918
push edi
call fcn.008743f0
push eax
push ebx
push esi
call fcn.00872f60
push 0x88b8f8
push edi
call fcn.008743f0
push eax
push ebx
push esi
call fcn.00872f60
push 0x88b8d8
push edi
call fcn.008743f0
push eax
push ebx
push esi
call fcn.00872f60
push 0x88b8c0
push edi
call fcn.008743f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00872f60
push 0x88b8a0
push edi
call fcn.008743f0
push eax
push ebx
push esi
call fcn.00872f60
push 0x88b888
push edi
call fcn.008743f0
push eax
push ebx
push esi
call fcn.00872f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8741b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00874140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00874140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00874140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00874140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x874bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x874c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x88687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x874c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x874c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x405a10
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
push 0x90
mov dword [esp + 0x10], 0
call fcn.0041697c
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
jne 0x405a49
push str.not_allocate_memory_to_call_GetAdaptersAddresses_n
call fcn.00402480
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x18
ret
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x90
push eax
push edi
push 0
push 0
push 0
call sub.iphlpapi.dll_GetAdaptersAddresses
mov esi, eax
test esi, esi
je 0x405ac9
cmp esi, 0x6f
je 0x405a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.GetAdaptersAddresses_failed:__d__errno:__d_n
call fcn.00402480
push edi
call fcn.00416cce
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push edi
call fcn.00416cce
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041697c
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x405ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.not_to_allocate_memory_to_call_GetAdaptersAddresses__errno:__d_n
call fcn.00402480
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
push edi
push 0
and eax, 0xffff
push 2
push eax
call sub.iphlpapi.dll_GetAdaptersAddresses
mov esi, eax
test esi, esi
jne 0x405b86
test edi, edi
mov ebx, edi
je 0x405bde
push ebp
mov ebp, dword [esp + 0x34]
cmp dword [ebx + 0x44], 1
je 0x405b06
mov ebx, dword [ebx + 8]
jmp 0x405b7b
cmp dword [ebx + 0x40], 0x18
jne 0x405b11
mov ebx, dword [ebx + 8]
jmp 0x405b7b
mov eax, dword [esp + 0x30]
mov edi, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x10]
test eax, eax
jne 0x405b48
test esi, esi
je 0x405b74
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
mov edx, dword [esi + 0x10]
push ebp
push eax
mov dword [esp + 0x24], edx
call fcn.00405870
mov esi, dword [esi + 8]
add esp, 8
test esi, esi
jne 0x405b23
jmp 0x405b74
cmp eax, 1
jne 0x405b74
test edi, edi
je 0x405b74
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov edx, dword [edi + 0x10]
push ebp
push eax
mov dword [esp + 0x2c], edx
call fcn.00405870
mov edi, dword [edi + 8]
add esp, 8
test edi, edi
jne 0x405b51
mov ebx, dword [ebx + 8]
mov edi, dword [esp + 0x14]
test ebx, ebx
jne 0x405afb
pop ebp
jmp 0x405bd1
push esi
push str.GetAdaptersAddresses_failed__errno:__d_n
call fcn.00402480
add esp, 8
lea ecx, [esp + 0x28]
push 0
push 0
push ecx
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x405bc6
mov edx, dword [esp + 0x28]
push edx
push str.err_detail:__s_n
call fcn.00402480
add esp, 8
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x405bde
push edi
call fcn.00416cce
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x4070b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4304c0]
mov dword [esp], str.getaddrinfo
test eax, eax
mov dword [esp + 4], 0x406770
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x406e70
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x406720
je 0x40710b
mov eax, dword [esp + 0x230]
and eax, 0xffff
mov eax, dword [eax*8 + 0x42b5c4]
add esp, 0x22c
ret 4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x134]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x407254
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
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
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4071ac
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x407224
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x407254
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x407224
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x407254
xor ebx, ebx
lea edi, [esp + 0x14]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebp
test eax, eax
mov dword [edi], eax
je 0x40721b
inc ebx
add edi, 8
cmp ebx, 3
jl 0x40722a
xor eax, eax
mov edx, dword [esp + eax + 0x14]
mov dword [eax + 0x42b5c4], edx
add eax, 8
cmp eax, 0x18
jl 0x407242
mov eax, dword [esp + 0x240]
pop edi
and eax, 0xffff
pop esi
pop ebp
mov dword [0x4304c0], 1
mov eax, dword [eax*8 + 0x42b5c4]
pop ebx
add esp, 0x22c
ret 4
Function at 0x416220
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esi]
test eax, eax
je fcn.00416220
call eax
sub esi, 4
cmp esi, dword [0x43117c]
jae 0x416218
pop esi
push 0x42b0c4
push 0x42b0bc
call fcn.00416265
pop ecx
pop ecx
push 0x42b0d0
push 0x42b0c8
call fcn.00416265
pop ecx
pop ecx
test ebx, ebx
pop ebx
jne 0x416263
push dword [esp + 8]
mov dword [0x430ab4], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
inc edx
invalid
pop edi
ret

Function at 0x418954
Capabilities:
Write file on windows

Disassembly:
adc al, 4
add byte [eax], al
mov ecx, dword [ebp + 8]
push ebx
cmp ecx, dword [0x431140]
push esi
push edi
jae 0x418ae3
mov eax, ecx
mov esi, ecx
sar eax, 5
and esi, 0x1f
lea ebx, [eax*4 + 0x431040]
shl esi, 3
mov eax, dword [ebx]
mov al, byte [eax + esi + 4]
test al, 1
je 0x418ae3
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x4189a0
xor eax, eax
jmp 0x418af7
test al, 0x20
je 0x4189b0
push 2
push edi
push ecx
call fcn.00418da0
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x418a7f
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x418ab7
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x418a0a
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x4189f5
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
mov ecx, eax
lea edx, [ebp - 0x414]
sub ecx, edx
cmp ecx, 0x400
jl 0x4189d6
mov edi, eax
lea eax, [ebp - 0x414]
sub edi, eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418a74
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x418a46
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x4189d0
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x418ade
cmp dword [ebp + 8], edi
je 0x418ab7
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x418aac
mov dword [0x430a6c], 9
mov dword [0x430a70], eax
jmp 0x418af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x418a46
lea ecx, [ebp - 0xc]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418aa1
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x418a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x418a48
push dword [ebp + 8]
call fcn.0041dda4
pop ecx
jmp 0x418af4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x418acc
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x418999
mov dword [0x430a6c], 0x1c
mov dword [0x430a70], edi
jmp 0x418af4
sub eax, dword [ebp - 0x10]
jmp 0x418af7
and dword [0x430a70], 0
mov dword [0x430a6c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4191fd
Capabilities:
Packed with generic packer

Disassembly:
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp dword [eax], 0xe06d7363
jne 0x41921f
cmp dword [eax + 0x10], 3
jne 0x41921f
cmp dword [eax + 0x14], 0x19930520
jne 0x41921f
jmp fcn.00418764
mov eax, dword [0x430afc]
test eax, eax
je 0x41923c
push eax
call fcn.0041dd75
test eax, eax
pop ecx
je 0x41923c
push esi
call dword [0x430afc]
jmp 0x41923e
xor eax, eax
pop esi
ret 4
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1b2664db
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x537c6cbe
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x21552eac
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x21552ee8
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x21552f08
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.21554b00
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x21553140
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.21554890
test esi, esi
jne 0x21553176
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.21554980
jmp 0x21553194
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.21553044
mov edi, eax
test esi, esi
je 0x21553194
cmp dword [ebx], 0
je 0x21553194
dec esi
jmp 0x2155317d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x21553884
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x215c0020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x2155391c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x215538fc
xor eax, eax
push ebp
push 0x215538f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x21553938
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x215538fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x215c0020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x215c0020], ax
mov esp, ebp
pop ebp
ret

Function at 0x21554710
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x215c3048], 0
je 0x21554771
cmp word [0x215c321c], 0xd7b2
jne 0x21554739
cmp dword [0x215c3224], 0
jbe 0x21554739
mov eax, 0x215c3218
call dword [0x215c3234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x21554798
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x215c002c], 0
jne 0x2155478d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x21555d3c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x21555f6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x21555dbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x21555f6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x21555dbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x21555f88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x21555e48
xor eax, eax
push ebp
push 0x21555e41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.21555b78
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x21555e26
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x21555fa8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x21555e26
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x21555e48
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x21555f62
cmp byte [ebp - 0xd], 0
jne 0x21555e8f
cmp byte [ebp - 0x12], 0
je 0x21555f62
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x21555ea8
dec ebx
cmp byte [ebx], 0x2e
je 0x21555eb7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x21555ea7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x21555f62
inc ebx
cmp byte [ebp - 0x12], 0
je 0x21555ef4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x21555f62
cmp byte [ebp - 0xd], 0
je 0x21555f62
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x21555f62
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret