joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439e90
Capabilities:
Reference sql statements

Disassembly:
push 0x10
mov eax, 0x46a615
call fcn.00452eb4
call fcn.0043f3c0
push eax
lea ecx, [ebp - 0x18]
call fcn.004013a1
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x10]
push 0x478d1c
mov byte [ebp - 4], 2
call fcn.00407723
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x18]
push str.SELECT_Value_FROM_Property_WHERE_Property.Property_s
push eax
call fcn.004012c2
add esp, 0xc
cmp dword [ebp - 0x10], esi
je 0x439ee9
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call sub.msi.dll_MsiEnumClientsA
mov edi, eax
cmp edi, esi
je 0x439f57
push str.MsiDatabaseOpenView__
lea ecx, [ebp + 0xc]
call fcn.004012e2
mov byte [ebp - 4], 3
push edi
lea eax, [ebp + 0xc]
push eax
push 2
call fcn.00411806
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x14], esi
je 0x439f3a
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], esi
je 0x439f47
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004017df
mov eax, edi
call fcn.00452f8c
ret
push esi
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
je 0x439f79
push str.MsiViewExecute__
lea ecx, [ebp + 0xc]
call fcn.004012e2
mov byte [ebp - 4], 4
jmp 0x439f13
cmp dword [ebp - 0x14], esi
je 0x439f86
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov edi, eax
cmp edi, esi
jne 0x439f2d
push dword [ebp + 0x10]
push 1
push dword [ebp - 0x14]
call fcn.0043a023
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x43a007
push str.MsiGetRecordString__
lea ecx, [ebp + 0xc]
call fcn.004012e2
push edi
lea eax, [ebp + 0xc]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00411806
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x14], esi
je 0x439fe9
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], esi
je 0x439ff6
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, edi
lea ecx, [ebx - 0x10]
call fcn.004017df
mov eax, esi
jmp 0x439f51
cmp dword [ebp - 0x14], esi
je 0x43a014
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], esi
je 0x439ff8
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x439ff8
Function at 0x43a305
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x4b2d60]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x74], ax
xor ebx, ebx
lea eax, [ebp - 0x72]
push ebx
push eax
mov edi, ecx
call fcn.00450cb0
xor eax, eax
push esi
mov word [ebp + 0x198], ax
lea eax, [ebp + 0x19a]
push ebx
push eax
call fcn.00450cb0
add esp, 0x18
mov eax, 0x105
push eax
lea ecx, [ebp + 0x198]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
push 0x49caa8
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x43a3b8
mov eax, dword [ebp - 0x78]
xor ecx, ecx
cmp ecx, 0x103
je 0x43a3b2
xor edx, edx
push 0xa
pop esi
div esi
mov dx, word [edx*2 + str.0123456789]
mov word [edi + ecx*2], dx
inc ecx
cmp eax, ebx
ja 0x43a392
xor eax, eax
mov word [edi + ecx*2], ax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x43a3d3
push str.thsnYaVieBoda
push 0x104
call fcn.00412c14
mov ecx, dword [ebp + 0x3a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ff92
add ebp, 0x3a8
leave
ret
Function at 0x43a3eb
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x3c
mov eax, 0x46a561
call fcn.00452f1d
mov esi, edx
mov dword [ebp - 0x38], ecx
xor ebx, ebx
call fcn.00401547
push 8
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00450cb0
add esp, 0xc
push 8
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00450cb0
add esp, 0xc
push 8
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00450cb0
add esp, 0xc
push esi
lea ecx, [ebp - 0x28]
call fcn.00401326
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.0040fceb
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
mov ecx, 0x4b7698
mov dword [ebp - 0x48], eax
call fcn.0040fceb
mov dword [ebp - 0x3c], eax
mov eax, dword [0x4b7698]
mov eax, dword [eax - 0xc]
shr eax, 1
inc eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push str.Encrypted_by_Adobe.
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x43a4e5
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
cmp dword [ebp - 0x30], ebx
jbe 0x43a4d7
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + esi]
mov ecx, dword [ebp - 0x38]
shr eax, 4
movzx eax, byte [ebp + eax - 0x24]
push eax
call fcn.0043d504
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + esi]
mov ecx, dword [ebp - 0x38]
and eax, 0xf
movzx eax, byte [ebp + eax - 0x24]
push eax
call fcn.0043d504
inc esi
cmp esi, dword [ebp - 0x30]
jb 0x43a4a1
push dword [ebp - 0x2c]
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x43a513
push str.Encryption_failed.
lea ecx, [ebp - 0x34]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x34]
push eax
push 1
mov byte [ebp - 4], 1
call fcn.00411806
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x34]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push 0xffffffffffffffff
lea ecx, [ebp - 0x28]
call fcn.004076ad
push 0xffffffffffffffff
mov ecx, 0x4b7698
call fcn.004076ad
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, ebx
call fcn.00452fa0
ret
Function at 0x43aedc
Capabilities:
Get common file path

Disassembly:
push 0x42c
mov eax, 0x46a476
call fcn.00452f1d
test byte [0x4b7c58], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x434], eax
mov esi, 0x4b7c54
jne 0x43af2a
or dword [0x4b7c58], 1
call fcn.0043f3c0
push eax
mov ecx, esi
call fcn.004013a1
push 0x470c82
call fcn.00450bec
pop ecx
mov eax, dword [0x4b7c54]
mov eax, dword [eax - 0xc]
xor edi, edi
cmp eax, edi
jne 0x43b04a
call fcn.0043f3c0
push eax
lea ecx, [ebp - 0x428]
call fcn.004013a1
xor eax, eax
mov ebx, 0x206
mov dword [ebp - 4], edi
push ebx
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00450cb0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x42c], eax
cmp eax, edi
jne 0x43b0a9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.00401356
push str.AdobeARM1.0_armsvc.exe
lea ecx, [ebp - 0x428]
call fcn.00407601
xor eax, eax
push ebx
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push edi
push eax
call fcn.00450cb0
mov ebx, dword [ebp - 0x428]
add esp, 0xc
push edi
push edi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
mov dword [ebp - 0x430], 0x104
call sub.msi.dll_MsiMessageBoxW
mov dword [ebp - 0x42c], eax
cmp eax, edi
jne 0x43b06d
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.00401356
push str.found_service_version:
lea ecx, [ebp - 0x424]
call fcn.004012e2
push edi
push esi
lea eax, [ebp - 0x424]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.00411336
mov ecx, dword [ebp - 0x424]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.004017df
push dword [ebp - 0x438]
push esi
call fcn.00435dc1
pop ecx
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x434]
setne al
mov byte [ecx], al
xor eax, eax
call fcn.00452fa0
ret
push str.unable_to_determine_service_version:
lea ecx, [ebp - 0x424]
call fcn.004012e2
mov esi, dword [ebp - 0x42c]
push esi
lea eax, [ebp - 0x424]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.00411806
mov ecx, dword [ebp - 0x424]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x43b0e9
push str.SHGetFolderPath_failed:
lea ecx, [ebp - 0x424]
call fcn.004012e2
mov esi, dword [ebp - 0x42c]
push esi
lea eax, [ebp - 0x424]
push eax
push 2
mov byte [ebp - 4], 1
call fcn.00411806
mov ecx, dword [ebp - 0x424]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ebx, dword [ebp - 0x428]
lea ecx, [ebx - 0x10]
call fcn.004017df
mov eax, esi
jmp 0x43b067
Function at 0x43beb3
Capabilities:
Set registry value

Disassembly:
push 0x224
mov eax, 0x46a422
call fcn.00452f1d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x228], eax
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor esi, esi
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.00450cb0
add esp, 0xc
push 0xa
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x228]
call fcn.004514ca
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.004012e2
push str.Server_to_set_iNotify_value_in_HKEY_CURRENT_USER:
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], esi
call fcn.004012e2
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
push 2
mov byte [ebp - 4], 1
call fcn.00411336
mov ecx, dword [ebp - 0x230]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x224]
push eax
mov edi, 0x477678
push edi
mov esi, SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 0x224]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea eax, [ebp - 0x224]
push eax
push 0xf003f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
cmp eax, edi
jne 0x43c012
push 4
lea eax, [ebp - 0x228]
push eax
push 4
push edi
push str.iNotify
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x224]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x224]
call ebx
cmp esi, edi
je 0x43c049
push str.Server__RegSetValueEx__failed_to_set_iNotify_value_in_HKEY_CURRENT_USER
lea ecx, [ebp - 0x220]
call fcn.004012e2
push 2
pop eax
push edi
lea ecx, [ebp - 0x220]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00411806
mov ecx, dword [ebp - 0x220]
jmp 0x43c03e
push str.Server__RegOpenKeyEx__failed_to_set_iNotify_value_in_HKEY_CURRENT_USER
lea ecx, [ebp - 0x22c]
call fcn.004012e2
push edi
lea eax, [ebp - 0x22c]
push eax
push 2
mov dword [ebp - 4], 3
call fcn.00411806
mov ecx, dword [ebp - 0x22c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
call fcn.00452fa0
ret
Function at 0x440da6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4b2d60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x440e3e
push 0x471f7c
push 4
push eax
call fcn.004519d8
push eax
call fcn.00401450
add esp, 0x10
push ebx
push edi
call fcn.0045304c
mov edi, dword [eax]
call fcn.0045304c
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00451800
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0045304c
cmp dword [eax], ebx
je 0x440e55
call fcn.0045304c
push dword [eax]
call fcn.0043f12c
pop ecx
jmp 0x440e5c
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x440de9
jmp 0x440ee3
call fcn.0045304c
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x440edf
cmp dword [ebp - 0x234], esi
jae 0x440edf
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00450cb0
add esp, 0xc
push 0x471cdc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x440ece
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x440ece
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x440ece
push ebx
push ebx
push esi
jmp 0x440ed7
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x440ee1
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044ff92
leave
ret

Function at 0x449f1b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x449f62
call fcn.0044ab61
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x449f62
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x449f7e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00449a93
mov esi, eax
test edi, edi
je 0x449f7c
test ebx, ebx
je 0x449f7c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44b66a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x44b68e
cmp dword [edi + 0x54], 0
jne 0x44b68e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0044ab61
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0044b62b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44ff92
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b2d60]
jne 0x44ff9c
repz ret
jmp fcn.00457d22

Function at 0x461600
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00457686
and dword [ebp - 4], 0
cmp dword [0x4b73f0], 0
mov ebx, eax
jne 0x4616b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x461762
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x461762
push eax
call fcn.00457614
mov dword [esp], 0x474d88
push edi
mov dword [0x4b73f0], eax
call esi
push eax
call fcn.00457614
mov dword [esp], 0x474d74
push edi
mov dword [0x4b73f4], eax
call esi
push eax
call fcn.00457614
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b73f8], eax
call esi
push eax
call fcn.00457614
pop ecx
mov dword [0x4b7400], eax
test eax, eax
je 0x4616b1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00457614
pop ecx
mov dword [0x4b73fc], eax
mov eax, dword [0x4b73fc]
cmp eax, ebx
je 0x461709
cmp dword [0x4b7400], ebx
je 0x461709
push eax
call fcn.0045768f
push dword [0x4b7400]
mov esi, eax
call fcn.0045768f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x461709
test edi, edi
je 0x461709
call esi
test eax, eax
je 0x461700
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x461700
test byte [ebp - 0xc], 1
jne 0x461709
or dword [ebp + 0x10], 0x200000
jmp 0x461742
mov eax, dword [0x4b73f4]
cmp eax, ebx
je 0x461742
push eax
call fcn.0045768f
pop ecx
test eax, eax
je 0x461742
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x461742
mov eax, dword [0x4b73f8]
cmp eax, ebx
je 0x461742
push eax
call fcn.0045768f
pop ecx
test eax, eax
je 0x461742
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b73f0]
call fcn.0045768f
pop ecx
test eax, eax
je 0x461762
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x461764
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4037c2
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x436000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x436000
je 0x4037e1
push ebx
call fcn.004058fa
jmp 0x4037e7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x42f064]
test esi, esi
je 0x40383a
mov ecx, dword [0x42f028]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x42f060]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x40381f
test esi, esi
jne 0x403809
jmp 0x40383a
mov edx, dword [ecx + 2]
mov dword [0x42e800], edx
mov edx, dword [ecx + 6]
mov dword [0x42f0c8], edx
lea edx, [ecx + 0xa]
mov dword [0x42e7fc], edx
cmp dword [0x42e7fc], 0
jne 0x403855
cmp di, 0xffff
jne 0x403851
mov edi, 0x3ff
jmp 0x4037e9
xor edi, edi
jmp 0x4037e9
movzx eax, word [ecx]
push eax
push ebx
call fcn.004058e1
push 0xfffffffffffffffe
push 0x42e820
call fcn.0040598f
push eax
push dword [0x42a470]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x42f04c]
mov esi, dword [0x42f048]
test eax, eax
je 0x4038a2
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x403899
push eax
lea eax, [esi + 0x18]
push eax
call fcn.0040598f
add esi, 0x418
dec edi
jne 0x403889
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40521c
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42bc98], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405240
test al, 0x10
jne 0x405243
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42bc98
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40526e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4052e5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0040556a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test cl, 8
je 0x40531c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x405482
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
je 0x405336
test eax, eax
je 0x405482
test cl, 2
je 0x405434
mov esi, 0x42b498
push ebx
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405358
push str..
push esi
call edi
jmp 0x40535e
push ebx
call fcn.004054d1
push 0x40900c
push ebx
call edi
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x144]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40542a
cmp byte [ebp - 0x118], 0x2e
jne 0x4053a4
cmp byte [ebp - 0x117], 0x2e
je 0x40540d
cmp byte [ebp - 0x117], 0
je 0x40540d
lea eax, [ebp - 0x118]
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x4053d0
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40540d
push dword [ebp + 0xc]
push ebx
call fcn.004052e5
jmp 0x40540d
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405405
test byte [ebp + 0xc], 4
je 0x4053fd
push ebx
push 0xfffffffffffffff1
call fcn.00404d3b
push 0
push ebx
call fcn.004056c0
jmp 0x40540d
inc dword [0x42f0a8]
jmp 0x40540d
push ebx
push 0xfffffffffffffff2
call fcn.00404d3b
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405389
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405434
and byte [edi - 1], 0
xor esi, esi
cmp dword [ebp - 4], esi
je 0x405482
cmp dword [ebp + 8], esi
je 0x405482
push ebx
call fcn.00405c65
test eax, eax
je 0x405482
push ebx
call fcn.00405489
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40547a
test byte [ebp + 0xc], 4
je 0x405472
push ebx
push 0xfffffffffffffff1
call fcn.00404d3b
push esi
push ebx
call fcn.004056c0
jmp 0x405482
inc dword [0x42f0a8]
jmp 0x405482
push ebx
push 0xffffffffffffffe5
call fcn.00404d3b
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40556a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b898
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.0040551d
test eax, eax
jne 0x405589
xor eax, eax
jmp 0x4055d8
test byte [0x42f030], 0x80
je 0x40559d
mov cl, byte [eax]
test cl, cl
je 0x405585
cmp cl, 0x5c
je 0x405585
mov edi, eax
sub edi, esi
jmp 0x4055b7
call fcn.00405c65
test eax, eax
je 0x4055b1
test byte [eax], 0x10
je 0x405585
push esi
call fcn.004054d1
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055a3
call fcn.00405489
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405649
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405678
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056bc
test edi, edi
jne 0x405683
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056b6