joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411330
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x5d54e0]
cmp ax, 0xcb
je 0x41143c
cmp ax, 0xcc
je 0x41143c
lea esi, [esi]
mov edx, dword [0x69b080]
test edx, edx
je 0x411365
mov eax, dword [0x69af30]
call edx
mov ebx, eax
jmp 0x41136a
mov ebx, 0x69af34
cmp word [0x69af20], 0
jle 0x411390
mov eax, 0x69af00
call fcn.004115f0
mov eax, ebx
call fcn.00410ef0
mov eax, ebx
call fcn.00410f60
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x4113b2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x4113ad
mov edx, edi
mov eax, ebx
call fcn.00410360
jmp 0x4113b0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x411398
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x69af20], 0
jle 0x41143c
mov edx, 0x69ae40
mov eax, ebx
call fcn.004104a0
mov edi, eax
test edi, edi
je 0x41140c
mov eax, dword [0x69aed4]
mov dword [edi + 0xc], eax
cmp dword [0x69aed4], 0
je 0x411400
mov eax, dword [0x69aed4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x69aed4], eax
nop
sub word [0x69af20], 1
cmp word [0x69af20], 0
sete bl
mov eax, 0x69af00
call fcn.00411610
test bl, bl
je 0x41143c
mov eax, 0x69af00
call fcn.004115e0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x412230
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
mov dword [ebp - 4], eax
mov ebx, eax
lea eax, [ebp - 4]
call fcn.004120a0
push dword [ebp - 4]
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x41227c
call sub.kernel32.dll_GetLastError
mov esi, eax
cmp esi, 5
jne 0x412274
push dword [ebp - 4]
call sub.kernel32.dll_GetFileAttributesW
and eax, 0x10
cmp eax, 0x10
jne 0x412274
mov esi, 2
nop
mov eax, esi
call fcn.00404190
nop
cmp ebx, dword [ebp - 4]
je 0x41228c
mov eax, dword [ebp - 4]
call fcn.004101d0
lea esi, [esi]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413cc0
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.00413cb0
push ebp
push 0x415300
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 0x413cf9
mov eax, 0x69a300
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0040bbf0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413d1c
mov eax, 0x69a300
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x413d29
mov eax, 0x69a300
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x413dee
jmp 0x413d43
sub edx, 1
cmp edx, 3
jbe 0x413d54
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x413d40
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
xor ebx, ebx
cmp edi, ebx
jne 0x413d6d
cmp eax, ecx
je 0x413d78
lea eax, [ebp - 0xc]
call fcn.0040bbf0
lea esi, [esi]
mov eax, 0x4011e0
mov edx, dword [ebp - 0xc]
call fcn.00413c30
mov edx, dword [0x69b080]
test edx, edx
je 0x413d98
mov eax, dword [0x69a170]
call edx
jmp 0x413d9d
mov eax, 0x69a174
cmp word [eax], 0
jne 0x413dfa
mov eax, esi
test esi, esi
je 0x413dad
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x413dfa
cmp word [esi + 2], 0x3a
jne 0x413dfa
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 0x413ddf
mov eax, 0x69a300
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
lea esi, [esi]
jmp 0x413dfa
mov eax, 0x4011e0
mov edx, esi
call fcn.00413c30
mov edx, dword [0x69b080]
test edx, edx
je 0x413e0d
mov eax, dword [0x69a170]
call edx
jmp 0x413e12
mov eax, 0x69a174
cmp word [eax], 2
jne 0x413e38
mov edx, dword [0x69b080]
test edx, edx
je 0x413e2c
mov eax, dword [0x69a170]
call edx
jmp 0x413e31
mov eax, 0x69a174
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.00413cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413e70
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.00413e50
push ebp
push 0x415300
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x413f9a
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.0040bbf0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x413eff
mov edx, 0x69a300
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x413f51
call sub.kernel32.dll_GetLastError
call fcn.00404190
lea eax, [ebp - 0x10]
call fcn.0040a720
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040abc0
mov edx, dword [ebp - 0x14]
mov ecx, 0x5f63b8
lea eax, [ebp - 0x10]
call fcn.0040aa50
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040b4c0
jmp 0x413fe8
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x413f6a
cmp eax, ecx
je 0x413f74
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040bbf0
cmp byte [0x5d5760], 0
jne 0x413fe8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040c250
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b550
lea esi, [esi]
jmp 0x413fe8
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040bbf0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x413fbe
mov eax, 0x69a300
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5d5760], 0
jne 0x413fe8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040c250
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b550
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00413e50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414480
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 [0x69a270], 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.00414660
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x69a270]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403710
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5d5560], eax
mov ebx, eax
jmp 0x414623
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x414508
cmp byte [ebx], 0
je 0x41462c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x414583
mov al, byte [ebx]
cmp al, 1
jb 0x414578
sub al, 0x20
jbe 0x414548
sub al, 2
je 0x41455c
jmp 0x414578
mov al, byte [ebp - 0x114]
test al, al
je 0x414588
add dword [ebp - 0x110], 1
jmp 0x414580
cmp byte [ebx + 1], 0x22
je 0x414573
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414580
add ebx, 1
jmp 0x414580
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414538
test dword [ebp - 0x10c], 0xffffffff
je 0x41461c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00414660
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x69a270]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x414613
mov al, byte [ebx]
cmp al, 1
jb 0x414608
sub al, 0x20
jbe 0x4145d8
sub al, 2
je 0x4145ec
jmp 0x414608
mov al, byte [ebp - 0x114]
test al, al
je 0x414618
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x414610
cmp byte [ebx + 1], 0x22
je 0x414603
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414610
add ebx, 1
jmp 0x414610
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4145c8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41450b
mov ebx, dword [ebp - 0x10c]
mov dword [0x69a260], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x69a270
call fcn.00411170
mov eax, dword [0x69a270]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42da50
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.0042da40
push ebp
push 0x415300
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 0x42db68
mov al, byte [ebp - 0x110]
test al, al
je 0x42db31
lea eax, [ebp - 0xc]
call fcn.00403be0
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405220
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409780
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a5a0
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, 0x603648
call fcn.0044ae00
mov edx, 0x42daba
mov ecx, ebp
call fcn.004151c0
jmp 0x42db68
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, 0x603648
call fcn.0044ae00
mov edx, 0x42db31
mov ecx, ebp
call fcn.004151c0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x42dc34
mov al, byte [ebp - 0x110]
test al, al
je 0x42dbfd
lea eax, [ebp - 0xc]
call fcn.00403be0
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405220
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409780
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a5a0
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, 0x603648
call fcn.0044ae00
mov edx, 0x42db86
mov ecx, ebp
call fcn.004151c0
jmp 0x42dc34
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, 0x603648
call fcn.0044ae00
mov edx, 0x42dbfd
mov ecx, ebp
call fcn.004151c0
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.0042d280
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0042da40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x431790
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, 0x60430c
call fcn.0040d5f0
test al, al
je 0x431876
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00431890
xor eax, eax
push fcn.00431780
push ebp
push 0x415300
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.00408f00
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.004309a0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0042fb90
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.00431780
jmp 0x431881
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004343e0
mov esp, ebp
pop ebp
ret

Function at 0x433710
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 0x43372c
mov dword [ebx + 0xc], 0
mov esi, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e780
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.0043e770
push ebp
push 0x415300
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.00408f00
lea eax, [ebp - 0xc10]
call fcn.00403c20
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x43e7e0
mov eax, 0x69a300
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x43e88a
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.004101a0
xor eax, eax
push fcn.0043e760
push ebp
push 0x415300
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 0x43e83c
mov eax, 0x69a300
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x43e878
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x60a73c
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x43e878
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.0043e760
jmp 0x43e8e8
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x43e8ac
mov eax, 0x69a300
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x43e8e8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x60a73c
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x43e8e8
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.0043e770
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x44c3d0
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 0x44c3ee
mov eax, 0x69a300
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x44c426
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x44c40a
clc
jmp 0x44c411
bt dword [0x60ace0], eax
jb 0x44c422
mov eax, ebp
call fcn.0044c510
test al, al
je 0x44c422
mov bl, 1
jmp 0x44c454
xor bl, bl
jmp 0x44c454
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x5d8950]
sete bl
mov al, byte [ebp - 0xc]
and al, bl
je 0x44c454
and esi, 0x400
je 0x44c454
mov eax, ebp
call fcn.0044c480
mov bl, al
lea esi, [esi]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44cc20
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.0044cc10
push ebp
push 0x415300
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x69ba2c]
xor edx, edx
call fcn.00408f00
mov dword [ebx*4 + 0x69ba4c], 0xffffffff
cmp ebx, 7
jl 0x44cc48
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 0x44ccd4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004098f0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00441220
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x44ccd4
push 4
push ebx
push esi
mov eax, 0x44caf0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x44cb80
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.0044cc10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d420
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.0044d3f0
push ebp
push 0x415300
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00440770
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408f00
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a5a0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408f00
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x44d52c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00409850
mov eax, dword [ebp - 8]
test eax, eax
je 0x44d4b7
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a5a0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409e80
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00409d20
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00440770
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00409ac0
test eax, eax
jne 0x44d524
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x44d513
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409d20
jmp 0x44d535
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x44d4a0
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.0044d3f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d590
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.0044d560
push ebp
push 0x415300
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040b550
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00448ed0
jmp 0x44d668
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040b500
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040c090
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040bde0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00448ed0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040bbb0
test eax, eax
jne 0x44d658
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x44d646
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040bde0
jmp 0x44d66f
mov eax, esi
call fcn.004048f0
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x44d5f0
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.0044d560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d6b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x69ba90], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x69b8f0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x69b900], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x69b910], eax
mov eax, dword [ebp - 0x88]
mov dword [0x69b920], eax
mov edx, 0x69b931
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403710
lea eax, [ebp - 0x80]
call fcn.004048d0
mov byte [0x69b930], al
mov eax, 0x60adb0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x69baa0], eax
test eax, eax
je 0x44d750
mov eax, 0x60adbc
push eax
push dword [0x69baa0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x69ba90], eax
nop
cmp dword [0x69b900], 6
jae 0x44d764
mov dword [0x5d6e40], 0
nop
cmp dword [0x69b900], 6
jb 0x44d780
cmp dword [0x69b910], 1
jb 0x44d780
mov dword [0x5d6e50], 2
mov esp, ebp
pop ebp
ret