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

Disassembly:
push 0xffffffffffffffff
push 0x472148
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.0046acc8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00443eb0
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.0046abf6
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.004674ba
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.004674ba
push 1
push 0
push 0
mov ecx, esi
call fcn.00467462
push 1
push 0
push 1
mov ecx, esi
call fcn.00467462
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046ad3a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x444690
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472168
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.0046acc8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00443eb0
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.0046abf6
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 0x444754
cmp dword [esp + 0x40], 1
jne 0x444752
cmp ecx, eax
jge 0x444754
mov eax, ecx
cmp eax, 0xc8
jge 0x444760
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00444510
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.0046ad3a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x444ee0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4721d3
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.004658da
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.0046af70
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046c48c
test eax, eax
je 0x444ffc
mov ecx, dword [esp + 0x3c]
call fcn.0046af9d
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 0x444fc0
push edi
mov ecx, esi
call fcn.00468605
mov ecx, esi
call fcn.00445160
cmp dword [esp + 0x38], 1
jne 0x444ff5
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.00468740
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 0x447a20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447a53
push esi
call fcn.0044ab10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x447a4c
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 0x447ad9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447ac2
mov eax, dword [esi + 8]
test eax, eax
je 0x447a77
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 0x447abe
cmp eax, 2
je 0x447ac2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x447a6a
cmp eax, 3
je 0x447a9d
cmp eax, 1
jne 0x447a6a
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 0x447a6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x447a6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00447b00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447ae8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00447b00
add esp, 4
pop esi
ret

Function at 0x4666d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466708
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.0046475a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464732
jmp 0x466714
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467dc2
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 0x467e04
call fcn.0046d877
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467e04
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467dfb
xor eax, eax
jmp 0x467e0c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467e12
pop edi
pop esi
pop ebx
ret 4

Function at 0x46dda7
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 0x46ddd5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ddf3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046dd0d
jmp 0x46ddf3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46ddf3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046dd0d
test edi, edi
mov eax, edi
jne 0x46dddd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x49e867
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e9c
mov eax, dword [0x51b768]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004063d4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49e8a9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49ea05
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406541
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x51f5a8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004034d1
mov ecx, dword [esi*4 + 0x51f5a8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49e9fe
cmp eax, dword [edi + ecx + 0x24]
jne 0x49e9fe
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e9fe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004034d1
add esp, 0x14
test edx, edx
jl 0x49e9fe
jg 0x49e974
test eax, eax
jb 0x49e9fe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49e9fe
jl 0x49e98e
cmp dword [ebp - 0x1008], eax
ja 0x49e9fe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49e9ac
test ebx, ebx
je 0x49e9e5
cmp ecx, edi
jae 0x49e9e5
mov al, byte [ecx]
cmp al, 0xd
jne 0x49e9c6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49e9d2
cmp byte [ecx + 1], 0xa
jne 0x49e9d2
inc ecx
jmp 0x49e9d2
movzx eax, al
movsx eax, byte [eax + 0x51ba88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49e9ac
cmp edx, ebx
jne 0x49e9ac
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49ea03
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403297
leave
ret
Function at 0x49f144
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x51f5a8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49f184
cmp byte [ebx], 0xa
jne 0x49f184
or byte [eax + edi + 0x28], 4
jmp 0x49f189
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49f287
mov al, byte [edx]
cmp al, 0x1a
je 0x49f269
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49f1b8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49f1dd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49f1e7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x49f19a
jmp 0x49f287
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f264
cmp dword [ebp - 0xc], 0
je 0x49f264
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x51f5a8]
test byte [eax + edi + 0x28], 0x48
je 0x49f23e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49f229
mov byte [esi], dl
jmp 0x49f23a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51f5a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49f287
cmp byte [ebp - 1], 0xa
jne 0x49f24d
cmp esi, ebx
jne 0x49f24d
mov byte [esi], 0xa
jmp 0x49f286
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a05
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49f287
mov byte [esi], 0xd
jmp 0x49f286
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x51f5a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49f283
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49f287
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49f2e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x51f5a8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49f326
cmp word [esi], dx
jne 0x49f326
or byte [edi + eax + 0x28], 4
jmp 0x49f32b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x49f47e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x49f45e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49f36d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49f3a3
cmp eax, edx
jae 0x49f3af
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49f345
jmp 0x49f47e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f45a
cmp dword [ebp - 0x14], 0
je 0x49f45a
mov eax, dword [ebx*4 + 0x51f5a8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49f432
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49f3fb
mov word [esi], cx
jmp 0x49f42e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x51f5a8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x51f5a8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x51f5a8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49f47e
pop ebx
cmp word [ebp - 4], bx
jne 0x49f443
cmp esi, dword [ebp + 0xc]
jne 0x49f443
mov word [esi], bx
jmp 0x49f47b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a05
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49f47e
push 0xd
jmp 0x49f477
mov ecx, dword [ebx*4 + 0x51f5a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49f475
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49f47e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a4321
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x51b768]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a436c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a47e3
test al, al
jne 0x4a4366
sub edx, 2
cmp edx, edi
jne 0x4a434c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a438e
lea eax, [edi + 2]
cmp edx, eax
je 0x4a438e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a3f1a
add esp, 0x10
jmp 0x4a4488
push esi
lea ecx, [ebp - 0x255]
call fcn.004a47e3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a43d1
push dword [ebp - 0x25c]
jmp 0x4a437e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a440e
cmp word [ebp - 0x226], 0
je 0x4a442f
cmp word [ebp - 0x226], ax
jne 0x4a440e
cmp word [ebp - 0x224], 0
je 0x4a442f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a3f1a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a447b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a43e8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a4463
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a4488
push 0x4a3902
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004059cf
add esp, 0x10
jmp 0x4a4458
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403297
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Read file on windows
Terminate process
Write file on windows

Disassembly:
call dword [sym.imp.kernel32.dll_GetCommandLineA]
cld
mov esi, eax
mov edi, section.BSS
inc esi
cmp byte [esi], 0x20
ja 0x40100e
cmp byte [esi], 0
je 0x4011d3
inc esi
cmp byte [esi], 0x20
jbe 0x401014
movsb byte es:[edi], byte [esi]
cmp byte [esi], 0x20
ja 0x401023
mov byte [edi], 0
mov ebx, edi
push 0
push 0x80
push 4
push 0
push 0
push 0x80000000
push section.BSS
call dword [sym.imp.kernel32.dll_CreateFileA]
push eax
push 0
push 0x403404
push 0x100000
push 0x403420
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, ebx
mov ecx, ebx
sub ecx, section.BSS
mov al, 0x2e
std
repne scasb al, byte es:[edi]
cld
jne 0x4011d3
and dword [edi + 2], 0xdfdfdf
cmp dword [edi + 2], 0x504d42
jne 0x4011d3
mov dword [edi + 2], 0x6e6772
mov ecx, dword [0x403432]
mov dword [0x403410], ecx
shr ecx, 3
mov dword [0x40341c], ecx
mov eax, dword [0x403436]
mov dword [0x403414], eax
dec eax
xor edx, edx
mul ecx
add eax, 0x40345e
mov dword [0x403418], eax
mov edi, 0x503420
mov eax, 0x20
stosd dword es:[edi], eax
mov eax, 1
stosd dword es:[edi], eax
scasd eax, dword es:[edi]
scasd eax, dword es:[edi]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x403410]
stosd dword es:[edi], eax
mov eax, dword [0x403414]
stosd dword es:[edi], eax
mov dl, 0x80
mov esi, dword [0x403418]
xor ebx, ebx
dec ebx
inc ebx
inc ebx
cmp ebx, dword [0x403432]
dec ebx
jae 0x401134
call fcn.004011db
jb 0x4010f7
mov eax, ebx
stosd dword es:[edi], eax
mov eax, dword [0x402004]
stosd dword es:[edi], eax
inc ebx
cmp ebx, dword [0x403432]
jae 0x401122
call fcn.004011db
jae 0x401112
mov eax, ebx
stosd dword es:[edi], eax
mov eax, dword [0x402004]
inc eax
stosd dword es:[edi], eax
cmp ebx, dword [0x403432]
jb 0x4010f7
mov eax, dword [0x40341c]
sub dword [0x403418], eax
inc dword [0x402004]
dec dword [0x403414]
jne 0x4010ec
mov eax, edi
mov ebx, 0x503420
sub eax, dword [ebx]
sub eax, ebx
mov dword [ebx + 0xc], eax
shr eax, 4
mov dword [ebx + 8], eax
lea esi, [ebx + 0x20]
xor ebp, ebp
xor ebx, ebx
lea ecx, [ebx - 1]
mov edx, ecx
lodsd eax, dword [esi]
cmp ecx, eax
cmova ecx, eax
lodsd eax, dword [esi]
cmp edx, eax
cmova edx, eax
lodsd eax, dword [esi]
cmp ebp, eax
cmovb ebp, eax
lodsd eax, dword [esi]
cmp ebx, eax
cmovb ebx, eax
cmp esi, edi
jne 0x40116d
push edi
mov edi, 0x503430
xchg ecx, eax
stosd dword es:[edi], eax
xchg edx, eax
stosd dword es:[edi], eax
xchg ebp, eax
stosd dword es:[edi], eax
xchg ebx, eax
stosd dword es:[edi], eax
pop ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push section.BSS
call dword [sym.imp.kernel32.dll_CreateFileA]
push eax
push 0
push 0x403404
mov edx, 0x503420
sub ebx, edx
push ebx
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x403300
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004034b0
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4033fe
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4033a1
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4033e4
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4033b8
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4033d3
test al, 0x40
je 0x4033ca
mov ecx, dword [edi + 0x20]
jmp 0x4033d1
test al, 0x80
je 0x4033e4
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4033e4
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403370
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x41e7c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x894c48]
xor edx, edx
cmp eax, edx
jne 0x41e7e6
xor eax, eax
mov byte [eax + 0x894b48], al
inc eax
cmp eax, 0x100
jl 0x41e7ce
mov dword [0x894c48], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x894b48
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e877
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41e84a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41e818
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41e943
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41e92a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret