joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023f0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x406cf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea ecx, [esp + 4]
call fcn.00403a50
lea ecx, [esp]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_1
push str.SoftwareEchoBirdHKDVR
push closesocket
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.00403b00
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push str.WorkDir
call fcn.00403b40
test eax, eax
jne 0x40249a
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00403a90
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.00403ae0
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00403a90
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4024e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
call fcn.004039f0
mov edi, dword [esp + 0x50]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dx, 0x804
rep movsb byte es:[edi], byte [esi]
je 0x402544
cmp dx, 0x1004
je 0x402544
cmp dx, 0x404
je 0x402539
cmp dx, 0xc04
je 0x402539
lea edx, [esp + 0xc]
mov edi, str.Language0009.ini
jmp 0x40254d
lea edx, [esp + 0xc]
mov edi, str.Language0404.ini
jmp 0x40254d
lea edx, [esp + 0xc]
mov edi, str.Language0804.ini
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0xff
push 0x40a278
push 0
push edx
push str.String_Table
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4025b2
mov edi, 0x738d00
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40a278
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 0x40a278
pop ebx
add esp, 0x40
ret
Function at 0x402b80
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x220
mov ecx, 0x3f
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x12c]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, 0x3f
xor eax, eax
mov edi, 0x40a178
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x230]
stosw word es:[edi], ax
push ecx
push 0x409b48
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.HKDVR.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xff
push 0x40a178
lea ecx, [esp + 0x18]
push 0
push ecx
push 0x409b38
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x402c89
mov edi, 0x738d00
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40a178
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 0x40a178
pop ebx
add esp, 0x220
ret
Function at 0x4038a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x320
mov ecx, 0x3f
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.iLang
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x22c]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DVRFace.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x130]
push 0xff
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push str.String_Table
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4039ca
mov edi, 0x738d00
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x12c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
or eax, 0xffffffff
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x320
ret
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
dec eax
jns 0x4039e1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x320
ret

Function at 0x403b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0xd0
test eax, eax
jne 0x403b5b
mov eax, 1
add esp, 0xd0
ret 8
lea ecx, [esp]
push esi
push ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xe0]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x403b9b
mov ecx, dword [esp + 0xdc]
lea eax, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
mov eax, esi
pop esi
add esp, 0xd0
ret 8
Function at 0x403bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
jne 0x403bc5
mov eax, 1
add esp, 8
ret 8
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403bf8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x404330
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x2810
call fcn.004068a0
mov edx, dword [esp + 0x2820]
push ebx
push ebp
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, ebp
mov edx, dword [esp + 0x282c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x2828]
lea ecx, [esp + 0x10]
push 0x10
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x282c]
push 0
lea edx, [esp + 0x2c]
push ebx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2810
ret
Function at 0x4059e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
lea eax, [esp + 8]
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov al, 0x5c
cmp byte [esp + ecx + 0x14], al
je 0x405a20
test ecx, ecx
jl 0x405a20
mov dl, byte [esp + ecx + 0x13]
dec ecx
cmp dl, al
jne 0x405a13
cmp ecx, 0xffffffff
je 0x405a2a
mov byte [esp + ecx + 0x15], 0
mov edi, str.UPnp.dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
mov ecx, ebp
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405ae2
mov ecx, dword [0x738d14]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x14]
push 4
push eax
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
call ebp
mov eax, dword [esp + 0xc]
xor esi, esi
test eax, eax
jle 0x405adb
test esi, esi
jl 0x405ac3
cmp esi, dword [0x738d14]
jge 0x405ac3
mov ecx, dword [0x738d10]
mov eax, dword [ecx + esi*4]
jmp 0x405ac5
xor eax, eax
lea edx, [esp + 0x10]
push 0
push edx
push 0x22
push eax
push edi
call ebp
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
jl 0x405aac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x100027b0
Capabilities:
Parse pe header

Disassembly:
cmp esi, 0x40
jae 0x100027b8
xor eax, eax
ret
mov ecx, 0x5a4d
mov dword [edx + 0xc], eax
cmp word [eax], cx
jne 0x100027b5
mov ecx, dword [eax + 0x3c]
push edi
lea edi, [ecx + 0xf8]
cmp esi, edi
jb 0x10002836
add eax, ecx
mov dword [edx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x10002836
movzx ecx, word [eax + 0x16]
test ecx, 0x2000
je 0x10002836
test cl, 2
je 0x10002836
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x10002836
mov edi, dword [edx + 0x10]
push ebx
lea ecx, [eax + 0xf8]
xor ebx, ebx
mov dword [edx + 0x14], ecx
xor eax, eax
cmp bx, word [edi + 6]
pop ebx
jae 0x1000282f
add ecx, 0x10
mov edi, dword [ecx + 4]
add edi, dword [ecx]
cmp edi, esi
ja 0x10002836
mov edi, dword [edx + 0x10]
movzx edi, word [edi + 6]
inc eax
add ecx, 0x28
cmp eax, edi
jl 0x10002817
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x100028c0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
mov edx, dword [eax + 0x54]
push ebx
lea ecx, [ecx + ecx*4]
push ebp
mov ebp, dword [esp + 0xc]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call fcn.100096e0
mov edx, dword [esi + 0x10]
xor eax, eax
add esp, 0xc
xor ebx, ebx
cmp ax, word [edx + 6]
jae 0x1000292d
push edi
xor edi, edi
mov ecx, dword [esi + 0x14]
lea eax, [ecx + edi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1000291d
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1000291d
push edx
mov edx, dword [eax + 0x14]
add edx, dword [esp + 0x18]
add ecx, ebp
push edx
push ecx
call fcn.100096e0
add esp, 0xc
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
inc ebx
add edi, 0x28
cmp ebx, ecx
jl 0x100028f5
pop edi
mov dword [esi + 0xc], ebp
mov edx, dword [ebp + 0x3c]
lea eax, [edx + ebp]
mov dword [esi + 0x10], eax
add eax, 0xf8
pop ebp
mov dword [esi + 0x14], eax
pop ebx
ret 8

Function at 0x10007b58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001d0d0]
jne 0x10007b62
repz ret
jmp fcn.10009b24
Function at 0x1001036d
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.1000a775
and dword [ebp - 4], 0
cmp dword [0x1001eb58], 0
mov ebx, eax
jne 0x1001041e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100104cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100104cf
push eax
call fcn.1000a703
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001eb58], eax
call esi
push eax
call fcn.1000a703
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001eb5c], eax
call esi
push eax
call fcn.1000a703
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001eb60], eax
call esi
push eax
call fcn.1000a703
pop ecx
mov dword [0x1001eb68], eax
test eax, eax
je 0x1001041e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a703
pop ecx
mov dword [0x1001eb64], eax
mov eax, dword [0x1001eb64]
cmp eax, ebx
je 0x10010476
cmp dword [0x1001eb68], ebx
je 0x10010476
push eax
call fcn.1000a77e
push dword [0x1001eb68]
mov esi, eax
call fcn.1000a77e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10010476
test edi, edi
je 0x10010476
call esi
test eax, eax
je 0x1001046d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001046d
test byte [ebp - 0xc], 1
jne 0x10010476
or dword [ebp + 0x10], 0x200000
jmp 0x100104af
mov eax, dword [0x1001eb5c]
cmp eax, ebx
je 0x100104af
push eax
call fcn.1000a77e
pop ecx
test eax, eax
je 0x100104af
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100104af
mov eax, dword [0x1001eb60]
cmp eax, ebx
je 0x100104af
push eax
call fcn.1000a77e
pop ecx
test eax, eax
je 0x100104af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001eb58]
call fcn.1000a77e
pop ecx
test eax, eax
je 0x100104cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100104d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403824
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40389c
xor eax, eax
push ebp
push 0x403895
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4038d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40389c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x45e020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x460048], 0
je 0x404731
cmp word [0x46021c], 0xd7b2
jne 0x4046f9
cmp dword [0x460224], 0
jbe 0x4046f9
mov eax, 0x460218
call dword [0x460234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404758
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e02c], 0
jne 0x40474d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408368
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4083ba
test eax, edx
je 0x4083bd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40837d
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4083a3
add ecx, 4
js 0x408393
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4083a0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4083c9
test edx, edx
jne 0x408370
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b648
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b681
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404940
jmp 0x40b68a
mov eax, ebx
mov edx, esi
call fcn.004048a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b694
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b6b6
movzx eax, byte [esp]
jmp 0x40b6b8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd48
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbc0
mov eax, dword [0x45faac]
cmp byte [eax], 0
je 0x40bdc4
mov eax, dword [0x45f8d0]
call fcn.004031ec
call fcn.00402fac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408dc8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40be0c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdfa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45f87c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4627f4]
call fcn.004059f4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c684
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c75a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004048e8
lea eax, [ebp - 4]
call fcn.00404d38
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ce0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c744
mov eax, ebx
call fcn.00402e50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c73d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ce0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c727
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c76c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c727
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c744
mov eax, dword [ebp - 0x10]
call fcn.00402e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c761
lea eax, [ebp - 4]
call fcn.00404850
ret

Function at 0x41b4d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4649e8
cmp dword [edi], 0
jne 0x41b554
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4649e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45ead4
mov ecx, 2
call fcn.00403040
mov edx, 0x41b4b0
lea eax, [esi + 5]
call fcn.0041b4d0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b4d0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41b529
mov dword [0x4649e4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41dbbc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ce0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41dc14
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45fbc8]
mov dl, 1
mov eax, dword [0x41d6c8]
call fcn.0040bf08
call fcn.00404298
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d7d0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41eda4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41edaa
ret
Function at 0x42c584
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404cd0
xor eax, eax
push ebp
push 0x42c6b9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42c68c
xor edx, edx
push ebp
push 0x42c685
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x42c5d1
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42c65a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x42c649
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x42c610
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00404ce0
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00403040
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c650
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x45f828]
mov dl, 1
mov eax, dword [0x4075c4]
call fcn.0040becc
call fcn.00404298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c6c0
lea eax, [ebp - 4]
call fcn.00404850
ret