joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423e49
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423dc5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423fc1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423fc1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x423f70
jg 0x423ea2
test eax, eax
je 0x423f66
push 1
push 0x1000
call fcn.00417eee
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423ec8
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x423f5d
push 0x8000
push ebx
call fcn.00417afb
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423ef4
jg 0x423eef
cmp ecx, 0x1000
jb 0x423ef4
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041fde3
add esp, 0x10
cmp eax, 0xffffffff
je 0x423f39
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x423eef
jl 0x423f20
test ecx, ecx
jne 0x423ee1
push dword [ebp - 0xc]
push ebx
call fcn.00417afb
push esi
call fcn.00417e22
add esp, 0xc
xor edi, edi
jmp 0x423fd2
cmp byte [edi + 0x24], 0
je 0x423f50
cmp dword [edi + 0x20], 5
jne 0x423f50
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423f5b
mov edi, dword [edi + 0x18]
jmp 0x423f5d
xor edi, edi
push esi
call fcn.00417e22
pop ecx
jmp 0x423fd2
test ecx, ecx
jg 0x423f32
jl 0x423f70
test eax, eax
jae 0x423f32
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004233ee
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x423f93
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x423f32
jmp 0x423fca
push ebx
call fcn.0041e0c4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x423f32
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x423fd2
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x423fcf
mov edi, dword [edi + 0x18]
jmp 0x423fd2
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004233ee
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0xaf6550
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x836015
lea edi, [esi - 0x435015]
mov dword [edi + 0x6e7b10], 0x56b0413a
push edi
or ebp, 0xffffffff
jmp 0xaf657a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xaf6581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaf6570
mov eax, 1
add ebx, ebx
jne 0xaf6593
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xaf65a4
jne 0xaf65c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaf65c3
dec eax
add ebx, ebx
jne 0xaf65b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xaf6588
add ebx, ebx
jne 0xaf65bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xaf6615
xor ecx, ecx
sub eax, 3
jb 0xaf65db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xaf664a
sar eax, 1
mov ebp, eax
jmp 0xaf65e6
add ebx, ebx
jne 0xaf65e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaf65b4
inc ecx
add ebx, ebx
jne 0xaf65f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaf65b4
add ebx, ebx
jne 0xaf6601
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xaf65f6
jne 0xaf6612
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xaf65f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xaf6634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xaf6626
jmp 0xaf6576
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xaf6634
add edi, ecx
jmp 0xaf6576
pop esi
mov edi, esi
mov ecx, 0x219bd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xaf6652
cmp byte [edi], 0x86
jne 0xaf6652
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xaf6657
lea edi, [esi + 0x6f3000]
mov eax, dword [edi]
or eax, eax
je 0xaf66c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6f7178]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6f7254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xaf6684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6f7258]
or eax, eax
je 0xaf66c0
mov dword [ebx], eax
add ebx, 4
jmp 0xaf66a1
call dword [esi + 0x6f7268]
mov ebp, dword [esi + 0x6f725c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x6f6721]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xaf6712
sub esp, 0xffffff80
jmp 0x4014c0
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453004]
jne 0x401010
repz ret
jmp fcn.00401494

Function at 0x4082e5
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.004058d1
and dword [ebp - 4], 0
cmp dword [0x455798], 0
mov ebx, eax
jne 0x408396
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408447
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408447
push eax
call fcn.0040585f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x455798], eax
call esi
push eax
call fcn.0040585f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45579c], eax
call esi
push eax
call fcn.0040585f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4557a0], eax
call esi
push eax
call fcn.0040585f
pop ecx
mov dword [0x4557a8], eax
test eax, eax
je 0x408396
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040585f
pop ecx
mov dword [0x4557a4], eax
mov eax, dword [0x4557a4]
cmp eax, ebx
je 0x4083ee
cmp dword [0x4557a8], ebx
je 0x4083ee
push eax
call fcn.004058da
push dword [0x4557a8]
mov esi, eax
call fcn.004058da
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4083ee
test edi, edi
je 0x4083ee
call esi
test eax, eax
je 0x4083e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4083e5
test byte [ebp - 0xc], 1
jne 0x4083ee
or dword [ebp + 0x10], 0x200000
jmp 0x408427
mov eax, dword [0x45579c]
cmp eax, ebx
je 0x408427
push eax
call fcn.004058da
pop ecx
test eax, eax
je 0x408427
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408427
mov eax, dword [0x4557a0]
cmp eax, ebx
je 0x408427
push eax
call fcn.004058da
pop ecx
test eax, eax
je 0x408427
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x455798]
call fcn.004058da
pop ecx
test eax, eax
je 0x408447
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408449
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406b14
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.004043d6]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [0x40d0f8]
push esi
mov esi, dword [ebp + 0x19c]
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x406b51
push eax
mov ecx, esi
call fcn.00401037
mov eax, esi
jmp 0x406be5
and dword [ebp - 0x80], 0
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x406b8a
push ebx
push str.IsWow64Process
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x406b89
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
pop ebx
cmp dword [ebp - 0x80], 0
je 0x406bc0
push str.GetSystemWow64DirectoryW
push edi
call esi
test eax, eax
je 0x406bc0
push 0x104
lea ecx, [ebp - 0x78]
push ecx
call eax
push 8
call fcn.00404351
pop ecx
test eax, eax
je 0x406bd1
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.0040140d
jmp 0x406bd3
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x406ba7
xor eax, eax
mov ecx, dword [ebp - 0x7c]
push eax
mov dword [0x40d0f8], eax
call fcn.00401037
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.004043d6
add ebp, 0x194
leave
ret

Function at 0x40763c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
push dword [esi + 0x50]
mov byte [ebp - 1], 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [ebp + 8]
push 0x40bfd0
push dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp + 8], eax
test eax, eax
je 0x40770d
push ebx
push eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp + 8]
mov ebx, eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp ebx, eax
je 0x40770c
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push ebx
call fcn.00407477
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x20
push esi
push dword [ebp + 8]
push dword [edi]
call fcn.00407008
add esp, 0x24
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40770c
imul esi, dword [ebp + 8]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call fcn.004074a2
add esp, 0x10
test al, al
je 0x40770c
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 1], 1
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

Function at 0x8c0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008c01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8c007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c006a
add dl, dl
jne 0x8c0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c00dc
xor eax, eax
add dl, dl
jne 0x8c0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c017d
add dl, dl
jne 0x8c00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8c00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8c0075
mov eax, 1
add dl, dl
jne 0x8c00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c00e1
sub eax, ebx
mov ebx, 1
jne 0x8c0128
mov ecx, 1
add dl, dl
jne 0x8c010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8c013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c0136
cmp eax, 0x7d00
jae 0x8c016d
cmp eax, 0x500
jb 0x8c0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c0075
cmp eax, 0x7f
ja 0x8c0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8c019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8c0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and byte [ebp - 0x24], 0
and byte [ebp - 0x20], 0
and byte [ebp - 0x1f], 0
and byte [ebp - 0x1e], 0
and byte [ebp - 0x1d], 0
or byte [ebp - 0x18], 0xff
or byte [ebp - 0x17], 0xff
or byte [ebp - 0x16], 0xff
or byte [ebp - 0x15], 0xff
and byte [ebp - 0xe], 0
and byte [ebp - 0xd], 0
and byte [ebp - 0xb], 0
and byte [ebp - 0xa], 0
and byte [ebp - 9], 0
push esi
mov esi, dword [ebp + 8]
push esi
mov byte [ebp - 0x23], 2
mov byte [ebp - 0x22], 0x73
mov byte [ebp - 0x21], 2
mov byte [ebp - 0x1c], 0x63
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x14], 0x69
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x78
mov byte [ebp - 0x10], 0xa4
mov byte [ebp - 0xf], 9
mov byte [ebp - 0xc], 0x23
call fcn.00401620
cmp eax, 4
pop ecx
jb 0x4011d9
push ebx
push edi
push esi
call fcn.004014e0
push eax
push esi
call fcn.004013f0
push esi
xor ebx, ebx
xor edi, edi
call fcn.00401620
add esp, 0x10
test eax, eax
jbe 0x4010c2
movsx eax, byte [edi + esi]
imul eax, eax, 0x4d2
add ebx, eax
push esi
inc edi
call fcn.00401620
cmp edi, eax
pop ecx
jb 0x4010aa
mov eax, ebx
xor edx, edx
mov ecx, 0x10e1
div ecx
mov eax, edx
mov byte [ebp - 0x20], dl
shr eax, 0x18
mov byte [ebp - 0x1d], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1e], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1f], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], dl
xor eax, eax
mov cl, byte [eax + 0x40513c]
sub byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0x1c
jl 0x4010f0
push 0x23
mov dword [ebp - 8], 0x1a
lea ecx, [ebp - 0xb]
pop esi
sub dword [ebp - 8], ecx
lea eax, [ebp - 0xb]
mov cl, byte [eax + 1]
mov bl, byte [eax]
mov dl, cl
and cl, 3
shr dl, 2
mov byte [ebp + esi - 0x4c], dl
mov dl, bl
shr dl, 4
and dword [ebp - 4], 0
mov byte [ebp + 0xb], cl
movzx edi, dl
mov ecx, dword [ebp - 4]
and ecx, 0xf
cmp ecx, edi
jne 0x40114b
mov ecx, dword [ebp - 4]
sar ecx, 4
and ecx, 3
cmp cl, byte [ebp + 0xb]
je 0x401156
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3f
jle 0x401133
jmp 0x40115d
mov cl, byte [ebp - 4]
mov byte [ebp + esi - 0x4d], cl
movzx edi, byte [eax - 1]
and bl, 0xf
xor ecx, ecx
mov byte [ebp + 0xb], bl
mov edx, ecx
mov ebx, edi
and edx, 3
shl edx, 6
sub ebx, edx
cmp ebx, 0x3f
jg 0x401187
mov edx, ecx
sar edx, 2
and edx, 0xf
cmp dl, byte [ebp + 0xb]
je 0x40118f
inc ecx
cmp ecx, 0x3f
jle 0x401169
jmp 0x401193
mov byte [ebp + esi - 0x4e], cl
mov ecx, dword [ebp - 8]
sub esi, 4
lea edx, [ecx + eax]
sub eax, 3
add ecx, eax
mov dl, byte [ebp + edx - 0x26]
and dl, 0x3f
mov byte [ebp + esi - 0x4b], dl
test ecx, ecx
jge 0x401113
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
push 0x24
mov eax, esi
sub ecx, esi
pop edi
movzx edx, byte [ecx + eax]
mov dl, byte [edx + str.0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz]
mov byte [eax], dl
inc eax
dec edi
jne 0x4011c1
and byte [esi + 0x24], 0
pop edi
pop ebx
jmp 0x4011e8
push str.Name_must_contain_at_least_4_characters_
push dword [ebp + 0xc]
call fcn.004013f0
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x402805
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4063f0
cmp edx, dword [eax]
je 0x402827
add eax, 8
inc ecx
cmp eax, 0x406480
jl 0x402818
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4063f0]
jne 0x402955
mov eax, dword [0x406a78]
cmp eax, 1
je 0x40292f
test eax, eax
jne 0x402858
cmp dword [0x406154], 1
je 0x40292f
cmp edx, 0xfc
je 0x402955
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40288f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004013f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401620
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4028d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401620
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40545c
push edi
call fcn.00403280
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004013f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00401400
lea eax, [ebp - 0xa0]
push 0x40543c
push eax
call fcn.00401400
push dword [esi + 0x4063f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00401400
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403c38
add esp, 0x2c
pop edi
jmp 0x402955
lea eax, [ebp + 8]
lea esi, [esi + 0x4063f4]
push 0
push eax
push dword [esi]
call fcn.00401620
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x40a31c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040a308
add esp, 0x208
pop ebx
ret

Function at 0x40aa2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x50bb6c
push 0xa
push 0x40aac0
mov eax, dword [0x50bb50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40aa50
call fcn.0041362c
push ebx
mov eax, dword [0x50bb50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40aa67
call fcn.0041362c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40aa79
call fcn.0041362c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x50bb70], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x50bb74], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x50bb78], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x50bb7c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x50bb80], ecx
add edx, dword [eax + 0x14]
mov dword [0x50bb84], edx
pop esi
pop ebx
ret

Function at 0x40c168
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c211
test eax, edx
je 0x40c214
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c191
push edx
mov edx, eax
mov eax, esp
call fcn.0040665c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c1a7
push eax
lea eax, [esp + 8]
call fcn.0040665c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c1b6
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c1dd
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 0x40c1f7
add ecx, 4
js 0x40c1ce
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c1f4
push eax
mov eax, ecx
mov edx, 2
call fcn.004052a0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c1db
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c1dd
xor eax, eax
ret
test eax, eax
je 0x40c224
test edx, edx
jne 0x40c178
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x411030
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x411069
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406584
jmp 0x411072
mov eax, ebx
mov edx, esi
call fcn.00406448
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41107c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41109e
movzx eax, word [esp]
jmp 0x4110a0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411828
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41194d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041163c
mov esi, eax
mov eax, dword [0x507f28]
cmp byte [eax], 0
je 0x4118f5
mov eax, dword [0x507bcc]
call fcn.00403450
call fcn.00403180
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x411804]
call fcn.00408024
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x411968
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x411931
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x507b48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50bb50]
call fcn.00408118
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411954
lea eax, [ebp - 4]
mov edx, dword [0x411804]
call fcn.00408030
ret