joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f220f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f1e14

Function at 0x4f221a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f1f95

Function at 0x4fc83c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fc020

Function at 0x4fc847
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fc25b

Function at 0x4fcd54
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fcb48
Function at 0x40288e
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ce99d
jg 0x4028b2
inc edi
cmp edi, 0x1f6502b0
jl 0x40289a
cmp dword [0x2befa9c], 0x400
jne 0x4028ff
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push str.yogihubuwefugus
push esi
call fcn.004030a8
push esi
push esi
push esi
call fcn.00403078
push esi
push esi
call fcn.00402ea0
push esi
call fcn.00403254
push esi
call fcn.00403263
add esp, 0x24
xor edi, edi
cmp edi, 0xd0fe
jge 0x402910
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp edi, 0x3a37ee
jg 0x402937
inc edi
cmp edi, 0xe52f
jl 0x402901
mov eax, dword [0x4312e4]
mov dword [0x2befa9c], eax
call fcn.004025e3
mov edi, 0x3078f
cmp dword [0x2befa9c], 0x51f
jne 0x402963
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x40294b
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x40856e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430b80]
jne 0x408578
repz ret
jmp fcn.0040b50c
Function at 0x409e3e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x430b80]
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.00404556
and dword [ebp - 0x14], 0
cmp dword [0x43be60], 0
mov dword [ebp - 0x18], eax
jne 0x409ef1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409f99
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409f99
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43be60], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43be64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43be68], eax
call edi
push eax
call esi
mov dword [0x43be70], eax
test eax, eax
je 0x409ef1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43be6c], eax
mov eax, dword [0x43be6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409f4a
cmp dword [0x43be70], ecx
je 0x409f4a
push eax
call esi
push dword [0x43be70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409f4a
test ebx, ebx
je 0x409f4a
call edi
test eax, eax
je 0x409f41
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409f41
test byte [ebp - 8], 1
jne 0x409f4a
or dword [ebp + 0x10], 0x200000
jmp 0x409f7d
mov eax, dword [0x43be64]
cmp eax, dword [ebp - 0x18]
je 0x409f7d
push eax
call esi
test eax, eax
je 0x409f7d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409f7d
mov eax, dword [0x43be68]
cmp eax, dword [ebp - 0x18]
je 0x409f7d
push eax
call esi
test eax, eax
je 0x409f7d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43be60]
call esi
test eax, eax
je 0x409f99
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409f9b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040856e
leave
ret
Function at 0xd22d20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5f5000]
push edi
or ebp, 0xffffffff
jmp 0xd22d42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd22d49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd22d38
mov eax, 1
add ebx, ebx
jne 0xd22d5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd22d6c
jne 0xd22d8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd22d8b
dec eax
add ebx, ebx
jne 0xd22d78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xd22d50
add ebx, ebx
jne 0xd22d87
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xd22ddd
xor ecx, ecx
sub eax, 3
jb 0xd22da3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd22e12
sar eax, 1
mov ebp, eax
jmp 0xd22dae
add ebx, ebx
jne 0xd22dae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd22d7c
inc ecx
add ebx, ebx
jne 0xd22dbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd22d7c
add ebx, ebx
jne 0xd22dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd22dbe
jne 0xd22dda
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd22dbe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd22dfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd22dee
jmp 0xd22d3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd22dfc
add edi, ecx
jmp 0xd22d3e
pop esi
mov edi, esi
mov ecx, 0x3ccd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd22e1a
cmp byte [edi], 0x27
jne 0xd22e1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xd22e1f
lea edi, [esi + 0x91f000]
mov eax, dword [edi]
or eax, eax
je 0xd22e97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x923880]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9239a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd22e4c
mov ecx, edi
jns 0xd22e7b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9239ac]
or eax, eax
je 0xd22e91
mov dword [ebx], eax
add ebx, 4
jmp 0xd22e69
call dword [esi + 0x9239a8]
mov ebp, dword [esi + 0x9239b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xd22ecb
sub esp, 0xffffff80
jmp 0x483055

Function at 0x6d5617f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x6d5617fb
repz ret
jmp fcn.6d561b91
Function at 0x401000
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Delete file
Get common file path
Terminate process

Disassembly:
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
mov edi, 0x4021c6
mov ah, 0x22
lodsb al, byte [esi]
cmp al, ah
je 0x401017
mov ah, 0x20
stosb byte es:[edi], al
lodsb al, byte [esi]
cmp al, ah
je 0x401027
cmp al, 0xd
je 0x40103b
or al, al
je 0x40103b
stosb byte es:[edi], al
jmp 0x401017
mov byte [edi], 0
mov edi, 0x4024d2
lodsb al, byte [esi]
cmp al, 0xd
je 0x40103b
or al, al
je 0x40103b
stosb byte es:[edi], al
jmp 0x40102f
mov byte [edi], 0
mov edi, 0x4021c6
mov dl, 0x5c
call fcn.00401290
dec eax
mov word [eax], 0x5c
mov edi, 0x4021c6
xor al, al
cmp byte [edi], al
jne 0x401075
push 0x4021c6
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov edi, 0x4021c6
call fcn.00401267
push 0
push 0x40203f
push 0x4024d2
call fcn.004012a9
or eax, eax
jne 0x4010cf
push 0x4023ce
push str.PathName
call fcn.0040136e
push 0x40000
push str.Technip_Italy_TOS_Program
push eax
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push eax
call dword [sym.imp.kernel32.dll_ExitProcess]
push str.PathName
push 0x4021c6
call fcn.00401313
push 0x104
push 0x4020c2
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov edi, 0x4020c2
call fcn.00401267
mov edi, 0x4022ca
mov esi, 0x4021c6
call fcn.00401249
mov edi, 0x4022ca
mov esi, str.msvbvm60.dll
call fcn.00401244
mov edi, 0x4023ce
mov esi, 0x4020c2
call fcn.00401249
mov edi, 0x4023ce
mov esi, str.msvbvm60.dll
call fcn.00401244
push 1
push 0x4023ce
push 0x4022ca
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0x4022ca
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push 0
push 0x4023ce
push str.regsvr32.exe
push 0
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
mov edi, 0x4022ca
mov esi, 0x4021c6
call fcn.00401249
mov edi, 0x4022ca
mov esi, str.mscomctl.ocx
call fcn.00401244
mov edi, 0x4023ce
mov esi, 0x4020c2
call fcn.00401249
mov edi, 0x4023ce
mov esi, str.mscomctl.ocx
call fcn.00401244
push 1
push 0x4023ce
push 0x4022ca
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0x4022ca
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push 0
push 0x4023ce
push str.regsvr32.exe
push 0
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
mov edi, 0x4023ce
mov esi, str.TOS_Program_sucessfully_installed_on_r_n_r_n
call fcn.00401249
mov edi, 0x4023ce
mov esi, 0x4021c6
call fcn.00401244
push 0
push str.Technip_Italy_TOS_Program
push 0x4023ce
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
jmp 0x4010ac

Function at 0x401211
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [edi]
add edi, 4
lea edx, [ecx - 0x1010101]
xor ecx, edx
and ecx, 0x80808080
je fcn.00401211
and ecx, edx
je fcn.00401211
bsf edx, ecx
sub edx, 4
shr edx, 3
lea edi, [edi + edx - 4]
ret

Function at 0x401249
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi]
mov dword [edi], eax
add esi, 4
add edi, 4
lea edx, [eax - 0x1010101]
xor eax, edx
and eax, 0x80808080
je fcn.00401249
and eax, edx
je fcn.00401249
ret
Function at 0x401313
Capabilities:
Set registry value

Disassembly:
enter 0, 0
push 0x4020b6
push 0x4020b2
push 0
push 0x4001f
push 0
push str.REG_SZ
push 0
push str.SoftwareTechnipTos
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov esi, dword [ebp + 8]
call fcn.00401238
push eax
push esi
push 1
push 0
push dword [ebp + 0xc]
push dword [0x4020b2]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
push dword [0x4020b2]
call dword [sym.imp.advapi32.dll_RegCloseKey]
leave
ret 8

Function at 0x40136e
Capabilities:
Query or enumerate registry value

Disassembly:
enter 0, 0
push 0x4020b6
push 0x4020b2
push 0
push 0x4001f
push 0
push str.REG_SZ
push 0
push str.SoftwareTechnipTos
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov dword [0x4020ba], 0x104
push 0x4020ba
push dword [ebp + 0xc]
push 0x4020be
push 0
push dword [ebp + 8]
push dword [0x4020b2]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [0x4020b2]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
leave
ret 8
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x78352687
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x275b63b0
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10013540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001356d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001356d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x404570
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.00406ddc
test esi, esi
jne 0x4045a8
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.00406f18
jmp 0x4045c6
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044b4
mov edi, eax
test esi, esi
je 0x4045c6
cmp dword [ebx], 0
je 0x4045c6
dec esi
jmp 0x4045af
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x566054], 0
je 0x405e9d
cmp word [0x566330], 0xd7b2
jne 0x405e65
cmp dword [0x566338], 0
jbe 0x405e65
mov eax, 0x56632c
call dword [0x566348]
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 0x405ec8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54f030], 0
jne 0x405eb9
push 0
push 0x54f794
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406048
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x54f034], 0
je 0x40606e
mov edx, esi
mov eax, ebx
call dword [0x54f034]
jmp 0x40607d
mov eax, 8
call fcn.004041fc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x566055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406010
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408ca8
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 0x408e0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ddc
cmp si, word [0x54f7dc]
jb 0x408d42
cmp si, word [0x54f9dc]
ja 0x408d42
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408d42
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x54f7dc]
jae 0x408d1c
mov edi, ebx
dec edi
jmp 0x408d3d
cmp si, word [ebx*8 + 0x54f7dc]
jbe 0x408d2c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408d3d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x54f7e0]
call fcn.00408bb8
jmp 0x408d42
cmp edi, dword [ebp - 0xc]
jae 0x408d06
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408df1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408df1
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.00406fec
push dword [ebp - 0x164]
push 0x408e2c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406fec
push dword [ebp - 0x168]
push 0x408e3c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406fec
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004073a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e16
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406dd4
ret
Function at 0x408fc8
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 0x4090cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x568b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x568b74]
jne 0x409014
mov eax, esi
mov edx, 0x568b78
mov ecx, 0x55
call fcn.00406fec
push 0x568b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4090b7
push 0x568b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406ddc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409085
cmp byte [0x568b58], 0
je 0x40904a
mov edx, esi
mov eax, ebx
call fcn.00408ea8
jmp 0x409085
mov edx, esi
mov eax, ebx
call fcn.00408ca8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409085
cmp dword [esi], 0
je 0x40906e
mov eax, esi
mov edx, 0x4090e8
call fcn.00407200
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408ca8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407200
push 0x568b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x568b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406e68
push eax
push 0x568b78
call sub.kernel32.dll_lstrcpynW
push 0x568b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090d4
lea eax, [ebp - 4]
call fcn.00406dcc
ret
Function at 0x4097bc
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.00406dc4
mov eax, dword [ebp - 0x21c]
call fcn.00406dc4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ddc
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406e68
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 0x40985c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40986e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409859
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409927
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 0x409897
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.0040930c
cmp dword [ebp - 0x220], 0
je 0x4098cf
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004096b0
pop ecx
mov ebx, eax
jmp 0x409927
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408fc8
mov eax, dword [ebp - 0x224]
call fcn.004096b0
pop ecx
mov ebx, eax
test bl, bl
jne 0x40991a
cmp byte [0x568b58], 0
jne 0x40991a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408fc8
mov eax, dword [ebp - 0x228]
call fcn.004096b0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409927
push ebp
call fcn.00409760
pop ecx
mov ebx, eax
test bl, bl
je 0x40993d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406fec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406dd4
ret

Function at 0x40a0d4
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
Function at 0x40d4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x568c50
push 0xa
push 0x40d584
mov eax, dword [0x568c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d514
call fcn.0041a810
push ebx
mov eax, dword [0x568c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d52b
call fcn.0041a810
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d53d
call fcn.0041a810
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x568c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x568c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x568c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x568c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x568c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x568c68], edx
pop esi
pop ebx
ret

Function at 0x4123e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41248d
test eax, edx
je 0x412490
push 0
push 0
cmp word [eax - 0xa], 2
je 0x41240d
push edx
mov edx, eax
mov eax, esp
call fcn.00407008
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412423
push eax
lea eax, [esp + 8]
call fcn.00407008
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412432
movzx eax, word [eax]
sub eax, ecx
jmp 0x412459
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x412473
add ecx, 4
js 0x41244a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412470
push eax
mov eax, ecx
mov edx, 2
call fcn.004060e8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x412457
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412459
xor eax, eax
ret
test eax, eax
je 0x4124a0
test edx, edx
jne 0x4123f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406e68
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41383e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41385f
cmp ebx, 3
je 0x41385f
cmp ebx, 0x7b
je 0x41385f
mov eax, esi
call fcn.004137e0
test al, al
jne 0x413863
xor eax, eax
jmp 0x413865
mov al, 1
pop esi
pop ebx
ret

Function at 0x4178cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x417905
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406f18
jmp 0x41790e
mov eax, ebx
mov edx, esi
call fcn.00406ddc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4