joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e2a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push 1
push esi
mov edi, 0x1001fa0
push edi
push 0x80000002
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
je 0x1004e7a
push ebx
push edi
push 0x400003f0
call fcn.01006e2f
add esp, 0xc
mov eax, ebx
jmp 0x1004fac
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
mov ebx, 0x20006
push ebx
push esi
push esi
push esi
push 0x1001f7c
push dword [ebp - 0x18]
call edi
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1004eb0
push eax
push 0x1001f7c
push 0x400003f1
jmp 0x1004f69
push esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push 0x1001f38
push dword [ebp - 0x14]
call edi
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1004ed3
push eax
push 0x1001f38
jmp 0x1004ea6
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push esi
push esi
push esi
push 0x1001f14
push dword [ebp - 8]
call edi
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1004ef6
push eax
push 0x1001f14
jmp 0x1004ea6
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push esi
push esi
push esi
mov ebx, 0x1001ac8
push ebx
push dword [ebp - 0xc]
call edi
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1004f16
push eax
push ebx
jmp 0x1004ea6
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x1004f1c
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push esi
push dword [0x100b004]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1004f59
push eax
push dword [0x100b004]
push 0x40000401
jmp 0x1004f69
push 0x1001e38
push dword [0x100b004]
push 0x400003f2
call fcn.01006e2f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp dword [ebp - 8], esi
je 0x1004f81
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], esi
je 0x1004f8b
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], esi
je 0x1004f95
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x14], esi
je 0x1004f9f
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x18], esi
je 0x1004fa9
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10051c4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b218]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x210], 0
mov esi, 0x10020b4
push esi
push 0x1002260
push 1
call fcn.01007df2
add esp, 0x18
push sub.netutils.dll_NetApiBufferFree
push sub.netutils.dll_NetApiBufferAllocate
lea eax, [ebp - 0x210]
push eax
push dword [0x100b008]
call fcn.010094ad
mov edi, eax
test edi, edi
jne 0x1005256
push dword [0x100b004]
mov dword [0x100b73c], 0x57
push esi
push 0x1002210
push 1
call fcn.01007df2
add esp, 0x10
jmp 0x10052ba
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1005280
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
mov dword [0x100b73c], eax
push 0x1002190
jmp 0x100524a
lea eax, [ebp - 0x20c]
push eax
push 0x40000000
push dword [ebp - 0x210]
push edi
call fcn.010051a1
mov dword [0x100b73c], eax
test eax, eax
je 0x10052aa
push eax
push esi
push 0x1002148
jmp 0x100524a
push esi
push 0x10020d8
push 1
call fcn.01007df2
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [0x100b73c]
pop edi
xor ecx, ebp
pop esi
call fcn.010071e1
leave
ret
Function at 0x1005aa1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b218]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ntdll.dll_RtlGetNtProductType]
cmp byte [ebp + 8], 0
je 0x1005afb
cmp dword [ebp - 0x210], 2
jne 0x1005aec
push 0x4000040a
call fcn.01006e2f
jmp 0x1005b8c
test esi, esi
je 0x1005b97
push 0x4000040f
jmp 0x1005ae2
cmp byte [ebp + 0xc], 0
je 0x1005b97
test dword [ebp + 0x10], 0x800
jne 0x1005b97
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1005b68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020b4
push 0x1002190
push 1
mov dword [0x100b73c], eax
call fcn.01007df2
add esp, 0x10
jmp 0x1005b97
test esi, esi
je 0x1005b97
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1005b97
push esi
push 0x40000410
call fcn.01006e2f
pop ecx
pop ecx
mov dword [0x100b73c], 0x57
mov ecx, dword [ebp - 4]
mov eax, dword [0x100b73c]
xor ecx, ebp
pop esi
call fcn.010071e1
leave
ret 0x10
Function at 0x100635f
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100b038]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x100646e
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100637c
sub eax, edx
sar eax, 1
je 0x100646e
push esi
push edi
mov esi, 0x10020b4
push esi
push 0x10033c8
push ebx
call fcn.01007df2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
jmp 0x10063b0
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 1
push ebx
push ebx
push dword [0x100b038]
push ebx
call dword [sym.imp.logoncli.dll_DsGetDcNameW]
mov ebx, eax
test ebx, ebx
je 0x10063df
call edi
push eax
push ebx
push esi
push 0x1003318
push 1
call fcn.01007df2
add esp, 0x14
push dword [ebp - 4]
call sub.netutils.dll_NetApiBufferFree
mov eax, dword [0x100b740]
and dword [ebp - 4], 0
test eax, eax
je 0x100645b
push 0
push dword [0x100b078]
push dword [0x100b058]
push dword [0x100b068]
push dword [eax]
call fcn.01006024
mov ebx, eax
test ebx, ebx
jne 0x1006447
mov eax, dword [0x100b740]
push 2
push dword [0x100b078]
push dword [0x100b058]
push dword [0x100b068]
push dword [eax]
call fcn.01006024
mov ebx, eax
test ebx, ebx
je 0x100645b
call edi
push eax
push ebx
push esi
push 0x1003268
jmp 0x1006451
call edi
push eax
push ebx
push esi
push 0x10031b8
push 1
call fcn.01007df2
add esp, 0x14
cmp byte [0x100b710], 0
jne 0x10063ae
pop edi
mov eax, ebx
pop esi
jmp 0x100648b
push dword [0x100b094]
push 0x10020b4
push 0x1003168
push 1
call fcn.01007df2
add esp, 0x10
push 0x57
pop eax
pop ebx
leave
ret
Function at 0x1006493
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100b218]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.010059c3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x100b0b0]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1006510
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push dword [0x100b0b0]
push 0x10020b4
push 0x1003618
push 2
call fcn.01007df2
add esp, 0x14
jmp 0x1006649
lea ecx, [eax + eax]
mov eax, dword [0x100b0b4]
push ebx
push esi
mov dword [ebp - 0x210], ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1006523
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
lea esi, [ecx + eax + 0x78]
push esi
push 0x40
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1006563
push 8
pop edi
push esi
push 0x10020b4
push 0x1003588
push 2
jmp 0x1006634
mov dword [ebx], esi
mov dword [ebx + 0x2c], 0x20000
lea edi, [ebx + 0x18]
mov esi, 0x1001c54
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x214]
mov dword [ebx + 0x40], 0x1020801
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x70], 0x78
push dword [0x100b0b4]
mov eax, edi
shr eax, 1
push eax
lea eax, [ebx + 0x78]
push eax
call sub.msvcrt.dll_wcscpy_s
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x210]
lea eax, [edi + 0x78]
shr ecx, 1
mov dword [ebx + 0x6c], eax
push ecx
add eax, ebx
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0x18
push ebx
push dword [0x100b0b4]
push 0x100b748
call dword [sym.imp.ADVAPI32.dll_StartTraceW]
mov edi, eax
test edi, edi
je 0x10065ef
push edi
push 0x10020b4
push 0x10034f8
jmp 0x100655c
push dword [0x100b74c]
push dword [0x100b748]
push 0x1001c54
push 0
push esi
push 1
call dword [sym.imp.ADVAPI32.dll_EnableTrace]
mov edi, eax
test edi, edi
je 0x1006621
push edi
push 0x10020b4
push 0x1003468
jmp 0x100655c
lea eax, [ebp - 0x20c]
push eax
push 0x10020b4
push 0x1003400
push 0
call fcn.01007df2
add esp, 0x10
test ebx, ebx
je 0x1006647
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.010071e1
leave
ret 4
Function at 0x10071bb
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1009580
call fcn.01007394
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1013b48
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1006fd0
cmp eax, esi
jne 0x1006fc3
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1006fd3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006faa
xor esi, esi
inc esi
mov eax, dword [0x1013b44]
cmp eax, esi
jne 0x1006fe6
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1007021
mov eax, dword [0x1013b44]
test eax, eax
jne 0x100701b
mov dword [0x1013b44], esi
push 0x1001218
push 0x100120c
call fcn.01006f27
pop ecx
pop ecx
test eax, eax
je 0x1007021
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10070eb
mov dword [0x1013770], esi
mov eax, dword [0x1013b44]
cmp eax, esi
jne 0x1007045
push 0x1001208
push 0x10011f8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1013b44], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1007052
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1013b4c], ebx
je 0x1007073
push 0x1013b4c
call fcn.01007309
pop ecx
test eax, eax
je 0x1007073
push ebx
push 2
push ebx
call dword [0x1013b4c]
push dword [0x1013758]
push dword [0x101375c]
push dword [0x1013754]
call fcn.0100665f
add esp, 0xc
mov dword [0x101376c], eax
cmp dword [0x1013760], ebx
jne 0x10070d1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1013770], ebx
jne 0x10070df
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101376c]
call fcn.010073d9
ret
call fcn.01007587
jmp 0x1006f88
Function at 0x10082d3
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100b218]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x1008467
xor eax, eax
cmp ax, word [esi]
je 0x1008467
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.010080d1
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1008450
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.010080b3
cmp eax, ebx
jl 0x10083e4
cmp dword [ebp - 0x1c], 1
jne 0x10083af
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1008349
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x1008373
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, ebx
je 0x1008424
xor eax, eax
mov word [esi], ax
call fcn.01008a8b
test eax, eax
jne 0x10083a5
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x1008379
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x10083c1
cmp ax, 0x7a
jbe 0x10083cd
cmp ax, 0x41
jb 0x1008373
cmp ax, 0x5a
ja 0x1008373
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x1008373
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x1008373
add esi, 8
jmp 0x1008373
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1003d20
push 0x3000000
push 0x1013ae8
mov dword [ebp - 0x10], eax
call fcn.01007e0d
add esp, 0x14
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x1008459
call fcn.01008a8b
xor esi, esi
inc esi
cmp eax, esi
je 0x100844b
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x100844b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1003cc0
jmp 0x10083fb
mov dword [ebp - 0x18], esi
jmp 0x1008410
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x1008471
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010071e1
leave
ret 4
Function at 0x1008a8b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x1008afc
xor ecx, ecx
cmp cx, word [eax]
je 0x1008afc
push edi
push esi
push eax
call fcn.010080d1
mov edi, eax
cmp edi, esi
je 0x1008af7
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1008ac5
test al, 0x10
je 0x1008ac5
inc ebx
jmp 0x1008ae0
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1008ad8
mov esi, 0x10b
cmp esi, 2
jne 0x1008ae0
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x1008b06
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4032cc
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.00404b78
test esi, esi
jne 0x403302
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.00404c68
jmp 0x403320
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031d0
mov edi, eax
test esi, esi
je 0x403320
cmp dword [ebx], 0
je 0x403320
dec esi
jmp 0x403309
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a6c
Capabilities:
Query or enumerate registry value

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

Function at 0x404924
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48904c], 0
je 0x404985
cmp word [0x489220], 0xd7b2
jne 0x40494d
cmp dword [0x489228], 0
jbe 0x40494d
mov eax, 0x48921c
call dword [0x489238]
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 0x4049ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48602c], 0
jne 0x4049a1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404afc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x486030], 0
je 0x404b22
mov edx, esi
mov eax, ebx
call dword [0x486030]
jmp 0x404b31
mov eax, 8
call fcn.00402ee0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x48904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ac4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4062c4
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 0x4064f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406347
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406347
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406510
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4063d0
xor eax, eax
push ebp
push 0x4063c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406100
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 0x4063ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406530
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4063ae
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 0x4063d0
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 0x4064ea
cmp byte [ebp - 0xd], 0
jne 0x406417
cmp byte [ebp - 0x12], 0
je 0x4064ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406430
dec ebx
cmp byte [ebx], 0x2e
je 0x40643f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40642f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4064ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40647c
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 0x4064ea
cmp byte [ebp - 0xd], 0
je 0x4064ea
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 0x4064ea
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 0x408c6c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408cbe
test eax, edx
je 0x408cc1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408c81
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 0x408ca7
add ecx, 4
js 0x408c97
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408ca4
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 0x408ccd
test edx, edx
jne 0x408c74
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405008
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40974a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40976b
cmp ebx, 3
je 0x40976b
cmp ebx, 0x7b
je 0x40976b
mov eax, esi
call fcn.004096ec
test al, al
jne 0x40976f
xor eax, eax
jmp 0x409771
mov al, 1
pop esi
pop ebx
ret

Function at 0x40cae8
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 0x40cb21
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c68
jmp 0x40cb2a
mov eax, ebx
mov edx, esi
call fcn.00404bcc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb34
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 0x40cb56
movzx eax, byte [esp]
jmp 0x40cb58
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d1e8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d060
mov eax, dword [0x48857c]
cmp byte [eax], 0
je 0x40d264
mov eax, dword [0x48821c]
call fcn.004033e4
call fcn.0040303c
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.0040992c
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 0x40d2ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d29a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x488198]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48b7f8]
call fcn.004060a8
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