joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402af6
Capabilities:
Delete registry key
Hide graphical window
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4c
mov eax, dword [0x421030]
xor eax, esp
mov dword [esp + 0xe48], eax
push ebx
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 0x5dc]
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41ddd4
lea eax, [esi + 0x1622]
push eax
mov esi, 0x41ddc8
push esi
mov ebx, 0x103
lea eax, [esp + 0x22c]
push ebx
push eax
call fcn.004083fd
add esp, 0x14
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallYourFileDownloader
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call fcn.00403d55
call fcn.00401c2c
mov ecx, dword [esp + 0x10]
push 1
lea edi, [esp + 0x224]
call fcn.0040254a
xor eax, eax
push 0xa26
push eax
mov word [esp + 0x430], ax
lea eax, [esp + 0x432]
push eax
call fcn.0040c280
mov edi, dword [esp + 0x1c]
add esp, 0xc
push str.Downloader.exe
add edi, 0x1622
push edi
push esi
lea eax, [esp + 0x434]
push ebx
push eax
call fcn.004083fd
add esp, 0x14
push str.htmlayout.dll
push edi
push esi
lea eax, [esp + 0x63c]
push ebx
push eax
call fcn.004083fd
add esp, 0x14
push 0x41ddd4
push edi
push esi
lea eax, [esp + 0x844]
push ebx
push eax
call fcn.004083fd
add esp, 0x14
push str.uninstall.exe
push edi
push esi
lea eax, [esp + 0xa4c]
push ebx
push eax
call fcn.004083fd
add esp, 0x14
push str.YourFileUpdater.exe
push edi
push esi
lea eax, [esp + 0xc54]
push ebx
push eax
call fcn.004083fd
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x14
lea esi, [esp + 0x428]
mov dword [esp + 0x14], 5
push 1
push str.uninstall
lea ebx, [esp + 0x20]
call fcn.0040161d
pop ecx
pop ecx
test al, al
je 0x402c58
push 1
mov eax, ebx
push eax
push esi
call edi
push 4
mov eax, ebx
push eax
push esi
call edi
add esi, 0x208
dec dword [esp + 0x14]
jne 0x402c32
mov eax, dword [esp + 0x10]
add eax, 0x1622
push eax
call fcn.0040467e
mov esi, dword [esp + 0x14]
pop ecx
lea eax, [esi + 0x1a32]
push eax
call fcn.0040467e
pop ecx
push esi
call fcn.00401c81
mov ecx, dword [esp + 0xe54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004083ee
mov esp, ebp
pop ebp
ret 4
Function at 0x402d75
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c4
mov eax, dword [0x421030]
xor eax, esp
mov dword [esp + 0x3c0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor esi, esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push str.htmlayout.dll
lea ebx, [esp + 0x1c8]
call fcn.0040161d
pop ecx
pop ecx
test al, al
je 0x402ea2
push str.DATA
push str.HTMLAYOUT
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x402df4
push eax
lea eax, [esp + 0x1c4]
push eax
call fcn.00401585
pop ecx
pop ecx
jmp 0x402df6
xor al, al
cmp al, bl
je 0x402ea2
lea eax, [esp + 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x402ea2
push 0x103
push str.SoftwareYourFileDownloader
push 0x423218
call fcn.004084cd
add esp, 0xc
push 0x3100
call fcn.004086af
pop ecx
cmp eax, ebx
je 0x402e4c
lea ecx, [esp + 0xf]
push ecx
push edi
push eax
call fcn.00401e96
mov dword [esp + 0x10], eax
jmp 0x402e50
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402ea2
cmp byte [eax + 0x2ee8], bl
je 0x402ea2
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x402e8a
call fcn.00402cc6
mov esi, eax
call fcn.00402d00
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x402e68
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x3cc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004083ee
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403072
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [esi + 8], 0
sete al
mov byte [esi + 8], al
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40309a
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4030aa
mov ecx, dword [esi + 0x14]
add ecx, dword [ebp + 8]
push esi
call eax
mov al, 1
pop ebp
ret 4
Function at 0x403182
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push edi
mov edi, ecx
cmp eax, 0x8080
je 0x4031a6
cmp eax, 0x8001
je 0x4031a6
xor eax, eax
jmp 0x403233
mov esi, dword [ebp + 8]
cmp esi, dword [edi + 0x2eac]
jne 0x4031be
xor ecx, ecx
inc ecx
call fcn.004034cc
movzx eax, al
jmp 0x403233
cmp esi, dword [edi + 0x2eb0]
jne 0x4031cb
push 3
pop ecx
jmp 0x4031b4
cmp esi, dword [edi + 0x2eb8]
je 0x40320d
cmp esi, dword [edi + 0x5f0]
je 0x40320d
cmp esi, dword [edi + 0x2eb4]
jne 0x4031e7
push 2
jmp 0x4031c8
push esi
call fcn.004030b0
test al, al
jne 0x403230
xor ecx, ecx
lea eax, [edi + 0x2ebc]
cmp esi, dword [eax]
je 0x403208
inc ecx
add eax, 4
cmp ecx, 0xa
jl 0x4031f9
jmp 0x40319f
add ecx, 4
jmp 0x4031b4
cmp dword [edi + 0x5fc], 0
push 1
sete al
movzx eax, al
push eax
mov esi, edi
call fcn.00403a43
test al, al
jne 0x403230
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x403ffd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x314], 0
call fcn.00403d70
test al, al
je 0x4040f8
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.0040c280
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x310]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4040f8
push edi
lea edi, [ebp - 0x310]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40405f
push esi
push 0xb
pop ecx
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x310]
mov esi, str.Babylonlog_file.txt
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00404954
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4040f6
mov dword [ebp - 0x314], 1
mov esi, 0x1b7a8
push esi
push 0x41dbe4
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.00408d90
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x318]
push edi
call fcn.00404878
add esp, 0x20
cmp eax, 0xffffffff
jne 0x4040de
inc esi
cmp esi, 0x1b7c5
jle 0x4040a0
jmp 0x4040e8
mov dword [ebp - 0x314], 2
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x314]
xor ecx, ebp
call fcn.004083ee
leave
ret
Function at 0x40467e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edx, [ebp - 0x41c]
push 2
mov dword [ebp - 0x678], eax
sub edx, eax
pop ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x4046a8
lea edi, [ebp - 0x41c]
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x4046bf
mov eax, dword [ebp - 0x678]
mov esi, 0x41e7c4
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x214]
movsw word es:[edi], word [esi]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x4046e0
lea edi, [ebp - 0x214]
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x4046f7
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x41c]
mov esi, 0x41e7cc
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
jne 0x40472e
xor eax, eax
jmp 0x404858
xor eax, eax
movzx ecx, word [ebp + eax - 0x214]
mov word [ebp + eax - 0x41c], cx
add eax, ebx
test cx, cx
jne 0x404730
mov byte [ebp - 0x66d], 1
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x404821
lea eax, [ebp - 0x640]
push eax
call fcn.00404604
pop ecx
test eax, eax
jne 0x404833
lea eax, [ebp - 0x640]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x404786
lea edi, [ebp - 0x214]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x40479b
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp - 0x66c], 0x10
lea eax, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
push eax
je 0x4047fc
call fcn.0040467e
pop ecx
test eax, eax
je 0x404867
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
movzx ecx, word [ebp + eax - 0x41c]
mov word [ebp + eax - 0x214], cx
add eax, ebx
test cx, cx
jne 0x4047e3
jmp 0x404833
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404867
xor eax, eax
movzx ecx, word [ebp + eax - 0x41c]
mov word [ebp + eax - 0x214], cx
add eax, ebx
test cx, cx
jne 0x404808
jmp 0x404833
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x404867
mov byte [ebp - 0x66d], 0
cmp byte [ebp - 0x66d], 0
jne 0x40474e
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004083ee
leave
ret
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x404727
Function at 0x4048e1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push edi
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
xor edi, edi
call esi
test eax, eax
je 0x40493e
push ebx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40493d
push 0x40
push 0x3000
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x40493d
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edi
call esi
cmp ebx, dword [ebp - 0x10]
jbe 0x404930
mov ebx, dword [ebp - 0x10]
push ebx
push dword [ebp + 8]
push edi
call fcn.00409720
add esp, 0xc
pop ebx
push 0x8000
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x404954
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4049d8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4049d1
push 0x40
push 0x3000
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
je 0x4049d1
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4049c2
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4049d1
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x4049d1
push 0x8000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405264
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x210], ecx
cmp eax, edi
je 0x40532c
cmp word [eax], di
je 0x40532c
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004084cd
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call fcn.00409551
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x4052e2
xor eax, eax
mov word [esi], ax
inc esi
inc esi
je 0x4052e2
push str.HTML
push esi
call fcn.00412d9b
pop ecx
pop ecx
test eax, eax
je 0x4052e2
push esi
jmp 0x4052e4
push 0x17
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x4052fc
xor al, al
jmp 0x40532e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4052f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx], eax
cmp eax, edi
je 0x4052f8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x210]
cmp eax, edi
mov dword [ecx], eax
setne al
jmp 0x40532e
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004083ee
leave
ret
Function at 0x4083ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421030]
jne 0x4083f8
repz ret
jmp fcn.00409a81

Function at 0x41048c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d9d5
and dword [ebp - 0x14], 0
cmp dword [0x4231bc], 0
mov dword [ebp - 0x18], eax
jne 0x41053f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4105e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4105e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4231bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4231c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4231c4], eax
call edi
push eax
call esi
mov dword [0x4231cc], eax
test eax, eax
je 0x41053f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4231c8], eax
mov eax, dword [0x4231c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410598
cmp dword [0x4231cc], ecx
je 0x410598
push eax
call esi
push dword [0x4231cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410598
test ebx, ebx
je 0x410598
call edi
test eax, eax
je 0x41058f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41058f
test byte [ebp - 8], 1
jne 0x410598
or dword [ebp + 0x10], 0x200000
jmp 0x4105cb
mov eax, dword [0x4231c0]
cmp eax, dword [ebp - 0x18]
je 0x4105cb
push eax
call esi
test eax, eax
je 0x4105cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4105cb
mov eax, dword [0x4231c4]
cmp eax, dword [ebp - 0x18]
je 0x4105cb
push eax
call esi
test eax, eax
je 0x4105cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4231bc]
call esi
test eax, eax
je 0x4105e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4105e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004083ee
leave
ret
Function at 0x403f3c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405680
test esi, esi
jne 0x403f72
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004057d8
jmp 0x403f90
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403e80
mov edi, eax
test esi, esi
je 0x403f90
cmp dword [ebx], 0
je 0x403f90
dec esi
jmp 0x403f79
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405400
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42004c], 0
je 0x405467
cmp word [0x420338], 0xd7b2
jne 0x405429
cmp dword [0x420340], 0
jbe 0x405429
mov eax, 0x420334
call dword [0x420350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x405494
call fcn.00405b74
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41e022], 0
jne 0x405483
push 0
push 0x41e9aa
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406c6c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406dd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405680
cmp si, word [0x41e9e8]
jb 0x406d04
cmp si, word [0x41ebe8]
ja 0x406d04
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x406d04
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41e9e8]
jae 0x406cde
mov edi, ebx
dec edi
jmp 0x406cff
cmp si, word [ebx*8 + 0x41e9e8]
jbe 0x406cee
inc ebx
mov dword [ebp - 8], ebx
jmp 0x406cff
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41e9ec]
call fcn.00406b7c
jmp 0x406d04
cmp edi, dword [ebp - 8]
jae 0x406cc8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x406db3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x406db3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405d0c
push dword [ebp - 0x160]
push 0x406dec
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00405d0c
push dword [ebp - 0x164]
push 0x406dfc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405d0c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00405ec4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406dd8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004056e0
ret
Function at 0x406f84
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407087
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x422b7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x422b94]
jne 0x406fd0
mov eax, esi
mov edx, 0x422b96
mov ecx, 0x55
call fcn.00405d0c
push 0x422b7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407071
push 0x422b7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405680
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40703f
cmp byte [0x422b78], 0
je 0x407004
mov edx, esi
mov eax, ebx
call fcn.00406e68
jmp 0x40703f
mov edx, esi
mov eax, ebx
call fcn.00406c6c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40703f
cmp dword [esi], 0
je 0x407028
mov eax, esi
mov edx, 0x4070a0
call fcn.00405de4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406c6c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00405de4
push 0x422b7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x422b94], bx
push 0xaa
mov eax, dword [esi]
call fcn.00405c78
push eax
push 0x422b96
call sub.kernel32.dll_lstrcpynW
push 0x422b7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40708e
lea eax, [ebp - 4]
call fcn.00405680
ret
Function at 0x4072bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405764
xor eax, eax
push ebp
push 0x4074e1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4072fc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407316
push 0x105
mov eax, dword [ebp - 4]
call fcn.00405c78
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4074cb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4074f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4073e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4074f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4073e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40752c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4073e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40752c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4073e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407560
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4073e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407594
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4074cb
xor eax, eax
push ebp
push 0x4074c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004070c8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407454
mov eax, dword [ebp - 0x10]
call fcn.00403bdc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405cd0
jmp 0x40749f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4075d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40749f
mov eax, dword [ebp - 0x10]
call fcn.00403bdc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4075d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4074cb
cmp dword [ebp - 8], 0
je 0x4074ba
mov eax, dword [ebp - 8]
call fcn.00403bf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4074e8
lea eax, [ebp - 4]
call fcn.00405680
ret