joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10073930
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x10073961
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.1002d030
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10073a6c
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x100739f2
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10073a5f
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x10073a2c
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10073a24
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x10073a5f
cmp ebx, edx
je 0x10073a3c
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10073a75
cmp ebx, edx
jne 0x10073a30
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0x10]
mov eax, ecx
cmp ecx, esi
jne 0x100739a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10073a5f

Function at 0x10074da0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10074dcb
push 0
push 0
push 0
push 0x10029b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10074dcb
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x100863b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10086578
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x10086578
mov eax, dword [0x10202910]
cmp dword [eax + 0x174], 0xffffffff
je 0x10086578
cmp byte [0x101f6b84], 0
mov ecx, 1
movzx eax, byte [0x101ef5e3]
cmovne eax, ecx
mov byte [0x101ef5e3], al
mov eax, dword [0x10202c34]
add eax, 0xffffff7b
xor eax, 0x57186d7b
cmp dword [eax + ebx], 0
mov eax, dword [0x10202bf8]
setle cl
add eax, 0xffffff8a
xor eax, 0x57186d6c
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x10202bec]
add eax, 0xffffff8d
xor eax, 0x57186d69
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x10202bf0]
add eax, 0xffffff8c
xor eax, 0x57186d6a
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x10202bf4]
lea eax, [ecx - 0x75]
xor eax, 0x57186d6b
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100864bb
lea eax, [ecx - 0x75]
xor eax, 0x57186d6b
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100864b3
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100864a7
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100864a4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x10202bf4]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x10086470
lea eax, [ecx - 0x75]
xor eax, 0x57186d6b
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov edx, dword [0x10202924]
xor ebx, ebx
mov dword [ebp - 4], edx
mov eax, dword [edx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x10086562
nop word [eax + eax]
mov eax, dword [edx + 0x1c]
lea ecx, [ebx*4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ecx + eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x10086520
xor edx, edx
test ecx, ecx
je 0x10086549
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10086530
cmp edi, 0x79705c5e
je 0x10086554
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x10086562
mov edx, dword [ebp - 4]
jmp 0x10086500
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ecx + eax]
jmp 0x10086564
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x10202a0c]
mov byte [0x101ef5e3], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1008e3f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x101ff66c], 1
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
je 0x1008e5bb
mov ecx, dword [0x10202be4]
mov ebx, dword [ebp + 8]
add ecx, 0xffffff8f
xor ecx, 0x57186d67
mov eax, dword [ebx + 0x4c]
mov eax, dword [ecx + eax]
mov ecx, dword [0x1020289c]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
mov esi, eax
test esi, esi
je 0x1008e5bb
mov ecx, dword [esi]
mov edx, dword [ecx + 0x6f8]
mov ecx, esi
call edx
test eax, eax
je 0x1008e5bb
mov eax, dword [0x102028fc]
movss xmm2, dword [0x100ad3f4]
movss xmm1, dword [0x100ad3c0]
mov ecx, dword [edi]
divss xmm2, dword [eax + 0x20]
mov eax, dword [0x10202c70]
add ecx, 8
add eax, 0xffffff6c
xor eax, 0x57186d8a
movaps xmm0, xmm2
mulss xmm0, dword [eax + esi]
addss xmm0, xmm1
cvttss2si esi, xmm0
movaps xmm0, xmm2
mulss xmm2, dword [edi + 0x3438]
mulss xmm0, dword [edi + 0x18]
addss xmm2, xmm1
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x16c], eax
cvttss2si eax, xmm2
mov dword [ebp - 0x164], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10202898]
lea edx, [ebp - 0x160]
push edx
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov edx, dword [ebp - 0x16c]
mov word [edi + 0x3431], 0
mov byte [edi + 0x3433], 0
cmp esi, edx
jne 0x1008e525
cmp dword [edi + 0x10], 2
jg 0x1008e525
mov byte [edi + 0x3433], 1
mov byte [edi + 0x3431], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009b980
mov esp, ebp
pop ebp
ret 8
cmp esi, dword [ebp - 0x164]
jle 0x1008e53e
cmp edx, esi
jle 0x1008e5bb
mov byte [edi + 0x3431], 1
jmp 0x1008e54e
jne 0x1008e5bb
lea eax, [esi + 1]
mov byte [edi + 0x3431], 1
cmp eax, edx
je 0x1008e5bb
mov al, 1
mov byte [edi + 0x3432], al
mov edx, dword [ebx + 0x40]
mov esi, dword [ebx + 0x44]
movss xmm0, dword [0x100ad4c8]
add esi, edx
cmp edx, esi
je 0x1008e5b6
mov ecx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x38]
dec ecx
mov dword [ebp - 0x164], ecx
mov eax, edx
shr eax, 1
and eax, ecx
mov ecx, edx
and ecx, 1
mov eax, dword [ebx + eax*4]
mov eax, dword [eax + ecx*8]
cmp eax, edi
je 0x1008e5a4
cmp byte [eax + 0x14], 0
jne 0x1008e5a4
cmp byte [eax + 0x3432], 0
jne 0x1008e5a4
cmp byte [edi + 0x3433], 0
je 0x1008e5b1
inc edx
cmp edx, esi
je 0x1008e5b6
mov ecx, dword [ebp - 0x164]
jmp 0x1008e577
movss xmm0, dword [eax + 0x78]
movss dword [edi + 0x78], xmm0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009b980
mov esp, ebp
pop ebp
ret 8
Function at 0x405dcd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a2c], 0
push esi
jne 0x405e04
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 0x405dde
mov dword [ecx*4 + 0x422a28], eax
inc ecx
cmp ecx, 0x100
jl 0x405dd9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e35
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 + 0x422a28]
xor eax, esi
inc ecx
dec edx
jne 0x405e17
pop edi
not eax
pop esi
ret 0xc

Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4032ec], eax
mov eax, dword [ebp + 4]
mov dword [0x40313a], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40313a]
mov dword [ebp - 0x48], eax
mov eax, 0x4021c7
mov dword [ebp - 0x54], eax
mov ecx, 0x4031e6
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40313a]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403338], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403338]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
ret
Function at 0x402f24
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x421008], 0x8088405
inc edx
mov dword [ebx + 0x421008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403480
Capabilities:
Query or enumerate registry value

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

Function at 0x403eb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x423044], 0
je 0x403f11
cmp word [0x423218], 0xd7b2
jne 0x403ed9
cmp dword [0x423220], 0
jbe 0x403ed9
mov eax, 0x423214
call dword [0x423230]
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 0x403f38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x421024], 0
jne 0x403f2d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406968
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 0x4069a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404120
jmp 0x4069aa
mov eax, ebx
mov edx, esi
call fcn.00404084
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x407068
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406ee0
mov eax, dword [0x422348]
cmp byte [eax], 0
je 0x4070e4
mov eax, dword [0x4222a4]
call fcn.00402f88
call fcn.00402dac
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.00405e28
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 0x40712c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40711a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x422284]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4257f0]
call fcn.00404698
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 0x407e10
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba04
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea esi, [edi + 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00406a80
mov dword [esi], eax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040c850
mov dword [esi], eax
xor eax, eax
mov byte [edi + 0x30], 0
mov dword [edi + 0x48], 7
mov dword [edi + 0x44], 0
mov word [edi + 0x34], ax
mov byte [edi + 0x5c], al
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], 7
mov word [edi + 0x60], ax
mov dword [edi + 0x78], eax
mov dword [edi + 0x80], eax
mov eax, edi
mov word [edi + 0x84], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b4c6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00411618
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040ff34
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4097f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x409812
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409819
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409808
mov eax, 1
add ebx, ebx
jne 0x40982b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409820
jne 0x40983c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409820
xor ecx, ecx
sub eax, 3
jb 0x409850
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4098c2
mov ebp, eax
add ebx, ebx
jne 0x40985b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409868
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40988c
inc ecx
add ebx, ebx
jne 0x409878
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40986d
jne 0x409889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40986d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4098ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40989d
jmp 0x40980e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4098ac
add edi, ecx
jmp 0x40980e
pop esi
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40990b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9228]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4098c9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9230]
or eax, eax
je 0x409905
mov dword [ebx], eax
add ebx, 4
jmp 0x4098e6
call dword [esi + 0x922c]
mov ebp, dword [esi + 0x9234]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x40993f
sub esp, 0xffffff80
jmp 0x401053

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401540
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push edi
push esi
mov esi, eax
push ebx
xor ebx, ebx
sub esp, 0x220
lea edi, [esp + 0x20]
test ebx, ebx
jne 0x401599
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
mov ebx, eax
test eax, eax
jne 0x401599
lea eax, [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4015b0
xor eax, eax
cmp ebx, 0x103
cmove ebx, eax
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x1c]
call fcn.00401540
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test ebx, ebx
jne 0x401599
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
mov ebx, eax
jmp 0x401551
Function at 0x403980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x101c
push edi
push esi
push ebx
call fcn.00403d40
sub esp, eax
mov eax, dword [0x40500c]
mov ebx, dword [0x405008]
lea edi, [esp + 0x10]
jmp 0x403a38
test esi, esi
je 0x403ac4
mov eax, dword [0x40500c]
mov dword [esp], esi
mov ecx, dword [0x405008]
sub ecx, eax
add eax, dword [0x405004]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x405008]
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
add eax, esi
sub eax, dword [0x40500c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memcpy]
mov ebp, dword [0x405004]
cmp ebp, esi
je 0x403a26
call dword [sym.imp.kernel32.dll_GetProcessHeap]
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [0x405004], esi
sub esp, 0xc
mov dword [section..bss], ebx
mov dword [0x405008], ebx
xor eax, eax
mov dword [0x40500c], 0
cmp ebx, eax
jle 0x403a5d
sub ebx, eax
add eax, dword [0x405004]
mov dword [esp + 4], 0xa
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memchr]
test eax, eax
jne 0x403ad8
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll__read]
test eax, eax
mov ebp, eax
jle 0x403ac4
mov ebx, dword [0x405008]
mov esi, dword [0x405004]
add ebx, eax
sub ebx, dword [0x40500c]
cmp dword [section..bss], ebx
jge 0x4039a8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
sub esp, 0xc
test esi, esi
jne 0x4039b0
add esp, 0x101c
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [0x405004]
mov byte [eax], 0
mov edx, dword [0x40500c]
sub eax, ecx
add eax, 1
add edx, ecx
mov dword [0x40500c], eax
add esp, 0x101c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403c80
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x403cf0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00403d70
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]