joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50bc50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x50bd44
cmp byte [edx], 0
je 0x50bd37
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.0050bbd0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0050bbd0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0050bb40
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x50bd01
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.0050bb80
fmul qword [0x8dd8a8]
push ecx
fstp qword [esp]
call fcn.0051d318
fadd qword [0x8dd8a0]
add esp, 8
call fcn.0051d3e8
mov byte [ebx], al
inc ebx
dec edi
jne 0x50bcd4
lea ecx, [esp + 0x20]
push ecx
call fcn.0050bb80
fmul qword [0x8dd8a8]
push ecx
fstp qword [esp]
call fcn.0051d318
add esp, 8
call fcn.0051d3e8
cmp esi, ebx
je 0x50bd2d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x50bd26
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x50c140
mov byte [edi + esi], 2
jmp 0x50c177
test al, 4
je 0x50c14a
mov byte [edi + esi], 0xd
jmp 0x50c177
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x50c163
mov byte [edi + esi], 2
jmp 0x50c177
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x50c173
mov byte [edi + esi], 0x19
jmp 0x50c177
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x50c127
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x50c1eb
cmp dl, 0xd
je 0x50c1eb
xor edx, edx
jmp 0x50c1f0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x50c1db
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x50c210
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.0050aad0
mov esi, eax
add esp, 8
test esi, esi
jne 0x50c231
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.0050d860
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x50c256
push esi
call fcn.0050ab60
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.00521f9c
push ebx
push edi
mov ebp, eax
call fcn.0050d8d0
push 0x50c290
push ebp
push esi
call fcn.0050ec00
push esi
call fcn.0050ab60
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x50d590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x9fc940
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x9fc860]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x50d60b
push 0x4c
push 1
call fcn.0051f925
mov esi, eax
add esp, 8
test esi, esi
jne 0x50d5d3
push 0x9fc940
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x9fc860]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x9ee194]
inc eax
lea edx, [esi + 0xc]
mov dword [0x9ee194], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.00511100
add esp, 8
mov byte [esi + 0x3c], 1
push 0x9fc940
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x50da90
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0051f4fd
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00521f9c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x50db8a
call fcn.0051f4fd
cmp dword [eax], 0
je 0x50dad7
call fcn.0051f4fd
mov ebp, dword [eax]
jmp 0x50dada
or ebp, 0xffffffff
call fcn.0050d620
test esi, esi
mov dword [eax], ebp
jne 0x50daef
call fcn.0051f4fd
cmp dword [eax], 4
je 0x50db3f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x50db22
cmp esi, 0xffffffff
je 0x50db64
test al, 6
je 0x50db22
call fcn.0050d620
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00511130
add esp, 4
push eax
push 0x24
push 9
call fcn.0050de70
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x50db82
test al, 6
je 0x50db30
test ah, 2
je 0x50db82
test esi, esi
jbe 0x50db8e
test ah, 2
je 0x50db8e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0051f4fd
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00521f9c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x50db8a
jmp 0x50dac4
call fcn.0050d620
mov eax, dword [eax]
push eax
push ebx
call fcn.00511130
add esp, 4
push eax
push 0x24
push 2
call fcn.0050de70
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x50db9b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x50dba4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x521cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0051f48a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x521d17
test byte [esp + 8], 2
je 0x521d17
call fcn.0051f4fd
mov dword [eax], 0xd
call fcn.0051f506
mov dword [eax], 5
jmp 0x521cf0
xor eax, eax
ret
Function at 0x53aa30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x554430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0052fb4d
mov eax, dword [0x8e1b00]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0052fa7f
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.0053b540
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x53aad7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x53aace
cmp al, 0xff
je 0x53aace
dec al
mov byte [ecx], al
jmp 0x53aad7
push ecx
call fcn.00543db3
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x53ab08
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x53aaff
cmp al, 0xff
je 0x53aaff
dec al
mov byte [ecx], al
jmp 0x53ab08
push ecx
call fcn.00543db3
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x54641a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x546452
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.005444a4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054447c
jmp 0x54645e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x547b08
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 0x547b4a
call fcn.0054d6ff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x547b4a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x547b41
xor eax, eax
jmp 0x547b52
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00547b58
pop edi
pop esi
pop ebx
ret 4

Function at 0x54dc2f
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 0x54dc5d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x54dc7b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0054db95
jmp 0x54dc7b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x54dc7b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0054db95
test edi, edi
mov eax, edi
jne 0x54dc65
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a1004]
jne 0x40100a
repz ret
jmp fcn.004012f0

Function at 0x40317b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a1004]
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.0040217c
and dword [ebp - 0x14], 0
cmp dword [0x4a3694], 0
mov dword [ebp - 0x18], eax
jne 0x40322e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4032d6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4032d6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a3694], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a3698], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a369c], eax
call edi
push eax
call esi
mov dword [0x4a36a4], eax
test eax, eax
je 0x40322e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a36a0], eax
mov eax, dword [0x4a36a0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403287
cmp dword [0x4a36a4], ecx
je 0x403287
push eax
call esi
push dword [0x4a36a4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403287
test ebx, ebx
je 0x403287
call edi
test eax, eax
je 0x40327e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40327e
test byte [ebp - 8], 1
jne 0x403287
or dword [ebp + 0x10], 0x200000
jmp 0x4032ba
mov eax, dword [0x4a3698]
cmp eax, dword [ebp - 0x18]
je 0x4032ba
push eax
call esi
test eax, eax
je 0x4032ba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4032ba
mov eax, dword [0x4a369c]
cmp eax, dword [ebp - 0x18]
je 0x4032ba
push eax
call esi
test eax, eax
je 0x4032ba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a3694]
call esi
test eax, eax
je 0x4032d6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4032d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4054e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4a1004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4a1b20]
push esi
mov esi, dword [0x5a231c]
push edi
mov edi, dword [0x5a297c]
push eax
call fcn.00405420
add esp, 4
cmp dword [0x5a297c], 0x2f
jne 0x405533
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push esi
call fcn.00405470
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x40a23c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.00403dcc
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a2a5
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00404190
jne 0x40a274
lea eax, [ebx + 0x10]
call fcn.00403dcc
jmp 0x40a2ad
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00404190
jne 0x40a290
lea eax, [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00403e20
cmp dword [ebx + 0x10], 0
jne 0x40a2ad
lea eax, [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00403e20
jmp 0x40a2ad
lea eax, [ebx + 0x10]
call fcn.00403dcc
mov eax, ebx
call fcn.0040a08c
mov eax, dword [0x40b158]
inc dword [eax]
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a307
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a34a
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x75d7
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a38d
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
test edi, edi
je 0x40a3b7
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40a3f0
call fcn.00404090
mov eax, ebx
call fcn.00409f64
mov ebp, eax
push 0x200
call sub.kernel32.dll_Sleep
jmp 0x40a251

Function at 0x91b524
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x91b52a
pop ebp
sub ebp, 6
sub ebp, 0x51b524
jmp 0x91b588
jmp 0x91b591
mov eax, 0x51b524
add eax, ebp
add eax, 0x93
mov ecx, 0x622
mov edx, 0x8eb01936
xor byte [eax], dl
inc eax
dec ecx
jne 0x91b5a8
jmp 0x91b5bb
pop esp
jbe 0x91b61c
pop esi
cli
sbb dh, byte [esi]
add eax, 0xa3c966f6
or dl, bh
jno 0x91b606
mov bp, 0xbdfb
mov edi, 0x3636360a
mov bh, 0xf7
into
xor eax, 0x36308efb
mov word ss:[esi], ds
rcl esp, 0x35
invalid
fidiv word ss:[ebx]
fistp word ss:[esi]
arpl word ss:[edx + 0x6b], sp
mov ebp, 0x36363eb3
mov ebp, 0x36363aa3
mov ebp, 0x363626bb
neg edi
xor al, 7
xor al, 0xb5
hlt
Function at 0x4e5850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x94000]
push edi
or ebp, 0xffffffff
jmp 0x4e5872
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e5879
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e5868
mov eax, 1
add ebx, ebx
jne 0x4e588b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e589c
jne 0x4e58ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e58ac
dec eax
add ebx, ebx
jne 0x4e58a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e5880
xor ecx, ecx
sub eax, 3
jb 0x4e58c4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e5936
sar eax, 1
mov ebp, eax
jmp 0x4e58cf
add ebx, ebx
jne 0x4e58cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4e58dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4e5900
inc ecx
add ebx, ebx
jne 0x4e58ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e58e1
jne 0x4e58fd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e58e1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e5920
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e5911
jmp 0x4e586e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e5920
add edi, ecx
jmp 0x4e586e
pop esi
mov edi, esi
mov ecx, 0x3d78
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e593e
cmp byte [edi], 0x1d
jne 0x4e593e
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 eax, ebx
loop 0x4e5943
lea edi, [esi + 0xe2000]
mov eax, dword [edi]
or eax, eax
je 0x4e59bb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe7170]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe729c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e5970
mov ecx, edi
jns 0x4e599f
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 + 0xe72a0]
or eax, eax
je 0x4e59b5
mov dword [ebx], eax
add ebx, 4
jmp 0x4e598d
call dword [esi + 0xe72a4]
popal
jmp 0x46cb40
Function at 0x405490
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.0040574e
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4054cf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a1f88], eax
jmp 0x405659
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054e9
test eax, eax
je 0x405607
test bl, 2
je 0x405607
mov esi, 0x79f518
push edi
push esi
call fcn.00405bd0
cmp dword [ebp + 8], 0
je 0x405508
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40550e
push edi
call fcn.004056a7
cmp byte [edi], 0
jne 0x40551c
cmp byte [0x79f518], 0x5c
jne 0x405527
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 0x4055fd
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040568b
cmp byte [eax], 0
je 0x40556d
cmp byte [ebp - 0x1c], 0
je 0x40556d
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405583
mov al, byte [esi + 1]
test al, al
je 0x4055dc
cmp al, 0x2e
jne 0x405583
cmp byte [esi + 2], 0
je 0x4055dc
push esi
push ebx
call fcn.00405bd0
test byte [ebp - 0x14c], 0x10
je 0x4055a8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055dc
push dword [ebp + 0xc]
push edi
call fcn.00405490
jmp 0x4055dc
push dword [ebp - 4]
push edi
call fcn.00405448
test eax, eax
jne 0x4055d4
cmp dword [ebp - 4], eax
je 0x4055cc
push edi
push 0xfffffffffffffff1
call fcn.00404eb9
push 0
push edi
call fcn.00405a84
jmp 0x4055dc
inc dword [0x7a1f88]
jmp 0x4055dc
push edi
push 0xfffffffffffffff2
call fcn.00404eb9
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40554b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405607
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405659
cmp dword [ebp - 0xc], esi
jne 0x40561b
inc dword [0x7a1f88]
jmp 0x405659
push edi
call fcn.00405ed4
test eax, eax
je 0x405659
push edi
call fcn.00405660
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405448
test eax, eax
jne 0x405651
cmp dword [ebp - 4], esi
je 0x405613
push edi
push 0xfffffffffffffff1
call fcn.00404eb9
push esi
push edi
call fcn.00405a84
jmp 0x405659
push edi
push 0xffffffffffffffe5
call fcn.00404eb9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x407230
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40733c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x4072b0
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x4072a7
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040b494
mov eax, dword [ebp - 4]
call fcn.0040b308
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4072e0
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040b3bc
jmp 0x4072fc
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040b494
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040b308
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407324
cmp edi, 0x104
jbe 0x407318
mov eax, dword [ebp - 4]
call fcn.0040b308
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x407324
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407343
lea eax, [ebp - 4]
call fcn.0040a664
pop eax
jmp eax

Function at 0x407918
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a664
test esi, esi
jne 0x40794e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a7fc
jmp 0x40796c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004077f8
mov edi, eax
test esi, esi
je 0x40796c
cmp dword [ebx], 0
je 0x40796c
dec esi
jmp 0x407955
add esp, 0x20c
pop edi
pop esi
pop ebx
ret