joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413d00
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00413cf0
push ebp
push 0x415340
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, esi
test esi, esi
jne 0x413d39
mov eax, 0x69b300
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0040bc30
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413d5c
mov eax, 0x69b300
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x413d69
mov eax, 0x69b300
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x413e2e
jmp 0x413d83
sub edx, 1
cmp edx, 3
jbe 0x413d94
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x413d80
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
xor ebx, ebx
cmp edi, ebx
jne 0x413dad
cmp eax, ecx
je 0x413db8
lea eax, [ebp - 0xc]
call fcn.0040bc30
lea esi, [esi]
mov eax, 0x4011e0
mov edx, dword [ebp - 0xc]
call fcn.00413c70
mov edx, dword [0x69c080]
test edx, edx
je 0x413dd8
mov eax, dword [0x69b170]
call edx
jmp 0x413ddd
mov eax, 0x69b174
cmp word [eax], 0
jne 0x413e3a
mov eax, esi
test esi, esi
je 0x413ded
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x413e3a
cmp word [esi + 2], 0x3a
jne 0x413e3a
mov word [ebp - 8], 0x3d
mov ax, word [esi]
mov word [ebp - 6], ax
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413e1f
mov eax, 0x69b300
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
lea esi, [esi]
jmp 0x413e3a
mov eax, 0x4011e0
mov edx, esi
call fcn.00413c70
mov edx, dword [0x69c080]
test edx, edx
je 0x413e4d
mov eax, dword [0x69b170]
call edx
jmp 0x413e52
mov eax, 0x69b174
cmp word [eax], 2
jne 0x413e78
mov edx, dword [0x69c080]
test edx, edx
je 0x413e6c
mov eax, dword [0x69b170]
call edx
jmp 0x413e71
mov eax, 0x69b174
mov word [eax], 3
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00413cf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413eb0
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.00413e90
push ebp
push 0x415340
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x413fda
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.0040bc30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x413f3f
mov edx, 0x69b300
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x413f91
call sub.kernel32.dll_GetLastError
call fcn.004041d0
lea eax, [ebp - 0x10]
call fcn.0040a760
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040ac00
mov edx, dword [ebp - 0x14]
mov ecx, 0x5f73b8
lea eax, [ebp - 0x10]
call fcn.0040aa90
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040b500
jmp 0x414028
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x413faa
cmp eax, ecx
je 0x413fb4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040bc30
cmp byte [0x5d6760], 0
jne 0x414028
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040c290
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b590
lea esi, [esi]
jmp 0x414028
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040bc30
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x413ffe
mov eax, 0x69b300
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5d6760], 0
jne 0x414028
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040c290
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b590
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00413e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4144c0
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 [0x69b270], 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.004146a0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x69b270]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403750
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5d6560], eax
mov ebx, eax
jmp 0x414663
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x414548
cmp byte [ebx], 0
je 0x41466c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x4145c3
mov al, byte [ebx]
cmp al, 1
jb 0x4145b8
sub al, 0x20
jbe 0x414588
sub al, 2
je 0x41459c
jmp 0x4145b8
mov al, byte [ebp - 0x114]
test al, al
je 0x4145c8
add dword [ebp - 0x110], 1
jmp 0x4145c0
cmp byte [ebx + 1], 0x22
je 0x4145b3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4145c0
add ebx, 1
jmp 0x4145c0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414578
test dword [ebp - 0x10c], 0xffffffff
je 0x41465c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004146a0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x69b270]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x414653
mov al, byte [ebx]
cmp al, 1
jb 0x414648
sub al, 0x20
jbe 0x414618
sub al, 2
je 0x41462c
jmp 0x414648
mov al, byte [ebp - 0x114]
test al, al
je 0x414658
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x414650
cmp byte [ebx + 1], 0x22
je 0x414643
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414650
add ebx, 1
jmp 0x414650
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414608
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41454b
mov ebx, dword [ebp - 0x10c]
mov dword [0x69b260], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x69b270
call fcn.004111b0
mov eax, dword [0x69b270]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428f60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x150]
push ebx
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
call fcn.00408f10
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
xor eax, eax
push fcn.00428f30
push ebp
push 0x415340
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x148]
push eax
mov edx, 0x5ff688
mov eax, dword [ebp + 8]
mov ecx, 1
call fcn.0040d150
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x14c]
xor edx, edx
call fcn.0049da40
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.00408f40
push 0
push 2
call fcn.005b9e80
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x42915c
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x14]
call fcn.005b9e90
test eax, eax
je 0x429154
jmp 0x42913c
push dword [ebp - 0x13c]
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42913c
push dword [ebp - 0x18]
call sub.kernel32.dll_CloseHandle
push 1
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x120]
xor cx, cx
mov edx, 0x103
call fcn.00409930
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
xor edx, edx
call fcn.0049da40
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
mov ecx, 1
call fcn.0049d6c0
test eax, eax
jle 0x4290a8
cmp byte [ebp - 8], 0
je 0x42909c
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0xc]
jne 0x4290a2
cmp byte [ebp - 8], 0
jne 0x4290a8
mov byte [ebp - 0x1c], 1
jmp 0x4290ac
mov byte [ebp - 0x1c], 0
cmp byte [ebp - 0x1c], 0
je 0x42913c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x4290c5
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 0x10], eax
add eax, 1
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x148]
push eax
mov edx, 0x5ff688
mov eax, dword [ebp + 8]
mov ecx, 1
call fcn.0040d150
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
shl eax, 4
lea ebx, [edx + eax]
push 1
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x120]
xor cx, cx
mov edx, 0x103
call fcn.00409930
mov edx, dword [ebp - 0x150]
mov eax, ebx
call fcn.00408f40
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebx + 8], eax
lea esi, [esi]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x14]
call fcn.005b9ea0
test eax, eax
jne 0x429020
nop
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00428f30
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4291a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
call fcn.0040e560
lea eax, [ebp - 0x28]
call fcn.0040e560
xor eax, eax
push fcn.00429180
push ebp
push 0x415340
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push dword [ebp - 4]
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x28]
call fcn.004ad1f0
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x38]
call fcn.0040e790
lea eax, [ebp - 0x38]
mov edx, ebx
call fcn.0040ec70
test al, al
je 0x42921c
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x14], 1
jmp 0x429248
push 1
push dword [ebp - 0xc]
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x429238
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x14], 1
mov esi, esi
push dword [ebp - 0x10]
call sub.kernel32.dll_SetLastError
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0x14], 0
jne 0x42925a
cmp dword [ebp - 0x10], 0
jne 0x42925a
mov byte [ebp - 8], 1
jmp 0x42925e
mov byte [ebp - 8], 0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00429180
mov al, byte [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42dfa0
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.0042df90
push ebp
push 0x415340
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 0x42e0b8
mov al, byte [ebp - 0x110]
test al, al
je 0x42e081
lea eax, [ebp - 0xc]
call fcn.00403c20
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405260
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004097c0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a5e0
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, 0x604778
call fcn.0044b350
mov edx, 0x42e00a
mov ecx, ebp
call fcn.00415200
jmp 0x42e0b8
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, 0x604778
call fcn.0044b350
mov edx, 0x42e081
mov ecx, ebp
call fcn.00415200
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x42e184
mov al, byte [ebp - 0x110]
test al, al
je 0x42e14d
lea eax, [ebp - 0xc]
call fcn.00403c20
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405260
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004097c0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a5e0
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, 0x604778
call fcn.0044b350
mov edx, 0x42e0d6
mov ecx, ebp
call fcn.00415200
jmp 0x42e184
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, 0x604778
call fcn.0044b350
mov edx, 0x42e14d
mov ecx, ebp
call fcn.00415200
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.0042d7d0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0042df90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x431ce0
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, 0x60543c
call fcn.0040d630
test al, al
je 0x431dc6
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00431de0
xor eax, eax
push fcn.00431cd0
push ebp
push 0x415340
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.00408f40
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.00430ef0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.004300e0
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.00431cd0
jmp 0x431dd1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00434930
mov esp, ebp
pop ebp
ret

Function at 0x433c60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [ebx + 4]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x433c7c
mov dword [ebx + 0xc], 0
mov esi, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ecd0
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.0043ecc0
push ebp
push 0x415340
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.00408f40
lea eax, [ebp - 0xc10]
call fcn.00403c60
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x43ed30
mov eax, 0x69b300
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x43edda
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.004101e0
xor eax, eax
push fcn.0043ecb0
push ebp
push 0x415340
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 0x43ed8c
mov eax, 0x69b300
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x43edc8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x60b86c
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x43edc8
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.0043ecb0
jmp 0x43ee38
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x43edfc
mov eax, 0x69b300
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x43ee38
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x60b86c
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x43ee38
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.0043ecc0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x44c920
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 0x44c93e
mov eax, 0x69b300
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x44c976
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x44c95a
clc
jmp 0x44c961
bt dword [0x60be10], eax
jb 0x44c972
mov eax, ebp
call fcn.0044ca60
test al, al
je 0x44c972
mov bl, 1
jmp 0x44c9a4
xor bl, bl
jmp 0x44c9a4
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x5d9990]
sete bl
mov al, byte [ebp - 0xc]
and al, bl
je 0x44c9a4
and esi, 0x400
je 0x44c9a4
mov eax, ebp
call fcn.0044c9d0
mov bl, al
lea esi, [esi]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d170
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.0044d160
push ebp
push 0x415340
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x69ca2c]
xor edx, edx
call fcn.00408f40
mov dword [ebx*4 + 0x69ca4c], 0xffffffff
cmp ebx, 7
jl 0x44d198
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 0x44d224
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409930
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00441770
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x44d224
push 4
push ebx
push esi
mov eax, 0x44d040
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x44d0d0
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.0044d160
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d970
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.0044d940
push ebp
push 0x415340
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00440cc0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408f40
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a5e0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408f40
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x44da7c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00409890
mov eax, dword [ebp - 8]
test eax, eax
je 0x44da07
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a5e0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409ec0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00409d60
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00440cc0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00409b00
test eax, eax
jne 0x44da74
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x44da63
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409d60
jmp 0x44da85
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x44d9f0
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.0044d940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44dae0
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.0044dab0
push ebp
push 0x415340
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040b590
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00449420
jmp 0x44dbb8
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040b540
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040c0d0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040be20
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00449420
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040bbf0
test eax, eax
jne 0x44dba8
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x44db96
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040be20
jmp 0x44dbbf
mov eax, esi
call fcn.00404930
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x44db40
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.0044dab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44dc00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x69ca90], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x69c8f0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x69c900], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x69c910], eax
mov eax, dword [ebp - 0x88]
mov dword [0x69c920], eax
mov edx, 0x69c931
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403750
lea eax, [ebp - 0x80]
call fcn.00404910
mov byte [0x69c930], al
mov eax, 0x60bee0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x69caa0], eax
test eax, eax
je 0x44dca0
mov eax, 0x60beec
push eax
push dword [0x69caa0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x69ca90], eax
nop
cmp dword [0x69c900], 6
jae 0x44dcb4
mov dword [0x5d7e80], 0
nop
cmp dword [0x69c900], 6
jb 0x44dcd0
cmp dword [0x69c910], 1
jb 0x44dcd0
mov dword [0x5d7e90], 2
mov esp, ebp
pop ebp
ret