joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40642c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x408834
mov ebx, 0x45a2b8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x40647a
push 1
push ebp
push edi
call fcn.004059cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4065f1
cmp eax, esi
jg 0x4065f1
push esi
mov edi, 0x45f910
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4065f1
cmp eax, esi
jg 0x4065f1
push ebp
push ebp
push esi
push 0x45aab8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x4065f1
push ebp
push ebp
push esi
mov esi, 0x45b108
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x4065f1
push esi
push 0x45aab8
push str._s_s_r_n
push 0x45b508
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4705bc]
push dword [eax + 0x128]
push edi
call fcn.0040619b
push 4
push 0xc0000000
push edi
call fcn.004059cf
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4065f1
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x4065e7
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4065e7
cmp edi, dword [esp + 0x10]
jne 0x4065e7
push str._Rename__r_n
push esi
call fcn.00405935
cmp eax, ebp
jne 0x40657e
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4065af
push 0x408828
add eax, 0xa
push eax
call fcn.00405935
mov ebp, eax
test ebp, ebp
je 0x4065ad
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4065a0
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40659a
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x4065b1
xor ebp, ebp
mov eax, edi
push ebx
push 0x45b508
add eax, esi
push eax
call fcn.0040598b
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40662a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406113
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x40665f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x470668], eax
jmp 0x406805
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x40667a
test eax, eax
je 0x4067b0
test cl, 2
je 0x4067b0
push edi
push ebx
mov esi, 0x45b908
push esi
call fcn.00405b89
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40669d
push str..
push esi
call edi
jmp 0x4066a3
push ebx
call fcn.004060e6
cmp word [ebx], 0
jne 0x4066b3
cmp word [0x45b908], 0x5c
jne 0x4066bb
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40679f
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.00405884
xor edi, edi
cmp word [eax], di
je 0x406702
cmp word [ebp - 0x28], di
je 0x406702
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x40671d
movzx eax, word [esi + 2]
cmp ax, di
je 0x40677c
cmp ax, 0x2e
jne 0x40671d
cmp word [esi + 4], di
je 0x40677c
push esi
push dword [ebp - 4]
call fcn.00405b89
test byte [ebp - 0x25c], 0x10
je 0x406744
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40677c
push dword [ebp + 0xc]
push ebx
call fcn.0040662a
jmp 0x40677c
push ebx
call fcn.004059af
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406774
test byte [ebp + 0xc], 4
je 0x40676c
push ebx
push 0xfffffffffffffff1
call fcn.00404b44
push edi
push ebx
call fcn.004065f7
jmp 0x40677c
inc dword [0x470668]
jmp 0x40677c
push ebx
push 0xfffffffffffffff2
call fcn.00404b44
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4066e2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4067a1
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4067b0
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406804
cmp dword [ebp - 0xc], esi
je 0x4067f4
push ebx
call fcn.00405c69
test eax, eax
je 0x406804
push ebx
call fcn.004060b7
push ebx
call fcn.004059af
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4067fc
test byte [ebp + 0xc], 4
je 0x4067f4
push ebx
push 0xfffffffffffffff1
call fcn.00404b44
push esi
push ebx
call fcn.004065f7
jmp 0x406804
inc dword [0x470668]
jmp 0x406804
push ebx
push 0xffffffffffffffe5
call fcn.00404b44
pop esi
pop ebx
leave
ret 8
Function at 0x40680a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x406848
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40681e
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406819
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406875
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406856
not eax
pop ebp
ret 0xc
Function at 0x100013a0
Capabilities:
Encode data using xor

Disassembly:
sbb eax, 0x2167a143
jmp ebx
mov dword [0xe24a24a2], eax
pop es
stosb byte es:[edi], al
cdq
and eax, 0xed4f013e
push ecx
loopne 0x1000137d
mov eax, eax
jbe 0x1000136f
mov word [edx + 0x52], fs
fild dword [edx - 0x5092722d]
sahf
inc ebx
or al, 0x79
jae sym.SGIme.dll_public_virtual:_char_const____thiscall_CLoginInfoSet_Busi::GetBusiRole_void_
mov bh, 0x85
out dx, eax
mov ah, 0x18
loop 0x100013ab
or byte [ebx + 0x5727c4c5], dl
aas
cmc
mov edx, 0x545b79aa
sahf
pop ebp
sbb al, 0x6b
movsd dword es:[edi], dword [esi]
pop esp
push ebx
sub byte [0xbb940476], 0x7f
je 0x1000137d
invalid
js 0x100013ba
jp 0x10001415
lcall 0xd5c, 0x745bdf1f
pop es
scasd eax, dword es:[edi]
jecxz 0x10001407
jle 0x1000145d
fnop
sub byte [esi + 0x73291450], ah
sub al, 0x49
dec esi
mov edi, 0x958019a
loopne 0x10001470
jge 0x10001458
cmp dword [edi], ebp
int3
or al, 0xef
in eax, dx
stosd dword es:[edi], eax
push esi
lodsd eax, dword [esi]
invalid
loopne 0x10001465
add dword [edi - 0x66], ebp
stosd dword es:[di], eax
rcr byte [ebx - 0x59], 1
lodsb al, byte [si]
mov ecx, 0xeae7048b
sub byte [ebx - 0x2b], ch
mov ch, 0x94
cli
cmovbe ecx, dword [eax - 0xdcaf2a2]
push 0xbfcbf317
jno 0x100014a9
lodsb al, byte [esi]
cmp eax, dword [esi + 0x2b]
push ecx
dec esi
cmp edi, dword [ebx]
lodsd eax, dword [esi]
out 0x90, al
pop eax
xor ah, byte [ebx - 0x27]
mov ebx, 0x9cc8a885
aad 0x2d
inc esp
pop ds
int3
invalid
aaa
inc edi
dec ebp
add dword [edi + ecx*2 - 2], ecx
into
inc esi
inc esi
mov cl, 0x24
and bh, byte [eax - 0x25]
sbb eax, dword [ecx - 0x21119ad2]
and ch, byte [edx + 0x39]
out dx, al
fisub word [edx]
push 0x39
inc ecx
add ah, byte [eax]
mov dh, 0xa5
in eax, dx
xchg edi, edx
xor byte [ebx + 0x48abd169], dh
push ss
or byte cs:[ecx], cl
scasd eax, dword es:[edi]
je 0x10001471
retf
invalid
Function at 0x1006907a
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov cl, 0x9a
mov word [esp], si
xchg dh, cl
jmp 0x1006907f
xchg dword [esp], eax
jmp 0x10069064
lea esp, [esp + 4]
add edi, 0xae53aea
dec eax
jl 0x10069166
jge 0x10069131
invalid
mov ecx, 0x33cc63a9
not ax
lea ecx, [ebp*4]
jmp 0x100690db
rdtsc
jmp 0x10069173
xchg ch, dh
pop word [esp]
mov ax, si
rdtsc
lea esp, [esp + 2]
jmp 0x10069102
xor edi, 0x1ceba0ea
mov ax, word [esp]
rdtsc
push esi
xchg dx, ax
jmp 0x100690c5
jmp 0x1006913e
sub edi, 0x59408e75
push edx
xchg byte [esp + 2], cl
bsr dx, cx
jnp 0x100690ec
pop dx
lea esp, [esp + 2]
jmp 0x10069144
not cx
mov cl, bl
adc cx, 0xe03b
jb 0x10069149
jae fcn.10069185
lodsb al, byte [esi]
xor esp, dword [ebx - 0x490aca3a]
mov eax, dword [0x9270808d]
invalid
lea eax, [eax - 0x6d90]
setb ah
bswap edx
jmp 0x100690be
pop dx
lea esp, [esp + 2]
add edi, dword [ebp]
jmp 0x1006911b
jmp fcn.10069185
lea eax, [eax - 0x6d90]
setb ah
bswap edx
rdtsc
xor edi, 0x2ead028c
setb cl
xchg cx, ax
xchg dl, ah
jmp 0x100690a8

Function at 0x1006ae5e
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 4], edx
call fcn.1006ade7
das
mov eax, dword [0x64a35031]
outsd dx, dword [esi]
loop 0x1006ae40
pop ss
loop 0x1006ae24
mov dword [0x66240489], eax
mov dword [esp + 1], ebx
mov dword [esp], eax
mov word [esp + 1], bx
pop word [esp]
pushfd
lea esp, [esp + 2]
jmp 0x1006adbe
mov dword [esp + 0xc], ebx
jmp 0x1006ae42
and al, 0xc
call 0x1006ae5e
call fcn.1006b023
mul dword [eax - 0xa]
xchg ecx, eax
pushal
aad 0xb
popfd
or eax, 0x6c60a754
jg 0x1006aea1
int1
mov word [esp + 1], si
push sp
push dword [esp]
jmp 0x1006b107
add byte [eax], al
pop eax
invalid
jp 0x1006ae47
jnp 0x1006ae47

Function at 0x1006af4e
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0x58144
call fcn.1006af4e
out dx, eax
outsd dx, dword [esi]
call [edx - 0x42fd4b97]
mov word [edi], ds
mov ax, 0x9460
add bl, byte [ebx]
mov ah, dl
call 0x1006af85
mov ecx, dword [0xd617e49d]
sbb ebx, dword [esi + 0x60a66b0c]
outsd dx, dword [esi]
jbe 0x1006afc5
lea eax, [ecx*4]
sub esp, 0xa
jle 0x1006afea
jg 0x1006b009
mov al, byte [0x64751ae3]
lea esp, [esp + 0x14]
pushfd
jmp 0x1006a7f4
adc esi, ebx
ja 0x1006af50
sti
jmp 0x1006b000
bts ebp, esp
lea esp, [esp + 2]
jmp 0x1006b0c6
mov bl, 0xae
push dword [esp + 4]
ret 8
bts ebp, esp
lea esp, [esp + 2]
jmp 0x1006b0c6
lea ebp, [esp + 8]
btc dx, bp
jmp 0x1006b07d
not ax
bsr ecx, edx
mov bh, byte [esp]
jmp 0x1006b09d
cpuid
jmp 0x1006b034
mov bh, byte [esp]
jmp 0x1006b09d
ja 0x1006b042
not ax
bsr ecx, edx
jmp 0x1006b063
mov dh, byte [esp]
sub esp, 0xb8
mov edi, esp
mov dh, 0xa6
rdtsc
jmp 0x1006b087
mov esi, dword [esp + 0x34]
clc
jae 0x1006b05f
cpuid
jmp 0x1006b034

Function at 0x1006b023
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop dword [esp + 1]
lea esp, [esp + 6]
mov dword [esp + 0xc], esp
call fcn.1006af09
Function at 0x10172064
Capabilities:
Execute anti-debugging instructions

Disassembly:
stc
std
mov word [esp + 1], bx
push dword [esp + 3]
sub esp, 0x11
lea esp, [esp + 1]
jmp 0x1017202d
lea esp, [esp + 0x18]
sub esp, 0xb
mov dword [esp + 6], esi
push word [esp + 6]
jmp 0x1017207e
call 0x10172064
push ebx
popal
outsb dx, byte gs:[esi]
imul ebp, dword [bp + 0x65], 0x69685320
insb byte es:[edi], dx
outsb dx, byte gs:[esi]
and byte [esi + 0x32], dh
xor ebp, dword cs:[esi]
xor byte [esi], ch
xor byte [eax], al
pushfd
pushfd
jmp 0x10172008
lea edi, [ebp - 0x3cc5c5bd]
add esp, 8
lea edi, [eax - 0xfdbd]
jmp 0x101720cd
pop word [esp + 7]
mov dword [esp + 3], eax
lea esp, [esp + 3]
mov dword [esp], edi
bswap edi
pushal
jmp 0x10172068
push eax
mov di, 0x7439
bts edi, edi
mov ax, word [esp]
jmp 0x10172119
mov dword [esp + 3], edx
xchg dx, di
mov di, 0xc6e5
btc di, bx
bswap edx
bswap edi
jmp 0x101720b7
rdtsc
lea edx, [ebx + edi]
call fcn.10172148
add bl, byte [ecx + 0x1e9b6809]
cli
push 0x5b7dfa0f
mov dl, 0xad
mov esp, 0x9eba668f
das
mov dx, 0x2f9e
rcr di, cl
rdtsc
xchg dx, di
lea edi, [ebp*4]
mov ax, word [esp]
jmp 0x101720fe

Function at 0x10172470
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
xchg dh, ah
push si
lea edx, [ecx + ebp]
neg ax
jmp 0x101724b6
mov eax, dword [esp + 1]
push dword [esp]
add esp, 9
mov ah, byte [esp]
mov byte [esp], ah
push ebp
jmp 0x10172490
Function at 0x10172947
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc edi
bswap edx
call 0x10172947
cmp eax, 0xeb14ec83
add al, 0xc
lahf
out 0x11, al
add esp, 2

Function at 0x10172b36
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop di
push ecx
mov byte [esp + 3], dl
or dx, bp
pushal
xchg word [esp + 0x24], di
jmp 0x10172afb
not ax
mov edx, dword [esp + 4]
jmp 0x10172b11

Function at 0x1017321e
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov al, ah
not eax
mov ah, bl
mov byte [esp + 4], bh
xchg dword [esp + 0xc], edi
mov di, 0xecde
jmp 0x10172d5f
lea edi, [0xbe6e018f]
mov eax, ebp
mov al, byte [esp + 5]
mov byte [esp + 4], bh
mov dword [esp + 2], edi
xchg word [esp + 7], dx
jmp 0x10172d75
lea edx, [edx - 0x965a]
mov al, byte [esp + 5]
mov edi, 0xda68e6ff
mov al, byte [esp + 6]
cld
xor dh, 0x4d
jmp 0x10172d93
rdtsc
sub esp, 9
rdtsc
jmp 0x10172e54

Function at 0x10173355
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
call fcn.10172098
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x101732d0
lea esp, [esp + 0x4c]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x1017322a
push eax
jmp 0x10172093
pop word [esp]
lea esp, [esp + 2]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
jmp 0x1017324c

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 0x4150d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414f42

Function at 0x4154cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407b40
mov eax, dword [0x45a500]
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.00412ee6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41550d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x415669
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c820
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 + 0x45c110]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004164c2
mov ecx, dword [esi*4 + 0x45c110]
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 0x415662
cmp eax, dword [edi + ecx + 0x24]
jne 0x415662
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 0x415662
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004164c2
add esp, 0x14
test edx, edx
jl 0x415662
jg 0x4155d8
test eax, eax
jb 0x415662
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x415662
jl 0x4155f2
cmp dword [ebp - 0x1008], eax
ja 0x415662
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x415610
test ebx, ebx
je 0x415649
cmp ecx, edi
jae 0x415649
mov al, byte [ecx]
cmp al, 0xd
jne 0x41562a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x415636
cmp byte [ecx + 1], 0xa
jne 0x415636
inc ecx
jmp 0x415636
movzx eax, al
movsx eax, byte [eax + 0x45a7d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x415610
cmp edx, ebx
jne 0x415610
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x415667
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406da7
leave
ret
Function at 0x415960
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 + 0x45c110]
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 0x4159a0
cmp byte [ebx], 0xa
jne 0x4159a0
or byte [eax + edi + 0x28], 4
jmp 0x4159a5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x415aa3
mov al, byte [edx]
cmp al, 0x1a
je 0x415a85
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4159d4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4159f9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x415a03
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 0x4159b6
jmp 0x415aa3
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 0x415a80
cmp dword [ebp - 0xc], 0
je 0x415a80
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45c110]
test byte [eax + edi + 0x28], 0x48
je 0x415a5a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415a45
mov byte [esi], dl
jmp 0x415a56
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45c110]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415aa3
cmp byte [ebp - 1], 0xa
jne 0x415a69
cmp esi, ebx
jne 0x415a69
mov byte [esi], 0xa
jmp 0x415aa2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004164e0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415aa3
mov byte [esi], 0xd
jmp 0x415aa2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45c110]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415a9f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415aa3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415aac
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 + 0x45c110]
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 0x415aef
cmp word [esi], dx
jne 0x415aef
or byte [edi + eax + 0x28], 4
jmp 0x415af4
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 0x415c47
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 0x415c27
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415b36
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415b6c
cmp eax, edx
jae 0x415b78
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 0x415b0e
jmp 0x415c47
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 0x415c23
cmp dword [ebp - 0x14], 0
je 0x415c23
mov eax, dword [ebx*4 + 0x45c110]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415bfb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x415bc4
mov word [esi], cx
jmp 0x415bf7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45c110]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x45c110]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45c110]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415c47
pop ebx
cmp word [ebp - 4], bx
jne 0x415c0c
cmp esi, dword [ebp + 0xc]
jne 0x415c0c
mov word [esi], bx
jmp 0x415c44
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004164e0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415c47
push 0xd
jmp 0x415c40
mov ecx, dword [ebx*4 + 0x45c110]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415c3e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415c47
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 0x416d3e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45a500]
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 0x416d89
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00416edd
test al, al
jne 0x416d83
sub edx, 2
cmp edx, edi
jne 0x416d69
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x416dab
lea eax, [edi + 2]
cmp edx, eax
je 0x416dab
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00416c8a
add esp, 0x10
jmp 0x416ea5
push esi
lea ecx, [ebp - 0x255]
call fcn.00416edd
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 0x416dee
push dword [ebp - 0x25c]
jmp 0x416d9b
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 0x416e2b
cmp word [ebp - 0x226], 0
je 0x416e4c
cmp word [ebp - 0x226], ax
jne 0x416e2b
cmp word [ebp - 0x224], 0
je 0x416e4c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00416c8a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x416e98
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x416e05
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x416e80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x416ea5
push 0x416aba
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041a970
add esp, 0x10
jmp 0x416e75
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.00406da7
leave
ret

Function at 0x41c7e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c80d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c80d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40818c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
jmp 0x408192
jmp 0x408195
mov dword [ebp + 8], 0x408267
jmp 0x40819f
stc
jb 0x4081a3
jnp 0x840989ed
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
in al, dx
pushal
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]