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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x419110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push 0
push edi
call fcn.004044b0
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004044b0
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x401244
xor al, al
jmp 0x4012c6
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
lea ebx, [esi - 1]
push ebx
push edi
call fcn.004045ee
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40125f
sub eax, ecx
mov ecx, esi
sub ecx, eax
dec ecx
dec ecx
push ecx
push 0x41560c
push ebx
push edi
call fcn.0040452a
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401283
sub eax, ecx
mov ecx, esi
sub ecx, eax
dec ecx
dec ecx
push ecx
push str.bin_
push ebx
push edi
call fcn.0040452a
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4012a7
sub eax, ecx
sub esi, eax
dec esi
dec esi
push esi
push str.mylkx.dat
push ebx
push edi
call fcn.0040452a
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404499
leave
ret
Function at 0x4012d5
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
je 0x4013e0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4013e0
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
push 3
cdq
pop ebx
idiv ebx
sub edi, edx
test edi, edi
jle 0x401361
xor edx, edx
lea eax, [edi - 1]
div ebx
inc eax
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add esi, 3
dec eax
jne 0x40130a
mov eax, dword [ebp + 0x10]
sub eax, edi
pop edi
pop ebx
cmp eax, 1
jne 0x401393
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
jmp 0x4013d1
cmp eax, 2
jne 0x4013d6
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
and eax, 3
shl eax, 4
shr edx, 4
mov al, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, ecx
sub eax, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x4013e3
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401e33
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x419110]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x4148a6
call fcn.00404b55
mov ebx, dword [ebp + 0x12c]
xor edi, edi
push 0x104
lea eax, [ebp + 0x1c]
push edi
push eax
mov dword [ebp - 0x10], edi
call fcn.004044b0
add esp, 0xc
xor esi, esi
inc esi
push esi
push 0x23
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x401edb
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401c20
push str.kuwodataKWMUSIC
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.00401b8f
lea eax, [ebp]
push eax
call fcn.00401db5
pop ecx
test eax, eax
je 0x401ecd
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00401b3f
push edi
push esi
lea ecx, [ebp]
call fcn.004016f4
jmp 0x401f59
or dword [ebp - 4], 0xffffffff
push edi
push esi
lea ecx, [ebp]
call fcn.004016f4
push 0x415484
lea ecx, [ebp]
call fcn.00401c20
lea eax, [ebp]
push eax
mov dword [ebp - 4], esi
call fcn.00401db5
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
push esi
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
call fcn.004016f4
cmp dword [ebp - 0x10], edi
je 0x401f12
push 0x41549c
jmp 0x401f52
push 0x4154b4
lea ecx, [ebp - 0x2c]
call fcn.00401c20
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 2
call fcn.00401db5
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.004016f4
cmp dword [ebp - 0x10], edi
je 0x401f4d
push str.C:ProgramDatakuwodata
jmp 0x401f52
push 0x41527b
mov ecx, ebx
call fcn.00401c20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.00404499
add ebp, 0x124
leave
ret
Function at 0x401f7e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 1
mov byte [ebp - 1], 0
jb 0x401fa5
mov eax, dword [eax + 4]
jmp 0x401fa8
add eax, 4
lea ecx, [ebp + 0xc]
push ecx
push 0x20019
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40204f
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 0x10
lea ebx, [esi + 4]
jb 0x401fd4
mov eax, dword [ebx]
jmp 0x401fd6
mov eax, ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x402046
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.004040d0
cmp dword [esi + 0x18], 0x10
pop ecx
mov edi, eax
jb 0x402009
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
push edi
mov byte [edi + eax], 0
call fcn.00401bb2
push edi
call fcn.00404d55
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402046
mov al, 1
jmp 0x402051
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4020e5
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x419110]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 8
mov eax, 0x414913
call fcn.00404b55
mov eax, dword [ebp + 0x24c]
mov edi, dword [ebp + 0x250]
mov esi, dword [ebp + 0x254]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x258]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], ecx
je 0x402187
cmp dword [eax + 0x18], 0x10
jb 0x402139
mov eax, dword [eax + 4]
jmp 0x40213c
add eax, 4
cmp dword [esi + 0x18], 0x10
jb 0x402147
mov esi, dword [esi + 4]
jmp 0x40214a
add esi, 4
cmp dword [edi + 0x18], 0x10
jb 0x402155
mov edi, dword [edi + 4]
jmp 0x402158
add edi, 4
push eax
push 0x104
lea eax, [ebp + 0x38]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x402180
lea eax, [ebp + 0x38]
push eax
call fcn.00401c20
jmp 0x40226a
push 0x415299
jmp 0x402176
test byte [0x41a4fc], 1
mov ebx, 0x41a4e0
jne 0x4021bb
or dword [0x41a4fc], 1
push ecx
mov ecx, ebx
mov dword [0x41a4f8], 0xf
call fcn.0040166e
push 0x414d0d
call fcn.00404d3e
pop ecx
xor ecx, ecx
cmp dword [0x41a4f4], ecx
jne 0x402261
lea eax, [ebp]
push eax
call fcn.00401e33
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x402251
push str.Confuserconfig.ini
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00401c64
add esp, 0xc
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 1
jae 0x402200
lea eax, [ebp + 0x20]
cmp dword [esi + 0x18], 0x10
jb 0x40220b
mov esi, dword [esi + 4]
jmp 0x40220e
add esi, 4
cmp dword [edi + 0x18], 0x10
jb 0x402219
mov edi, dword [edi + 4]
jmp 0x40221c
add edi, 4
push eax
push 0x104
lea eax, [ebp + 0x13c]
push eax
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x402245
lea eax, [ebp + 0x13c]
push eax
mov ecx, ebx
call fcn.00401bb2
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.004016f4
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp]
call fcn.004016f4
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00401b3f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00404499
add ebp, 0x244
leave
ret
Function at 0x4023e0
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x419110]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 4
mov eax, 0x414973
call fcn.00404b55
mov esi, dword [ebp + 0x12c]
xor edi, edi
push 0x104
lea eax, [ebp + 0x1c]
push edi
push eax
mov dword [ebp - 0x10], edi
call fcn.004044b0
add esp, 0xc
push 1
push dword [ebp + 0x130]
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x40246c
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401c20
push 0x41562c
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.00401b8f
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00401b3f
push edi
push 1
lea ecx, [ebp]
call fcn.004016f4
jmp 0x402478
push 0x41529a
mov ecx, esi
call fcn.00401c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.00404499
add ebp, 0x124
leave
ret

Function at 0x4026b8
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x13c
lea ebp, [esp - 4]
mov eax, dword [0x419110]
xor eax, ebp
mov dword [ebp + 0x13c], eax
push 8
mov eax, 0x414a2b
call fcn.00404b55
mov eax, dword [ebp + 0x148]
xor edi, edi
test byte [0x41a53c], 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov esi, 0x41a520
jne 0x40271c
or dword [0x41a53c], 1
push edi
mov ecx, esi
mov dword [0x41a538], 0xf
call fcn.0040166e
push 0x414cfe
call fcn.00404d3e
pop ecx
cmp dword [0x41a534], edi
jne 0x40279f
lea eax, [ebp]
push eax
call fcn.00401e33
pop ecx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x14], edi
je 0x402790
push 0x415448
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00401c64
add esp, 0xc
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 1
jae 0x40275b
lea eax, [ebp + 0x20]
push eax
push 0x104
lea eax, [ebp + 0x38]
push eax
push edi
push 0x415460
push 0x41546c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x402785
lea eax, [ebp + 0x38]
push eax
mov ecx, esi
call fcn.00401bb2
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.004016f4
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp]
call fcn.004016f4
mov ecx, dword [ebp - 0x10]
push esi
call fcn.00401b3f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x13c]
xor ecx, ebp
call fcn.00404499
add ebp, 0x140
leave
ret
Function at 0x403355
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004044b0
mov eax, dword [ebp + 8]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret
Function at 0x40346c
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x508]
sub esp, 0x588
mov eax, dword [0x419110]
xor eax, ebp
mov dword [ebp + 0x504], eax
mov eax, dword [ebp + 0x510]
push ebx
push esi
xor ebx, ebx
push 0x4157c8
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4034bf
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4034bf
lea ecx, [ebp - 0x6c]
push ecx
call eax
push edi
mov esi, 0x104
push esi
lea eax, [ebp + 0x2f5]
push ebx
push eax
mov byte [ebp + 0x2f4], bl
call fcn.004044b0
add esp, 0xc
push esi
lea eax, [ebp + 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0xe5]
push ebx
push eax
mov byte [ebp + 0xe4], bl
call fcn.004044b0
add esp, 0xc
push esi
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x2f4]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0xe4]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x2f4]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], eax
push esi
lea eax, [ebp + 0x1ed]
push ebx
push eax
mov byte [ebp + 0x1ec], bl
call fcn.004044b0
push dword [ebp - 0x74]
lea eax, [ebp + 0x1ec]
push dword [ebp - 0x60]
push str._sTasks_s.
push eax
call edi
push 0x13c
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.004044b0
add esp, 0x28
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
je 0x4035f4
push esi
lea eax, [ebp + 0x3fd]
push ebx
push eax
mov byte [ebp + 0x3fc], bl
call fcn.004044b0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x60]
lea eax, [ebp + 0x3fc]
push str._sTasks_s
push eax
call edi
add esp, 0x1c
push 0x80
lea eax, [ebp + 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp + 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40358c
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
mov eax, dword [ebp + eax*4 - 0x80]
mov dword [ebp - 0x60], eax
cmp eax, ebx
jne 0x403536
mov esi, dword [ebp - 0x6c]
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop edi
cmp eax, ebx
je 0x40362f
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40362f
push esi
call eax
mov ecx, dword [ebp + 0x504]
mov eax, dword [ebp - 0x64]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404499
add ebp, 0x508
leave
ret
Function at 0x404499
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419110]
jne 0x4044a3
repz ret
jmp fcn.00406de1

Function at 0x4104e0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407dee
and dword [ebp - 4], 0
cmp dword [0x41af18], 0
mov ebx, eax
jne 0x410591
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410642
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41737c
push edi
call esi
test eax, eax
je 0x410642
push eax
call fcn.00407d7c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41af18], eax
call esi
push eax
call fcn.00407d7c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41af1c], eax
call esi
push eax
call fcn.00407d7c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41af20], eax
call esi
push eax
call fcn.00407d7c
pop ecx
mov dword [0x41af28], eax
test eax, eax
je 0x410591
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407d7c
pop ecx
mov dword [0x41af24], eax
mov eax, dword [0x41af24]
cmp eax, ebx
je 0x4105e9
cmp dword [0x41af28], ebx
je 0x4105e9
push eax
call fcn.00407df7
push dword [0x41af28]
mov esi, eax
call fcn.00407df7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4105e9
test edi, edi
je 0x4105e9
call esi
test eax, eax
je 0x4105e0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4105e0
test byte [ebp - 0xc], 1
jne 0x4105e9
or dword [ebp + 0x10], 0x200000
jmp 0x410622
mov eax, dword [0x41af1c]
cmp eax, ebx
je 0x410622
push eax
call fcn.00407df7
pop ecx
test eax, eax
je 0x410622
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410622
mov eax, dword [0x41af20]
cmp eax, ebx
je 0x410622
push eax
call fcn.00407df7
pop ecx
test eax, eax
je 0x410622
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41af18]
call fcn.00407df7
pop ecx
test eax, eax
je 0x410642
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410644
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x402775
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4027b4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4027b4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4027b4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4027b4
cmp dword [ecx + 0x74], 0xe
jbe 0x4027b4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4070ea
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x490ebc
push str.FlsAlloc
push 0x1f
call fcn.00406f55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40711e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4904a8]
call esi
jmp 0x407124
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407168
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x490ee0
push str.FlsGetValue
push 0x21
call fcn.00406f55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40719f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4904a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4071a7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x490ef4
push str.FlsSetValue
push 0x22
call fcn.00406f55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4071e1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4904a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x408c17
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408cb4
push ebx
push esi
call fcn.00408be0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408b74
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408c61
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408cb3
push edi
push eax
call fcn.00405ea6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408c81
call fcn.00405e6c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408cb2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408b74
add esp, 0x20
test eax, eax
jne 0x408ca0
push edi
call fcn.00405e6c
jmp 0x408ca8
push ebx
call fcn.00405e6c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x408cb7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x408cc8
pop esi
ret
push ebx
push edi
push esi
call fcn.00408be0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00405ea6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x408cf0
push ebx
push esi
push edi
call fcn.00414790
add esp, 0xc
push 0
call fcn.00405e6c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40944d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00408f68

Function at 0x40c48a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00406925
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 0x40c4f9
cmp esi, dword [ebp - 4]
je 0x40c4f4
cmp dword [ebp + 0xc], 0
je 0x40c4f4
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40c4d1
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040bfdc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40c4fb
xor eax, eax
inc eax
jmp 0x40c4fb
xor eax, eax
pop edi
pop esi
leave
ret