joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10727058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.107271a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1072707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1072706a
add dl, dl
jne 0x10727089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107270dc
xor eax, eax
add dl, dl
jne 0x10727096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1072717d
add dl, dl
jne 0x107270a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107270b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107270bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107270c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x107270d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10727075
mov eax, 1
add dl, dl
jne 0x107270ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107270f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107270e1
sub eax, ebx
mov ebx, 1
jne 0x10727128
mov ecx, 1
add dl, dl
jne 0x1072710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10727119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10727105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10727075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1072713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1072714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10727136
cmp eax, 0x7d00
jae 0x1072716d
cmp eax, 0x500
jb 0x10727168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10727075
cmp eax, 0x7f
ja 0x10727170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10727075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1072719e
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 0x10727075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x19853a10
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data_1
mov ebx, 0x42cd70
nop
mov ecx, 0x5cde30f7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
xor eax, eax
push fcn.00401d30
push ebp
push 0x4129b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
xor cx, cx
mov edx, 0xff
call fcn.00408640
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00413e50
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00401d30
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov dword [0x452590], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x45258c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x452590], edx
cmp eax, 0x26f
jl 0x40d978
mov dword [0x441e10], 0x270
ret

Function at 0x40d9b0
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 + 0x452594]
mov ebx, dword [eax*4 + 0x452590]
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 + 0x452bc4]
mov dword [eax*4 + 0x452590], edx
cmp eax, 0xe2
jl 0x40d9b8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x452594]
mov ebx, dword [eax*4 + 0x452590]
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 + 0x452204]
mov dword [eax*4 + 0x452590], edx
cmp eax, 0x26e
jl 0x40da08
mov edx, dword [0x452590]
mov ecx, dword [0x452f4c]
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 [0x452bc0]
mov dword [0x452f4c], eax
mov dword [0x441e10], 0
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, dword [0x441e10]
add dword [0x441e10], 1
mov eax, dword [0x451130]
cmp eax, dword [0x441560]
jne 0x40dab3
cmp ebx, 0x271
jb 0x40dad4
mov eax, dword [0x451130]
call fcn.0040d970
not dword [0x451130]
mov eax, dword [0x451130]
mov dword [0x441560], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40daf0
call fcn.0040d9b0
xor ebx, ebx
mov dword [0x441e10], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x452590]
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 0x40f5c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x4412c0]
cmp ax, 0xcb
je 0x40f6cc
cmp ax, 0xcc
je 0x40f6cc
lea esi, [esi]
mov edx, dword [0x453190]
test edx, edx
je 0x40f5f5
mov eax, dword [0x453040]
call edx
mov ebx, eax
jmp 0x40f5fa
mov ebx, 0x453044
cmp word [0x453030], 0
jle 0x40f620
mov eax, 0x453010
call fcn.0040f830
mov eax, ebx
call fcn.0040f180
mov eax, ebx
call fcn.0040f1f0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40f642
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40f63d
mov edx, edi
mov eax, ebx
call fcn.0040e5f0
jmp 0x40f640
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40f628
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x453030], 0
jle 0x40f6cc
mov edx, 0x452f50
mov eax, ebx
call fcn.0040e730
mov edi, eax
test edi, edi
je 0x40f69c
mov eax, dword [0x452fe4]
mov dword [edi + 0xc], eax
cmp dword [0x452fe4], 0
je 0x40f690
mov eax, dword [0x452fe4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x452fe4], eax
nop
sub word [0x453030], 1
cmp word [0x453030], 0
sete bl
mov eax, 0x453010
call fcn.0040f850
test bl, bl
je 0x40f6cc
mov eax, 0x453010
call fcn.0040f820
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x4115e0
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.004115c0
push ebp
push 0x4129b0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x41170a
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.0040a550
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x41166f
mov edx, 0x452410
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x4116c1
call sub.kernel32.dll_GetLastError
call fcn.00403780
lea eax, [ebp - 0x10]
call fcn.00409360
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.00409800
mov edx, dword [ebp - 0x14]
mov ecx, 0x4447dc
lea eax, [ebp - 0x10]
call fcn.00409690
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00409f40
jmp 0x411758
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x4116da
cmp eax, ecx
je 0x4116e4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040a550
cmp byte [0x441530], 0
jne 0x411758
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040aaa0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00409f80
lea esi, [esi]
jmp 0x411758
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040a550
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x41172e
mov eax, 0x452410
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x441530], 0
jne 0x411758
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040aaa0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00409f80
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004115c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411b30
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 [0x452370], 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.00411d10
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x452370]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402d20
call sub.kernel32.dll_GetCommandLineA
mov dword [0x441330], eax
mov ebx, eax
jmp 0x411cd3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x411bb8
cmp byte [ebx], 0
je 0x411cdc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x411c33
mov al, byte [ebx]
cmp al, 1
jb 0x411c28
sub al, 0x20
jbe 0x411bf8
sub al, 2
je 0x411c0c
jmp 0x411c28
mov al, byte [ebp - 0x114]
test al, al
je 0x411c38
add dword [ebp - 0x110], 1
jmp 0x411c30
cmp byte [ebx + 1], 0x22
je 0x411c23
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x411c30
add ebx, 1
jmp 0x411c30
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x411be8
test dword [ebp - 0x10c], 0xffffffff
je 0x411ccc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00411d10
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x452370]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x411cc3
mov al, byte [ebx]
cmp al, 1
jb 0x411cb8
sub al, 0x20
jbe 0x411c88
sub al, 2
je 0x411c9c
jmp 0x411cb8
mov al, byte [ebp - 0x114]
test al, al
je 0x411cc8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x411cc0
cmp byte [ebx + 1], 0x22
je 0x411cb3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x411cc0
add ebx, 1
jmp 0x411cc0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x411c78
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x411bbb
mov ebx, dword [ebp - 0x10c]
mov dword [0x452360], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x452370
call fcn.0040f400
mov eax, dword [0x452370]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ce60
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, 0x447c40
lea eax, [ebp - 0x268]
call fcn.0040d260
xor eax, eax
push fcn.0041ce40
push ebp
push 0x4129b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41cea3
mov eax, 0x452410
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ceeb
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x41cebf
clc
jmp 0x41cec6
bt dword [0x447288], eax
jb 0x41cedf
mov eax, ebp
call fcn.0041cf90
test al, al
je 0x41cedf
mov byte [ebp - 0x26c], 1
jmp 0x41cf70
mov byte [ebp - 0x26c], 0
jmp 0x41cf70
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x442800]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x41cf70
and esi, 0x400
je 0x41cf70
lea ebx, [ebp - 0x268]
mov edx, 0x447c40
mov eax, ebx
call fcn.0040d320
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.0041cb00
test eax, eax
je 0x41cf44
sub eax, 1
je 0x41cf5c
jmp 0x41cf68
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.0041ce60
mov byte [ebp - 0x26c], al
jmp 0x41cf70
mov byte [ebp - 0x26c], 1
jmp 0x41cf70
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0041ce40
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d180
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x41d18e
mov eax, 0x452410
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x41d19c
xor ebx, ebx
jmp 0x41d1a3
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d200
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.0041d1f0
push ebp
push 0x4129b0
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 0x41d270
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040a550
cmp ebx, 1
jle 0x41d260
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.00409e20
jmp 0x41d27b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00407c50
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0041d1f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d680
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.0041d670
push ebp
push 0x4129b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x4538ec]
xor edx, edx
call fcn.00407c50
mov dword [ebx*4 + 0x45390c], 0xffffffff
cmp ebx, 7
jl 0x41d6a8
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 0x41d734
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00408640
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.004146d0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x41d734
push 4
push ebx
push esi
mov eax, 0x41d550
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x41d5e0
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.0041d670
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41dd80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.0041dd50
push ebp
push 0x4129b0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00414350
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00407c50
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.004091e0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00407c50
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x41de8c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.004085a0
mov eax, dword [ebp - 8]
test eax, eax
je 0x41de17
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.004091e0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00408b80
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00408a20
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00414350
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004087c0
test eax, eax
jne 0x41de84
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x41de73
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00408a20
jmp 0x41de95
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x41de00
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0041dd50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ded0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x453950], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x4537b0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x4537c0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x4537d0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x4537e0], eax
mov edx, 0x4537f1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00402d20
lea eax, [ebp - 0x80]
call fcn.00403c10
mov byte [0x4537f0], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x453960], eax
test eax, eax
je 0x41df70
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x453960]
call sub.kernel32.dll_GetProcAddress
mov dword [0x453950], eax
nop
cmp dword [0x4537c0], 6
jae 0x41df84
mov dword [0x4420c0], 0
nop
cmp dword [0x4537c0], 6
jb 0x41dfa0
cmp dword [0x4537d0], 1
jb 0x41dfa0
mov dword [0x4420d0], 2
mov esp, ebp
pop ebp
ret
Function at 0x41f830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.0041f820
push ebp
push 0x4129b0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x41f940
mov al, byte [ebp - 0x110]
test al, al
je 0x41f909
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404180
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004084d0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004091e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x448318
call fcn.0041bba0
mov edx, 0x41f89a
mov ecx, ebp
call fcn.00412870
jmp 0x41f940
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x448318
call fcn.0041bba0
mov edx, 0x41f909
mov ecx, ebp
call fcn.00412870
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x41fa04
mov al, byte [ebp - 0x110]
test al, al
je 0x41f9cd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404180
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004084d0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004091e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x448318
call fcn.0041bba0
mov edx, 0x41f95e
mov ecx, ebp
call fcn.00412870
jmp 0x41fa04
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x448318
call fcn.0041bba0
mov edx, 0x41f9cd
mov ecx, ebp
call fcn.00412870
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.0041f1f0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0041f820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42cf80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x42d02a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x42d046
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x42d046
sub dx, 0x20
je 0x42d020
sub dx, 0x80
je 0x42d020
sub dx, 0x1f62
jb 0x42d046
sub dx, 1
jbe 0x42d020
sub dx, 6
je 0x42d020
sub dx, 0x26
jne 0x42d046
nop
jmp 0x42d020
cmp eax, dword [ebp - 0x20]
jg 0x42cfc8
lea esi, [esi]
jmp 0x42d046
cmp dword [ebp - 0x1c], 2
jne 0x42d03a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x42d046
mov al, byte [ebp - 0xc]
call fcn.0040a280
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x42d0c4
sub ax, 0x21
je 0x42d0d8
sub ax, 0x17
je 0x42d0e4
sub ax, 0x222
je 0x42d0f0
sub ax, 0x392
je 0x42d0f8
sub ax, 1
je 0x42d100
sub ax, 0x1996
je 0x42d108
sub ax, 1
je 0x42d110
sub ax, 6
je 0x42d118
sub ax, 0xb
je 0x42d128
sub ax, 0x1b
je 0x42d120
sub ax, 0x367
je 0x42d130
jmp 0x42d138
mov ax, word [ebp - 0x24]
call fcn.0040a2f0
mov byte [ebp - 0x10], al
jmp 0x42d140
mov byte [ebp - 0x10], 0x20
jmp 0x42d140
mov byte [ebp - 0x10], 0x2e
jmp 0x42d140
mov byte [ebp - 0x10], 0x27
jmp 0x42d140
mov byte [ebp - 0x10], 0x2c
jmp 0x42d140
mov byte [ebp - 0x10], 0x27
jmp 0x42d140
mov byte [ebp - 0x10], 0x20
jmp 0x42d140
mov byte [ebp - 0x10], 0x20
jmp 0x42d140
mov byte [ebp - 0x10], 0x20
jmp 0x42d140
mov byte [ebp - 0x10], 0x20
jmp 0x42d140
mov byte [ebp - 0x10], 0x2d
jmp 0x42d140
mov byte [ebp - 0x10], 0x27
jmp 0x42d140
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret