joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487200
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4eef3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
push esi
push edi
test eax, eax
jne 0x487243
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x487256
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x18], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x48727d
call edi
cmp eax, 5
jne 0x48727d
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488c1c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x487339
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 0
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4872b8
call edi
cmp eax, 0x7a
jne 0x487339
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x487339
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x487339
xor edi, edi
cmp dword [ebx], edi
jbe 0x487339
lea esi, [ebx + 8]
nop dword [eax]
push dword [esi - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x487325
test byte [esi], 4
jne 0x48732f
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x487310
jmp 0x487336
mov dword [ebp - 0x20], 1
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x487347
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x487352
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x487362
push eax
call edi
test esi, esi
je 0x487369
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00488c1c
mov esp, ebp
pop ebp
ret

Function at 0x4aa2a4
Capabilities:
Read file on windows

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

Function at 0x4af683
Capabilities:
Set environment variable

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

Function at 0x4af68e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004af22c
Function at 0x40b000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x40b00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x401347
nop
sub eax, 0x4012ed
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x40b030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x40b01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.004011cb
Function at 0x4c6d40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4c6e68
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004c6c2c
mov eax, dword [esi]
call fcn.004081a8
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x415f08]
call fcn.00408370
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00404538
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00404538
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004081a8
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d6ac4]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.004b0634
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.0040488c
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004081a8
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.004b0610
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004b060c
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004b062c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6e6f
lea eax, [ebp - 4]
mov edx, dword [0x415f08]
call fcn.0040837c
ret
Function at 0x10030943
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10030967
xor eax, eax
jmp 0x10030a9a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x30fe
push 1
call fcn.1002f5c7
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10030994
xor eax, eax
jmp 0x10030a9a
push 0x410a
push 1
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.1002e95c
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x100309b7
xor eax, eax
jmp 0x10030a9a
push 0x7d11
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
push 1
push 0x1047
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.1002f473
add esp, 0x20
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push 0xe6c
push dword [ebp + 8]
call fcn.1002ea1a
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10030a13
push dword [ebp - 0x14]
push 1
push dword [ebp - 4]
call fcn.1002a8b7
add esp, 0xc
push dword [ebp - 4]
call fcn.1002df13
pop ecx
test eax, eax
jne 0x10030a24
xor eax, eax
jmp 0x10030a9a
push 0x6c53
push 0x5fda
push 0x4079
push dword [ebp - 4]
push 0
call fcn.1002f5c7
add esp, 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10030a82
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10030a5f
xor eax, eax
jmp 0x10030a9a
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10030a78
xor eax, eax
jmp 0x10030a9a
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10030a93
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10030a97
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10041753
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10041784
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10041782
push 0x231f
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x100417d2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100417a6
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jg 0x100417d2
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100417d0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_RectVisible]
jmp 0x1004179b
mov esp, ebp
pop ebp
ret
Function at 0x10060f20
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10090340]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x10060f44
jmp 0x10060fb3
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x10060f58
jmp 0x10060fb3
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x10060f84
jmp 0x10060fb3
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x10060fa5
jmp 0x10060fb3
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007154d
mov esp, ebp
pop ebp
ret

Function at 0x10063790
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x1067bf0b]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x1118c1e0
call fcn.10057ba0
add esp, 8
mov esp, ebp
pop ebp
ret 4
Function at 0x10085ec5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10090340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100778d4
mov dword [ebp - 0x14], eax
cmp dword [0x1118d190], esi
jne 0x10085fb8
push 0x800
push esi
push 0x100095ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10085f45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10086098
push esi
push esi
push 0x100095ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10086098
push 0x100095c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10086098
push eax
call ebx
push 0x100095d0
push edi
mov dword [0x1118d190], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100095e0
push edi
mov dword [0x1118d194], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100095f4
push edi
mov dword [0x1118d198], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1118d1a0], eax
test eax, eax
je 0x10085fb5
push 0x10009610
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1118d19c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10085fdd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10085fd0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10085ff2
push 4
pop eax
jmp 0x1008609a
cmp dword [ebp - 0x14], esi
je 0x10085ff2
push dword [0x1118d190]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10085fd7
mov eax, dword [0x1118d19c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10086050
cmp dword [0x1118d1a0], edi
je 0x10086050
push eax
call ebx
push dword [0x1118d1a0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10086050
test eax, eax
je 0x10086050
call ecx
test eax, eax
je 0x10086045
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10086045
test byte [ebp - 8], 1
jne 0x10086050
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10086080
mov eax, dword [0x1118d194]
cmp eax, edi
je 0x1008607d
push eax
call ebx
test eax, eax
je 0x1008607d
call eax
mov esi, eax
test esi, esi
je 0x1008607d
mov eax, dword [0x1118d198]
cmp eax, edi
je 0x1008607d
push eax
call ebx
test eax, eax
je 0x1008607d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1118d190]
call ebx
test eax, eax
je 0x10086098
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1008609a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007154d
mov esp, ebp
pop ebp
ret
Function at 0x10001a76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e2d8]
jne 0x10001a80
repz ret
jmp fcn.10001ec6

Function at 0x10008fd8
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.1000203e
and dword [ebp - 4], 0
cmp dword [0x1000fb54], 0
mov ebx, eax
jne 0x10009089
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000913a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000913a
push eax
call fcn.10001fcc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000fb54], eax
call esi
push eax
call fcn.10001fcc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000fb58], eax
call esi
push eax
call fcn.10001fcc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000fb5c], eax
call esi
push eax
call fcn.10001fcc
pop ecx
mov dword [0x1000fb64], eax
test eax, eax
je 0x10009089
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001fcc
pop ecx
mov dword [0x1000fb60], eax
mov eax, dword [0x1000fb60]
cmp eax, ebx
je 0x100090e1
cmp dword [0x1000fb64], ebx
je 0x100090e1
push eax
call fcn.10002047
push dword [0x1000fb64]
mov esi, eax
call fcn.10002047
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100090e1
test edi, edi
je 0x100090e1
call esi
test eax, eax
je 0x100090d8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100090d8
test byte [ebp - 0xc], 1
jne 0x100090e1
or dword [ebp + 0x10], 0x200000
jmp 0x1000911a
mov eax, dword [0x1000fb58]
cmp eax, ebx
je 0x1000911a
push eax
call fcn.10002047
pop ecx
test eax, eax
je 0x1000911a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000911a
mov eax, dword [0x1000fb5c]
cmp eax, ebx
je 0x1000911a
push eax
call fcn.10002047
pop ecx
test eax, eax
je 0x1000911a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000fb54]
call fcn.10002047
pop ecx
test eax, eax
je 0x1000913a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000913c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x23ca0833
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x44960e01
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4018ac
Capabilities:
Generate random numbers via winapi
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [0x40600c], 0
jne 0x4018f6
mov dword [esp + 0x10], 0xf0000040
mov dword [esp + 0xc], 1
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], 0x40600c
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
sub esp, 0x14
test eax, eax
jne 0x4018f6
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 4
mov eax, dword [0x40600c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
sub esp, 0xc
mov eax, dword [ebp - 0xc]
and eax, 0x7fffffff
leave
ret
Function at 0x402b04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404298
test esi, esi
jne 0x402b3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404388
jmp 0x402b58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a18
mov edi, eax
test esi, esi
je 0x402b58
cmp dword [ebx], 0
je 0x402b58
dec esi
jmp 0x402b41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f0020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403350
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403330
xor eax, eax
push ebp
push 0x403329
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 0x40336c
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 0x403330
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4f0020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f0020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f604c], 0
je 0x40415d
cmp word [0x4f6220], 0xd7b2
jne 0x404125
cmp dword [0x4f6228], 0
jbe 0x404125
mov eax, 0x4f621c
call dword [0x4f6238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f006c
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 0x404184
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f0030], 0
jne 0x404179
push 0
push 0x4f0064
push 0x4f006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d5c
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 0x405f8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ddf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ddf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fa8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e68
xor eax, eax
push ebp
push 0x405e61
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ba4
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 0x405e46
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405fc8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e46
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 0x405e68
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 0x405f82
cmp byte [ebp - 0xd], 0
jne 0x405eaf
cmp byte [ebp - 0x12], 0
je 0x405f82
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ec8
dec ebx
cmp byte [ebx], 0x2e
je 0x405ed7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ec7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f82
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f14
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 0x405f82
cmp byte [ebp - 0xd], 0
je 0x405f82
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 0x405f82
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