joyce8/EMBER2024-capa huggingface dataset:
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

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

Disassembly:
pushal
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
mov ecx, 0x7a8c13fb
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
mov ecx, 0x318a132b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401462
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x9e3779b9
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x41b4b0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b4b4]
mov dword [ebp - 0x1c], eax
call fcn.0040145b
mov eax, dword [0x41b4b8]
add dword [ebp - 8], 0x23f
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b4bc]
push 0x20
mov dword [ebp - 0x24], eax
pop ebx
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x2d39764]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4014f0
push 0x4181f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d39764]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d39760]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d39760], eax
mov eax, dword [0x2d396b8]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d396b8], eax
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d3975c], 0xf4ea3dee
call fcn.00401438
mov ecx, dword [ebp - 0x14]
xor ecx, eax
sub edi, ecx
mov dword [ebp - 0x14], ecx
mov eax, edi
mov dword [ebp - 0x2c], edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, edi
shr eax, cl
add eax, esi
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec ebx
jne 0x4014b8
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015be
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d39764]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d396bc]
test esi, esi
je 0x401601
cmp eax, 0x959
jne 0x4015ed
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401462
add edi, 8
dec esi
je 0x401601
mov eax, dword [0x2d39764]
jmp 0x4015d4
pop edi
pop esi
ret 4
Function at 0x40c6f9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
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.00404f25
mov dword [ebp - 0x14], eax
cmp dword [0x43fe18], esi
jne 0x40c7ec
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c779
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c8cc
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c8cc
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c8cc
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43fe18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43fe1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43fe20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43fe28], eax
test eax, eax
je 0x40c7e9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43fe24], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c811
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c804
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c826
push 4
pop eax
jmp 0x40c8ce
cmp dword [ebp - 0x14], esi
je 0x40c826
push dword [0x43fe18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c80b
mov eax, dword [0x43fe24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c884
cmp dword [0x43fe28], edi
je 0x40c884
push eax
call ebx
push dword [0x43fe28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c884
test eax, eax
je 0x40c884
call ecx
test eax, eax
je 0x40c879
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 0x40c879
test byte [ebp - 8], 1
jne 0x40c884
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c8b4
mov eax, dword [0x43fe1c]
cmp eax, edi
je 0x40c8b1
push eax
call ebx
test eax, eax
je 0x40c8b1
call eax
mov esi, eax
test esi, esi
je 0x40c8b1
mov eax, dword [0x43fe20]
cmp eax, edi
je 0x40c8b1
push eax
call ebx
test eax, eax
je 0x40c8b1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43fe18]
call ebx
test eax, eax
je 0x40c8cc
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c8ce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041a9
mov esp, ebp
pop ebp
ret
Function at 0x40ba70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x436910], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x43690c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x436910], edx
cmp eax, 0x26f
jl 0x40ba78
mov dword [0x42a990], 0x270
ret

Function at 0x40bab0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x436914]
mov ebx, dword [eax*4 + 0x436910]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x436f44]
mov dword [eax*4 + 0x436910], edx
cmp eax, 0xe2
jl 0x40bab8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x436914]
mov ebx, dword [eax*4 + 0x436910]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x436584]
mov dword [eax*4 + 0x436910], edx
cmp eax, 0x26e
jl 0x40bb08
mov edx, dword [0x436910]
mov ecx, dword [0x4372cc]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x436f40]
mov dword [0x4372cc], eax
mov dword [0x42a990], 0
pop ebx
ret

Function at 0x40bb90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x42a990]
add dword [0x42a990], 1
mov eax, dword [0x4354c0]
cmp eax, dword [0x42a4b0]
jne 0x40bbb3
cmp ebx, 0x271
jb 0x40bbd4
mov eax, dword [0x4354c0]
call fcn.0040ba70
not dword [0x4354c0]
mov eax, dword [0x4354c0]
mov dword [0x42a4b0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40bbf0
call fcn.0040bab0
xor ebx, ebx
mov dword [0x42a990], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x436910]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x40d660
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x42a200]
cmp ax, 0xcb
je 0x40d76c
cmp ax, 0xcc
je 0x40d76c
lea esi, [esi]
mov edx, dword [0x437510]
test edx, edx
je 0x40d695
mov eax, dword [0x4373c0]
call edx
mov ebx, eax
jmp 0x40d69a
mov ebx, 0x4373c4
cmp word [0x4373b0], 0
jle 0x40d6c0
mov eax, 0x437390
call fcn.0040d920
mov eax, ebx
call fcn.0040d220
mov eax, ebx
call fcn.0040d290
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40d6e2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40d6dd
mov edx, edi
mov eax, ebx
call fcn.0040c690
jmp 0x40d6e0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40d6c8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x4373b0], 0
jle 0x40d76c
mov edx, 0x4372d0
mov eax, ebx
call fcn.0040c7d0
mov edi, eax
test edi, edi
je 0x40d73c
mov eax, dword [0x437364]
mov dword [edi + 0xc], eax
cmp dword [0x437364], 0
je 0x40d730
mov eax, dword [0x437364]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x437364], eax
nop
sub word [0x4373b0], 1
cmp word [0x4373b0], 0
sete bl
mov eax, 0x437390
call fcn.0040d940
test bl, bl
je 0x40d76c
mov eax, 0x437390
call fcn.0040d910
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x40f9c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0040f9a0
push ebp
push 0x410d00
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x40faea
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00408e50
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x40fa4f
mov edx, 0x436790
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x40faa1
call sub.kernel32.dll_GetLastError
call fcn.00403990
lea eax, [ebp - 0x10]
call fcn.00408120
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.00408580
mov edx, dword [ebp - 0x14]
mov ecx, 0x42c7f0
lea eax, [ebp - 0x10]
call fcn.00408410
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00408960
jmp 0x40fb38
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x40faba
cmp eax, ecx
je 0x40fac4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.00408e50
cmp byte [0x42a470], 0
jne 0x40fb38
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.004093a0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.004089a0
lea esi, [esi]
jmp 0x40fb38
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00408e50
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x40fb0e
mov eax, 0x436790
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x42a470], 0
jne 0x40fb38
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.004093a0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.004089a0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0040f9a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fe90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x436700], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00410070
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x436700]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004031f0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x42a270], eax
mov ebx, eax
jmp 0x410033
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x40ff18
cmp byte [ebx], 0
je 0x41003c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x40ff93
mov al, byte [ebx]
cmp al, 1
jb 0x40ff88
sub al, 0x20
jbe 0x40ff58
sub al, 2
je 0x40ff6c
jmp 0x40ff88
mov al, byte [ebp - 0x114]
test al, al
je 0x40ff98
add dword [ebp - 0x110], 1
jmp 0x40ff90
cmp byte [ebx + 1], 0x22
je 0x40ff83
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x40ff90
add ebx, 1
jmp 0x40ff90
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40ff48
test dword [ebp - 0x10c], 0xffffffff
je 0x41002c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00410070
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x436700]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x410023
mov al, byte [ebx]
cmp al, 1
jb 0x410018
sub al, 0x20
jbe 0x40ffe8
sub al, 2
je 0x40fffc
jmp 0x410018
mov al, byte [ebp - 0x114]
test al, al
je 0x410028
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x410020
cmp byte [ebx + 1], 0x22
je 0x410013
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x410020
add ebx, 1
jmp 0x410020
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40ffd8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x40ff1b
mov ebx, dword [ebp - 0x10c]
mov dword [0x4366f0], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x436700
call fcn.0040d4a0
mov eax, dword [0x436700]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417ce0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x42f8b8
lea eax, [ebp - 0x268]
call fcn.0040b3d0
xor eax, eax
push fcn.00417cc0
push ebp
push 0x410d00
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x417d23
mov eax, 0x436790
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x417d6b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x417d3f
clc
jmp 0x417d46
bt dword [0x42ef70], eax
jb 0x417d5f
mov eax, ebp
call fcn.00417e10
test al, al
je 0x417d5f
mov byte [ebp - 0x26c], 1
jmp 0x417df0
mov byte [ebp - 0x26c], 0
jmp 0x417df0
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x42b2f0]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x417df0
and esi, 0x400
je 0x417df0
lea ebx, [ebp - 0x268]
mov edx, 0x42f8b8
mov eax, ebx
call fcn.0040b490
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00417980
test eax, eax
je 0x417dc4
sub eax, 1
je 0x417ddc
jmp 0x417de8
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00417ce0
mov byte [ebp - 0x26c], al
jmp 0x417df0
mov byte [ebp - 0x26c], 1
jmp 0x417df0
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00417cc0
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417eb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00417ea0
push ebp
push 0x410d00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x417f20
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.00408e50
cmp ebx, 1
jle 0x417f10
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.00408840
jmp 0x417f2b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00406c10
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00417ea0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4180c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004180b0
push ebp
push 0x410d00
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x437c4c]
xor edx, edx
call fcn.00406c10
mov dword [ebx*4 + 0x437c6c], 0xffffffff
cmp ebx, 7
jl 0x4180e8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x418174
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00407600
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00412570
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x418174
push 4
push ebx
push esi
mov eax, 0x417f90
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x418020
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004180b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4187b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x437cb0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x437b10], eax
mov eax, dword [ebp - 0x90]
mov dword [0x437b20], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x437b30], eax
mov eax, dword [ebp - 0x88]
mov dword [0x437b40], eax
mov edx, 0x437b51
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004031f0
lea eax, [ebp - 0x80]
call fcn.00403d50
mov byte [0x437b50], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x437cc0], eax
test eax, eax
je 0x418850
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x437cc0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x437cb0], eax
nop
cmp dword [0x437b20], 6
jae 0x418864
mov dword [0x42abc0], 0
nop
cmp dword [0x437b20], 6
jb 0x418880
cmp dword [0x437b30], 1
jb 0x418880
mov dword [0x42abd0], 2
mov esp, ebp
pop ebp
ret
Function at 0x418ff0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.00418fe0
push ebp
push 0x410d00
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x10], 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetProcessAffinityMask
mov eax, 1
mov ecx, dword [ebp - 4]
shl eax, cl
and eax, dword [ebp - 0x18]
jne 0x41907c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, str.forspecificcpu:Cpu_number__d_does_not_exist
call fcn.00413730
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x41906e
mov eax, 0x436790
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4190f1
mov eax, 1
mov ecx, dword [ebp - 4]
shl eax, cl
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetProcessAffinityMask
xor eax, eax
call fcn.00418790
push 0x400000
mov cl, 1
mov edx, 1
mov eax, 0x42f990
call fcn.0041dfd0
mov ebx, eax
mov esi, ebx
mov eax, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov eax, esi
call fcn.0041e130
mov eax, esi
call fcn.0041df40
cmp byte [ebp - 0x10], 0
je 0x4190dc
mov al, byte [esi + 0x38]
mov byte [ebp - 0x10], al
lea esi, [esi]
mov eax, esi
call fcn.0040a280
push dword [ebp - 0x14]
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetProcessAffinityMask
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00418fe0
mov al, byte [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret