joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a52a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.00450a4e
test eax, eax
pop ecx
jne 0x45a546
or eax, 0xffffffff
jmp 0x45a723
mov dword [0x4d4a20], eax
mov dword [0x4d49d0], 0x20
lea ecx, [eax + 0x480]
jmp 0x45a57b
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x4d4a20]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x45a55d
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x45a682
mov eax, dword [esp + 0x48]
test eax, eax
je 0x45a682
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x45a5bc
mov edi, eax
cmp dword [0x4d49d0], edi
jge 0x45a612
mov esi, 0x4d4a24
push ebx
call fcn.00450a4e
test eax, eax
pop ecx
je 0x45a60c
add dword [0x4d49d0], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x45a5fb
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x45a5e5
add esi, 4
cmp dword [0x4d49d0], edi
jl 0x45a5c9
jmp 0x45a612
mov edi, dword [0x4d49d0]
xor ebx, ebx
test edi, edi
jle 0x45a682
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x45a677
mov cl, byte [ebp]
test cl, 1
je 0x45a677
test cl, 8
jne 0x45a63b
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x45a677
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x4d4a20]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0045c364
test eax, eax
pop ecx
pop ecx
je 0x45a6a2
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x45a618
xor ebx, ebx
mov ecx, dword [0x4d4a20]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x45a704
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x45a6a7
push 0xfffffffffffffff6
pop eax
jmp 0x45a6b1
or eax, 0xffffffff
jmp 0x45a720
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x45a6fe
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x45a6fe
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x45a6dc
or byte [esi + 4], 0x40
jmp 0x45a6e5
cmp eax, 3
jne 0x45a6e5
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0045c364
test eax, eax
pop ecx
pop ecx
je 0x45a6a2
inc dword [esi + 8]
jmp 0x45a708
or byte [esi + 4], 0x40
jmp 0x45a708
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x45a684
push dword [0x4d49d0]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x45c052
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4d48d4], ebx
push esi
push edi
jne 0x45c0d2
push 0x4b9b48
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45c10d
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x4bcbfc
push edi
call esi
test eax, eax
mov dword [0x4d48d4], eax
je 0x45c10d
push 0x4bcbec
push edi
call esi
push 0x4bcbd8
push edi
mov dword [0x4d48d8], eax
call esi
cmp dword [0x4d44b4], 2
mov dword [0x4d48dc], eax
jne 0x45c0d2
push 0x4bcbbc
push edi
call esi
test eax, eax
mov dword [0x4d48e4], eax
je 0x45c0d2
push 0x4bcba4
push edi
call esi
mov dword [0x4d48e0], eax
mov eax, dword [0x4d48e0]
test eax, eax
je 0x45c117
call eax
test eax, eax
je 0x45c0fe
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4d48e4]
test eax, eax
je 0x45c0fe
test byte [ebp - 8], 1
jne 0x45c117
cmp dword [0x4d44c0], 4
jb 0x45c111
or byte [ebp + 0x12], 0x20
jmp 0x45c136
xor eax, eax
jmp 0x45c146
or byte [ebp + 0x12], 4
jmp 0x45c136
mov eax, dword [0x4d48d8]
test eax, eax
je 0x45c136
call eax
mov ebx, eax
test ebx, ebx
je 0x45c136
mov eax, dword [0x4d48dc]
test eax, eax
je 0x45c136
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4d48d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45f0c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4d0954]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x45f0ef
xor eax, eax
jmp 0x45f25d
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4d4a20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45f122
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00460fb9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45f1f4
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x45f22f
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x45f17d
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45f16e
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x45f151
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x45f1bd
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x45f1c6
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x45f142
jmp 0x45f1c8
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x45f258
cmp dword [ebp - 8], edi
je 0x45f22f
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x45f221
call fcn.00453623
mov dword [eax], 9
call fcn.0045362c
mov dword [eax], esi
jmp 0x45f22a
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x45f216
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x45f1c8
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x45f1c8
push dword [ebp - 8]
call fcn.00453635
pop ecx
or eax, 0xffffffff
jmp 0x45f25b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45f244
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x45f244
xor eax, eax
jmp 0x45f25b
call fcn.00453623
mov dword [eax], 0x1c
call fcn.0045362c
mov dword [eax], edi
jmp 0x45f22a
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00450999
leave
ret
Function at 0x45fccd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00450ae0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x45fd62
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4d44b4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x45fd62
cmp eax, 1
je 0x45fd7a
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x45fd62
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x45fd37
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x45fd5e
xor eax, eax
inc eax
jmp 0x45fd96
cmp esi, ebx
jae 0x45fd66
xor eax, eax
jmp 0x45fd96
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x4d44b4]
jmp 0x45fd7c
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4610fa
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00450ae0
mov eax, dword [0x4d0954]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0045f7fe
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x461224
push 2
push esi
push dword [ebp + 8]
call fcn.0045f7fe
add esp, 0xc
cmp eax, ebx
je 0x461224
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4611c7
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00453190
push 0x8000
push dword [ebp + 8]
call fcn.00461cc1
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x461180
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0045f0c6
add esp, 0xc
cmp eax, 0xffffffff
je 0x4611a0
sub edi, eax
test edi, edi
jg 0x461178
jmp 0x4611b8
call fcn.0045362c
cmp dword [eax], 5
jne 0x4611b5
call fcn.00453623
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00461cc1
pop ecx
pop ecx
jmp 0x46120f
jge 0x46120f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045f7fe
push dword [ebp + 8]
call fcn.0045edfa
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x46120f
call fcn.00453623
mov dword [eax], 0xd
call fcn.0045362c
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0045f7fe
add esp, 0xc
mov eax, esi
pop edi
jmp 0x461226
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00450999
leave
ret
Function at 0x4612cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x461492
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4d4a20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x461492
test cl, 0x48
je 0x461332
mov al, byte [eax + 5]
cmp al, 0xa
je 0x461332
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x461384
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x46136c
call fcn.00453623
mov dword [eax], 9
call fcn.0045362c
mov dword [eax], esi
jmp 0x46137c
cmp eax, 0x6d
je 0x461492
push eax
call fcn.00453635
pop ecx
or eax, 0xffffffff
jmp 0x461494
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x46148d
test edx, edx
je 0x4613a7
cmp byte [ebx], 0xa
jne 0x4613a7
or al, 4
jmp 0x4613a9
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x461487
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x461477
cmp al, 0xd
je 0x4613dd
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x461469
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4613f7
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4613f2
add dword [ebp + 0x10], 2
jmp 0x46144b
mov dword [ebp + 0x10], eax
jmp 0x461465
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x46141f
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x461465
cmp dword [ebp - 0xc], 0
je 0x461465
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x461440
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x46144b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x461468
cmp ebx, dword [ebp + 0xc]
jne 0x461450
cmp byte [ebp - 1], 0xa
jne 0x461450
mov byte [ebx], 0xa
jmp 0x461468
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045f7fe
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x461469
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4613c1
jmp 0x461487
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x461487
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x461494
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4619e9
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4be0a0
call fcn.004549b0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4d4950], edi
jne 0x461a2d
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x461a18
mov dword [0x4d4950], ebx
jmp 0x461a2d
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x461a2d
mov dword [0x4d4950], 2
mov eax, dword [0x4d4950]
cmp eax, ebx
jne 0x461a4d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x461b10
cmp eax, 2
je 0x461a56
cmp eax, edi
jne 0x461a7e
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x461a69
mov eax, dword [0x4d48a4]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x461a85
xor eax, eax
jmp 0x461b10
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00450ae0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x461ab8
cmp esi, edi
jne 0x461ace
push dword [ebp - 0x24]
call fcn.00450a4e
pop ecx
mov esi, eax
cmp esi, edi
je 0x461a7e
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x461b01
cmp dword [ebp + 0x14], edi
jne 0x461aeb
push edi
push edi
jmp 0x461af1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x461b0d
push esi
call fcn.00450a60
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004549eb
ret
Function at 0x461b19
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4be0b0
call fcn.004549b0
xor esi, esi
cmp dword [0x4d4954], esi
jne 0x461b5d
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x461b48
mov dword [0x4d4954], edi
jmp 0x461b5d
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x461b5d
mov dword [0x4d4954], 2
mov eax, dword [0x4d4954]
cmp eax, 2
je 0x461c3e
cmp eax, esi
je 0x461c3e
cmp eax, 1
jne 0x461ba2
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x461b8b
mov eax, dword [0x4d48a4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x461ba9
xor eax, eax
jmp 0x461c50
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00450ae0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x461bdf
cmp edi, esi
jne 0x461bfa
lea eax, [ebx + ebx]
push eax
call fcn.00450a4e
pop ecx
mov edi, eax
cmp edi, esi
je 0x461ba2
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x461c2d
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x461c17
push esi
push esi
jmp 0x461c1d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x461c39
push edi
call fcn.00450a60
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x461c50
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004549eb
ret
Function at 0x46220e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x462279
push 0x3d
push dword [ebp + 8]
call fcn.0045353f
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x462279
cmp dword [ebp + 8], esi
je 0x462279
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4d44d4]
cmp eax, dword [0x4d44d8]
jne 0x46225f
mov edi, eax
call fcn.004621ad
mov dword [0x4d44d4], eax
cmp eax, ebx
jne 0x4622b8
cmp dword [ebp + 0xc], ebx
je 0x462281
cmp dword [0x4d44dc], ebx
je 0x462281
call fcn.00461592
test eax, eax
je 0x4622b8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4623bc
push 4
call fcn.00450a4e
cmp eax, ebx
pop ecx
mov dword [0x4d44d4], eax
je 0x462279
mov dword [eax], ebx
cmp dword [0x4d44dc], ebx
jne 0x4622b8
push 4
call fcn.00450a4e
cmp eax, ebx
pop ecx
mov dword [0x4d44dc], eax
je 0x462279
mov dword [eax], ebx
mov ebx, dword [0x4d44d4]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00462160
mov edi, eax
test edi, edi
pop ecx
jl 0x462311
cmp dword [ebx], 0
je 0x462311
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00450a60
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4622f9
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x462347
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4622f0
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0045337c
test eax, eax
pop ecx
pop ecx
je 0x462347
jmp 0x462342
cmp dword [ebp - 4], 0
jne 0x4623b5
test edi, edi
jge 0x462321
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0045337c
test eax, eax
pop ecx
pop ecx
je 0x462279
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4d44d4], eax
cmp dword [ebp + 0xc], 0
je 0x46239e
push dword [ebp + 8]
call fcn.00452f70
inc eax
inc eax
push eax
call fcn.00450a4e
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x46239e
push dword [ebp + 8]
push esi
call fcn.00458fa0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x462397
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00450a60
pop ecx
cmp dword [ebp - 4], 0
je 0x4623ad
push dword [ebp + 8]
call fcn.00450a60
pop ecx
mov eax, dword [ebp - 8]
jmp 0x46227c
push esi
call fcn.00450a60
pop ecx
xor eax, eax
jmp 0x46227c
Function at 0x46a2d4
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4ac9c1
call fcn.00452ffc
sub esp, 0x9c
mov eax, dword [0x4d0954]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call fcn.00475a61
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], 0x4b8f44
call fcn.004014e7
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x46a365
mov edi, 0x94
push edi
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.00453190
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], edi
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 2
jne 0x46a35e
cmp dword [ebp - 0xa4], 5
mov dword [ebp + 0x20], 0x58
jae 0x46a365
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00450a4e
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x46a37a
call fcn.00469f3f
push dword [ebp + 0x20]
push ebx
push dword [esi + 0x70]
call fcn.00453190
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x46a3f9
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0049b87b
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x46a9ed
je 0x46a425
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
cmp dword [ebp + 0x18], ebx
je 0x46a45b
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00401e4c
push ebx
mov ecx, edi
call fcn.0040230b
jmp 0x46a444
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.0045353f
cmp eax, ebx
pop ecx
pop ecx
jne 0x46a441
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00450999
leave
ret 0x1c