joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f2d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x635470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x63546c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x635470], edx
cmp eax, 0x26f
jl 0x40f2d8
mov dword [0x5a3010], 0x270
ret

Function at 0x40f310
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 + 0x635474]
mov ebx, dword [eax*4 + 0x635470]
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 + 0x635aa4]
mov dword [eax*4 + 0x635470], edx
cmp eax, 0xe2
jl 0x40f318
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x635474]
mov ebx, dword [eax*4 + 0x635470]
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 + 0x6350e4]
mov dword [eax*4 + 0x635470], edx
cmp eax, 0x26e
jl 0x40f368
mov edx, dword [0x635470]
mov ecx, dword [0x635e2c]
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 [0x635aa0]
mov dword [0x635e2c], eax
mov dword [0x5a3010], 0
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, dword [0x5a3010]
add dword [0x5a3010], 1
mov eax, dword [0x634020]
cmp eax, dword [0x5a2760]
jne 0x40f413
cmp ebx, 0x271
jb 0x40f434
mov eax, dword [0x634020]
call fcn.0040f2d0
not dword [0x634020]
mov eax, dword [0x634020]
mov dword [0x5a2760], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40f450
call fcn.0040f310
xor ebx, ebx
mov dword [0x5a3010], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x635470]
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 0x410f70
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x5a24b0]
cmp ax, 0xcb
je 0x41107c
cmp ax, 0xcc
je 0x41107c
lea esi, [esi]
mov edx, dword [0x636070]
test edx, edx
je 0x410fa5
mov eax, dword [0x635f20]
call edx
mov ebx, eax
jmp 0x410faa
mov ebx, 0x635f24
cmp word [0x635f10], 0
jle 0x410fd0
mov eax, 0x635ef0
call fcn.004111e0
mov eax, ebx
call fcn.00410b30
mov eax, ebx
call fcn.00410ba0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x410ff2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410fed
mov edx, edi
mov eax, ebx
call fcn.0040ffa0
jmp 0x410ff0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410fd8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x635f10], 0
jle 0x41107c
mov edx, 0x635e30
mov eax, ebx
call fcn.004100e0
mov edi, eax
test edi, edi
je 0x41104c
mov eax, dword [0x635ec4]
mov dword [edi + 0xc], eax
cmp dword [0x635ec4], 0
je 0x411040
mov eax, dword [0x635ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x635ec4], eax
nop
sub word [0x635f10], 1
cmp word [0x635f10], 0
sete bl
mov eax, 0x635ef0
call fcn.00411200
test bl, bl
je 0x41107c
mov eax, 0x635ef0
call fcn.004111d0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x4136b0
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.00413690
push ebp
push 0x414ab0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x4137da
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.0040b9a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x41373f
mov edx, 0x6352f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x413791
call sub.kernel32.dll_GetLastError
call fcn.00404030
lea eax, [ebp - 0x10]
call fcn.0040a4d0
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a970
mov edx, dword [ebp - 0x14]
mov ecx, 0x5c1348
lea eax, [ebp - 0x10]
call fcn.0040a800
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040b270
jmp 0x413828
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x4137aa
cmp eax, ecx
je 0x4137b4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b9a0
cmp byte [0x5a2720], 0
jne 0x413828
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bf40
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b300
lea esi, [esi]
jmp 0x413828
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b9a0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x4137fe
mov eax, 0x6352f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5a2720], 0
jne 0x413828
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bf40
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b300
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00413690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413c40
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 [0x635260], 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.00413e20
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x635260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004035b0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5a2530], eax
mov ebx, eax
jmp 0x413de3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x413cc8
cmp byte [ebx], 0
je 0x413dec
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x413d43
mov al, byte [ebx]
cmp al, 1
jb 0x413d38
sub al, 0x20
jbe 0x413d08
sub al, 2
je 0x413d1c
jmp 0x413d38
mov al, byte [ebp - 0x114]
test al, al
je 0x413d48
add dword [ebp - 0x110], 1
jmp 0x413d40
cmp byte [ebx + 1], 0x22
je 0x413d33
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413d40
add ebx, 1
jmp 0x413d40
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413cf8
test dword [ebp - 0x10c], 0xffffffff
je 0x413ddc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00413e20
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x635260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x413dd3
mov al, byte [ebx]
cmp al, 1
jb 0x413dc8
sub al, 0x20
jbe 0x413d98
sub al, 2
je 0x413dac
jmp 0x413dc8
mov al, byte [ebp - 0x114]
test al, al
je 0x413dd8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x413dd0
cmp byte [ebx + 1], 0x22
je 0x413dc3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413dd0
add ebx, 1
jmp 0x413dd0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413d88
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x413ccb
mov ebx, dword [ebp - 0x10c]
mov dword [0x635250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x635260
call fcn.00410db0
mov eax, dword [0x635260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415cc0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov dx, 0xffff
lea esi, [esi]
add dx, 1
movsx eax, dx
mov ecx, eax
xor bx, bx
lea esi, [esi]
add bx, 1
mov eax, ecx
and eax, 1
je 0x415cf1
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x415cf3
shr ecx, 1
cmp bx, 8
jl 0x415cd8
movzx eax, dx
mov dword [eax*4 + 0x638010], ecx
cmp dx, 0xff
jl 0x415cc8
pop ebx
ret

Function at 0x415d10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, edx
mov esi, ecx
cmp dword [0x638014], 0
jne 0x415d28
call fcn.00415cc0
nop
mov ecx, edi
not ebx
mov eax, ebx
cmp esi, 1
jl 0x415d5c
xor ebx, ebx
lea esi, [esi]
add ebx, 1
mov dl, al
xor dl, byte [ecx]
and edx, 0xff
mov edi, eax
shr edi, 8
xor edi, dword [edx*4 + 0x638010]
mov eax, edi
add ecx, 1
cmp esi, ebx
jg 0x415d38
mov esi, esi
not eax
pop edi
pop esi
pop ebx
ret
Function at 0x427d80
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 0x427e2a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x427e46
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 0x427e46
sub dx, 0x20
je 0x427e20
sub dx, 0x80
je 0x427e20
sub dx, 0x1f62
jb 0x427e46
sub dx, 1
jbe 0x427e20
sub dx, 6
je 0x427e20
sub dx, 0x26
jne 0x427e46
nop
jmp 0x427e20
cmp eax, dword [ebp - 0x20]
jg 0x427dc8
lea esi, [esi]
jmp 0x427e46
cmp dword [ebp - 0x1c], 2
jne 0x427e3a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x427e46
mov al, byte [ebp - 0xc]
call fcn.0040b600
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x427ec4
sub ax, 0x21
je 0x427ed8
sub ax, 0x17
je 0x427ee4
sub ax, 0x222
je 0x427ef0
sub ax, 0x392
je 0x427ef8
sub ax, 1
je 0x427f00
sub ax, 0x1996
je 0x427f08
sub ax, 1
je 0x427f10
sub ax, 6
je 0x427f18
sub ax, 0xb
je 0x427f28
sub ax, 0x1b
je 0x427f20
sub ax, 0x367
je 0x427f30
jmp 0x427f38
mov ax, word [ebp - 0x24]
call fcn.0040b6a0
mov byte [ebp - 0x10], al
jmp 0x427f40
mov byte [ebp - 0x10], 0x20
jmp 0x427f40
mov byte [ebp - 0x10], 0x2e
jmp 0x427f40
mov byte [ebp - 0x10], 0x27
jmp 0x427f40
mov byte [ebp - 0x10], 0x2c
jmp 0x427f40
mov byte [ebp - 0x10], 0x27
jmp 0x427f40
mov byte [ebp - 0x10], 0x20
jmp 0x427f40
mov byte [ebp - 0x10], 0x20
jmp 0x427f40
mov byte [ebp - 0x10], 0x20
jmp 0x427f40
mov byte [ebp - 0x10], 0x20
jmp 0x427f40
mov byte [ebp - 0x10], 0x2d
jmp 0x427f40
mov byte [ebp - 0x10], 0x27
jmp 0x427f40
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4346a0
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.00434690
push ebp
push 0x414ab0
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 0x4347b8
mov al, byte [ebp - 0x110]
test al, al
je 0x434781
lea eax, [ebp - 0xc]
call fcn.00403a80
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405020
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409580
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a350
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, 0x5c7f88
call fcn.00450460
mov edx, 0x43470a
mov ecx, ebp
call fcn.00414970
jmp 0x4347b8
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, 0x5c7f88
call fcn.00450460
mov edx, 0x434781
mov ecx, ebp
call fcn.00414970
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x434884
mov al, byte [ebp - 0x110]
test al, al
je 0x43484d
lea eax, [ebp - 0xc]
call fcn.00403a80
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405020
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409580
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a350
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, 0x5c7f88
call fcn.00450460
mov edx, 0x4347d6
mov ecx, ebp
call fcn.00414970
jmp 0x434884
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, 0x5c7f88
call fcn.00450460
mov edx, 0x43484d
mov ecx, ebp
call fcn.00414970
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.00433e40
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00434690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, 0x5c8c4c
call fcn.0040d2e0
test al, al
je 0x437fc6
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00437fe0
xor eax, eax
push fcn.00437ed0
push ebp
push 0x414ab0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0xc4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1a]
mov byte [edx + 0x1a], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1b]
mov byte [edx + 0x1b], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1c]
mov byte [edx + 0x1c], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.00408d00
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.004370f0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.004367b0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
call dword [ecx + 0xb0]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00437ed0
jmp 0x437fd1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0043a310
mov esp, ebp
pop ebp
ret
Function at 0x444600
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc20]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc10], 0
xor eax, eax
push fcn.004445f0
push ebp
push 0x414ab0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc10]
call fcn.00408d00
lea eax, [ebp - 0xc10]
call fcn.00403ac0
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x444660
mov eax, 0x6352f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x44470a
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040fde0
xor eax, eax
push fcn.004445e0
push ebp
push 0x414ab0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0xc0c]
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x4446bc
mov eax, 0x6352f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4446f8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5cf0ac
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4446f8
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004445e0
jmp 0x444768
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x44472c
mov eax, 0x6352f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x444768
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5cf0ac
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x444768
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004445f0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov byte [ebp - 0xc], cl
mov eax, dword [ebp - 4]
test eax, eax
jne 0x45193e
mov eax, 0x6352f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x451976
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x45195a
clc
jmp 0x451961
bt dword [0x5cf690], eax
jb 0x451972
mov eax, ebp
call fcn.00451a60
test al, al
je 0x451972
mov bl, 1
jmp 0x4519a4
xor bl, bl
jmp 0x4519a4
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x5a5270]
sete bl
mov al, byte [ebp - 0xc]
and al, bl
je 0x4519a4
and esi, 0x400
je 0x4519a4
mov eax, ebp
call fcn.004519d0
mov bl, al
lea esi, [esi]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451fd0
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.00451fc0
push ebp
push 0x414ab0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x63898c]
xor edx, edx
call fcn.00408d00
mov dword [ebx*4 + 0x6389ac], 0xffffffff
cmp ebx, 7
jl 0x451ff8
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 0x452084
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004096f0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00446700
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x452084
push 4
push ebx
push esi
mov eax, 0x451ea0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x451f30
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.00451fc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4527d0
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.004527a0
push ebp
push 0x414ab0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00445d30
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408d00
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a350
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408d00
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x4528dc
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00409650
mov eax, dword [ebp - 8]
test eax, eax
je 0x452867
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a350
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409c80
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00409b20
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00445d30
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004098c0
test eax, eax
jne 0x4528d4
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4528c3
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409b20
jmp 0x4528e5
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x452850
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.004527a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00452910
push ebp
push 0x414ab0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040b300
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0044e440
jmp 0x452a18
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040b2b0
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040bd80
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040bb20
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0044e440
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040b960
test eax, eax
jne 0x452a08
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4529f6
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040bb20
jmp 0x452a1f
mov eax, esi
call fcn.004047a0
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x4529a0
push edi
call sub.kernel32.dll_FreeEnvironmentStringsW
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00452910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452a50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x6389f0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x638850], eax
mov eax, dword [ebp - 0x90]
mov dword [0x638860], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x638870], eax
mov eax, dword [ebp - 0x88]
mov dword [0x638880], eax
mov edx, 0x638891
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004035b0
lea eax, [ebp - 0x80]
call fcn.00404780
mov byte [0x638890], al
mov eax, 0x5cf760
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x638a00], eax
test eax, eax
je 0x452af0
mov eax, 0x5cf76c
push eax
push dword [0x638a00]
call sub.kernel32.dll_GetProcAddress
mov dword [0x6389f0], eax
nop
cmp dword [0x638860], 6
jae 0x452b04
mov dword [0x5a3760], 0
nop
cmp dword [0x638860], 6
jb 0x452b20
cmp dword [0x638870], 1
jb 0x452b20
mov dword [0x5a3770], 2
mov esp, ebp
pop ebp
ret