joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46102f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x48ce88]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x461075
cmp word [ebx], dx
jne 0x461075
or byte [eax + edi + 0x28], 4
jmp 0x46107a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4611dd
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4611bd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4610bb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4610f1
cmp eax, edx
jae 0x4610ff
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x461096
jmp 0x4611dd
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4611b8
cmp dword [ebp - 0x18], 0
je 0x4611b8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x48ce88]
test byte [eax + edi + 0x28], 0x48
je 0x46118e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x461152
mov word [esi], cx
jmp 0x461189
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x48ce88]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x48ce88]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x48ce88]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4611dd
pop eax
cmp word [ebp - 4], ax
jne 0x46119e
cmp esi, ebx
jne 0x46119e
mov word [esi], ax
jmp 0x4611da
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046085b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4611dd
push 0xd
pop eax
jmp 0x461199
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x48ce88]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4611d7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4611dd
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x461ec8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x478170
push 0x478168
push str.FlsAlloc
push 0x1f
call fcn.00461d90
mov esi, eax
add esp, 0x10
test esi, esi
je 0x461efc
push dword [ebp + 8]
mov ecx, esi
call dword [0x474214]
call esi
jmp 0x461f02
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x461f46
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x478180
push 0x478178
push str.FlsGetValue
push 0x21
call fcn.00461d90
mov esi, eax
add esp, 0x10
test esi, esi
je 0x461f7d
push dword [ebp + 8]
mov ecx, esi
call dword [0x474214]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x461f85
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x478188
push 0x478180
push str.FlsSetValue
push 0x22
call fcn.00461d90
mov esi, eax
add esp, 0x10
test esi, esi
je 0x461fbf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x474214]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4654cf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x48b040]
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 0x46551a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046566a
test al, al
jne 0x465514
sub edx, 2
cmp edx, edi
jne 0x4654fa
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46553c
lea eax, [edi + 2]
cmp edx, eax
je 0x46553c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046541b
add esp, 0x10
jmp 0x465636
push esi
lea ecx, [ebp - 0x255]
call fcn.0046566a
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 0x46557f
push dword [ebp - 0x25c]
jmp 0x46552c
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 0x4655bc
cmp word [ebp - 0x226], 0
je 0x4655dd
cmp word [ebp - 0x226], ax
jne 0x4655bc
cmp word [ebp - 0x224], 0
je 0x4655dd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046541b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x465629
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x465596
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x465611
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x465636
push 0x46524b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00455810
add esp, 0x10
jmp 0x465606
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.0044c777
leave
ret

Function at 0x468c67
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00460bf7
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x468cd6
cmp esi, dword [ebp - 4]
je 0x468cd1
cmp dword [ebp + 0xc], 0
je 0x468cd1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x468cae
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004687b9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x468cd8
xor eax, eax
inc eax
jmp 0x468cd8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x468d3d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00460bf7
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00460bf7
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x468db4
cmp word [ecx], dx
je 0x468db4
mov eax, dword [0x4786c4]
push edi
dec eax
push eax
push 0x4785b0
call fcn.00468cdc
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x468e27
cmp word [eax], dx
je 0x468e27
mov eax, dword [edi]
test eax, eax
je 0x468dd8
cmp word [eax], dx
je 0x468dd8
lea eax, [ebp - 0x10]
push eax
call fcn.004686bf
jmp 0x468de1
lea eax, [ebp - 0x10]
push eax
call fcn.0046875a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x468e51
mov eax, dword [0x4785ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4782a0
call fcn.00468cdc
add esp, 0xc
test al, al
je 0x468e51
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x468e1c
cmp word [eax], di
je 0x468e1c
lea eax, [ebp - 0x10]
push eax
call fcn.004686bf
pop ecx
jmp 0x468e53
lea eax, [ebp - 0x10]
push eax
call fcn.0046875a
jmp 0x468e19
mov eax, dword [edi]
test eax, eax
je 0x468e3e
cmp word [eax], dx
je 0x468e3e
lea eax, [ebp - 0x10]
push eax
call fcn.00468674
pop ecx
jmp 0x468e51
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x468f1c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00468b61
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x468f1c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x468f1c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x468f1c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x468ea9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004620c8
test ebx, ebx
je 0x468f17
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004620c8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x468f1c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x468f1c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0046da40
add esp, 0x10
xor eax, eax
inc eax
jmp 0x468f1e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c777
leave
ret
Function at 0x46e2c5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0046e241
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x46e434
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x46e434
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x46e3e9
jg 0x46e321
test eax, eax
je 0x46e3df
push 1
push 0x1000
call fcn.00461a54
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x46e344
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x46e3d6
push 0x8000
push ebx
call fcn.0045dda7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46e36d
jg 0x46e368
cmp ecx, 0x1000
jb 0x46e36d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00462d15
add esp, 0x10
cmp eax, 0xffffffff
je 0x46e3b2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x46e368
jl 0x46e399
test ecx, ecx
jne 0x46e35a
push dword [ebp - 0xc]
push ebx
call fcn.0045dda7
push esi
call fcn.00461ab1
add esp, 0xc
xor ebx, ebx
jmp 0x46e442
cmp byte [edi + 0x24], 0
je 0x46e3c9
cmp dword [edi + 0x20], 5
jne 0x46e3c9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x46e3d4
mov ebx, dword [edi + 0x18]
jmp 0x46e3d6
xor ebx, ebx
push esi
call fcn.00461ab1
pop ecx
jmp 0x46e442
test ecx, ecx
jg 0x46e3ab
jl 0x46e3e9
test eax, eax
jae 0x46e3ab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046085b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46e409
cmp byte [edi + 0x1c], 0
je 0x46e3ab
jmp 0x46e43a
push ebx
call fcn.00466b37
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46e3ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x46e442
cmp byte [edi + 0x1c], 0
je 0x46e43f
mov ebx, dword [edi + 0x18]
jmp 0x46e442
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046085b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46f6c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46f6ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46f6ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401005
Capabilities:
Delete directory
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push ebx
bswap esi
mov word [ebp - 4], 1
je 0x40101f
mov ebx, dword [section..data]
mov dword [ebp - 8], 0xffffffff
xor dword [section..data], 1
mov dword [ebp - 8], 0x24
call sub.KERNEL32.DLL_GetTickCount
xor dword [ebp - 8], ecx
push str.Iahxwmx._Pwue__Vbl
push str.Gibv._Bswav_Dcekfj
call sub.ole32.dll_IsEqualGUID
add cx, si
mov si, word [ebp - 0xc]
push section..data
call sub.gdi32.dll_CreateFontIndirectA
movzx ebx, ch
mov dword [ebp - 8], ebx
push 0
push section..data
call sub.ole32.dll_CreateBindCtx
mov dword [ebp - 8], 0xc0ced0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], 0xffffffff
xor bl, byte [0x40b004]
push str.Xrmkcxk_Rf__Orv
call sub.msvcrt.dll_printf
pop ecx
sub byte [0x40b005], 1
mov dword [section..data], ecx
mov dword [section..data], edi
push 0x51
call sub.USER32.dll_GetKeyState
mov byte [ebp - 0x14], ch
mov dword [0x40b008], edx
mov byte [ebp - 0x18], dh
push 0
push 0x40b008
call sub.ole32.dll_CreateBindCtx
push 0
push 0x40b008
call sub.ole32.dll_CreateBindCtx
mov dword [ebp - 8], 0x238
adc dx, word [0x40b00c]
push 0xee
call sub.USER32.dll_GetKeyState
mov word [ebp - 4], dx
call sub.KERNEL32.DLL_GetOEMCP
mov bh, byte [0x40b006]
xor esi, dword [0x40b008]
nop
push str.Tpoxx._Mgyxx_Lpghk
call sub.KERNEL32.DLL_RemoveDirectoryW
push 0
push 0
push 0x2c
push 0
push 0x401234
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CreateTimerQueueTimer
push 0xffffffffffffffff
call sub.KERNEL32.DLL_Sleep
push 0x40ca44
call sub.gdi32.dll_SaveDC
test ah, cl
jae 0x401141
push str.Xqcbkblu__Opsloec
call sub.msvcrt.dll_strlen
pop ecx
mov ax, word [0x40b00c]
sbb ax, word [0x40b00c]
pop ebx
pop esi
leave
ret
Function at 0x40462e
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x4087d0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x408
push ebx
push esi
xor ebx, ebx
push 8
mov dword [ebp - 4], ebx
pop esi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x404654
mov eax, 0x40c230
push ebx
push 0xc000000
push 3
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4046a4
mov eax, esi
dec esi
test eax, eax
je 0x4046f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x404648
cmp eax, 2
je 0x40469f
cmp eax, 0x20
je 0x404692
cmp eax, 0x21
jne 0x4046f8
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404648
push 1
pop ebx
jmp 0x4046f8
cmp esi, ebx
je 0x4046f8
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, 0x400
mov esi, eax
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp esi, ebx
jle 0x4046eb
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x414]
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [ebp - 0x14]
jmp 0x4046cc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
pop edi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.004047cd
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404716
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov ebx, 0x7d0
mov esi, 0x410088
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40474c
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 0xfa
jmp 0x40472c
push 0x410084
push dword [ebp + 0xc]
call sub.MSVCRT.dll_fopen
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x40476c
push edi
call sub.MSVCRT.dll_fclose
pop ecx
xor eax, eax
jmp 0x4047c0
push edi
push 0x400
lea eax, [ebp - 0x400]
push 1
push eax
call sub.MSVCRT.dll_fread
mov esi, eax
add esp, 0x10
xor eax, eax
test esi, esi
jbe 0x404798
xor byte [ebp + eax - 0x400], 0xec
inc eax
cmp eax, esi
jb 0x40478b
push ebx
push esi
lea eax, [ebp - 0x400]
push 1
push eax
call sub.MSVCRT.dll_fwrite
add esp, 0x10
test esi, esi
jne 0x40476c
push edi
call sub.MSVCRT.dll_fclose
push ebx
call sub.MSVCRT.dll_fclose
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404bc7
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x4088a0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x190
push ebx
push esi
push edi
push 1
mov edi, 0x410130
pop ebx
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], ebx
push eax
call fcn.0040505f
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004050e8
add esp, 0x18
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.004047cd
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x404c21
mov eax, 0x40c230
lea ecx, [ebp - 0x19c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
and dword [ebp - 0x10], 0
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x404d21
cmp byte [ebp - 0x170], 0x2e
je 0x404d00
test byte [ebp - 0x19c], 0x10
je 0x404cfd
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040505f
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040505f
add esp, 0x18
push dword [0x40c24c]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.00404d83
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.004047cd
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.004047cd
mov al, byte [ebp + 0x18]
sub esp, 0x10
mov esi, esp
mov dword [ebp - 0x2c], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.004047cd
push dword [0x40c24c]
lea eax, [ebp + 0x18]
mov ecx, esi
push 0
push eax
call fcn.00404d83
sub esp, 0x10
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov byte [ebp - 4], 7
call fcn.00404d59
mov byte [ebp - 4], 4
call fcn.00404bc7
add esp, 0x20
add dword [ebp - 0x10], eax
jmp 0x404d00
inc dword [ebp - 0x10]
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404c3f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004047cd
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp + 8]
call fcn.004047cd
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp + 0x18]
call fcn.004047cd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x405296
Capabilities:
Enumerate files on windows
Enumerate files recursively
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1658
call fcn.00408580
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], esi
mov eax, str._s.url
jne 0x4052b9
mov eax, str._s.
mov ebx, dword [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x450]
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x405307
cmp dword [ebp + 0x10], esi
je 0x405300
mov ecx, dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call fcn.00405296
jmp 0x4054ae
xor eax, eax
jmp 0x4054ae
push edi
push 1
pop edi
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x405477
cmp byte [ebp - 0x118], 0x2e
je 0x405477
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x248]
push str._s_s
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
cmp dword [ebp + 0x10], esi
jne 0x405374
test byte [ebp - 0x144], 0x10
je 0x405477
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x248]
push 1
push eax
push dword [ebp + 8]
call fcn.00405296
jmp 0x405477
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xc50]
push 0x800
push eax
push 0x410e6c
push 0x4101ec
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4053b3
lea eax, [ebp - 0xc50]
push str._unknown_
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x118]
push 0x2e
push eax
call sub.MSVCRT.dll__mbsrchr
mov esi, eax
lea eax, [ebp - 0x118]
sub esi, eax
lea eax, [ebp - 0x118]
push esi
push eax
lea eax, [ebp - 0x248]
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp + esi - 0x248], 0
add esp, 0x14
test edi, edi
je 0x405441
push 0x5c
push ebx
call sub.MSVCRT.dll__mbsrchr
pop ecx
test eax, eax
pop ecx
jne 0x405400
mov eax, ebx
jmp 0x405407
push eax
call sub.MSVCRT.dll__mbsinc
pop ecx
push eax
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x1658]
push str._tr__td_nbsp___td__td_nbsp___td___tr__tr__td__b__s__b___td__td__a_href_s__s__a___td___tr_
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x1c
xor edi, edi
jmp 0x405463
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0x1658]
push str._tr__td_nbsp___td__td__a_href_s__s__a___td___tr_
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1658]
push eax
push dword [ebp + 8]
call fcn.00405633
xor esi, esi
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40530b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], esi
pop edi
je 0x4054ab
mov ecx, dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call fcn.00405296
push 1
pop eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x4056ae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0x410088
push eax
mov dword [ebp - 8], ecx
call fcn.00405bab
test eax, eax
je 0x40577d
push ebx
push esi
push 2
push 0xffffffffffffffc8
push dword [ebp - 4]
call sub.MSVCRT.dll_fseek
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push 0x38
push 1
pop ebx
push ebx
push esi
call sub.MSVCRT.dll_fread
add esp, 0x1c
cmp dword [esi], 0x113c1ab
je 0x4056ff
xor esi, esi
jmp 0x405770
push edi
push dword [esi + 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0
mov edi, eax
push dword [esi + 0xc]
push dword [ebp - 4]
call sub.MSVCRT.dll_fseek
push dword [ebp - 4]
push dword [esi + 8]
push ebx
push edi
call sub.MSVCRT.dll_fread
mov eax, dword [esi + 8]
add esp, 0x20
dec eax
cmp eax, ebx
jbe 0x405741
mov dl, byte [edi + eax]
lea ecx, [edi + eax - 1]
xor byte [ecx], dl
mov dl, byte [ecx]
add dl, byte [edi + eax]
mov byte [ecx], dl
jmp 0x40572a
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp + 8], 8
mov ecx, dword [ebp - 8]
lea eax, [ebx + edi]
push eax
push dword [esi]
call fcn.00405a9f
add ebx, eax
add esi, 4
dec dword [ebp + 8]
jne 0x40574d
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 1
pop esi
pop edi
push dword [ebp - 4]
call sub.MSVCRT.dll_fclose
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret 8