joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ac90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5431f7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58d038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
xor eax, eax
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [ebp - 4], 4
push ebx
cmp eax, 0x10
jb 0x44ace4
call fcn.00448050
jmp 0x44ace9
call fcn.004adeb0
mov edx, dword [esi + 0x3c]
mov ebx, dword [esi + 0x40]
xor eax, eax
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [edx*4]
mov byte [ebp - 4], 3
push ebx
cmp ecx, 0x10
jb 0x44ad12
call fcn.00448050
jmp 0x44ad17
call fcn.004adeb0
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
add esp, 4
mov edi, edx
xor al, al
push edx
mov byte [ebp - 4], 2
rep stosb byte es:[edi], al
call fcn.004adeb0
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edi, edx
xor al, al
push edx
mov byte [ebp - 4], 1
rep stosb byte es:[edi], al
call fcn.004adeb0
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, edx
xor al, al
push edx
mov byte [ebp - 4], 0
rep stosb byte es:[edi], al
call fcn.004adeb0
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edi, edx
xor al, al
push edx
mov dword [ebp - 4], 0xffffffff
rep stosb byte es:[edi], al
call fcn.004adeb0
add esp, 0x10
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 0x44b410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5432d2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x58d038]
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 esi, ecx
push 1
mov dword [ebp - 0x14], esi
call fcn.00442300
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], 2
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xb
call fcn.0045f460
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xc
call fcn.0045f460
mov byte [esi + 0x5c], 1
lea edi, [esi + 0x60]
push 1
mov ecx, edi
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x18], edi
call fcn.00442300
lea eax, [edi + 0x10]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov ecx, 0x10
mov dword [eax + 0x48], ecx
mov byte [eax + 0x41], 1
mov dword [eax + 0x4c], eax
lea eax, [edi + 0x60]
mov dword [eax + 0x48], ecx
mov byte [eax + 0x41], 1
mov dword [eax + 0x4c], eax
mov eax, dword [edi + 0xac]
push eax
mov byte [ebp - 4], 0xf
call fcn.00463870
mov dword [edi], vtable.CryptoPP::SHA1.0
add esp, 4
mov dword [esi], vtable.CryptoPP::PK_MessageAccumulatorImpl_class_CryptoPP::SHA1_.0
mov eax, esi
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x463870
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x467310
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor eax, eax
push esi
mov dword [ebp - 0x14], eax
push edi
mov edi, edi
movzx eax, byte [eax + 0x555a68]
mov esi, eax
shr esi, 6
mov edi, esi
and edi, 2
mov dword [ebp - 8], edi
and esi, 1
mov ecx, eax
shr ecx, 5
mov edx, ecx
mov edi, ecx
mov dword [ebp - 4], esi
mov esi, ecx
and edi, 1
mov ecx, eax
shr ecx, 7
mov dword [ebp - 0xc], ecx
lea ebx, [eax + eax]
xor ebx, eax
lea ecx, [ebx + ebx]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
imul ebx, ebx, 0x1b000000
xor ecx, eax
shl ecx, 0x19
xor ecx, ebx
mov ebx, edi
imul ebx, ebx, 0x1b000000
xor ecx, ebx
and esi, 2
mov ebx, esi
imul ebx, ebx, 0x1b000000
xor ecx, ebx
mov ebx, dword [ebp - 4]
imul ebx, ebx, 0x1b000000
xor ecx, ebx
mov ebx, dword [ebp - 8]
imul ebx, ebx, 0x1b000000
xor ecx, ebx
and edx, 4
mov dword [ebp - 0x10], edi
imul edi, edi, 0x11b00
mov ebx, edx
imul ebx, ebx, 0x1b000000
xor ecx, ebx
mov ebx, dword [ebp - 0x18]
add ebx, ebx
add ebx, ebx
xor ebx, eax
shl ebx, 8
xor ebx, edi
mov edi, esi
imul edi, edi, 0x11b00
xor ebx, edi
mov edi, dword [ebp - 4]
imul edi, edi, 0x11b00
xor ebx, edi
mov edi, dword [ebp - 8]
imul edi, edi, 0x11b00
xor ebx, edi
mov edi, edx
imul edi, edi, 0x11b00
xor ebx, edi
or ecx, ebx
mov ebx, dword [ebp - 0x10]
imul ebx, ebx, 0x11b0000
lea edi, [eax*8]
xor edi, eax
shl edi, 0x10
xor edi, ebx
mov ebx, esi
imul ebx, ebx, 0x11b0000
xor edi, ebx
mov ebx, edx
imul ebx, ebx, 0x11b0000
xor edi, ebx
lea ebx, [eax*4]
or ecx, edi
mov edi, dword [ebp - 0xc]
xor ebx, eax
add ebx, ebx
imul edi, edi, 0x11b
imul esi, esi, 0x11b
imul edx, edx, 0x11b
xor ebx, edi
mov edi, dword [ebp - 0x10]
imul edi, edi, 0x11b
xor ebx, edi
xor ebx, esi
xor ebx, edx
xor ebx, eax
or eax, ecx
or ebx, ecx
xor edx, edx
or edx, eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
or ebx, ecx
mov dword [eax*8 + 0x5945e0], edx
mov dword [eax*8 + 0x5945e4], ebx
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x100
jl 0x467320
pop edi
pop esi
mov byte [0x594de1], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x469656
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x469665
mov edx, dword [eax]
jmp 0x469667
mov edx, eax
push esi
cmp ecx, 8
jb 0x469671
mov esi, dword [eax]
jmp 0x469673
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x469770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov word [ebp - 0x20], ax
mov eax, edx
push esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4697b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.00401b70
mov eax, dword [ebp - 0x20]
mov esi, 8
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xc], esi
jae 0x4697e0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4697ff
cmp dword [ebp - 0xc], esi
jmp 0x46986d
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x28]
push edx
push 0
push ebx
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x469869
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x469845
cmp eax, 2
jne 0x469869
cmp dword [ebp - 0xc], 8
jb 0x469857
mov edx, dword [ebp - 0x20]
push edx
call fcn.00480102
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 8
jb 0x46987b
mov eax, dword [ebp - 0x20]
push eax
call fcn.00480102
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x80004005
pop ebx
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x469b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54480b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x58d038]
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 + 8]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov dword [ebp - 0x254], ebx
call fcn.00469a50
push str.ksolite.dll
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x250]
push edx
mov dword [ebp - 4], ebx
call fcn.00419950
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x469beb
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x469c0c
mov eax, dword [ebp - 0x250]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
cmp esi, ebx
je 0x469c46
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
lea edx, [ebp - 0x234]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.00402560
cmp dword [ebp - 0x220], 8
jb 0x469dc9
mov eax, dword [ebp - 0x234]
push eax
jmp 0x469dc1
push 0x206
lea edx, [ebp - 0x216]
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.00480280
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
call fcn.004723d0
push eax
call fcn.00469770
add esp, 0x14
cmp eax, ebx
je 0x469cb1
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push 0x80000002
call fcn.00469770
add esp, 0x14
cmp eax, ebx
jne 0x469cf4
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x469cc0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00401b70
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.004044f0
cmp dword [ebp - 0x224], ebx
jne 0x469d94
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
call fcn.004723d0
push eax
call fcn.00469770
add esp, 0x14
cmp eax, ebx
je 0x469d4f
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call fcn.00469770
add esp, 0x14
cmp eax, ebx
jne 0x469d94
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x469d60
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x469d60
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00401b70
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.004044f0
lea ecx, [ebp - 0x234]
xor eax, eax
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.00402560
cmp dword [ebp - 0x220], 8
jb 0x469dc9
mov edx, dword [ebp - 0x234]
push edx
call fcn.00480102
add esp, 4
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x46a3f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544948
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x58c578], 0xffffffff
jne 0x46a4de
lea eax, [ebp - 0x64]
push eax
call fcn.00469b80
push 0x552ce0
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], 0
call fcn.00404e30
add esp, 0x10
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x46a45e
mov edx, dword [ebp - 0x64]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401a70
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x46a490
lea eax, [ebp - 0x2c]
push eax
push 0
push str.SupportNewLangs
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x58c578], eax
cmp dword [ebp - 0x18], esi
jb 0x46a4b9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x46a4de
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00480102
add esp, 4
xor eax, eax
cmp dword [0x58c578], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x46a510
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54499c
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x58d038]
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 + 8]
lea eax, [ebp - 0x26c]
xor esi, esi
push eax
mov dword [ebp - 0x270], esi
call fcn.00469b80
push 0x552ce0
push eax
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 4], esi
call fcn.00404e30
add esp, 0x10
mov ebx, 8
cmp dword [ebp - 0x258], ebx
jb 0x46a589
mov edx, dword [ebp - 0x26c]
push edx
call fcn.00480102
add esp, 4
mov ecx, dword [0x558bf8]
mov eax, dword [str.0.0.0.0]
mov edx, dword [0x558bfc]
push 0x1f8
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], eax
mov eax, dword [0x558c00]
lea ecx, [ebp - 0x208]
push esi
push ecx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], eax
call fcn.00480280
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00401a70
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x220], ebx
jae 0x46a616
lea eax, [ebp - 0x234]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.MajorVersion
push str.Version
call esi
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x46a644
lea eax, [ebp - 0x234]
push eax
push 0
push str.FirstVersion
push str.Version
call esi
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x46a66d
lea eax, [ebp - 0x234]
push eax
push 0
push str.SecondVersion
push str.Version
call esi
cmp dword [ebp - 0x220], 8
mov ebx, eax
mov eax, dword [ebp - 0x234]
jae 0x46a693
lea eax, [ebp - 0x234]
push eax
push 0
push str.Version
push str.Version
call esi
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x270]
push eax
push ebx
push ecx
push edx
push str._u._u._u._u
push 0x103
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00482a67
xor ebx, ebx
add esp, 0x20
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46a6f0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, edi
call fcn.00401b70
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x46a72a
mov eax, dword [ebp - 0x234]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], esi
jb 0x46a75a
mov edx, dword [ebp - 0x250]
push edx
call fcn.00480102
add esp, 4
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x46aef0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544a88
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x58d038]
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 eax, dword [ebp + 8]
mov ebx, edx
push eax
lea edx, [ebp - 0x64]
xor esi, esi
push edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x70], esi
call fcn.00469f40
push 0x54bf94
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], esi
call fcn.00419950
push str.lang.conf
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 1
call fcn.00404e30
add esp, 0x20
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 3
jb 0x46af76
mov eax, dword [ebp - 0x48]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
mov edi, 0x80
lea eax, [ecx + 0x7e]
mov edi, edi
test esi, esi
je 0x46afab
cmp word [esi + edi*2 - 4], 0
jne 0x46affe
cmp word [esi + edi*2 - 2], 0
jne 0x46affe
lea edx, [edi - 2]
cmp eax, edx
jne 0x46affe
add edi, edi
test esi, esi
je 0x46afba
push esi
call fcn.00481753
add esp, 4
lea ebx, [edi + edi]
push ebx
call fcn.0048178d
push ebx
mov esi, eax
push 0
push esi
call fcn.00480280
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 8
jae 0x46afdd
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
push eax
push edi
push esi
push 0x551f80
call fcn.00401530
push eax
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [ebp - 0x6c]
jmp 0x46af90
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push eax
mov word [ebx], cx
push esi
mov ecx, ebx
call fcn.00401b70
push esi
call fcn.00481753
mov esi, 8
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x46b039
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x46b05e
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00480102
add esp, 4
mov eax, ebx
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x46cec0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544e08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, 1
test byte [0x594ed0], al
jne 0x46cf28
or dword [0x594ed0], eax
xor eax, eax
push 0x549ab0
mov dword [0x594ec8], 7
mov dword [0x594ec4], 0
mov word [0x594eb4], ax
call fcn.00481a9d
add esp, 4
cmp dword [0x594ec4], 0
jne 0x46cf8e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0046a020
add esp, 8
push eax
mov ecx, 0x594eb4
mov dword [ebp - 4], 0
call fcn.00402560
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], 0xffffffff
jb 0x46cf72
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [0x594ec4], eax
je 0x46cf9a
push 0x594eb4
mov ecx, esi
call fcn.00406860
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x46e330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x46e339
xor al, al
ret
cmp dword [ecx + 0x14], 8
jb 0x46e341
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46e357
test al, 0x10
je 0x46e357
mov eax, 1
ret
xor eax, eax
ret

Function at 0x46ed60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5450c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x58d038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
jl 0x46edf9
mov esi, dword [ebp + 0xc]
jg 0x46eda9
cmp esi, ebx
jbe 0x46edf9
cmp dword [edi], 0xffffffff
je 0x46edf9
push esi
lea ecx, [ebp - 0x20]
call fcn.00434680
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi]
push ebx
lea eax, [ebp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00434680
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.0046e8d0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x46ee07
push eax
call fcn.00480102
add esp, 4
jmp 0x46ee07
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.0046e8d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46f120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0041a730
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x46f164
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x46f150
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46f164
test al, 0x10
je 0x46f164
mov bl, 1
jmp 0x46f166
xor bl, bl
cmp dword [ebp - 0xc], 8
jb 0x46f178
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00480102
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x470000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cb08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x47003b
mov eax, dword [esi]
jmp 0x47003d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4700f3
cmp dword [esi + 0x14], edi
jb 0x470056
mov eax, dword [esi]
jmp 0x470058
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x4700f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4700f3
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00401a70
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.0046ff50
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x4700bd
lea ecx, [ebp - 0x2c]
call fcn.0046e6d0
xor eax, eax
jmp 0x4700f8
lea edx, [ebp - 0x2c]
push edx
call fcn.00470000
add esp, 4
test eax, eax
je 0x4700b1
cmp dword [esi + 0x14], 8
jb 0x4700d5
mov esi, dword [esi]
push 0
push esi
call edi
test eax, eax
jne 0x4700eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4700b1
lea ecx, [ebp - 0x2c]
call fcn.0046e6d0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret