joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5370b0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
mov edi, dword [edi]
mov al, byte [edi]
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x53711e
xor edx, edx
nop dword [eax]
lea ecx, [edx - 0x30]
movzx eax, al
add ecx, eax
inc edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, 0x66666667
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
lea edx, [ecx + ecx*4]
add edx, edx
cmp edx, ebx
jg 0x537106
test esi, esi
je 0x537106
mov al, byte [edi]
cmp al, 0x30
jb 0x537106
cmp al, 0x39
jbe 0x5370d0
cmp ecx, dword [ebp + 0x10]
jl 0x53711e
cmp ecx, ebx
jg 0x53711e
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov eax, 1
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x537dc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, eax
mov ecx, dword [ebp + 0xc]
neg edx
and edx, 3
dec edx
cmp edx, 3
ja case.default.0x537dd6
jmp dword [edx*4 + 0x537e78]
mov dl, byte [eax]
cmp dl, cl
je 0x537e75
test dl, dl
je 0x537e75
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x537e75
test dl, dl
je 0x537e75
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x537e75
test dl, dl
je 0x537e75
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x537e75
test dl, dl
je 0x537e75
inc eax
mov edx, dword [eax]
push esi
movzx ecx, cl
push edi
imul edi, ecx, 0x1010101
mov ecx, edx
xor ecx, edi
lea esi, [ecx - 0x1010101]
not ecx
and esi, ecx
lea ecx, [edx - 0x1010101]
not edx
and ecx, edx
or esi, ecx
and esi, 0x80808080
jne 0x537e68
mov edx, dword [eax + 4]
add eax, 4
mov ecx, edx
xor ecx, edi
lea esi, [ecx - 0x1010101]
not ecx
and esi, ecx
lea ecx, [edx - 0x1010101]
not edx
and ecx, edx
or esi, ecx
and esi, 0x80808080
je 0x537e40
bsf ecx, esi
pop edi
mov dword [ebp + 8], ecx
sar ecx, 3
add eax, ecx
pop esi
pop ebp
ret

Function at 0x53b3f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push 1
call fcn.0053d960
push dword [ebp + 8]
push 0
mov esi, dword [eax]
call fcn.0053d960
add esp, 0x10
push 1
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
test eax, eax
je 0x53b421
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054147c
add esp, 4
or eax, 0xffffffff
pop ebp
ret
Function at 0x53b9d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push dword [ebp + 8]
push 0
call fcn.0053d960
push dword [eax]
call fcn.00554dff
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x53bad3
mov ecx, dword [0x60098c]
not ecx
and ecx, dword [ebp + 0xc]
test cl, 2
je 0x53bad3
mov dword [ebp - 0xc], eax
xorps xmm0, xmm0
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 1
lea eax, [ebp - 0x14]
mov word [ebp - 0x10], 0x100
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x53baa2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10000000
push eax
push 1
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x53baa2
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0053dad0
add esp, 8
push esi
push dword [ebp - 8]
push esi
push esi
push 4
push 1
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 0xc]
push eax
call fcn.0053daa0
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x53bac3
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x53bad1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x53bc30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00553c95
Function at 0x53bc40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call fcn.0053d960
add esp, 8
mov ebx, dword [eax]
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.0053b370
neg eax
push ebx
sbb esi, esi
inc esi
call dword [ebp + 8]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x53bcfd
test esi, esi
jne 0x53bcfd
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x53bcfa
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
add esi, 0x28f0
mov eax, dword [esi]
test eax, eax
jne 0x53bcd1
call fcn.005414b2
cmp dword [eax], 5
jne 0x53bcfa
call edi
sub eax, dword [ebp - 4]
cmp eax, 2
ja 0x53bd04
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x53bcc6
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
jne 0x53c1be
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c1b3
call fcn.005414b2
mov dword [eax], 2
xor eax, eax
pop ebx
pop ebp
ret
push ebx
push 0
call fcn.0053d960
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call fcn.0053b370
add esp, 4
cmp eax, 0xffffffff
je 0x53c1b9
test al, 0x10
jne 0x53c205
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c1fa
call fcn.005414b2
mov dword [eax], 0x14
xor eax, eax
pop ebx
pop ebp
ret
push esi
push edi
push 1
push 0x1c
call fcn.005414c5
push 1
push 0x128
mov edi, eax
call fcn.005414c5
push ebx
mov esi, eax
call fcn.0053c680
add esp, 0x14
mov dword [esi], eax
mov dword [edi], esi
mov eax, edi
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0x128
mov dword [edi + 0x10], 0x128
mov dword [edi + 4], 8
mov dword [edi + 0x14], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x53c260
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
cmp eax, 0xffffffff
jne 0x53c32d
mov ecx, dword [ebx]
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x53c287
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53c2a0
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x2f
je 0x53c2d3
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c2c0
mov ax, word [0x56b90c]
mov word [edi], ax
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c2e0
mov ax, word [0x570da8]
mov word [edi], ax
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.0053d960
add esp, 8
lea ecx, [ebp - 0x358]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call fcn.0053b370
add esp, 4
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x53c382
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x53c382
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c35f
call fcn.005414b2
cmp dword [eax], 0x12
jne 0x53c379
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c373
call fcn.005414b2
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x358], 0x10
mov dword [ebx + 8], 0
sete al
mov dword [ebx + 0xc], 0
lea eax, [eax*4 + 4]
mov byte [ebx + 0x120], al
mov eax, 0x120
mov word [ebx + 0x10], ax
lea eax, [ebp - 0x32c]
push eax
push 0
call fcn.0053d670
push 0x104
lea esi, [ebx + 0x14]
push dword [eax]
push esi
call fcn.0053d8c0
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x53c3d4
mov eax, dword fs:[0x2c]
sub esi, ecx
mov word [ebx + 0x12], si
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c3f8
call fcn.005414b2
pop edi
mov dword [eax], 0
lea eax, [ebx + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53c930
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0
push 0x2000080
push 3
push 0
push 3
push 0x100
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.0053dc30
push eax
call fcn.0053b3a0
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
je 0x53c9be
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
test esi, esi
jne 0x53c984
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x53c99a
push esi
call fcn.0053de40
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
call fcn.0053de40
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push eax
call fcn.0053b370
add esp, 4
xor ecx, ecx
test eax, eax
cmovne edi, ecx
pop esi
lea eax, [ebp - 4]
push eax
call fcn.0053dc00
add esp, 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x53d270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call fcn.0053b3a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x53d299
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x53d2f1
cmp eax, 9
je 0x53d2d7
cmp eax, 0x16
je 0x53d2d7
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53d2c1
call fcn.005414b2
push edi
mov dword [eax], 0x16
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
call fcn.0053b370
or ecx, 0xffffffff
add esp, 4
test eax, eax
cmove esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x53d520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, esi
mov edx, dword [eax]
add edx, 0x2cb4
push edi
mov dword [ebp - 4], edx
lea ecx, [ebx + 1]
xor edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x53d544
push dword [edx]
sub ebx, ecx
call fcn.005414d0
lea eax, [ebx*2 + 2]
push eax
call fcn.005414d5
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [eax], ebx
mov cl, byte [esi]
test cl, cl
je 0x53d58f
lea edx, [esi + 1]
cmp cl, 0xc0
jae 0x53d5ae
movzx eax, cl
mov word [ebx + edi*2], ax
inc edi
mov esi, edx
mov cl, byte [esi]
test cl, cl
jne 0x53d574
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [ebx + edi*2], cx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 0xe0
jae 0x53d5fc
mov dl, byte [edx]
lea eax, [edi + 1]
mov dword [ebp - 8], eax
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d5e9
and cl, 0x1f
and dl, 0x3f
movzx ecx, cl
shl cx, 6
movzx eax, dl
or cx, ax
movzx eax, cx
mov ecx, 2
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d586
movzx eax, cl
mov ecx, 1
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d586
cmp cl, 0xf0
jae 0x53d584
mov dl, byte [edx]
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d64d
mov bl, byte [esi + 2]
mov al, bl
and al, 0xc0
cmp al, 0x80
jne 0x53d64a
and dl, 0x3f
movzx eax, cl
shl ax, 6
and bl, 0x3f
movzx edx, dl
or dx, ax
movzx eax, bl
mov ebx, dword [ebp + 8]
shl dx, 6
or dx, ax
mov eax, 3
movzx ecx, dx
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d586
mov ebx, dword [ebp + 8]
movzx ecx, cl
mov eax, 1
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d586

Function at 0x5412b9
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e0874
push 0x5e086c
push 0x5e0874
push 0
call fcn.00541232
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5412eb
push dword [ebp + 8]
mov ecx, esi
call fcn.0053efb6
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x54132d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e08a4
push 0x5e089c
push 0x5e08a4
push 3
call fcn.00541232
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x541361
mov ecx, esi
call fcn.0053efb6
call esi
jmp 0x541367
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x557b58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005579d7

Function at 0x559f1a
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00559e1f

Function at 0x55aa3f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055a3ad
Function at 0x55aa4a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055a5e8

Function at 0x561850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x6015c8], 0
je 0x561906
cmp dword [0x6015e0], 0
je 0x561906
call fcn.00564fc0
test eax, eax
je 0x5618ce
push dword [0x6015e0]
lea eax, [ebp - 4]
push dword [0x6015d8]
push eax
push 0
call fcn.00564770
add esp, 0x10
test eax, eax
je 0x5618ce
push dword [0x6015c8]
push 1
push dword [ebp - 4]
push eax
call fcn.00548884
mov eax, dword [0x6015e0]
add esp, 0x10
cdq
add dword [0x6015d0], eax
mov dword [0x6015e0], 0
adc dword [0x6015d4], edx
call fcn.00561a90
mov esp, ebp
pop ebp
ret
push dword [0x6015c8]
push 1
push dword [0x6015e0]
push dword [0x6015d8]
call fcn.00548884
mov eax, dword [0x6015e0]
add esp, 0x10
cdq
add dword [0x6015d0], eax
mov dword [0x6015e0], 0
adc dword [0x6015d4], edx
mov esp, ebp
pop ebp
ret

Function at 0x561ca0
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x601664], 0
jne fcn.00563690
jmp fcn.00561850

Function at 0x561db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x6015f8], 0
jne 0x561ddd
call fcn.00564fc0
test eax, eax
jne 0x561ddd
push dword [0x6015c8]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00548884
add esp, 0x10
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
nop word [eax + eax]
mov eax, dword [0x6015e4]
mov esi, edi
sub eax, dword [0x6015e0]
cmp edi, eax
cmovge esi, eax
mov eax, dword [0x6015d8]
add eax, dword [0x6015e0]
push esi
push ebx
push eax
call fcn.0053f3e0
add dword [0x6015e0], esi
add esp, 0xc
add ebx, esi
sub edi, esi
je 0x561e3b
cmp dword [0x601664], 0
je 0x561e34
call fcn.00563690
jmp 0x561df0
call fcn.00561850
jmp 0x561df0
cmp dword [0x6015f8], 0
pop edi
pop esi
pop ebx
jne 0x561ddb
cmp dword [0x601664], 0
je 0x561e56
pop ebp
jmp fcn.00563690
pop ebp
jmp fcn.00561850
Function at 0x563370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x563a00
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00420780
push 0x80
push str.last__dKB_of_log_file:_n
push dword [ebp + 8]
mov dword [ebp - 8], eax
xor edi, edi
mov dword [ebp - 4], 0x30400
call fcn.0041a7d0
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004219f0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [ebp - 4]
push dword [eax]
push dword [ebp + 0xc]
call fcn.00423b00
add esp, 0x30
test eax, eax
jne 0x563446
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push esi
mov esi, dword [eax]
cmp ecx, 0x20000
jle 0x56342d
push ecx
push esi
call fcn.00564e40
add esp, 8
test eax, eax
je 0x563422
nop
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x10400
jge 0x563417
mov edi, eax
inc eax
sub edx, eax
add edx, dword [ebp - 4]
push edx
push eax
call fcn.00564e40
add esp, 8
test eax, eax
jne 0x5633f0
test edi, edi
je 0x563422
mov ecx, dword [ebp - 4]
mov esi, edi
jmp 0x56342d
mov ecx, dword [ebp - 4]
add esi, 0xfffe0000
add esi, ecx
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov eax, dword [eax]
sub eax, esi
add eax, ecx
push eax
push 1
push esi
call fcn.00548884
add esp, 0x10
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x5649e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
cmp ecx, 0xffffffff
jne 0x5649fe
mov ecx, edx
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5649f4
sub ecx, esi
pop esi
push ecx
push edx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.00564770
add esp, 0x10
test eax, eax
je 0x564a24
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push 1
push eax
call fcn.00548884
add esp, 0x10
pop ebp
ret

Function at 0x564dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.wbEe
push dword [ebp + 8]
call fcn.004235a0
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
je 0x564e3a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x564e0b
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x564e01
sub ecx, edi
pop edi
push ecx
push edx
lea eax, [ebp - 4]
push eax
push 0
call fcn.00564770
add esp, 0x10
test eax, eax
je 0x564e2e
push esi
push dword [ebp - 4]
push 1
push eax
call fcn.00548884
add esp, 0x10
lea eax, [ebp - 8]
push eax
call fcn.00423580
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x58060dfb
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x31cf53d4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0xb7f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xb7f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xba8074
push ecx
mov edi, eax
call fcn.00b93198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb7f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00b9302e
push esi
call fcn.00b92fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xb82850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xb828ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xbad720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb828ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00b931e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xb828ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xbad720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb8292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00b94082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xb82957
mov word [eax], si
add eax, 2
push eax
call fcn.00b94030
add esp, 4
jmp 0xb82959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xb828ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xb828b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xb82ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret