joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4803e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.004f4f20
mov eax, dword [0x55709c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x480455
cmp ebx, dword [esi]
je 0x48044c
test edi, edi
je 0x480432
cmp dword [esp + 0xa0], eax
jge 0x48044c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004f4add
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x48045b
mov ebx, dword [esi]
test ebx, ebx
je 0x480432
test edi, edi
push ebp
je 0x48052d
push ebx
call fcn.00484e00
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x48048b
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00484ca0
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x4804e5
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.00484140
add esp, 0xc
test eax, eax
je 0x4805e8
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004842f0
add esp, 0xc
test eax, eax
je 0x4805e8
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.00484300
add esp, 0xc
test eax, eax
je 0x4805e8
jmp 0x48050a
cmp eax, 0x80
ja 0x4805e8
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.004f0e50
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x480535
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.004eef80
add esp, 0xc
jmp 0x480535
test eax, eax
je 0x4805d4
xor eax, eax
jmp 0x480540
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x480540
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.00484140
add esp, 0xc
test eax, eax
je 0x4805e8
push ebx
call fcn.00484e00
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004842f0
add esp, 0x10
test eax, eax
je 0x4805e8
xor eax, eax
jmp 0x480590
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x480590
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.00484140
add esp, 0xc
test eax, eax
je 0x4805e8
push ebx
call fcn.00484e00
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004842f0
add esp, 0x10
test eax, eax
je 0x4805e8
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.00484460
add esp, 8
test eax, eax
jne 0x4805ec
xor eax, eax
jmp 0x4805f1
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f4add
add esp, 0x88
ret
Function at 0x4d6780
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4d6799
mov esi, edi
mov edi, eax
jmp 0x4d679b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4d67ab
mov eax, ebx
jmp 0x4d67b5
push eax
push ebx
call fcn.0048fd70
add esp, 8
test eax, eax
jne 0x4d67bd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4d67db
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x4d67c4
cmp eax, dword [esi + 4]
jge 0x4d67f2
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4d67e0
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4d6815
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4d6812
sub eax, 1
test eax, eax
jg 0x4d6802
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4ec034
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x55709c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004ebf73
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004eef80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4ec083
cmp dword [ebp - 0x1c], 5
jb 0x4ec09b
jmp 0x4ec097
cmp dword [ebp - 0x10], 1
jne 0x4ec09b
cmp dword [ebp - 0x1c], 4
ja 0x4ec097
jne 0x4ec09b
cmp dword [ebp - 0x18], 0
jbe 0x4ec09b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x538b04
call fcn.00407c20
test eax, eax
jge 0x4ec0bc
mov byte [0x55ebd0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f4add
add ebp, 0x78
leave
ret
Function at 0x4f258b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4f25b8
call fcn.004f5c43
mov dword [eax], esi
call fcn.004f5c30
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004ee8ea
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4f2594
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f25e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f5c56
pop ecx
call fcn.004f5c30
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4f260e
test al, 1
je 0x4f260e
test byte [esp + 0xc], 2
je 0x4f260e
call fcn.004f5c43
mov dword [eax], 5
call fcn.004f5c30
mov dword [eax], 0xd
jmp 0x4f25de
xor eax, eax
pop esi
ret

Function at 0x4f4add
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55709c]
jne 0x4f4ae7
repz ret
jmp fcn.00505cb7

Function at 0x4fa89f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x557c08]
je 0x4fa8ba
inc edi
cmp edi, 0x17
jb 0x4fa8ab
cmp edi, 0x17
jae 0x4faa3a
push ebp
push 3
call fcn.00507827
cmp eax, 1
pop ecx
je 0x4faa06
push 3
call fcn.00507827
test eax, eax
pop ecx
jne 0x4fa8ee
cmp dword [0x557098], 1
je 0x4faa06
cmp ebx, 0xfc
je 0x4faa39
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x55dc48
push ebp
call fcn.004f268d
add esp, 0xc
test eax, eax
je 0x4fa924
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ee
add esp, 0x14
push 0x104
mov esi, 0x55dc61
push esi
push 0
mov byte [0x55dd65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4fa968
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f268d
add esp, 0xc
test eax, eax
je 0x4fa968
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004ee7ee
add esp, 0x14
push esi
call fcn.004ec3d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4fa9ad
push esi
call fcn.004ec3d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x55df5c
push 0x53a324
sub ecx, eax
push ecx
push eax
call fcn.00504c08
add esp, 0x14
test eax, eax
je 0x4fa9ad
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ee
add esp, 0x14
jmp 0x4fa9af
xor esi, esi
push 0x53a320
push ebx
push ebp
call fcn.00504b97
add esp, 0xc
test eax, eax
je 0x4fa9cf
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ee
add esp, 0x14
push dword [edi*8 + 0x557c0c]
push ebx
push ebp
call fcn.00504b97
add esp, 0xc
test eax, eax
je 0x4fa9f1
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ee
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0050766a
add esp, 0xc
jmp 0x4faa39
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4faa39
cmp ebp, 0xffffffff
je 0x4faa39
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x557c0c]
push dword [esi]
call fcn.004ec3d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x50766a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004fa320
xor ebx, ebx
cmp dword [0x55e6e8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x507740
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x507820
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53af28
push edi
call esi
cmp eax, ebx
je 0x507820
push eax
call fcn.004fa2b2
mov dword [esp], 0x53af18
push edi
mov dword [0x55e6e8], eax
call esi
push eax
call fcn.004fa2b2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x55e6ec], eax
call esi
push eax
call fcn.004fa2b2
mov dword [0x55e6f0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f461c
test eax, eax
pop ecx
pop ecx
je 0x50770e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee7ee
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x507740
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004fa2b2
cmp eax, ebx
pop ecx
mov dword [0x55e6f8], eax
je 0x507740
push 0x53aed0
push edi
call esi
push eax
call fcn.004fa2b2
pop ecx
mov dword [0x55e6f4], eax
mov eax, dword [0x55e6f4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5077c5
cmp dword [0x55e6f8], ecx
je 0x5077c5
push eax
call fcn.004fa329
push dword [0x55e6f8]
mov esi, eax
call fcn.004fa329
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5077c5
cmp edi, ebx
je 0x5077c5
call esi
cmp eax, ebx
je 0x507792
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x507792
test byte [ebp - 0x18], 1
jne 0x5077c5
lea eax, [ebp - 0x10]
push eax
call fcn.004f4653
test eax, eax
pop ecx
je 0x5077ad
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee7ee
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5077bc
or dword [ebp + 0x10], 0x200000
jmp 0x507800
or dword [ebp + 0x10], 0x40000
jmp 0x507800
mov eax, dword [0x55e6ec]
cmp eax, dword [ebp - 8]
je 0x507800
push eax
call fcn.004fa329
cmp eax, ebx
pop ecx
je 0x507800
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x507800
mov eax, dword [0x55e6f0]
cmp eax, dword [ebp - 8]
je 0x507800
push eax
call fcn.004fa329
cmp eax, ebx
pop ecx
je 0x507800
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x55e6e8]
call fcn.004fa329
cmp eax, ebx
pop ecx
je 0x507820
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x507822
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015b0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
or dword [ebx + 0x2c], 0x100
mov dword [ebx + 0x3c], 0xffffffff
lea edi, [esi + 0x110c]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x40], 0xffffffff
push dword [esi + 0x1108]
mov dword [ebp - 4], 1
push edi
push str.RemCom_stdout
push str..pipe_s_s_d
push 0x405060
call fcn.004018c0
push dword [esi + 0x1108]
push edi
push str.RemCom_stdin
push str..pipe_s_s_d
push 0x405168
call fcn.004018c0
push dword [esi + 0x1108]
push edi
push str.RemCom_stderr
push str..pipe_s_s_d
push 0x405270
call fcn.004018c0
mov esi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [ebp - 0xc]
add esp, 0x3c
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x405060
call esi
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x405270
call esi
mov dword [ebx + 0x40], eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 1
push 0x405168
call esi
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], eax
cmp ecx, 0xffffffff
je 0x4016fa
cmp dword [ebx + 0x40], 0xffffffff
je 0x4016fa
cmp eax, 0xffffffff
je 0x4016fa
mov esi, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push ecx
call esi
push 0
push dword [ebx + 0x38]
call esi
push 0
push dword [ebx + 0x40]
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push dword [ebx + 0x40]
call esi
push dword [ebx + 0x38]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x150]
xorps xmm0, xmm0
mov dword [ebp - 0x150], 0x44
push esi
mov esi, dword [ebp + 0xc]
push eax
push ebx
mov dword [ebp - 0x10c], esi
movlpd qword [ebp - 0x14c], xmm0
movlpd qword [ebp - 0x144], xmm0
movlpd qword [ebp - 0x13c], xmm0
movlpd qword [ebp - 0x134], xmm0
movlpd qword [ebp - 0x12c], xmm0
movlpd qword [ebp - 0x124], xmm0
movlpd qword [ebp - 0x11c], xmm0
movlpd qword [ebp - 0x114], xmm0
call fcn.004015b0
add esp, 8
test eax, eax
jne 0x4017b7
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004019a6
mov esp, ebp
pop ebp
ret
push edi
push ebx
lea eax, [ebp - 0x108]
mov dword [esi], 0
push 0x40322c
push eax
xor edi, edi
call fcn.004018c0
add esp, 0xc
lea ecx, [ebp - 0x160]
lea eax, [ebx + 0x1000]
push ecx
lea ecx, [ebp - 0x150]
push ecx
xor ecx, ecx
cmp byte [eax], cl
cmove eax, ecx
push eax
mov eax, dword [ebx + 0x1104]
push ecx
or eax, 0x8000000
push eax
push 1
push ecx
push ecx
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401853
mov eax, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x160]
mov dword [eax], edi
cmp dword [ebx + 0x1210], edi
jne 0x401858
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10c]
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004019a6
mov esp, ebp
pop ebp
ret
mov edi, 1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004019a6
mov esp, ebp
pop ebp
ret
Function at 0x404534
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406684
test esi, esi
jne 0x40456c
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.004067c0
jmp 0x40458a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404418
mov edi, eax
test esi, esi
je 0x40458a
cmp dword [ebx], 0
je 0x40458a
dec esi
jmp 0x404573
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405cfc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x443054], 0
je 0x405d5d
cmp word [0x443330], 0xd7b2
jne 0x405d25
cmp dword [0x443338], 0
jbe 0x405d25
mov eax, 0x44332c
call dword [0x443348]
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
push 0x405d88
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x441030], 0
jne 0x405d79
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408258
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4083bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406684
cmp si, word [0x4417d0]
jb 0x4082f2
cmp si, word [0x4419d0]
ja 0x4082f2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4082f2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4417d0]
jae 0x4082cc
mov edi, ebx
dec edi
jmp 0x4082ed
cmp si, word [ebx*8 + 0x4417d0]
jbe 0x4082dc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4082ed
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4417d4]
call fcn.00408168
jmp 0x4082f2
cmp edi, dword [ebp - 0xc]
jae 0x4082b6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4083a1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4083a1
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040686c
push dword [ebp - 0x164]
push 0x4083dc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040686c
push dword [ebp - 0x168]
push 0x4083ec
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040686c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406c18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083c6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040667c
ret
Function at 0x408578
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 0x40867d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x445b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x445b74]
jne 0x4085c4
mov eax, esi
mov edx, 0x445b78
mov ecx, 0x55
call fcn.0040686c
push 0x445b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408667
push 0x445b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406684
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408635
cmp byte [0x445b58], 0
je 0x4085fa
mov edx, esi
mov eax, ebx
call fcn.00408458
jmp 0x408635
mov edx, esi
mov eax, ebx
call fcn.00408258
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408635
cmp dword [esi], 0
je 0x40861e
mov eax, esi
mov edx, 0x408698
call fcn.00406a74
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408258
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406a74
push 0x445b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x445b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406710
push eax
push 0x445b78
call sub.kernel32.dll_lstrcpynW
push 0x445b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408684
lea eax, [ebp - 4]
call fcn.00406674
ret
Function at 0x4088bc
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.0040666c
xor eax, eax
push ebp
push 0x408aa1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4088fc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408916
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406710
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408a8b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ab0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ab0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ae4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408a8b
xor eax, eax
push ebp
push 0x408a84
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004086c0
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 0x408a14
mov eax, dword [ebp - 0x10]
call fcn.00404180
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.00406830
jmp 0x408a5f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408b58
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408a5f
mov eax, dword [ebp - 0x10]
call fcn.00404180
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408b58
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406830
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a8b
cmp dword [ebp - 8], 0
je 0x408a7a
mov eax, dword [ebp - 8]
call fcn.0040419c
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 0x408aa8
lea eax, [ebp - 4]
call fcn.00406674
ret
Function at 0x408d6c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.0040666c
mov eax, dword [ebp - 0x21c]
call fcn.0040666c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x408f0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406684
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406710
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x408e0c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408e1e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x408e09
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x408ed7
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x408e47
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004088bc
cmp dword [ebp - 0x220], 0
je 0x408e7f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408c60
pop ecx
mov ebx, eax
jmp 0x408ed7
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408578
mov eax, dword [ebp - 0x224]
call fcn.00408c60
pop ecx
mov ebx, eax
test bl, bl
jne 0x408eca
cmp byte [0x445b58], 0
jne 0x408eca
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408578
mov eax, dword [ebp - 0x228]
call fcn.00408c60
pop ecx
mov ebx, eax
test bl, bl
jne 0x408ed7
push ebp
call fcn.00408d10
pop ecx
mov ebx, eax
test bl, bl
je 0x408eed
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040686c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f12
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040667c
ret

Function at 0x409650
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret