joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x405adb
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x405b8f
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41ce58]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41ce58]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41ce58]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41ce58]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41ce58]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41ce58]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41ce58]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41ce58]
add ecx, 8
sub edi, 8
dec esi
jne 0x405af2
pop ebx
test edi, edi
je 0x405ba8
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x41ce58]
inc ecx
dec edi
jne 0x405b93
pop esi
not eax
pop edi
ret

Function at 0x405bad
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x41ce58]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41ce58]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x40623f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40626f
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40626a
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x406297
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x406280
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040cc00
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x406f1e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx], 0
push esi
push edi
jne 0x406fc3
cmp dword [ebx + 4], 0xffffffff
jne 0x406fc3
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406f4d
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x406f85
cmp eax, 0x2f
je 0x406f85
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x406f71
mov edi, esi
mov esi, 0x41b29c
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.00409135
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ecx
call fcn.004064b8
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x406fc8
mov eax, 0x1000000
pop edi
pop esi
pop ebp
ret 8
Function at 0x407821
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x41f044]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x421c88
push 0x67
push esi
call edi
push 0x64
mov ebx, 0x421bc0
push ebx
push 0x6d
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
and dword [esp + 0x1c], 0
and dword [esp + 0x20], 0
push 0x6b
push esi
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 0x407cf4
mov dword [esp + 0x2c], esi
call edi
push 0x7f00
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 6
mov dword [esp + 0x3c], 0x6d
mov dword [esp + 0x40], ebx
call edi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [ebp + 0x10]
mov ecx, 0x422620
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4078db
call fcn.004015eb
push 0x7d0
mov dword [0x41ff30], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00408044
test eax, eax
je 0x407915
call fcn.00403ff7
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00407a18
pop ecx
test eax, eax
jne 0x407937
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409013
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
push eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x4a]
push eax
call fcn.00410730
mov ecx, dword [0x422268]
add esp, 0xc
test ecx, ecx
je 0x40797b
cmp word [0x42226c], 0
jbe 0x40797b
mov esi, 0x41ff1c
call fcn.00401587
mov ax, word [0x42226c]
mov word [0x41ff2c], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x421d58
div ecx
push edx
push 0x41d4b4
push ebx
call fcn.00404177
add esp, 0xc
call fcn.00408999
lea edi, [esp + 0x40]
call fcn.00403717
push 0x41b29c
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00409aa9
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00409aa9
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407a03
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x41b430
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00408d1f
jmp 0x40790d
Function at 0x407f94
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x41b310
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00409273
add esp, 0xc
test eax, eax
je 0x407fbe
xor eax, eax
jmp 0x408041
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00409f9b
push dword [ebp - 4]
call fcn.0040a1ab
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00409f9b
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.0040956c
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0040a45a
push dword [ebp - 4]
call fcn.004094f8
push 0x32
lea ebx, [edi + esi]
call fcn.00401839
push 0x41b26c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00409273
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x407fb7
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00409411
push dword [ebp - 4]
call fcn.004094f8
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x408a5d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
push eax
call fcn.00403771
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x408bdf
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00410730
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.00410730
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.00403717
push 0x41b29c
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00409aa9
mov byte [ebp - 0x18], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x421648
jmp 0x408b09
mov esi, 0x104
cmp word [ebx], 0
je 0x408b60
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00409022
add esp, 0xc
push ebx
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00409aa9
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00402db7
pop ecx
test eax, eax
je 0x408b60
push 5
pop ecx
lea edi, [ebx + 0x104]
lea esi, [ebp - 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x408b60
mov word [ebx], ax
add ebx, 0x118
cmp ebx, 0x421bc0
jl 0x408b04
mov esi, 0x421648
cmp word [esi], 0
je 0x408b96
push dword [ebp + 0xc]
mov eax, dword [esi + 0x100]
push dword [ebp - 0x430]
mov ecx, esi
mov dword [0x421d54], eax
call fcn.0040399f
pop ecx
pop ecx
add esi, 0x118
cmp esi, 0x421bc0
jl 0x408b73
push 0x421d58
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00409aa9
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408bd9
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409013
leave
ret
Function at 0x408f74
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408f9d
push dword [ebp + 8]
call fcn.00401685
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x408f9d
inc ebx
jmp 0x40900c
mov edi, 0x200000
push edi
call fcn.0040956c
pop ecx
mov ecx, dword [ebp + 0x10]
mov esi, eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
lea edi, [ebp - 4]
call fcn.00404193
pop ecx
pop ecx
test eax, eax
je 0x409005
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004090b3
pop ecx
push 0x32
mov eax, 0xc8
call fcn.00401000
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.00401839
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00403f39
add esp, 0xc
lea ebx, [eax - 1]
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.00409600
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x409013
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f044]
jne 0x40901d
repz ret
jmp fcn.0040ad44
Function at 0x412d0e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b06f
and dword [ebp - 0x14], 0
cmp dword [0x4215d8], 0
mov dword [ebp - 0x18], eax
jne 0x412dc1
push 0x41a314
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412e69
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41a308
push ebx
call edi
test eax, eax
je 0x412e69
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x41a2f8
push ebx
mov dword [0x4215d8], eax
call edi
push eax
call esi
push 0x41a2e4
push ebx
mov dword [0x4215dc], eax
call edi
push eax
call esi
push 0x41a2c8
push ebx
mov dword [0x4215e0], eax
call edi
push eax
call esi
mov dword [0x4215e8], eax
test eax, eax
je 0x412dc1
push 0x41a2b0
push ebx
call edi
push eax
call esi
mov dword [0x4215e4], eax
mov eax, dword [0x4215e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412e1a
cmp dword [0x4215e8], ecx
je 0x412e1a
push eax
call esi
push dword [0x4215e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412e1a
test ebx, ebx
je 0x412e1a
call edi
test eax, eax
je 0x412e11
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412e11
test byte [ebp - 8], 1
jne 0x412e1a
or dword [ebp + 0x10], 0x200000
jmp 0x412e4d
mov eax, dword [0x4215dc]
cmp eax, dword [ebp - 0x18]
je 0x412e4d
push eax
call esi
test eax, eax
je 0x412e4d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412e4d
mov eax, dword [0x4215e0]
cmp eax, dword [ebp - 0x18]
je 0x412e4d
push eax
call esi
test eax, eax
je 0x412e4d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4215d8]
call esi
test eax, eax
je 0x412e69
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412e6b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409013
leave
ret
Function at 0x402350
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
push ebp
push esi
push edi
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
xor ebp, ebp
call fcn.004054d2
mov esi, eax
test esi, esi
je 0x4024a2
push ebx
push esi
call fcn.004052e8
add esp, 4
mov ebx, eax
push ebx
push esi
push ebp
push edi
call fcn.004054d8
test eax, eax
je 0x402498
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.VarFileInfoTranslation
push ebx
call fcn.004054cc
test eax, eax
je 0x402498
mov eax, dword [esp + 0x18]
mov cx, word [eax]
mov dx, word [eax + 2]
mov edi, dword [0x40607c]
mov word [esp + 0x10], cx
mov word [esp + 0x12], dx
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
shr ecx, 2
xor esi, esi
test ecx, ecx
jbe 0x4023f1
lea ebx, [ebx]
cmp word [edx], ax
je 0x4024ae
inc esi
add edx, 4
cmp esi, ecx
jb 0x4023e0
push 1
lea edx, [esp + 0x14]
push edx
call edi
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
call fcn.004024d0
add esp, 0xc
test eax, eax
jne 0x402445
mov ecx, dword [esp + 0x14]
push 1
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push 0
call fcn.004024d0
add esp, 0xc
test eax, eax
jne 0x402445
mov eax, dword [esp + 0x18]
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push 9
call fcn.004024d0
add esp, 0xc
movzx edx, word [esp + 0x12]
movzx eax, word [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call dword [0x406114]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
call fcn.004054cc
test eax, eax
je 0x402498
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x12c]
push edx
push eax
push ebp
call dword [0x406028]
push ebx
call fcn.004052e2
add esp, 4
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x118
ret
mov ax, word [edx]
mov cx, word [edx + 2]
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
jmp 0x402445

Function at 0x402900
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [0x40f1a8]
push esi
push edi
mov edi, dword [0x406150]
push 0
push 0
push 0xe
push eax
call edi
mov esi, eax
test esi, esi
jle 0x402994
push ebx
push ebp
inc esi
push esi
call fcn.004052e8
mov ecx, dword [0x40f1a8]
add esp, 4
mov ebx, eax
push ebx
push esi
push 0xd
push ecx
call edi
push esi
push 0x42
call dword [0x406044]
mov ebp, eax
push ebp
call dword [0x40602c]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov edi, eax
mov eax, dword [0x40f1a8]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [0x406140]
test eax, eax
je 0x402982
call dword [0x406124]
push ebp
push 1
call dword [0x40614c]
call dword [0x406108]
push ebp
call dword [0x406054]
push ebx
call fcn.004052e2
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x4029a0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x40f1a8]
push ebx
mov ebx, dword [0x406150]
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
push 0xe
push eax
call ebx
mov esi, eax
test esi, esi
jle 0x402a24
push edi
inc esi
push esi
call fcn.004052e8
mov ecx, dword [0x40f1a8]
add esp, 4
mov edi, eax
push edi
push esi
push 0xd
push ecx
call ebx
mov edx, dword [esp + 0x18]
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
push edx
call dword [0x406020]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a1a
push ebp
lea eax, [esp + 0x14]
push eax
dec esi
push esi
push edi
push ebx
call dword [0x40603c]
test eax, eax
je 0x402a13
mov ebp, 1
push ebx
call dword [0x406018]
push edi
call fcn.004052e2
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x497430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x61000]
push edi
jmp 0x49744a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x497451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x497440
mov eax, 1
add ebx, ebx
jne 0x497463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x497474
jne 0x497493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x497493
dec eax
add ebx, ebx
jne 0x497480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x497458
add ebx, ebx
jne 0x49748f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4974e5
xor ecx, ecx
sub eax, 3
jb 0x4974ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49751a
sar eax, 1
mov ebp, eax
jmp 0x4974b6
add ebx, ebx
jne 0x4974b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x497484
inc ecx
add ebx, ebx
jne 0x4974c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x497484
add ebx, ebx
jne 0x4974d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4974c6
jne 0x4974e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4974c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x497504
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4974f6
jmp 0x497446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x497504
add edi, ecx
jmp 0x497446
pop esi
mov edi, esi
mov ecx, 0x2f9c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x497522
cmp byte [edi], 0x1a
jne 0x497522
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 0x497527
lea edi, [esi + 0x94000]
mov eax, dword [edi]
or eax, eax
je 0x49759f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9dfa0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e0b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x497554
mov ecx, edi
jns 0x497583
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9e0bc]
or eax, eax
je 0x497599
mov dword [ebx], eax
add ebx, 4
jmp 0x497571
call dword [esi + 0x9e0cc]
mov ebp, dword [esi + 0x9e0c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4975d3
sub esp, 0xffffff80
jmp 0x450d6d
Function at 0x401cc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
push edi
push ecx
lea edi, [ebp - 0x124]
mov ecx, 0x49
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x47b7c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00410860
add esp, 0xc
mov dword [ebp - 0x120], 0x114
mov esi, esp
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp esi, esp
call fcn.004106a0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x11c]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x118]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 6
jae 0x401d63
mov ecx, dword [ebp - 8]
add ecx, 0xc
mov esi, esp
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp esi, esp
call fcn.004106a0
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x401d94]
call fcn.004106d0
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410690
add esp, 0x124
cmp ebp, esp
call fcn.004106a0
mov esp, ebp
pop ebp
ret
Function at 0x410690
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b7c4]
jne 0x41069a
repz ret
jmp fcn.00415c10
Function at 0x43d4f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a81fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049acef
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43d572
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049876d
mov eax, dword [eax]
push 0x4db1d4
push eax
call fcn.0048b424
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049af7a
test bl, bl
je 0x43d572
push 0x4db1d4
lea ecx, [esp + 0xc]
call fcn.0049b356
push 0x4ded3c
lea ecx, [esp + 0xc]
call fcn.0049b356
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43d5ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049af7a
jmp 0x43d679
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x43d632
lea edx, [esp + 0x7c]
push 0x4ded38
push edx
call fcn.0048b424
add esp, 8
test eax, eax
je 0x43d632
lea eax, [esp + 0x7c]
push 0x4ded34
push eax
call fcn.0048b424
add esp, 8
test eax, eax
je 0x43d632
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43d5c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0049af7a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x43de70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x43ded2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc