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

Disassembly:
mov eax, 0x10070dd4
call fcn.100704a8
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop esi
push esi
lea ecx, [ebp - 0x34]
call fcn.1001a0d2
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0xb79f6a71
mov dword [ebp - 0x14], ebx
jmp 0x10012efe
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x50], 0x4ec2e0cf
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x10012ef0
mov dword [ebp - 0x14], ebx
jmp 0x10012f15
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x10012f08
mov esi, dword [ebp - 0x34]
xor edi, edi
inc edi
mov dword [esi + 0xc], 3
mov dword [ebp - 0x1c], 0xfffffffb
mov dword [ebp - 0x14], ebx
jmp 0x10012f41
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x40], 0x3a92bd42
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x10012f33
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x10012f57
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov eax, dword [esi + 0xc]
cmp dword [ebp + eax*4 - 0x50], 0xffffffff
je 0x10012f82
mov eax, dword [esi + 0xc]
mov ecx, 0x6d0374c7
mov eax, dword [ebp + eax*4 - 0x50]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp + eax*4 - 0x50]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
mov eax, ebx
cmp ecx, edx
jne 0x10012f84
mov eax, edi
dec dword [esi + 0xc]
mov dword [ebp - 0x38], eax
jns 0x10012f27
mov dword [ebp - 0x14], 0xfffffffa
jmp 0x10013007
mov dword [ebp - 0x1c], 0xffffffff
lea ecx, [ebp - 0x28]
push edi
call fcn.1001a0d2
mov dword [ebp - 0x18], ebx
jmp 0x10012fba
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov dword [eax + ecx*4], 0xf087
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x10012faa
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp eax, edx
mov eax, dword [ebp - 0x1c]
setg cl
xor edx, edx
cmp ecx, 2
setl dl
xor ecx, ecx
add edx, 0x3b16aac8
cmp eax, edx
setge cl
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
push eax
mov dword [eax], ecx
call fcn.10059948
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
dec dword [ebp - 0x14]
pop ecx
cmp dword [ebp - 0x14], 0xffffffe6
je 0x10012f95
push dword [ebp - 0x34]
call fcn.10059948
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10022cc6
Capabilities:
Delete file

Disassembly:
mov eax, 0x10071491
call fcn.100704a8
sub esp, 0x14
push ebx
push esi
mov dword [ebp - 0x1c], 0x67b9
cmp dword [ebp - 0x1c], 0x68aa
push edi
mov dword [ebp - 0x10], esp
jle 0x10022d3d
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], 0x7294
mov eax, esi
mov ecx, 0x10663c78
and eax, edi
cdq
push edx
push eax
call fcn.10019e8d
add esi, ebx
dec dword [ebp - 0x14]
jne 0x10022cfc
mov esi, dword [ebp - 0x18]
inc ebx
cmp ebx, 0x1de6
jl 0x10022cf2
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x6672
jl 0x10022cf0
inc edi
cmp edi, 0x3f78
jl 0x10022ceb
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x6730
jge 0x10022d59
mov edx, 0x10007c94
mov ecx, 0x10663c78
call fcn.1001ead8
fldz
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100331bc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100331eb
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0
call fcn.10036463
add esp, 0xc
jmp 0x100332d6
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x10033228
push 0
push 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x100332d6
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, 0xc3fbb4eb
test eax, eax
je 0x10033282
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x10033282
mov dword [ebp - 0x10], 1
jmp 0x10033286
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx]
cmp dword [ebp - 0x10], eax
je 0x100332a4
mov dword [ebp - 8], 1
jmp 0x100332a8
and dword [ebp - 8], 0
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.1001a1d1
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp dword [ebp - 8], eax
jge 0x100332ca
mov dword [ebp - 0x14], 1
jmp 0x100332ce
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10037a4b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10037aaa
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x10037a9e
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10037a9c
push 0x1c6a
push 0x168e
push 0
push 0x1df9
call dword [sym.imp.USER32.dll_DrawFrameControl]
jmp 0x10037aa8
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x10037abe
push 0x2f6c
push 0x278
push 0
call fcn.10037d08
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10043a29
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10043ac7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10043a7d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10043a7b
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10043ac5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10043aab
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x10043ac5
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.1001a1d1
and dword [eax], 0
jmp 0x10043aa0
jmp 0x10043acf
push 1
call fcn.10027cbb
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x10043dab
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10043df3
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10043de2
push 0x1d93
push 0x2049
push 0x79
push 0x1d1d
call dword [sym.imp.GDI32.dll_CreateRectRgn]
jmp 0x10043df1
push 0x24cb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x10043e46
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10043e3e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.1005a576
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [ecx + 8], eax
jmp 0x10043e46
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x1004c42d
Capabilities:
Compare security identifiers

Disassembly:
cmp byte [ecx], 0
je 0x1004c43c
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
ret
Function at 0x1006c155
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10077750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005d6a8
mov dword [ebp - 0x14], eax
cmp dword [0x10664da8], esi
jne 0x1006c248
push 0x800
push esi
push 0x100076a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006c1d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006c328
push esi
push esi
push 0x100076a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006c328
push 0x100076bc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006c328
push eax
call ebx
push 0x100076c8
push edi
mov dword [0x10664da8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076d8
push edi
mov dword [0x10664dac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076ec
push edi
mov dword [0x10664db0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10664db8], eax
test eax, eax
je 0x1006c245
push 0x10007708
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10664db4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006c26d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006c260
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006c282
push 4
pop eax
jmp 0x1006c32a
cmp dword [ebp - 0x14], esi
je 0x1006c282
push dword [0x10664da8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006c267
mov eax, dword [0x10664db4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006c2e0
cmp dword [0x10664db8], edi
je 0x1006c2e0
push eax
call ebx
push dword [0x10664db8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006c2e0
test eax, eax
je 0x1006c2e0
call ecx
test eax, eax
je 0x1006c2d5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006c2d5
test byte [ebp - 8], 1
jne 0x1006c2e0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006c310
mov eax, dword [0x10664dac]
cmp eax, edi
je 0x1006c30d
push eax
call ebx
test eax, eax
je 0x1006c30d
call eax
mov esi, eax
test esi, esi
je 0x1006c30d
mov eax, dword [0x10664db0]
cmp eax, edi
je 0x1006c30d
push eax
call ebx
test eax, eax
je 0x1006c30d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10664da8]
call ebx
test eax, eax
je 0x1006c328
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006c32a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ae8f
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x402c00
pop dword [ebp - 0x44]
mov eax, 0x402c00
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x4b740289
sub dword [ebp - 0x54], 0xfd21bd3e
mov dword [ebp - 0x50], 0x6568764b
sub dword [ebp - 0x50], 0x33352a06
mov dword [ebp - 0x4c], 0x3daf3798
add dword [ebp - 0x4c], 0xe9d0c96
mov dword [ebp - 0x48], 0x66d09ec1
sub dword [ebp - 0x48], 0x66d09ec1
lea eax, [ebp - 0x54]
push eax
mov eax, 0x699b3f06
sub eax, 0x695acea2
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x6af68a42
sub dword [ebp - 0x54], 0xf68420ec
mov dword [ebp - 0x50], 0x60333969
sub dword [ebp - 0x50], 0x1ec6d7f4
mov dword [ebp - 0x4c], 0x6e3b1941
add dword [ebp - 0x4c], 0xf534532b
mov dword [ebp - 0x48], 0xe7724329
add dword [ebp - 0x48], 0x188dbcd7
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x34c7a
push 0
call eax
mov ecx, 0x405d
mov edi, eax
mov esi, 0x371232dd
sub esi, 0x36d132dd
add esi, dword [ebp - 0x44]
mov ebx, 0xc4963b3e
add dword [ebp - 0x24], edi
mov edx, dword [esi]
xor edx, ebx
sub dword [ebp - 4], 0xcce0f7cd
mov dword [edi], edx
mov dword [ebp - 0x24], 0x13e2d555
add edi, 4
add esi, 0xeedbb29c
sub esi, 0xeedbb298
loop 0x402d0c
add eax, 0xd94b99ef
add eax, 0x26b55a58
mov ebx, eax
add eax, 5
mov ecx, 0xfea0a14a
sub ecx, 0xfe60a14a
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x406034
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [ebp - 0x37c], 0
je 0x40603f
jmp 0x406044
jmp 0x405940

Function at 0x406248
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406271
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406265
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40631c
cmp dword [0x461530], ebx
je 0x40631c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a560], bx
je 0x4062e8
cmp dword [0x40b058], 0xffffffff
jne 0x4062f1
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb0
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40631a
cmp dword [ebp + 8], 0xffffffff
jne 0x4062dd
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40631a
push 0x4096a8
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

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 0x404548
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.0040686c
test esi, esi
jne 0x404580
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.004069a8
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fc050], 0
je 0x405e69
cmp word [0x4fc32c], 0xd7b2
jne 0x405e31
cmp dword [0x4fc334], 0
jbe 0x405e31
mov eax, 0x4fc328
call dword [0x4fc344]
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 0x405e94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f8030], 0
jne 0x405e85
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405ff4
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 [0x4f8034], 0
je 0x40601a
mov edx, esi
mov eax, ebx
call dword [0x4f8034]
jmp 0x406029
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4fc051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fbc
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 0x408610
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 0x408777
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040686c
cmp si, word [0x4f87d0]
jb 0x4086aa
cmp si, word [0x4f89d0]
ja 0x4086aa
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4086aa
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4f87d0]
jae 0x408684
mov edi, ebx
dec edi
jmp 0x4086a5
cmp si, word [ebx*8 + 0x4f87d0]
jbe 0x408694
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4086a5
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4f87d4]
call fcn.00408520
jmp 0x4086aa
cmp edi, dword [ebp - 0xc]
jae 0x40866e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408759
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408759
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.00406a54
push dword [ebp - 0x164]
push 0x408794
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a54
push dword [ebp - 0x168]
push 0x4087a4
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a54
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40877e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406864
ret
Function at 0x4087a8
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 0x40898e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4feb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4feb70]
cmp ax, word [ebp - 2]
jne 0x408800
mov eax, dword [ebp - 6]
mov edx, 0x4feb74
mov ecx, 0x55
call fcn.00406a54
push 0x4feb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408978
push 0x4feb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0040686c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408940
cmp byte [0x4feb54], 0
je 0x4088f6
call dword [0x4feb4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4feb50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4088ef
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 [0x4feb48]
test al, al
je 0x4088c8
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
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 [0x4feb48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4088bd
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4088b9
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4088a6
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406a18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408940
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4feb50]
cmp dword [ebp - 0x10], 0
je 0x4088ee
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408610
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408940
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408925
mov eax, dword [ebp - 6]
mov edx, 0x4089a8
call fcn.00406c68
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408610
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406c68
mov eax, dword [ebp - 6]
push 0x4feb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4feb70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004068f8
push eax
push 0x4feb74
call sub.kernel32.dll_lstrcpynW
push 0x4feb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408995
lea eax, [ebp - 0x1c]
call fcn.0040685c
ret