joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de1b
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x186c
call fcn.0044b290
push ebx
push esi
push edi
push 0x2e
pop eax
push eax
mov dword [esp + 0x18], eax
call fcn.0043b528
pop ecx
push dword [esp + 0x14]
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x1c], eax
call fcn.004451c0
add esp, 0xc
mov esi, 0x3ff
push esi
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.004451c0
add esp, 0xc
push esi
lea eax, [esp + 0x87d]
push ebx
push eax
mov byte [esp + 0x884], bl
call fcn.004451c0
add esp, 0xc
push esi
lea eax, [esp + 0x107d]
push ebx
push eax
mov byte [esp + 0x1084], bl
call fcn.004451c0
add esp, 0xc
push esi
lea eax, [esp + 0x47d]
push ebx
push eax
mov byte [esp + 0x484], bl
call fcn.004451c0
add esp, 0xc
push esi
lea eax, [esp + 0xc7d]
push ebx
push eax
mov byte [esp + 0xc84], bl
call fcn.004451c0
add esp, 0xc
push esi
lea eax, [esp + 0x147d]
push ebx
push eax
mov byte [esp + 0x1484], bl
call fcn.004451c0
lea eax, [esp + 0x84]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x884]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1084]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x484]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc84]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x1484]
mov dword [esp + 0x44], eax
lea eax, [esi + 1]
add esp, 0xc
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40df53
lea ecx, [esp + 0x1c]
push ecx
push ebx
sub eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov esi, dword [esp + 0x2c]
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [0x46d960]
push 2
pop edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], 3
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 6
cmp eax, ebx
jne 0x40dfb1
call fcn.0040db62
mov dword [0x46d960], eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x5c]
push ecx
push ebx
push esi
call eax
mov esi, eax
push esi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
cmp esi, ebx
jne 0x40e02c
mov esi, dword [esp + 0x18]
jmp 0x40e028
mov eax, dword [esi + 4]
sub eax, ebx
je 0x40e01f
sub eax, edi
je 0x40e003
sub eax, 0x15
jne 0x40e025
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x14]
mov dword [esp + 0x1c], 0x2e
push ebx
push dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
jmp 0x40e025
mov eax, dword [esi + 0x18]
push dword [eax + 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov edx, dword [esp + 0x10]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40e013
jmp 0x40e025
mov eax, dword [esp + 0x10]
mov byte [eax], bl
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x40dfd2
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e0ee
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea edx, [ebp - 0x108]
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40e101
xor edi, edi
cmp byte [ebp - 0x108], 0
je 0x40e145
lea esi, [ebp + edi - 0x108]
cmp byte [esi], 0x5c
jne 0x40e13a
cmp edi, 2
jle 0x40e13a
lea eax, [ebp - 0x108]
push eax
mov byte [esi], 0
call fcn.0040c7f6
pop ecx
mov byte [esi], 0x5c
inc edi
cmp byte [ebp + edi - 0x108], 0
jne 0x40e116
lea eax, [ebp - 0x108]
push eax
call fcn.0040c7f6
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
leave
ret

Function at 0x40e188
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x357]
push ebx
push eax
mov byte [ebp - 0x358], bl
call fcn.004451c0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x358]
push str._s.
push eax
call edi
add esp, 0xc
push 0x13c
lea eax, [ebp - 0x144]
push ebx
push eax
mov dword [ebp - 0x148], ebx
call fcn.004451c0
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40e2dd
cmp byte [ebp - 0x11c], 0x2e
je 0x40e2b2
test byte [ebp - 0x148], 0x10
je 0x40e273
cmp byte [ebp + 0xc], bl
je 0x40e273
push esi
lea eax, [ebp - 0x24f]
push ebx
push eax
mov byte [ebp - 0x250], bl
call fcn.004451c0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x250]
add esp, 0xc
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
cmp dl, bl
jne 0x40e244
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push eax
call fcn.0040e188
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x45f]
push ebx
push eax
mov byte [ebp - 0x460], bl
call fcn.004451c0
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push 0x4556e4
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e2d3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0xffffffff
jne 0x40e207
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e2eb
Capabilities:
Delete directory
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
push ebx
push esi
push edi
mov edi, 0x103
push edi
xor esi, esi
lea eax, [ebp - 0x45f]
push esi
push eax
mov byte [ebp - 0x460], 0
call fcn.004451c0
push edi
lea eax, [ebp - 0x24f]
push esi
push eax
mov byte [ebp - 0x250], 0
call fcn.004451c0
push edi
lea eax, [ebp - 0x357]
push esi
push eax
mov byte [ebp - 0x358], 0
call fcn.004451c0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esp, 0x24
lea esi, [edi + 1]
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x358]
push eax
call ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push eax
call ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push eax
call ebx
and dword [ebp - 0x148], 0
push 0x13c
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.004451c0
push 0x456514
lea ebx, [ebp - 0x358]
call fcn.0040e714
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e3f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x567]
push ebx
push eax
mov byte [ebp - 0x568], bl
call fcn.004451c0
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x568]
push eax
push ebx
push dword [ebp - 4]
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
jmp 0x40e468
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, str._s_s
cmp byte [ebp - 0x11c], 0x2e
je 0x40e446
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push edi
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push edi
push eax
call esi
add esp, 0x20
push 1
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e3fc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e4c8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0043c63c
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x251]
push ebx
push eax
mov byte [esp + 0x258], bl
call fcn.004451c0
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x124
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.004451c0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], 0x128
mov dword [esp + 0x1c], ebx
call sub.KERNEL32.dll_Process32First
lea edi, [esi + 1]
push esi
lea eax, [esp + 0x145]
push ebx
push eax
mov byte [esp + 0x14c], bl
call fcn.004451c0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x150]
push edi
push eax
call fcn.0043c6e1
lea eax, [esp + 0x158]
push eax
call fcn.0043c63c
lea eax, [esp + 0x15c]
push eax
push dword [ebp + 8]
call fcn.0043b880
add esp, 0x24
test eax, eax
je 0x40e5d0
push dword [esp + 0x20]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
lea ecx, [esp + 0x24c]
push ecx
push ebx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x40e5d0
lea eax, [esp + 0x248]
push eax
call fcn.0043c63c
push dword [ebp + 8]
lea eax, [esp + 0x250]
push eax
call fcn.0043b880
add esp, 0xc
test eax, eax
jne 0x40e5e8
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40e53b
jmp 0x40e5f9
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [esp + 0x14], 1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e6f5
xor eax, eax
ret
and eax, 0x10
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e70b
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x40eda4
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push 2
push dword [esi + 0x264]
call fcn.0042bf14
and dword [ebp - 4], 0
add esi, 0x2c
push esi
lea ebx, [ebp - 4]
call fcn.00410719
pop ecx
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 8]
mov ebx, dword [ebp - 4]
push ebx
push str.C75A7F71_797A_11d2_8255_00A02455A490
call fcn.0041ba42
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40ee28
push ebx
call fcn.0043c0d7
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x40f219
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push edi
push edi
push edi
push edi
mov dword [0x46d4a4], eax
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1c], eax
call ebx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
mov dword [esi + 0x25c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x268], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x254], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x234], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x270], eax
mov al, byte [ebp + 0x24]
push edi
mov dword [esi + 0x258], ecx
mov dword [esi + 0x250], 0x40a654
mov byte [esi + 0x274], al
call fcn.0043bb04
pop ecx
cmp dword [ebp + 0x10], edi
jne 0x40f2a7
xor eax, eax
jmp 0x40f2b0
push dword [ebp + 0x10]
call fcn.00401b85
pop ecx
mov dword [esi + 0x238], eax
mov al, byte [ebp + 0x28]
mov byte [esi + 0x275], al
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x278], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x27c], eax
mov eax, dword [ebp + 0x34]
mov dword [esi + 0x280], eax
mov eax, dword [ebp + 0x38]
push edi
mov dword [esi + 0x284], eax
call fcn.0043bb04
pop ecx
cmp dword [ebp + 0x3c], edi
jne 0x40f2f3
xor eax, eax
jmp 0x40f2fc
push dword [ebp + 0x3c]
call fcn.00401b85
pop ecx
mov dword [esi + 0x290], eax
mov eax, dword [ebp + 0x40]
mov dword [esi + 0x298], eax
mov eax, dword [ebp + 0x44]
mov ebx, 0x1000
push ebx
mov dword [esi + 0x29c], eax
call fcn.0043b018
push ebx
push edi
push eax
mov dword [ebp + 0x24], eax
call fcn.004451c0
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov dword [esi + 0x294], eax
cmp dword [ebp + 0x14], edi
je 0x40f351
push edi
call fcn.0043bb04
push dword [ebp + 0x14]
call fcn.00401b85
pop ecx
pop ecx
mov dword [esi + 0x23c], eax
push dword [ebp + 0x18]
lea eax, [esi + 0x244]
push 0x454c5c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.0043bb04
add esp, 0x10
cmp dword [ebp + 0x1c], edi
jne 0x40f378
xor eax, eax
jmp 0x40f381
push dword [ebp + 0x1c]
call fcn.00401b85
pop ecx
mov dword [esi + 0x260], eax
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x40fffb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [ebp - 4]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1c]
pop edi
pop ebx
leave
ret 0x40
Function at 0x40f3d3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jl 0x40f49a
cmp eax, 0x22
jle 0x40f3f8
cmp eax, 0x27
jne 0x40f49a
mov eax, dword [esi]
push edi
test eax, eax
je 0x40f42d
mov edi, dword [eax + 8]
test edi, edi
jle 0x40f43c
push 0
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00446520
mov ecx, eax
mov eax, edx
mov dword [ebp - 4], eax
mov eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
push eax
push ecx
call fcn.004464b0
jmp 0x40f439
mov eax, esi
call fcn.00420ac8
call fcn.004507a0
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.004451c0
mov eax, dword [esi + 0x1c]
add esp, 0xc
pop edi
test eax, eax
jne 0x40f466
mov eax, 0x454bbf
mov esi, dword [esi + 0x14]
push eax
push dword [ebp - 4]
mov eax, esi
call fcn.0042f714
push eax
push esi
lea eax, [ebp - 0x404]
push str.__i:_s____3i_____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40f4b1
push eax
push str.Unhandled_Muppet_status_code:__i_n
call fcn.0043ca84
add eax, 0x40
push eax
call fcn.0043cfd1
add esp, 0xc
pop esi
leave
ret
Function at 0x40fc53
Capabilities:
Create directory
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov esi, str.systemcomponents2_
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.cache_
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x264]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
lea esi, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fc8e
sub eax, esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0043b706
add esp, 0xc
test eax, eax
jne 0x40fcb5
mov eax, dword [edi + 0x290]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fcbb
sub eax, edi
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0043b706
add esp, 0xc
test eax, eax
jne 0x40fce7
lea eax, [ebp - 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fcdc
sub eax, edx
add esi, eax
push 0x103
lea eax, [ebp - 0x12b]
push ebx
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 0x12c], bl
call fcn.004451c0
push esi
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
push 0x4556e4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x1c
push ebx
push 0x80
push 2
push ebx
push 1
mov edi, 0x40000000
push edi
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0xc], ebx
call esi
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x40fda8
cmp byte [ebp - 0x12c], bl
je 0x40fd7a
lea eax, [ebp - 0x12c]
mov dword [ebp + 0xc], eax
cmp byte [eax], 0x5c
jne 0x40fd72
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 0xc]
mov byte [eax], 0x5c
inc eax
mov dword [ebp + 0xc], eax
cmp byte [eax], bl
jne 0x40fd57
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x40fdcc
push ebx
push 0x80
push 2
push ebx
push 1
push edi
lea eax, [ebp - 0x12c]
push eax
call esi
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x40fdcc
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 8]
push ebx
push dword [ecx + 0x254]
lea eax, [ecx + 0x2b4]
inc dword [eax]
mov eax, dword [eax]
push 1
push dword [ecx + 0x2b0]
push eax
call dword [ecx + 0x250]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40fe1b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [esi + 0x2b4], edi
mov dword [ebp - 8], edi
cmp dword [esi + 0x2b8], edi
jbe 0x40feaa
lea eax, [esi + 0x2a4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40feb0
push edi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0043b018
pop ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push dword [ebp - 0x14]
call fcn.004112a2
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 4], 4
cmp eax, dword [esi + 0x2b8]
jb 0x40fe3f
mov al, 1
pop edi
pop ebx
leave
ret
xor al, al
jmp 0x40feac

Function at 0x40feb4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push 0x104
call fcn.0043b018
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0xc]
mov ebx, eax
push str._s_s.info
push ebx
call edi
push ebx
call fcn.0040e6f9
add esp, 0x18
test eax, eax
je 0x40ff85
push ebx
push 0
push str.files
push 0x456378
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push str._s_s.cab
push ebx
call edi
xor edi, edi
add esp, 0x10
mov byte [ebp + 0xb], 1
cmp dword [esi + 0x2b8], edi
jbe 0x40ff5a
lea eax, [esi + 0x2a4]
mov dword [ebp + 0xc], eax
cmp byte [ebp + 0xb], 0
je 0x40ff85
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
call fcn.0043d73f
pop ecx
pop ecx
test eax, eax
jne 0x40ff47
mov byte [ebp + 0xb], al
add dword [ebp + 0xc], 4
inc edi
cmp edi, dword [esi + 0x2b8]
jb 0x40ff2d
cmp byte [ebp + 0xb], 0
je 0x40ff85
mov edi, dword [ebp - 4]
test edi, edi
je 0x40ff85
push ebx
call fcn.0040e6f9
pop ecx
test eax, eax
je 0x40ff85
mov eax, dword [esi + 0x2b8]
mov dword [esi + eax*4 + 0x2a4], ebx
inc dword [esi + 0x2b8]
add dword [esi + 0x2b0], edi
cmp dword [ebp - 4], 0
pop edi
setne al
pop ebx
leave
ret 8
Function at 0x4105c5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
xor edi, edi
push edi
push dword [ebx + 0x20]
call esi
test eax, eax
jne 0x410680
mov esi, dword [ebx + 0x2a0]
push edi
call fcn.0042163b
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
mov esi, dword [ebx + 0x2a0]
lea edi, [esi + 0x4d4]
push dword [edi]
call fcn.00433545
cmp dword [esi + 0x538], 0
pop ecx
push dword [edi]
seta byte [ebp + 0xb]
call fcn.00433559
cmp byte [ebp + 0xb], 1
pop ecx
jne 0x41063a
add dword [ebp - 4], 0x64
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x64
jl 0x4105f8
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.004451c0
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x110]
push str.Slept_for__d_milliseconds_while_waiting_for_mupthread_to_shutdown_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x4106dd
fld dword [ebp + 8]
call fcn.004507d6
cmp eax, dword [0x46d49c]
jbe 0x4106b8
push dword [ebx + 0x294]
fld dword [ebp + 8]
fmul qword [0x459d10]
push dword [ebx + 0x254]
push 1
push 0x3e8
call fcn.004507d6
push eax
call dword [ebx + 0x250]
push 0xffffffffffffffff
push dword [0x46d4a4]
call esi
test eax, eax
jne 0x4106db
mov eax, dword [ebp + 0xc]
push dword [0x46d4a4]
add dword [0x46d498], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop esi
leave
ret 8

Function at 0x4106e3
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [edi], 0
je 0x41070b
push esi
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x4106f5
cmp al, 0x2f
jne 0x410704
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x4106eb
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x410719
Capabilities:
Read file on windows

Disassembly:
push edi
push 0x4568a4
push dword [esp + 0xc]
call fcn.0043ccfd
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x410737
and dword [ebx], eax
or eax, 0xffffffff
pop edi
ret
push esi
push 2
push 0
push edi
call fcn.0043d382
push edi
call fcn.0043d28a
push 0
push 0
push edi
mov esi, eax
call fcn.0043d382
lea eax, [esi + 1]
push eax
call fcn.0043b7b3
push edi
push esi
push 1
push eax
mov dword [ebx], eax
call fcn.0043cfb4
add esp, 0x30
cmp esi, eax
je 0x41077d
push dword [ebx]
call fcn.0043c0d7
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x410786
push edi
call fcn.0043d47e
pop ecx
mov eax, esi
pop esi
pop edi
ret

Function at 0x411566
Capabilities:
Hash data using rshash

Disassembly:
push esi
mov esi, eax
mov edx, 0xf8c9
xor eax, eax
jmp 0x411581
imul eax, edx
imul edx, edx, 0x5c6b7
movsx ecx, cl
add eax, ecx
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x411572
cmp dword [esp + 8], 0
pop esi
je 0x411597
xor edx, edx
div dword [esp + 4]
mov eax, edx
ret