joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cdc0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x34
lea eax, [esp]
push ebx
push esi
push 0x32
push eax
push str.DD_ERRCODE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x40cde4
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 8]
test ecx, ecx
jne 0x40cdf5
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x34
ret
mov esi, 0x426b78
lea eax, [esp + 8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40ce26
test cl, cl
je 0x40ce22
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40ce26
add eax, 2
add esi, 2
test cl, cl
jne 0x40cdfe
xor eax, eax
jmp 0x40ce2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cf80
mov esi, 0x426b74
lea eax, [esp + 8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40ce64
test cl, cl
je 0x40ce60
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40ce64
add eax, 2
add esi, 2
test cl, cl
jne 0x40ce3c
xor eax, eax
jmp 0x40ce69
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cf80
mov esi, 0x426b70
lea eax, [esp + 8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40cea2
test cl, cl
je 0x40ce9e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40cea2
add eax, 2
add esi, 2
test cl, cl
jne 0x40ce7a
xor eax, eax
jmp 0x40cea7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cf75
mov esi, 0x426b6c
lea eax, [esp + 8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40cee0
test cl, cl
je 0x40cedc
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40cee0
add eax, 2
add esi, 2
test cl, cl
jne 0x40ceb8
xor eax, eax
jmp 0x40cee5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cf75
mov esi, str.soft
lea eax, [esp + 8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40cf1e
test cl, cl
je 0x40cf1a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40cf1e
add eax, 2
add esi, 2
test cl, cl
jne 0x40cef6
xor eax, eax
jmp 0x40cf23
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cf6a
mov esi, str.SOFT
lea eax, [esp + 8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40cf58
test cl, cl
je 0x40cf54
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40cf58
add eax, 2
add esi, 2
test cl, cl
jne 0x40cf30
xor eax, eax
jmp 0x40cf5d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cf6a
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x34
ret
mov eax, 2
pop esi
pop ebx
add esp, 0x34
ret
mov eax, 1
pop esi
pop ebx
add esp, 0x34
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x34
ret

Function at 0x40cf90
Capabilities:
Identify system language via api

Disassembly:
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xff
cmp ax, 0xc
jne 0x40cfa9
mov esi, 1
cmp ax, 7
jne 0x40cfb4
mov esi, 2
cmp ax, 0xa
jne 0x40cfbf
mov esi, 3
mov eax, esi
pop esi
ret
Function at 0x419e00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421108
push 0x41c6a8
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 [0x42a6ac], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x42a6a8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x42a6a4], ecx
shr eax, 0x10
mov dword [0x42a6a0], eax
call fcn.0041a1b0
test eax, eax
jne 0x419e6a
push 0x1c
call fcn.00419fb0
add esp, 4
call fcn.0041c4b0
test eax, eax
jne 0x419e7d
push 0x10
call fcn.00419fb0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0041c2a0
call fcn.0041c290
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42bcf4], eax
call fcn.0041be30
mov dword [0x42a620], eax
test eax, eax
je 0x419eb0
mov eax, dword [0x42bcf4]
test eax, eax
jne 0x419eba
push 0xffffffffffffffff
call fcn.0041b6a0
add esp, 4
call fcn.0041bb80
call fcn.0041ba90
call fcn.0041b670
mov esi, dword [0x42bcf4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x419f99
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x419f01
test al, al
je 0x419f01
and eax, 0xff
push eax
call fcn.0041ba30
add esp, 4
test eax, eax
je 0x419edb
inc esi
mov dword [ebp - 0x64], esi
jmp 0x419edb
cmp byte [esi], 0x22
jne 0x419f0a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x419f1a
cmp al, 0x20
ja 0x419f1a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x419f0a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x419f3b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x419f40
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.0041b6a0
jmp 0x419f7e
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 0x419f0a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x419f99

Function at 0x41b6e0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0041b7a0
mov eax, dword [0x42a6dc]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x41b704
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 [0x42a6d8], 1
mov byte [0x42a6d4], bl
jne 0x41b75e
mov ecx, dword [0x42bce8]
test ecx, ecx
je 0x41b74c
mov esi, dword [0x42bce4]
sub esi, 4
cmp esi, ecx
jb 0x41b74c
mov eax, dword [esi]
test eax, eax
je 0x41b745
call eax
mov ecx, dword [0x42bce8]
sub esi, 4
cmp esi, ecx
jae 0x41b737
push 0x42201c
push 0x422014
call fcn.0041b7c0
add esp, 8
push 0x422024
push 0x422020
call fcn.0041b7c0
add esp, 8
test ebx, ebx
je 0x41b77d
call fcn.0041b7b0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x42a6dc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41be30
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x42a7e8]
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 0x41be72
call edi
mov esi, eax
test esi, esi
je 0x41be5c
mov eax, 1
jmp 0x41be6d
call ebp
mov ebx, eax
test ebx, ebx
je 0x41bf7f
mov eax, 2
mov dword [0x42a7e8], eax
cmp eax, 1
jne 0x41bf12
test esi, esi
jne 0x41be8b
call edi
mov esi, eax
test esi, esi
je 0x41bf7f
cmp word [esi], 0
mov eax, esi
je 0x41bea5
add eax, 2
cmp word [eax], 0
jne 0x41be93
add eax, 2
cmp word [eax], 0
jne 0x41be93
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 0x41bf04
push edi
call fcn.00419850
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41bf04
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 0x41bef6
push ebx
call fcn.004197e0
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 0x41bf7f
test ebx, ebx
jne 0x41bf23
call ebp
mov ebx, eax
test ebx, ebx
je 0x41bf7f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x41bf3b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41bf2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41bf2b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00419850
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41bf5d
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 0x41c4b0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0041a000
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4290ac], eax
je 0x41c508
push 0x74
push 1
call fcn.0041d2c0
mov esi, eax
add esp, 8
test esi, esi
je 0x41c508
mov eax, dword [0x4290ac]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c508
push esi
call fcn.0041c510
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 0x41c530
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 [0x4290ac]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41c59e
push 0x74
push 1
call fcn.0041d2c0
mov esi, eax
add esp, 8
test esi, esi
je 0x41c594
mov ecx, dword [0x4290ac]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c594
push esi
call fcn.0041c510
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.00419fb0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x41c7c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4290c0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x41c7e4
add eax, 8
inc ebp
cmp eax, 0x429150
jb 0x41c7d5
cmp ecx, dword [ebp*8 + 0x4290c0]
jne 0x41c98b
mov eax, dword [0x42a628]
cmp eax, 1
je 0x41c94d
test eax, eax
jne 0x41c810
cmp dword [0x426bf4], 1
je 0x41c94d
cmp ecx, 0xfc
je 0x41c98b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c84b
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 0x41c894
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 0x421460
add ebx, ecx
push ebx
call fcn.0041d400
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, 0x421440
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 + 0x4290c4]
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.0041d370
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x42bbe0]
test eax, eax
je 0x41c95e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x41c968
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4290c4]
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 0x41cc00
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 0x41cc2c
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 + 0x42bbe0]
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 0x41cc67
push 2
push ebp
push ecx
call fcn.0041cb00
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x41cdc9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x41cd11
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x41ccc2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x41ccaf
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 0x41cc92
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 0x41cdba
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x41cd0d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x41cc8e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41cda9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41cd65
cmp eax, 5
jne 0x41cd4e
call fcn.0041d7a0
mov dword [eax], 9
call fcn.0041d7b0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0041d720
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 0x41cd85
cmp byte [ebp], 0x1a
jne 0x41cd85
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0041d7a0
mov dword [eax], 0x1c
call fcn.0041d7b0
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 0x41cd0d
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 0x41cdfa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x41cd11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x41cd11
Function at 0x41f200
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x42a9b0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x41f248
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x41f228
mov eax, 2
jmp 0x41f243
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f328
mov eax, 1
mov dword [0x42a9b0], eax
cmp eax, 2
jne 0x41f268
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 0x41f33a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41f283
mov ecx, dword [0x42a938]
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 0x41f2a2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00419850
mov esi, eax
add esp, 4
test esi, esi
jne 0x41f2b9
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 0x41f31f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x41f300
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 0x41f31f
push esi
call fcn.004197e0
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 0x41f32f
push esi
call fcn.004197e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004197e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x498f3298
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7bff5e79
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4f4370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4f438e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x51d074
push ecx
mov edi, eax
call fcn.00508198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f43cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0050802e
push esi
call fcn.00507fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4f7850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x4f78ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x522720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4f78ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005081e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x4f78ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x522720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4f792a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00509082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x4f7957
mov word [eax], si
add eax, 2
push eax
call fcn.00509030
add esp, 4
jmp 0x4f7959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x4f78ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x4f78b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x4f7ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret