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

Disassembly:
mov dword [0x5c3480], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x5c347c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5c3480], edx
cmp eax, 0x26f
jl 0x40ec88
mov dword [0x555fb0], 0x270
ret

Function at 0x40ecc0
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 + 0x5c3484]
mov ebx, dword [eax*4 + 0x5c3480]
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 + 0x5c3ab4]
mov dword [eax*4 + 0x5c3480], edx
cmp eax, 0xe2
jl 0x40ecc8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x5c3484]
mov ebx, dword [eax*4 + 0x5c3480]
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 + 0x5c30f4]
mov dword [eax*4 + 0x5c3480], edx
cmp eax, 0x26e
jl 0x40ed18
mov edx, dword [0x5c3480]
mov ecx, dword [0x5c3e3c]
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 [0x5c3ab0]
mov dword [0x5c3e3c], eax
mov dword [0x555fb0], 0
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, dword [0x555fb0]
add dword [0x555fb0], 1
mov eax, dword [0x5c2020]
cmp eax, dword [0x555700]
jne 0x40edc3
cmp ebx, 0x271
jb 0x40ede4
mov eax, dword [0x5c2020]
call fcn.0040ec80
not dword [0x5c2020]
mov eax, dword [0x5c2020]
mov dword [0x555700], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40ee00
call fcn.0040ecc0
xor ebx, ebx
mov dword [0x555fb0], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x5c3480]
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 0x410950
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x555450]
cmp ax, 0xcb
je 0x410a5c
cmp ax, 0xcc
je 0x410a5c
lea esi, [esi]
mov edx, dword [0x5c4080]
test edx, edx
je 0x410985
mov eax, dword [0x5c3f30]
call edx
mov ebx, eax
jmp 0x41098a
mov ebx, 0x5c3f34
cmp word [0x5c3f20], 0
jle 0x4109b0
mov eax, 0x5c3f00
call fcn.00410bc0
mov eax, ebx
call fcn.00410510
mov eax, ebx
call fcn.00410580
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x4109d2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x4109cd
mov edx, edi
mov eax, ebx
call fcn.0040f980
jmp 0x4109d0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x4109b8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x5c3f20], 0
jle 0x410a5c
mov edx, 0x5c3e40
mov eax, ebx
call fcn.0040fac0
mov edi, eax
test edi, edi
je 0x410a2c
mov eax, dword [0x5c3ed4]
mov dword [edi + 0xc], eax
cmp dword [0x5c3ed4], 0
je 0x410a20
mov eax, dword [0x5c3ed4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x5c3ed4], eax
nop
sub word [0x5c3f20], 1
cmp word [0x5c3f20], 0
sete bl
mov eax, 0x5c3f00
call fcn.00410be0
test bl, bl
je 0x410a5c
mov eax, 0x5c3f00
call fcn.00410bb0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x412ad0
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.00412ab0
push ebp
push 0x413e50
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x412bfa
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.0040b550
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x412b5f
mov edx, 0x5c3300
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x412bb1
call sub.kernel32.dll_GetLastError
call fcn.00404050
lea eax, [ebp - 0x10]
call fcn.0040a130
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a5d0
mov edx, dword [ebp - 0x14]
mov ecx, 0x57135c
lea eax, [ebp - 0x10]
call fcn.0040a460
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040ae20
jmp 0x412c48
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x412bca
cmp eax, ecx
je 0x412bd4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b550
cmp byte [0x5556d0], 0
jne 0x412c48
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040baf0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040aeb0
lea esi, [esi]
jmp 0x412c48
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b550
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x412c1e
mov eax, 0x5c3300
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5556d0], 0
jne 0x412c48
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040baf0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040aeb0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00412ab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412fe0
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 [0x5c3260], 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.004131c0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x5c3260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004035c0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5554d0], eax
mov ebx, eax
jmp 0x413183
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x413068
cmp byte [ebx], 0
je 0x41318c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x4130e3
mov al, byte [ebx]
cmp al, 1
jb 0x4130d8
sub al, 0x20
jbe 0x4130a8
sub al, 2
je 0x4130bc
jmp 0x4130d8
mov al, byte [ebp - 0x114]
test al, al
je 0x4130e8
add dword [ebp - 0x110], 1
jmp 0x4130e0
cmp byte [ebx + 1], 0x22
je 0x4130d3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4130e0
add ebx, 1
jmp 0x4130e0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413098
test dword [ebp - 0x10c], 0xffffffff
je 0x41317c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004131c0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x5c3260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x413173
mov al, byte [ebx]
cmp al, 1
jb 0x413168
sub al, 0x20
jbe 0x413138
sub al, 2
je 0x41314c
jmp 0x413168
mov al, byte [ebp - 0x114]
test al, al
je 0x413178
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x413170
cmp byte [ebx + 1], 0x22
je 0x413163
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413170
add ebx, 1
jmp 0x413170
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413128
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41306b
mov ebx, dword [ebp - 0x10c]
mov dword [0x5c3250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x5c3260
call fcn.00410790
mov eax, dword [0x5c3260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x44]
mov dword [ebp - 0x44], 0
xor eax, eax
push fcn.00425940
push ebp
push 0x413e50
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x3c
lea eax, [ebp - 0x3c]
push eax
call fcn.004a4a60
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x540
mov eax, str.runas
mov dword [ebp - 0x30], eax
mov eax, dword [0x5560d0]
lea edx, [ebp - 0x44]
call fcn.00446130
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4259b2
mov eax, 0x5c3300
mov dword [ebp - 0x2c], eax
mov eax, str.restarted
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x425a0c
lea esi, [esi]
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, dword [0x5560d0]
call fcn.00420d30
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0x40], 0x103
jne 0x425a0c
mov eax, dword [0x5560d0]
cmp byte [eax + 0x49], 0
je 0x4259d8
mov eax, dword [ebp - 0x40]
call fcn.004255e0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00425940
mov esp, ebp
pop ebp
ret
Function at 0x4274a0
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.00427490
push ebp
push 0x413e50
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 0x4275b0
mov al, byte [ebp - 0x110]
test al, al
je 0x427579
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404d70
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004091e0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409fb0
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, 0x576728
call fcn.004404c0
mov edx, 0x42750a
mov ecx, ebp
call fcn.00413d10
jmp 0x4275b0
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, 0x576728
call fcn.004404c0
mov edx, 0x427579
mov ecx, ebp
call fcn.00413d10
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x427674
mov al, byte [ebp - 0x110]
test al, al
je 0x42763d
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404d70
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004091e0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409fb0
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, 0x576728
call fcn.004404c0
mov edx, 0x4275ce
mov ecx, ebp
call fcn.00413d10
jmp 0x427674
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, 0x576728
call fcn.004404c0
mov edx, 0x42763d
mov ecx, ebp
call fcn.00413d10
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.00426e30
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00427490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42a730
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, 0x5773b4
call fcn.0040cd80
test al, al
je 0x42a816
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0042a830
xor eax, eax
push fcn.0042a720
push ebp
push 0x413e50
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.00408960
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.00429940
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.00429490
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.0042a720
jmp 0x42a821
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0042ccc0
mov esp, ebp
pop ebp
ret
Function at 0x436c70
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.00436c60
push ebp
push 0x413e50
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.00408960
lea eax, [ebp - 0xc10]
call fcn.00403ae0
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x436cd0
mov eax, 0x5c3300
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x436d7a
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040f7c0
xor eax, eax
push fcn.00436c50
push ebp
push 0x413e50
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 0x436d2c
mov eax, 0x5c3300
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x436d68
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x57becc
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x436d68
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.00436c50
jmp 0x436dd8
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x436d9c
mov eax, 0x5c3300
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x436dd8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x57becc
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x436dd8
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.00436c60
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4419d0
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, 0x57cdb0
lea eax, [ebp - 0x268]
call fcn.0040e570
xor eax, eax
push fcn.004419b0
push ebp
push 0x413e50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x441a13
mov eax, 0x5c3300
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x441a5b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x441a2f
clc
jmp 0x441a36
bt dword [0x57c380], eax
jb 0x441a4f
mov eax, ebp
call fcn.00441b00
test al, al
je 0x441a4f
mov byte [ebp - 0x26c], 1
jmp 0x441ae0
mov byte [ebp - 0x26c], 0
jmp 0x441ae0
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x556b30]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x441ae0
and esi, 0x400
je 0x441ae0
lea ebx, [ebp - 0x268]
mov edx, 0x57cdb0
mov eax, ebx
call fcn.0040e630
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00441670
test eax, eax
je 0x441ab4
sub eax, 1
je 0x441acc
jmp 0x441ad8
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.004419d0
mov byte [ebp - 0x26c], al
jmp 0x441ae0
mov byte [ebp - 0x26c], 1
jmp 0x441ae0
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004419b0
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x441cf0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x441cfc
mov eax, 0x5c3300
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esp, ebp
pop ebp
ret

Function at 0x441da0
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.00441d90
push ebp
push 0x413e50
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 0x441e10
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b550
cmp ebx, 1
jle 0x441e00
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.0040ad00
jmp 0x441e1b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408960
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00441d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x442220
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.00442210
push ebp
push 0x413e50
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x5c49ac]
xor edx, edx
call fcn.00408960
mov dword [ebx*4 + 0x5c49cc], 0xffffffff
cmp ebx, 7
jl 0x442248
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 0x4422d4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409350
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00438770
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x4422d4
push 4
push ebx
push esi
mov eax, 0x4420f0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x442180
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.00442210
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442920
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.004428f0
push ebp
push 0x413e50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040aeb0
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0043e2e0
jmp 0x4429f8
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040ae60
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040b930
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040b6d0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0043e2e0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040b510
test eax, eax
jne 0x4429e8
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4429d6
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040b6d0
jmp 0x4429ff
mov eax, esi
call fcn.00404740
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x442980
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.004428f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442a30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x5c4a10], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x5c4870], eax
mov eax, dword [ebp - 0x90]
mov dword [0x5c4880], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x5c4890], eax
mov eax, dword [ebp - 0x88]
mov dword [0x5c48a0], eax
mov edx, 0x5c48b1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004035c0
lea eax, [ebp - 0x80]
call fcn.00404720
mov byte [0x5c48b0], al
mov eax, 0x57c450
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x5c4a20], eax
test eax, eax
je 0x442ad0
mov eax, 0x57c45c
push eax
push dword [0x5c4a20]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5c4a10], eax
nop
cmp dword [0x5c4880], 6
jae 0x442ae4
mov dword [0x5563f0], 0
nop
cmp dword [0x5c4880], 6
jb 0x442b00
cmp dword [0x5c4890], 1
jb 0x442b00
mov dword [0x556400], 2
mov esp, ebp
pop ebp
ret

Function at 0x452670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x452698
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x452746
mov esi, esi
xor eax, eax
push 0x452727
push ebp
push 0x4141d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
je 0x4526fc
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.00426e30
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x45271c
cmp dword [ebp - 8], 0
je 0x45271c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x452746
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4