joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4522b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452388
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49bad0], 0
jne 0x45236c
lea eax, [ebp - 4]
mov edx, 0x4523a0
call fcn.004864f8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00486910
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45236c
mov eax, ebx
call fcn.0048486c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x452365
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x45234f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4523b0
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x45234f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x49bad0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45236c
mov eax, dword [ebp - 0xc]
call fcn.0048488c
ret
mov ebx, dword [0x49bad0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45238f
lea eax, [ebp - 4]
call fcn.00486460
ret

Function at 0x46ffc8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0046fe4c
dec esi
jne 0x46ffea
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x471114
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49bc2c
cmp dword [edi], 0
jne 0x471190
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x49bc28]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x497b38
mov ecx, 2
call fcn.00484ad0
mov edx, 0x4710ec
lea eax, [esi + 5]
call fcn.0047110c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0047110c
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 0x471165
mov dword [0x49bc28], 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 0x476940
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x476979
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00486550
jmp 0x476982
mov eax, ebx
mov edx, esi
call fcn.004864b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47698c
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
test eax, eax
jle 0x4769ad
mov al, byte [esp]
jmp 0x4769af
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x477e84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x477ee8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004866c8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00473c4c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477eef
lea eax, [ebp - 0xc]
call fcn.00486460
ret

Function at 0x4855a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x498078]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x485638
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x485618
xor eax, eax
push ebp
push 0x485611
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 0x485654
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 0x485618
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x498078]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x498078], ax
mov esp, ebp
pop ebp
ret

Function at 0x486260
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49bfa8], 0
je 0x4862c1
cmp word [0x49c17c], 0xd7b2
jne 0x486289
cmp dword [0x49c184], 0
jbe 0x486289
mov eax, 0x49c178
call dword [0x49c194]
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 0x4862e8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x498088], 0
jne 0x4862dd
push 0
push 0x4980e0
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x486414
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0048486c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49bfa9], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4863dc
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x487dcc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x487ffc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x487e4f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x487ffc
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x487e4f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x488018
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x487ed8
xor eax, eax
push ebp
push 0x487ed1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00487c14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x487eb6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x488038
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x487eb6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487ed8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x487ff2
cmp byte [ebp - 0xd], 0
jne 0x487f1f
cmp byte [ebp - 0x12], 0
je 0x487ff2
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x487f38
dec ebx
cmp byte [ebx], 0x2e
je 0x487f47
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x487f37
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x487ff2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x487f84
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x487ff2
cmp byte [ebp - 0xd], 0
je 0x487ff2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x487ff2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x488770
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x49c51c], 1
jae 0x4887f6
mov byte [0x498074], 2
mov dword [0x49bf6c], 0x4929ec
mov dword [0x49bf70], 0x492a04
mov byte [0x49bfaa], 2
mov dword [0x49bf58], 0x4873fc
call fcn.00485570
test al, al
je 0x4887b3
call fcn.004855a0
call fcn.00485664
mov word [0x49bfb0], 0xd7b0
mov word [0x49c17c], 0xd7b0
mov word [0x49c348], 0xd7b0
call fcn.004872dc
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x49bf9c], eax
call fcn.00483508
mov dword [0x49bf98], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x49bf90], eax
ret

Function at 0x48d308
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x48d36a
call fcn.0048d2b8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0048941c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0048941c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x48d3e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x499cd4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x48d4c2
cmp dword [0x499cd0], 0
jne 0x48d4c2
cmp dword [0x499eb4], 0
je 0x48d47c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0048d1b8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48d462
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0048d1b8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48d462
lea ebx, [ebp - 0x84]
jmp 0x48d463
inc ebx
call fcn.0048d3a4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x48d4fd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x499cd8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0048941c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x499cdb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x48d4fd
cmp dword [0x499cd0], 0
je 0x48d4dc
cmp dword [0x499cd0], 0xffffffff
je 0x48d4fd
push esi
call dword [0x499cd0]
pop ecx
mov eax, dword [0x499cd4]
test eax, eax
je 0x48d4fd
cmp dword [0x499cd4], 0xffffffff
je 0x48d4fd
cmp byte [eax], 0
je 0x48d4fd
push esi
push eax
call fcn.0048d308
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4a4469f6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x50831068
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4013a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x40b014]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401406
push str._CreateToolhelp32Snapshot
call fcn.00405580
add esp, 4
or eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.004059ab
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40144a
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x18]
call edi
add esp, 8
test eax, eax
je 0x401442
lea eax, [esp + 0x18]
push eax
push esi
call ebx
test eax, eax
jne 0x401422
jmp 0x40144a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004059ab
mov esp, ebp
pop ebp
ret
Function at 0x401d20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x40b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
xor esi, esi
lea eax, [ebp - 0x468]
push esi
push eax
mov ebx, ecx
call sub.VCRUNTIME140.dll_memset
push 0x64
lea eax, [ebp - 0x68]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x68]
mov edi, esi
push str.Old_vkCode_d
push eax
call fcn.00405530
add esp, 0xc
lea eax, [ebp - 0x468]
inc esi
push 0x40b838
push 0x400
push eax
push str.NotFind
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, str.NotFind
lea ecx, [ebp - 0x468]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401dc1
test dl, dl
je 0x401dbd
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401dc1
add ecx, 2
add eax, 2
test dl, dl
jne 0x401da1
xor eax, eax
jmp 0x401dc6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401d60
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004059ab
mov esp, ebp
pop ebp
ret

Function at 0x401de0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x40b014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x40b838
push 0x400
push eax
push str.NotFind
push str.Key_Name
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, str.NotFind
lea ecx, [ebp - 0x404]
pop esi
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401e60
test dl, dl
je 0x401e5c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401e60
add ecx, 2
add eax, 2
test dl, dl
jne 0x401e40
xor ecx, ecx
jmp 0x401e65
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.004059ab
mov esp, ebp
pop ebp
ret
Function at 0x402030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x40b014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x64
lea eax, [ebp - 0x68]
mov edi, edx
push 0
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp esi, 1
jne 0x402064
mov dword [ebp - 0x6c], 0x40ba44
jmp 0x402074
cmp esi, 2
jne 0x402176
mov dword [ebp - 0x6c], 0x40b93c
push ebx
mov ebx, dword [ebp + 8]
push ebx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0xffffffffffffffff
push dword [0x40bb4c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0
cmp dword [eax], 0
jle 0x402141
imul esi, esi, 0xfa0
sub esi, 0xfa0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020b6
sub eax, edx
je 0x4020e3
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020c6
sub ecx, edx
mov eax, ebx
push 0x407920
sub eax, ecx
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
push 0x64
lea eax, [ebp - 0x68]
push eax
mov eax, dword [esi + 0x40bc58]
shl eax, 8
add eax, dword [esi + 0x40db98]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
je 0x402160
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402110
lea eax, [ebp - 0x68]
sub ecx, edx
push eax
mov eax, ebx
sub eax, ecx
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov ecx, dword [ebp - 0x70]
add esp, 0xc
mov eax, dword [ebp - 0x6c]
inc ecx
add esi, 4
mov dword [ebp - 0x70], ecx
cmp ecx, dword [eax]
jl 0x4020b1
push dword [0x40bb4c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004059ab
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004059ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.004059ab
mov esp, ebp
pop ebp
ret

Function at 0x402190
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x40b838
push dword [ebp + 0xc]
push esi
push str.NotFind
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, str.NotFind
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x4021da
test cl, cl
je 0x4021ce
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x4021da
add esi, 2
add eax, 2
test cl, cl
jne 0x4021b2
xor eax, eax
neg eax
pop esi
sbb eax, eax
neg eax
dec eax
pop ebp
ret
sbb eax, eax
or eax, 1
neg eax
pop esi
sbb eax, eax
neg eax
dec eax
pop ebp
ret
Function at 0x409a30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x409a4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409a51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409a40
mov eax, 1
add ebx, ebx
jne 0x409a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409a58
jne 0x409a74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409a58
xor ecx, ecx
sub eax, 3
jb 0x409a88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409afa
mov ebp, eax
add ebx, ebx
jne 0x409a93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409aa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409ac4
inc ecx
add ebx, ebx
jne 0x409ab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409aa5
jne 0x409ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409aa5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409ae4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409ad5
jmp 0x409a46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409ae4
add edi, ecx
jmp 0x409a46
pop esi
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409b43
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xaef8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xaf6c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409b01
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xaf74]
or eax, eax
je 0x409b3d
mov dword [ebx], eax
add ebx, 4
jmp 0x409b1e
call dword [esi + 0xaf70]
mov ebp, dword [esi + 0xaf78]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x409b77
sub esp, 0xffffff80
jmp 0x401183
Function at 0x1000aad1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x100a4b40], 0
mov dword [0x100a4b44], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x100a4b48], 0
mov dword [0x100a4b38], 0x1a14
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x1000ac14
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, edx
add edi, 1
add eax, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x100a4b40], edx
mov dword [0x100a4b38], 0xfbe
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x100a4b44], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov ebx, dword [ebp - 0x1c]
mov ch, byte [ebx + edx]
mov byte [ebx + esi], ch
mov dword [0x100a4b38], 0x1d46
mov edx, dword [0x100a4b44]
mov byte [ebx + edx], cl
mov edx, dword [0x100a4b40]
movzx edx, byte [ebx + edx]
mov esi, dword [0x100a4b44]
movzx esi, byte [ebx + esi]
add esi, edx
and esi, 0xff
mov dword [0x100a4b48], esi
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov cl, byte [edx + ebx]
mov edx, dword [ebp - 0x1c]
xor cl, byte [edx + esi]
mov esi, dword [ebp - 0x18]
mov byte [esi + ebx], cl
mov edx, dword [0x100a4b3c]
add edx, 0x374
mov dword [0x100a4b3c], edx
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x1000ac14
mov eax, dword [0x100a4b40]
mov ecx, dword [0x100a4b44]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jmp 0x1000ab38
mov dword [0x100a4b3c], 0x20c0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000ad0b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a4b3c]
add eax, 0xffffe02f
mov ecx, dword [0x100a4b38]
add ecx, 0xffffdbc5
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
lea eax, [fcn.1000ad0b]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jmp 0x1000ad64
mov eax, dword [ebp - 0x14]
mov dword [0x100a4b3c], eax
mov eax, dword [ebp - 0x18]
add esp, 0x18
pop ebp
ret
mov eax, dword [ebp - 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [eax], 0x5a4d
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jne 0x1000ad4e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x1000ad3e
jmp 0x1000ad4e