joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4529e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x499438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0049153c
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00452340
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049146a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048dd28
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048dd28
push 1
push 0
push 0
mov ecx, esi
call fcn.0048dcd0
push 1
push 0
push 1
mov ecx, esi
call fcn.0048dcd0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004915ae
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x452b60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x499458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0049153c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00452340
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049146a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x452c24
cmp dword [esp + 0x40], 1
jne 0x452c22
cmp ecx, eax
jge 0x452c24
mov eax, ecx
cmp eax, 0xc8
jge 0x452c30
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004529e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004915ae
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x453420
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x499503
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048c146
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004917e4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00492d43
test eax, eax
je 0x45353c
mov ecx, dword [esp + 0x3c]
call fcn.00491811
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x453500
push edi
mov ecx, esi
call fcn.0048ee78
mov ecx, esi
call fcn.004536e0
cmp dword [esp + 0x38], 1
jne 0x453535
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048efb3
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x455740
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x455773
push esi
call fcn.004639b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45576c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4557f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4557e2
mov eax, dword [esi + 8]
test eax, eax
je 0x455797
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4557de
cmp eax, 2
je 0x4557e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45578a
cmp eax, 3
je 0x4557bd
cmp eax, 1
jne 0x45578a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45578a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45578a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00455820
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x455808
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00455820
add esp, 4
pop esi
ret

Function at 0x456090
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4560b1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4560b1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4560b1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x471250
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47129a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4712c9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x47130b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4741e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x474246
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x474246
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x474227
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x474e30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x474e79
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4752f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x499a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00474ea0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00474f20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00474f20
lea ecx, [esi + 0xc]
call fcn.0048aaf8
lea ecx, [esi + 0x10]
call fcn.0048aaf8
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004764b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004764b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004764b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048ab6d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048ab6d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48cf3b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48cf73
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048afc8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048afa0
jmp 0x48cf7f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48e630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48e672
call fcn.004941ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48e672
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48e669
xor eax, eax
jmp 0x48e67a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048e680
pop edi
pop esi
pop ebx
ret 4

Function at 0x49471d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49474b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x494769
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00494683
jmp 0x494769
mov eax, dword [esi + 0x14]
test eax, eax
je 0x494769
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00494683
test edi, edi
mov eax, edi
jne 0x494753
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40ca60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40ca82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ca89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ca78
mov eax, 1
add ebx, ebx
jne 0x40ca9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ca90
jne 0x40caac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ca90
xor ecx, ecx
sub eax, 3
jb 0x40cac0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40cb32
mov ebp, eax
add ebx, ebx
jne 0x40cacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40cad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cafc
inc ecx
add ebx, ebx
jne 0x40cae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cadd
jne 0x40caf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cadd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cb1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cb0d
jmp 0x40ca7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cb1c
add edi, ecx
jmp 0x40ca7e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cb7b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe99c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe9f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cb39
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe9fc]
or eax, eax
je 0x40cb75
mov dword [ebx], eax
add ebx, 4
jmp 0x40cb56
call dword [esi + 0xe9f8]
mov ebp, dword [esi + 0xea00]
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 0x40cbaf
sub esp, 0xffffff80
jmp 0x401978
Function at 0x405441
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004056ff
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405480
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f48], eax
jmp 0x40560a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40549a
test eax, eax
je 0x4055b8
test bl, 2
je 0x4055b8
mov esi, 0x4214c8
push edi
push esi
call fcn.00405b64
cmp dword [ebp + 8], 0
je 0x4054b9
push 0x409360
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054bf
push edi
call fcn.00405658
cmp byte [edi], 0
jne 0x4054cd
cmp byte [0x4214c8], 0x5c
jne 0x4054d8
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055ae
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040563c
cmp byte [eax], 0
je 0x40551e
cmp byte [ebp - 0x1c], 0
je 0x40551e
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405534
mov al, byte [esi + 1]
test al, al
je 0x40558d
cmp al, 0x2e
jne 0x405534
cmp byte [esi + 2], 0
je 0x40558d
push esi
push ebx
call fcn.00405b64
test byte [ebp - 0x14c], 0x10
je 0x405559
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40558d
push dword [ebp + 0xc]
push edi
call fcn.00405441
jmp 0x40558d
push dword [ebp - 4]
push edi
call fcn.004053f9
test eax, eax
jne 0x405585
cmp dword [ebp - 4], eax
je 0x40557d
push edi
push 0xfffffffffffffff1
call fcn.00404e71
push 0
push edi
call fcn.00405a18
jmp 0x40558d
inc dword [0x423f48]
jmp 0x40558d
push edi
push 0xfffffffffffffff2
call fcn.00404e71
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054fc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055b8
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40560a
cmp dword [ebp - 0xc], esi
jne 0x4055cc
inc dword [0x423f48]
jmp 0x40560a
push edi
call fcn.00405e68
test eax, eax
je 0x40560a
push edi
call fcn.00405611
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004053f9
test eax, eax
jne 0x405602
cmp dword [ebp - 4], esi
je 0x4055c4
push edi
push 0xfffffffffffffff1
call fcn.00404e71
push esi
push edi
call fcn.00405a18
jmp 0x40560a
push edi
push 0xffffffffffffffe5
call fcn.00404e71
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x465b30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401546
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401468
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.00402cc4
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
call esi
lea ecx, [ebp - 0x50]
push ecx
push 0xf00ff
push edi
call fcn.00403834
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x68]
push 0x404058
push eax
call edi
push eax
lea ecx, [ebp - 0x64]
push 0x403748
push ecx
call edi
push eax
call fcn.00403884
call esi
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x64]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x4c], 1
push ecx
push edx
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push 0x1c
push edx
push ebx
push eax
mov dword [ebp - 0x40], 2
call fcn.004038bc
call esi
push 0x465c33
jmp 0x465c32
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x511a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x64916c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xa8], eax
mov eax, dword [ecx + 0x38]
sub eax, dword [ecx + 0x34]
push ebx
sar eax, 2
mov dword [ebp - 0xa4], edx
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
cmp eax, ebx
jle 0x511bc3
push esi
push edi
nop
mov esi, dword [ecx + 0x38]
sub esi, dword [ecx + 0x34]
sar esi, 2
cmp esi, edx
jle 0x511a95
mov esi, dword [ecx + 0x34]
mov edi, dword [esi + edx*4]
jmp 0x511a97
xor edi, edi
mov esi, dword [edi + 1]
cmp esi, dword [ebp - 0xa8]
jne 0x511bb2
mov esi, dword [edi + 5]
cmp esi, dword [ebp - 0xa4]
jne 0x511bb2
push 0x5c7b44
call fcn.005b8bce
add esp, 4
call fcn.0042f890
mov edx, 0x693d08
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x511ad0
cmp byte [0x693d08], 0x2a
jne 0x511afa
cmp byte [0x693d09], 0x2a
mov byte [0x693d08], 0x21
jne 0x511afa
mov byte [0x693d09], 0x21
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa8]
push eax
push ecx
call fcn.004b1220
push eax
push 0x693d08
push 0x5c7b44
push 0x5c7b2c
push 0x693d88
call fcn.005a046d
add esp, 0x1c
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x693d88]
mov byte [ebp + eax - 0x84], cl
inc eax
cmp cl, bl
jne 0x511b30
lea edx, [ebp - 0x84]
push 0x5c7ba0
push edx
call fcn.005a253d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x511ba0
push esi
push 1
lea eax, [ebp - 0x94]
push 0x10
push eax
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
call fcn.005a18ea
push esi
push 1
push 0x119
push edi
call fcn.005a18ea
push esi
call fcn.005a1a23
add esp, 0x24
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xa0]
inc edx
mov dword [ebp - 0x98], edx
cmp edx, eax
jl 0x511a80
pop edi
pop esi
mov edx, dword [ecx]
mov eax, dword [ecx + 0x64]
mov edx, dword [edx + 0xc]
push eax
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0059ea5e
mov esp, ebp
pop ebp
ret 8
Function at 0x519f40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb5a3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x64916c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
or eax, reloc.MSVCRT.dll_strncpy
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x694728
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], 0x5c72e4
mov dword [ebp - 4], ebx
mov dword [ecx], 0x694728
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x5c07c7
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00519170
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51e930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x64916c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, reloc.MSVCRT.dll_strncpy
push edx
call fcn.005a00ef
lea eax, reloc.MSVCRT.dll_strncpy
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x51e961
mov cx, word [0x5c0afc]
mov dl, byte [0x5c0afe]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, reloc.MSVCRT.dll_strncpy
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51e985
mov ecx, dword [0x6956dc]
push ecx
sub eax, edx
push eax
lea edx, reloc.MSVCRT.dll_strncpy
push 1
push edx
call fcn.005a18ea
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.0059ea5e
mov esp, ebp
pop ebp
ret