joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441e90
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x441ea7
add esp, 0xfffffff0
call fcn.004030c0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413fbc
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40df38]
call fcn.00402d90
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40df38]
call fcn.00402d90
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x415e14]
call fcn.0041d27c
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x44201c
mov eax, dword [0x4759e0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041d64c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4439b4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4759e0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bab4
test eax, eax
je 0x441f9a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004083fc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040badc
test eax, eax
je 0x441fae
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c78
mov eax, dword [0x4758c8]
cmp byte [eax], 0
jne 0x441fdf
mov eax, ebx
call fcn.00442108
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x442011
call fcn.00403118
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442378
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4767c8]
cmp dword [eax + 0x24], 0
je 0x44241b
cmp dword [ebx + 0x84], 0
jne 0x442415
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x442308
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x442415
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4423de
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x442415
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040f5fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4423ed
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x442e28
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x442e5d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b30
jmp 0x442e67
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403a9c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x443d28
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x443d60
mov eax, esi
call fcn.0042b854
test al, al
je 0x443d60
mov eax, dword [ebx + 0x74]
call fcn.0042b558
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x443d60
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042b558
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403e8c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x45325d
test al, 0x10
jne 0x453261
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x459960
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45998e
mov eax, ebx
call fcn.0045a404
cmp dword [ebx + 0x3c], 0
je 0x459987
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4599ff
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4599f1
cmp dword [ebx + 8], 0
je 0x4599b0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4599c2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4599f1
cmp dword [ebx + 8], 0
je 0x4599a3
cmp eax, 3
je 0x4599d5
dec eax
jne 0x4599a3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4599a3
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4599a3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x459a1d
cmp dword [ebx + 0x10], 0xcc
je 0x459a1d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00459a28
pop ebx
ret

Function at 0x46c000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0046bd7c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403e8c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46c05e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x475ac8]
mov dl, 1
mov eax, dword [0x46bca0]
call fcn.0040af98
call fcn.00403518
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46c0d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e7c
xor eax, eax
push ebp
push 0x46c197
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46c175
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402a94
lea eax, [ebp - 0x122]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402a94
lea eax, [ebp - 0x122]
mov edx, dword [ebp - 4]
call fcn.00408458
xor eax, eax
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0x122]
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x1e], 3
or word [ebp - 0x12], 0x10
or word [ebp - 0x12], 4
or word [ebp - 0x12], 0x200
or word [ebp - 0x12], 0x400
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c181
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c19e
lea eax, [ebp - 4]
call fcn.00403a48
ret
Function at 0x46c1a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e7c
xor eax, eax
push ebp
push 0x46c284
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x46c1e1
mov eax, ebx
call fcn.00403a48
jmp 0x46c266
mov eax, dword [ebp - 4]
mov edx, 0x46c298
call fcn.00403dd8
jne 0x46c20c
push 0x1f
lea eax, [ebp - 0x23]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
lea edx, [ebp - 0x23]
mov ecx, 0x1f
call fcn.00403c78
jmp 0x46c266
mov eax, dword [ebp - 4]
mov edx, 0x46c2a4
call fcn.00403dd8
jne 0x46c231
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.004028d4
mov eax, dword [ebp - 0x28]
mov edx, ebx
call fcn.00408208
jmp 0x46c266
mov eax, dword [ebp - 4]
mov edx, 0x46c2b4
call fcn.00403dd8
jne 0x46c25c
push 0x1f
lea eax, [ebp - 0x23]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
lea edx, [ebp - 0x23]
mov ecx, 0x1f
call fcn.00403c78
jmp 0x46c266
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c28b
lea eax, [ebp - 0x28]
call fcn.00403a48
lea eax, [ebp - 4]
call fcn.00403a48
ret

Function at 0x46c2b8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e7c
xor eax, eax
push ebp
push 0x46c379
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x46bd00]
call fcn.0046bdac
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0046be4c
mov cl, 1
mov edx, 0x46c390
mov eax, ebx
call fcn.0046beb0
call fcn.004090d8
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 8]
call fcn.00409d04
push 0x46c3cc
push dword [ebp - 4]
push 0x46c3e4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403d88
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, 0x46c3f0
call fcn.00403d14
mov edx, dword [ebp - 0x10]
mov eax, ebx
pop ecx
call fcn.0046bfd4
mov eax, ebx
call fcn.0046be1c
mov eax, ebx
call fcn.00402dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c380
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403a6c
ret

Function at 0x46ef40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov ebx, eax
mov edx, 0x46efa8
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
call sub.kernel32.dll_GetTickCount
mov esi, eax
jmp 0x46ef7c
mov eax, dword [0x475b2c]
mov eax, dword [eax]
call fcn.004430d0
call sub.kernel32.dll_GetTickCount
sub eax, esi
cmp eax, 0xbb8
jbe 0x46ef7c
xor eax, eax
pop esi
pop ebx
ret
cmp dword [ebx + 0x12c8], 0
je 0x46ef5d
mov eax, dword [ebx + 0x12c8]
mov edx, 0x46efc0
call fcn.00403dd8
jne 0x46ef9b
mov al, 1
jmp 0x46ef9d
xor eax, eax
pop esi
pop ebx
ret
Function at 0x4b58c0
Capabilities:
Parse pe header

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

Function at 0x419a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.IaDsgWGk
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x419a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419a38
mov eax, 1
add ebx, ebx
jne 0x419a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419a50
jne 0x419a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a50
xor ecx, ecx
sub eax, 3
jb 0x419a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419af2
mov ebp, eax
add ebx, ebx
jne 0x419a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419abc
inc ecx
add ebx, ebx
jne 0x419aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419a9d
jne 0x419ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419acd
jmp 0x419a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419adc
add edi, ecx
jmp 0x419a3e
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419b44
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419af9
mov ecx, edi
jns 0x419b28
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 + 0x19a7c]
or eax, eax
je 0x419b3e
mov dword [ebx], eax
add ebx, 4
jmp 0x419b16
call dword [esi + 0x19a78]
mov ebp, dword [esi + 0x19a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x419b78
sub esp, 0xffffff80
jmp section.VHqxTUpa
Function at 0x408124
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.0040856c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4082ae
test edi, edi
je 0x4082ae
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4081ee
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4081c9
cmp edi, 0xffffffff
je 0x408189
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408189
mov byte [esp], 0
jmp 0x4082ae
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4081c9
test ebx, ebx
jne 0x4081bb
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4081bb
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4082ae
lea eax, [esp + 0xc]
call fcn.00407e04
dec ebp
test ebp, ebp
jg 0x40816e
cmp edi, 0xffffffff
je 0x4081ee
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4081ec
mov byte [esp], 0
jmp 0x4082ae
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408132
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081ee
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040831c
mov edx, eax
mov ebx, dword [0x4e78f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408252
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408250
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408252
xor edi, edi
cmp byte [esp], 0
je 0x408278
mov ebx, dword [esi]
test bl, 1
jne 0x40828e
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408258
mov byte [esp + 1], 1
jmp 0x40828e
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408278
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408205
cmp byte [esp], 0
je 0x4082ae
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 0x408eac
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4e9b18
cmp dword [ebp + 0xc], 2
jl 0x408ec0
mov ebx, 0x4e9b48
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x408ef8
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x404c90
mov dword [0x4e701c], eax
mov eax, 0x404c98
mov dword [0x4e7020], eax
mov eax, ebx
call fcn.00408d90
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x408f2d
cmp al, 3
jge 0x408f2d
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x408f3e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x408f49
call dword [ecx + eax*4]
cmp dword [0x4e7040], 0
jne 0x408f5f
mov byte [0x4e7048], 1
fnstcw word [0x4e2024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004091f0
call fcn.00408e40
ret 4

Function at 0x409158
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e7058], 0
je 0x4091bf
cmp word [0x4e7344], 0xd7b2
jne 0x409181
cmp dword [0x4e734c], 0
jbe 0x409181
mov eax, 0x4e7340
call dword [0x4e735c]
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, 0x4091ec
call fcn.00409d24
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e202e], 0
jne 0x4091db
push 0
push 0x4e29c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4093c4
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 [0x4e2030], 0
je 0x4093ef
mov edx, edi
mov eax, esi
call dword [0x4e2030]
mov ebx, eax
jmp 0x409400
mov eax, 8
call fcn.004069b8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4e7059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40938c
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 0x409430
mov eax, ebx
call fcn.004069d4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bb9c
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 0x40bd01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409504
cmp si, word [0x4e2a00]
jb 0x40bc34
cmp si, word [0x4e2c00]
ja 0x40bc34
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bc34
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e2a00]
jae 0x40bc0e
mov edi, ebx
dec edi
jmp 0x40bc2f
cmp si, word [ebx*8 + 0x4e2a00]
jbe 0x40bc1e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bc2f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e2a04]
call fcn.0040babc
jmp 0x40bc34
cmp edi, dword [ebp - 8]
jae 0x40bbf8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bce3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bce3
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.0040a0dc
push dword [ebp - 0x160]
push 0x40bd1c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a0dc
push dword [ebp - 0x164]
push 0x40bd2c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a0dc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a314
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd08
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409564
ret
Function at 0x40beb4
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 0x40bfb8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e9b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e9ba0]
jne 0x40bf00
mov eax, esi
mov edx, 0x4e9ba2
mov ecx, 0x55
call fcn.0040a0dc
push 0x4e9b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bfa2
push 0x4e9b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409504
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf6f
cmp byte [0x4e9b84], 0
je 0x40bf34
mov edx, esi
mov eax, ebx
call fcn.0040bd98
jmp 0x40bf6f
mov edx, esi
mov eax, ebx
call fcn.0040bb9c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bf6f
cmp dword [esi], 0
je 0x40bf58
mov eax, esi
mov edx, 0x40bfd0
call fcn.0040a234
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bb9c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a234
push 0x4e9b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e9ba0], bx
mov eax, dword [esi]
call fcn.0040a020
mov ecx, eax
mov eax, 0x4e9ba2
mov edx, 0xaa
call fcn.0040ba1c
push 0x4e9b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfbf
lea eax, [ebp - 4]
call fcn.00409504
ret
Function at 0x40c1e8
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.004095e8
xor eax, eax
push ebp
push 0x40c40d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c228
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c242
mov eax, dword [ebp - 4]
call fcn.0040a020
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ba1c
cmp word [ebp - 0x21a], 0
je 0x40c3f7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c41c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c311
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c41c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c311
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c458
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c311
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c458
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c311
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c48c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c311
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c4c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c3f7
xor eax, eax
push ebp
push 0x40c3f0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bff8
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 0x40c380
mov eax, dword [ebp - 0x10]
call fcn.004069b8
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.0040a088
jmp 0x40c3cb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c500
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c3cb
mov eax, dword [ebp - 0x10]
call fcn.004069b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c500
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3f7
cmp dword [ebp - 8], 0
je 0x40c3e6
mov eax, dword [ebp - 8]
call fcn.004069d4
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 0x40c414
lea eax, [ebp - 4]
call fcn.00409504
ret