joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4534a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4534d3
push esi
call fcn.00461720
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4534cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x453559
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x453542
mov eax, dword [esi + 8]
test eax, eax
je 0x4534f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45353e
cmp eax, 2
je 0x453542
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4534ea
cmp eax, 3
je 0x45351d
cmp eax, 1
jne 0x4534ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4534ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4534ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00453580
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x453568
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00453580
add esp, 4
pop esi
ret

Function at 0x453e00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x453e21
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x453e21
mov eax, dword [eax + 0x44]
test eax, eax
je 0x453e21
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x48ef45
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48ef7d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048cffc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048cfd4
jmp 0x48ef89
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49063c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49067e
call fcn.004960ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49067e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x490675
xor eax, eax
jmp 0x490686
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049068c
pop edi
pop esi
pop ebx
ret 4
Function at 0x49661f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49664d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49666b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00496585
jmp 0x49666b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49666b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00496585
test edi, edi
mov eax, edi
jne 0x496655
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405ec3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ee7
xor eax, eax
test eax, eax
je 0x405ef9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ef9
xor ecx, ecx
jmp 0x405efc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x405f9c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c654], 0
push esi
jne 0x405fd3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fad
mov dword [ecx*4 + 0x42c650], eax
inc ecx
cmp ecx, 0x100
jl 0x405fa8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406004
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c650]
xor eax, esi
inc ecx
dec edx
jne 0x405fe6
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000efb3
Capabilities:
Parse pe header

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

Function at 0x10017700
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4048bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004076c4
test esi, esi
jne 0x4048f4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407800
jmp 0x404912
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047a0
mov edi, eax
test esi, esi
je 0x404912
cmp dword [ebx], 0
je 0x404912
dec esi
jmp 0x4048fb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4066e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x536054], 0
je 0x406745
cmp word [0x536330], 0xd7b2
jne 0x40670d
cmp dword [0x536338], 0
jbe 0x40670d
mov eax, 0x53632c
call dword [0x536348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x406770
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x530030], 0
jne 0x406761
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4068f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x530038], 0
je 0x406916
mov edx, esi
mov eax, ebx
call dword [0x530038]
jmp 0x406925
mov eax, 8
call fcn.00404478
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x536055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4068b8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x409508
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40966f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004076c4
cmp si, word [0x5307d4]
jb 0x4095a2
cmp si, word [0x5309d4]
ja 0x4095a2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4095a2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5307d4]
jae 0x40957c
mov edi, ebx
dec edi
jmp 0x40959d
cmp si, word [ebx*8 + 0x5307d4]
jbe 0x40958c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40959d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5307d8]
call fcn.00409418
jmp 0x4095a2
cmp edi, dword [ebp - 0xc]
jae 0x409566
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409651
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409651
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004078bc
push dword [ebp - 0x164]
push 0x40968c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004078bc
push dword [ebp - 0x168]
push 0x40969c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004078bc
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407c74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409676
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004076bc
ret
Function at 0x4096a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x409886
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x538b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x538b74]
cmp ax, word [ebp - 2]
jne 0x4096f8
mov eax, dword [ebp - 6]
mov edx, 0x538b78
mov ecx, 0x55
call fcn.004078bc
push 0x538b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409870
push 0x538b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004076c4
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409838
cmp byte [0x538b58], 0
je 0x4097ee
call dword [0x538b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x538b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4097e7
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x538b4c]
test al, al
je 0x4097c0
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404478
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x538b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4097b5
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4097b1
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x40979e
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00407880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409838
movzx eax, word [ebp - 0x16]
push eax
call dword [0x538b54]
cmp dword [ebp - 0x10], 0
je 0x4097e6
mov eax, dword [ebp - 0x10]
call fcn.00404494
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00409508
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409838
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x40981d
mov eax, dword [ebp - 6]
mov edx, 0x4098a0
call fcn.00407ad0
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00409508
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407ad0
mov eax, dword [ebp - 6]
push 0x538b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x538b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00407750
push eax
push 0x538b78
call sub.kernel32.dll_lstrcpynW
push 0x538b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40988d
lea eax, [ebp - 0x1c]
call fcn.004076b4
ret
Function at 0x409ac4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004076ac
xor eax, eax
push ebp
push 0x409ca9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409b04
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409b1e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407750
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409c93
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409bad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cb8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409bad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409bad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409c93
xor eax, eax
push ebp
push 0x409c8c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004098c8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409c1c
mov eax, dword [ebp - 0x10]
call fcn.00404478
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407880
jmp 0x409c67
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409d60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409c67
mov eax, dword [ebp - 0x10]
call fcn.00404478
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409d60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c93
cmp dword [ebp - 8], 0
je 0x409c82
mov eax, dword [ebp - 8]
call fcn.00404494
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cb0
lea eax, [ebp - 4]
call fcn.004076b4
ret
Function at 0x409f74
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004076ac
mov eax, dword [ebp - 0x21c]
call fcn.004076ac
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a113
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004076c4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407750
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x40a014
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a026
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a011
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a0df
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40a04f
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409ac4
cmp dword [ebp - 0x220], 0
je 0x40a087
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409e68
pop ecx
mov ebx, eax
jmp 0x40a0df
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004096a0
mov eax, dword [ebp - 0x224]
call fcn.00409e68
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a0d2
cmp byte [0x538b58], 0
jne 0x40a0d2
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004096a0
mov eax, dword [ebp - 0x228]
call fcn.00409e68
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a0df
push ebp
call fcn.00409f18
pop ecx
mov ebx, eax
test bl, bl
je 0x40a0f5
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004078bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a11a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004076bc
ret

Function at 0x40a874
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40d8a4
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
cmp byte [0x53ae8c], 0
jne 0x40db02
call sub.kernel32.dll_GetCurrentProcessId
mov ebx, eax
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, cl
and edx, 0xf
movzx edx, byte [edx + str.0123456789ABCDEFd]
mov ecx, 0x18
sub ecx, eax
mov byte [ecx + str.LocalFastMM_PID_________], dl
mov ecx, 8
sub ecx, eax
mov byte [ecx + 0x531147], dl
mov byte [ecx + 0x53115b], dl
inc eax
cmp eax, 8
jne 0x40d8bd
push str._________PID_FastMM
push 0x40db08
call sub.user32.dll_FindWindowA
mov dword [0x53ae80], eax
push str._________PID_FastMM_BE
push 0x40db08
call sub.user32.dll_FindWindowA
mov dword [0x53ae84], eax
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x53ae88], eax
mov eax, dword [0x53ae80]
or eax, dword [0x53ae84]
or eax, dword [0x53ae88]
jne 0x40da59
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x538c40]
push eax
push 0
mov edx, str._________PID_FastMM
mov eax, 0x40db08
mov ecx, 0x80000000
call fcn.0040c704
mov dword [0x53ae80], eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x538c40]
push eax
push 0
mov edx, str._________PID_FastMM_BE
mov eax, 0x40db08
mov ecx, 0x80000000
call fcn.0040c704
mov dword [0x53ae84], eax
cmp dword [0x53ae80], 0
je 0x40d9be
push 0x53ae68
push 0xffffffffffffffeb
mov eax, dword [0x53ae80]
push eax
call sub.user32.dll_SetWindowLongA
cmp dword [0x53ae84], 0
je 0x40d9d9
push 0x53ae68
push 0xffffffffffffffeb
mov eax, dword [0x53ae84]
push eax
call sub.user32.dll_SetWindowLongA
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x53ae88], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x53ae88]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x53ae68
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x53ae68], 0x40cfa0
mov dword [0x53ae6c], 0x40d29c
mov dword [0x53ae70], 0x40d438
mov dword [0x53ae74], 0x40d6c8
mov dword [0x53ae78], 0x40d6fc
mov dword [0x53ae7c], 0x40d700
mov byte [0x53ae8d], 1
jmp 0x40dae7
cmp dword [0x53ae88], 0
je 0x40da8d
push 0
push 0
push 0
push 4
mov eax, dword [0x53ae88]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [eax]
mov esi, edx
mov edi, 0x53ae68
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
jmp 0x40dace
cmp dword [0x53ae80], 0
je 0x40dab3
push 0xffffffffffffffeb
mov eax, dword [0x53ae80]
push eax
call sub.user32.dll_GetWindowLongW
mov esi, eax
mov edi, 0x53ae68
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
jmp 0x40dace
push 0xffffffffffffffeb
mov eax, dword [0x53ae84]
push eax
call sub.user32.dll_GetWindowLongW
mov esi, eax
mov edi, 0x53ae68
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x53ae88]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x53ae88], eax
mov byte [0x53ae8d], 0
mov eax, 0x53ae50
call fcn.004044fc
mov eax, 0x53ae68
call fcn.00404510
mov byte [0x53ae8c], 1
pop edi
pop esi
pop ebx
ret
Function at 0x40e860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x53ae98
push 0xa
push 0x40e8f4
mov eax, dword [0x538c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40e884
call fcn.0041a33c
push ebx
mov eax, dword [0x538c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40e89b
call fcn.0041a33c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40e8ad
call fcn.0041a33c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x53ae9c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x53aea0], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x53aea4], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x53aea8], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x53aeac], ecx
add edx, dword [eax + 0x14]
mov dword [0x53aeb0], edx
pop esi
pop ebx
ret

Function at 0x412394
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41243d
test eax, edx
je 0x412440
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4123bd
push edx
mov edx, eax
mov eax, esp
call fcn.004078d8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4123d3
push eax
lea eax, [esp + 8]
call fcn.004078d8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4123e2
movzx eax, word [eax]
sub eax, ecx
jmp 0x412409
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x412423
add ecx, 4
js 0x4123fa
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412420
push eax
mov eax, ecx
mov edx, 2
call fcn.00406990
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x412407
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412409
xor eax, eax
ret
test eax, eax
je 0x412450
test edx, edx
jne 0x4123a4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x413710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407750
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41372e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41374f
cmp ebx, 3
je 0x41374f
cmp ebx, 0x7b
je 0x41374f
mov eax, esi
call fcn.004136d0
test al, al
jne 0x413753
xor eax, eax
jmp 0x413755
mov al, 1
pop esi
pop ebx
ret

Function at 0x413758
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407750
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413771
test al, 0x10
jne 0x413775
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret