joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x54c710]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x4976b7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 1
jbe 0x4976f3
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x497dc0
push 0
push 0
call fcn.004e4fc2
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.0042fb60
mov ecx, esi
call fcn.00497a80
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49e224
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4b3650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b32d0
Function at 0x4b4880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b9a3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x54c710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004226c0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x4b4a93
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x4b4a93
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4b4a93
push eax
call esi
test eax, eax
je 0x4b4a93
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004b47d0
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x4b4a84
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004db850
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b4a84
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x4b49ab
cmp eax, 2
jne 0x4b4a84
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4b49cc
test cl, 1
jne 0x4b4a84
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4b49d2
jmp 0x4b4a84
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4b4a84
lea ecx, [ebp - 0x78]
call fcn.004b2d50
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004b2e10
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x527ccc
push eax
call fcn.004b4e90
push 0x2a
push dword [ebp - 0x78]
call fcn.004b32d0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x4b4a7c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b4a32
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004b2ba0
push dword [0x54d828]
lea eax, [ebp - 0x74]
push dword [0x54d824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4b4a6d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.00404bdb
mov edi, 1
jmp 0x4b4a86
lea ecx, [ebp - 0x78]
call fcn.00404bdb
xor edi, edi
test esi, esi
je 0x4b4a95
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b4a95
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b353
mov esp, ebp
pop ebp
ret
Function at 0x4b4ad0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4b4ae5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b4af0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4b7c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b7cf1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4b7cbf
cmp eax, 2
jne 0x4b7cdb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4b7ceb
test ecx, ecx
je 0x4b7ce6
test cl, 1
jne 0x4b7cdb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4b7ceb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4f1025
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4f1064
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f1064
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f1064
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4f1064
cmp dword [ecx + 0x74], 0xe
jbe 0x4f1064
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4f6818
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52c958
push 0x52c950
push 0x513470
push 0x1f
call fcn.004f6643
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f684c
push dword [ebp + 8]
mov ecx, esi
call dword [0x50f74c]
call esi
jmp 0x4f6852
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4f6896
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52c968
push 0x52c960
push str.FlsGetValue
push 0x21
call fcn.004f6643
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f68cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x50f74c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4f68d5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52c970
push 0x52c968
push str.FlsSetValue
push 0x22
call fcn.004f6643
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f690f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x50f74c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4f6ebc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x559c80]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f6efc
cmp byte [ebx], 0xa
jne 0x4f6efc
or byte [edi + eax + 0x28], 4
jmp 0x4f6f01
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4f7000
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4f6fe3
inc eax
cmp dl, 0xd
je 0x4f6f2d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4f6f53
cmp eax, ecx
jae 0x4f6f61
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4f6f15
jmp 0x4f7000
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f6fde
cmp dword [ebp - 0x10], 0
je 0x4f6fde
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x559c80]
test byte [eax + edi + 0x28], 0x48
je 0x4f6fb8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f6fa3
mov byte [esi], dl
jmp 0x4f6fb4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x559c80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f7000
cmp byte [ebp - 1], 0xa
jne 0x4f6fc7
cmp esi, ebx
jne 0x4f6fc7
mov byte [esi], 0xa
jmp 0x4f6fff
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004eaf87
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f7000
mov byte [esi], 0xd
jmp 0x4f6fff
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x559c80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f6ffd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f7000
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f7009
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x559c80]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f704f
cmp word [ebx], dx
jne 0x4f704f
or byte [eax + edi + 0x28], 4
jmp 0x4f7054
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4f71b7
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4f7197
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4f7095
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f70cb
cmp eax, edx
jae 0x4f70d9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4f7070
jmp 0x4f71b7
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f7192
cmp dword [ebp - 0x18], 0
je 0x4f7192
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x559c80]
test byte [eax + edi + 0x28], 0x48
je 0x4f7168
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4f712c
mov word [esi], cx
jmp 0x4f7163
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x559c80]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x559c80]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x559c80]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4f71b7
pop eax
cmp word [ebp - 4], ax
jne 0x4f7178
cmp esi, ebx
jne 0x4f7178
mov word [esi], ax
jmp 0x4f71b4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004eaf87
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f71b7
push 0xd
pop eax
jmp 0x4f7173
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x559c80]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4f71b1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4f71b7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4fa926
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004fa8a2
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4faa95
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4faa95
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4faa4a
jg 0x4fa982
test eax, eax
je 0x4faa40
push 1
push 0x1000
call fcn.004f5ca3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fa9a5
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4faa37
push 0x8000
push ebx
call fcn.004f1e3c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4fa9ce
jg 0x4fa9c9
cmp ecx, 0x1000
jb 0x4fa9ce
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004eb8cf
add esp, 0x10
cmp eax, 0xffffffff
je 0x4faa13
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4fa9c9
jl 0x4fa9fa
test ecx, ecx
jne 0x4fa9bb
push dword [ebp - 0xc]
push ebx
call fcn.004f1e3c
push esi
call fcn.004f4ac3
add esp, 0xc
xor ebx, ebx
jmp 0x4faaa3
cmp byte [edi + 0x24], 0
je 0x4faa2a
cmp dword [edi + 0x20], 5
jne 0x4faa2a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4faa35
mov ebx, dword [edi + 0x18]
jmp 0x4faa37
xor ebx, ebx
push esi
call fcn.004f4ac3
pop ecx
jmp 0x4faaa3
test ecx, ecx
jg 0x4faa0c
jl 0x4faa4a
test eax, eax
jae 0x4faa0c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004eaf87
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4faa6a
cmp byte [edi + 0x1c], 0
je 0x4faa0c
jmp 0x4faa9b
push ebx
call fcn.004fa838
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4faa0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4faaa3
cmp byte [edi + 0x1c], 0
je 0x4faaa0
mov ebx, dword [edi + 0x18]
jmp 0x4faaa3
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004eaf87
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fcfeb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x54c710]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4fd036
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004fd186
test al, al
jne 0x4fd030
sub edx, 2
cmp edx, edi
jne 0x4fd016
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4fd058
lea eax, [edi + 2]
cmp edx, eax
je 0x4fd058
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004fcf37
add esp, 0x10
jmp 0x4fd152
push esi
lea ecx, [ebp - 0x255]
call fcn.004fd186
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4fd09b
push dword [ebp - 0x25c]
jmp 0x4fd048
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4fd0d8
cmp word [ebp - 0x226], 0
je 0x4fd0f9
cmp word [ebp - 0x226], ax
jne 0x4fd0d8
cmp word [ebp - 0x224], 0
je 0x4fd0f9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004fcf37
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4fd145
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4fd0b2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4fd12d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4fd152
push 0x4fcd67
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005028d0
add esp, 0x10
jmp 0x4fd122
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b353
leave
ret

Function at 0x4fda68
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4fda79
pop esi
ret
push ebx
push edi
push esi
call fcn.004fda31
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004f4afd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4fdaa1
push ebx
push esi
push edi
call fcn.004dad50
add esp, 0xc
push 0
call fcn.004f4ac3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4fde71
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fdab6
Function at 0x4ffef7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004f47d8
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fff66
cmp esi, dword [ebp - 4]
je 0x4fff61
cmp dword [ebp + 0xc], 0
je 0x4fff61
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4fff3e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004ffa49
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4fff68
xor eax, eax
inc eax
jmp 0x4fff68
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4fffcd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x54c710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004f47d8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004f47d8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x500044
cmp word [ecx], dx
je 0x500044
mov eax, dword [0x532b1c]
push edi
dec eax
push eax
push 0x532a08
call fcn.004fff6c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5000b7
cmp word [eax], dx
je 0x5000b7
mov eax, dword [edi]
test eax, eax
je 0x500068
cmp word [eax], dx
je 0x500068
lea eax, [ebp - 0x10]
push eax
call fcn.004ff94f
jmp 0x500071
lea eax, [ebp - 0x10]
push eax
call fcn.004ff9ea
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5000e1
mov eax, dword [0x532a04]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5326f8
call fcn.004fff6c
add esp, 0xc
test al, al
je 0x5000e1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5000ac
cmp word [eax], di
je 0x5000ac
lea eax, [ebp - 0x10]
push eax
call fcn.004ff94f
pop ecx
jmp 0x5000e3
lea eax, [ebp - 0x10]
push eax
call fcn.004ff9ea
jmp 0x5000a9
mov eax, dword [edi]
test eax, eax
je 0x5000ce
cmp word [eax], dx
je 0x5000ce
lea eax, [ebp - 0x10]
push eax
call fcn.004ff904
pop ecx
jmp 0x5000e1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5001ac
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004ffdf1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5001ac
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5001ac
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5001ac
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x500139
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004f6a54
test ebx, ebx
je 0x5001a7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004f6a54
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5001ac
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5001ac
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004eeb66
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5001ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b353
leave
ret
Function at 0x4210e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, ebx
sub esp, 0x10
lea edx, [eax + 1]
jmp 0x4210f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4210f0
push esi
push edi
sub eax, edx
lea esi, [eax + ebx]
push 0x5c
push ebx
mov dword [ebp - 4], esi
call fcn.00470ee0
xor ecx, ecx
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test eax, eax
jne 0x421120
mov dword [ebp - 0xc], ebx
jmp 0x421120
cmp byte [esi], 0x5c
jne 0x421136
inc esi
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], esi
mov byte [esi], 0x5f
mov eax, dword [0x499ed0]
mov dword [ecx + esi], eax
mov edx, dword [str.93020400128004FF]
mov dword [ecx + esi + 4], edx
mov al, byte [0x499ed8]
mov byte [ecx + esi + 8], al
test ebx, ebx
je 0x42119f
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x42119c
lea ecx, [esi + esi + 2]
push ecx
call fcn.0046f41d
add esp, 4
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov word [edi + esi*2 - 2], dx
mov esi, dword [ebp - 4]
jmp 0x4211a1
mov esi, dword [ebp - 4]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov dword [ebp - 0x10], eax
call fcn.0046f3e3
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4211db
mov eax, dword [ebp - 0xc]
push 0x2e
push eax
call fcn.004705c0
add esp, 8
test eax, eax
je 0x4211e3
cmp eax, esi
ja 0x4211e3
mov ecx, dword [ebp - 8]
mov byte [eax], 0x5c
jmp 0x421120
pop edi
mov eax, ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret