joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c618
Capabilities:
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x1a0
push ebx
push esi
xor ebx, ebx
push str.GlobalThistle_580D1956_62F4_40D8_B3A0_E2C1B7334726
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x60], 0xf
mov dword [ebp + 0x5c], ebx
mov byte [ebp + 0x4c], bl
call fcn.00401b86
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], vtable.MutexLock.0
call fcn.00402801
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x4c]
call fcn.00401ba9
cmp dword [ebp + 4], 0x10
mov eax, dword [ebp - 0x10]
jae 0x40c671
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40c68c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c6a1
xor esi, esi
lea ecx, [ebp - 0x18]
call fcn.004027d3
mov eax, esi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
push edi
push ebx
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x48]
push eax
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.00402847
mov eax, dword [ebp + 0x70]
lea esi, [ebp - 0x138]
call fcn.00409847
mov edi, esi
call fcn.00409a58
mov esi, dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push ebx
push ebx
push ebx
mov edi, str.Installer__compatible__MSIE_6.0b__Windows_NT_5.0__.NET_CLR_1.0.2914_
push edi
call esi
push ebx
push ebx
push ebx
push ebx
push edi
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x2c], 0xf
mov dword [ebp + 0x28], ebx
mov byte [ebp + 0x18], bl
call esi
mov dword [ebp + 0x34], eax
lea eax, [ebp - 0x138]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x50]
mov edi, eax
lea esi, [ebp - 0x65]
mov dword [ebp + 0x50], vtable.._AV___Impl_no_alloc0_U___Callable_obj_V_lambda1___A0x375e7b7f___0A__tr1_std__X_tr1_std__.0
mov dword [ebp + 0x60], eax
call fcn.0040b2e4
mov esi, edi
call fcn.0040b2ca
lea eax, [ebp + 0xc]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x50]
mov edi, eax
lea esi, [ebp - 0x4d]
mov dword [ebp + 0x50], vtable.._AV___Impl_no_alloc0_U___Callable_obj_V_lambda2___A0x375e7b7f___0A__tr1_std__X_tr1_std__.0
mov dword [ebp + 0x60], eax
call fcn.0040b2e4
mov esi, edi
call fcn.0040b2ca
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call esi
pop edi
jmp 0x40c783
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jg 0x40c766
mov esi, dword [ebp - 0x2c]
cmp dword [ebp + 0x34], ebx
je 0x40c798
push dword [ebp + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp + 0x14]
call fcn.0040608f
lea eax, [ebp - 0x138]
push eax
call fcn.0040991d
push dword [ebp + 0x48]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
jmp 0x40c68e
Function at 0x40c82d
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 4]
lea ecx, [eax + 4]
push ecx
xor ecx, ecx
push ecx
push eax
push 0x407520
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x40c8b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40c94a
mov dword [ebp - 0x210], 0
jmp 0x40c8f5
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
cmp edx, dword [ebp - 0x20c]
jae 0x40c94a
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x210]
mov dx, word [ebp + edx*2 - 0x208]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x210]
movzx ecx, word [ebp + eax*2 - 0x208]
cmp ecx, 0x5c
jne 0x40c948
xor edx, edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2 + 2], dx
mov eax, 1
jmp 0x40c94c
jmp 0x40c8e6
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40d890
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 4
push 0
mov ecx, dword [ebp + 8]
call fcn.004016a6
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop ebp
ret 4

Function at 0x40d8b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 4
push 0
mov ecx, dword [ebp + 8]
call fcn.004067a0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebp
ret 4

Function at 0x42539e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44aca0]
jne 0x4253a8
repz ret
jmp fcn.00430d55

Function at 0x434d1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44aca0]
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.0042b2d6
and dword [ebp - 0x14], 0
cmp dword [0x44dc54], 0
mov dword [ebp - 0x18], eax
jne 0x434dcf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x434e77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x434e77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44dc54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44dc58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44dc5c], eax
call edi
push eax
call esi
mov dword [0x44dc64], eax
test eax, eax
je 0x434dcf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44dc60], eax
mov eax, dword [0x44dc60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x434e28
cmp dword [0x44dc64], ecx
je 0x434e28
push eax
call esi
push dword [0x44dc64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x434e28
test ebx, ebx
je 0x434e28
call edi
test eax, eax
je 0x434e1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x434e1f
test byte [ebp - 8], 1
jne 0x434e28
or dword [ebp + 0x10], 0x200000
jmp 0x434e5b
mov eax, dword [0x44dc58]
cmp eax, dword [ebp - 0x18]
je 0x434e5b
push eax
call esi
test eax, eax
je 0x434e5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x434e5b
mov eax, dword [0x44dc5c]
cmp eax, dword [ebp - 0x18]
je 0x434e5b
push eax
call esi
test eax, eax
je 0x434e5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44dc54]
call esi
test eax, eax
je 0x434e77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x434e79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042539e
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401a5e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040b883
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x401aa3
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x476610
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x476610]
xor cx, word [edx*2 + 0x476610]
inc edx
mov word [edi + edx*2 + 0x47660e], cx
cmp edx, dword [ebp + 0xc]
jl 0x401a83
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x401d81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x26
call fcn.0040cc93
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x401dc3
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x435d54
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x435d54]
xor cx, word [edx*2 + 0x435d54]
inc edx
mov word [edi + edx*2 + 0x435d52], cx
cmp edx, dword [ebp + 0xc]
jl 0x401da3
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x401dcd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x13
call fcn.0040cc93
pop ecx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jle 0x401e0b
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, 0x4404fc
mov edi, eax
sub esi, edx
sub edi, edx
mov dl, byte [esi + ecx + 0x4404fc]
xor dl, byte [ecx + 0x4404fc]
inc ecx
mov byte [edi + ecx + 0x4404fb], dl
cmp ecx, dword [ebp + 0xc]
jl 0x401def
pop edi
pop esi
mov byte [ecx + eax], 0
pop ebp
ret 8

Function at 0x401ecd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
cmp dword [0x47792c], ecx
jne 0x401f0c
push 8
mov eax, ecx
pop esi
test al, 1
je 0x401eed
shr eax, 1
xor eax, 0xedb88320
jmp 0x401eef
shr eax, 1
dec esi
jne 0x401ee0
mov dword [ecx*4 + 0x477960], eax
inc ecx
cmp ecx, 0x100
jl 0x401edb
mov dword [0x47792c], 1
mov ecx, dword [ebp + 8]
lea ecx, [edx + ecx*2]
or eax, 0xffffffff
cmp edx, ecx
jae 0x401f39
push edi
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x477960]
add edx, 2
cmp edx, ecx
jb 0x401f1a
pop edi
not eax
pop esi
pop ebp
ret 4

Function at 0x4032de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040b883
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x403320
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427cb0
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427cb0]
xor cx, word [edx*2 + 0x427cb0]
inc edx
mov word [edi + edx*2 + 0x427cae], cx
cmp edx, dword [ebp + 0xc]
jl 0x403300
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x40332a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x76
call fcn.0040b883
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40336c
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x428518
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x428518]
xor cx, word [edx*2 + 0x428518]
inc edx
mov word [edi + edx*2 + str.Hiji], cx
cmp edx, dword [ebp + 0xc]
jl 0x40334c
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x4056a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x4056cd
xor eax, eax
jmp 0x405835
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x4056fa
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4056fa
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x405835
cmp dword [edi + 0x54], 0
jne 0x405707
mov eax, ebx
jmp 0x405835
mov eax, edi
call fcn.00406c09
cmp dword [edi + 0x44], 0
jne 0x40572d
push dword [edi + 0x54]
push esi
call fcn.0040ce9a
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x405835
jmp 0x405700
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004064f0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4057da
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x405825
cmp eax, 1
jg 0x4057e2
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405789
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x4057af
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40579c
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040e5a3
add esp, 0x10
cmp esi, eax
jne 0x405825
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x405814
cmp esi, ebx
ja 0x40573b
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x405826
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00401281
jmp 0x40573b
mov edx, dword [ebp - 0x20]
jmp 0x40574d
cmp eax, 3
jne 0x405825
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040ce9a
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x405804
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004012d8
jmp 0x4056f2
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004012d8
mov ax, word [ebp + 8]
jmp 0x405835
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004012d8
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c489
leave
ret 4
Function at 0x406b11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x406bfa
cmp byte [edi + 0x4a], 0
je 0x406bfa
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x406b4f
xor al, al
jmp 0x406bfc
lea esi, [ebp - 0x20]
call fcn.004064f0
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x406b9c
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x406ba1
dec eax
je 0x406ba5
dec eax
dec eax
je 0x406bf6
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004012d8
mov al, bl
pop ebx
jmp 0x406bfc
mov edx, dword [ebp - 0x20]
jmp 0x406b66
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x406bb1
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x406bd7
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x406bc4
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040e5a3
add esp, 0x10
cmp esi, eax
jne 0x406b89
cmp byte [edi + 0x4a], 0
je 0x406bf6
test esi, esi
jne 0x406b58
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00401281
jmp 0x406b58
mov bl, 1
jmp 0x406b8b
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c489
leave
ret
Function at 0x40712f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x407165
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x40727e
push 0x42384c
push edi
call fcn.00401ce0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x4071ae
mov eax, dword [esi]
jmp 0x4071b0
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x40727e
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x4071ff
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.00401ce0
jmp 0x40727e
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x407214
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x40727e
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x423b54
push 0x40
push eax
call fcn.00407113
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.00401249
mov edi, dword [ebp - 0x4bc]
call fcn.00401d32
push ebx
push 1
mov ecx, esi
call fcn.004013ba
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040c489
leave
ret 4

Function at 0x407291
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040b883
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x4072d3
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427578
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427578]
xor cx, word [edx*2 + 0x427578]
inc edx
mov word [edi + edx*2 + 0x427576], cx
cmp edx, dword [ebp + 0xc]
jl 0x4072b3
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x407f47
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407f62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407f62
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x407f65
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040ed6f
push eax
call fcn.0040ed3c
pop ecx
pop ecx
call fcn.0040ed4e
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407fbf
mov eax, dword [esi]
jmp 0x407fc1
mov eax, esi
push dword [ebp - 0x22c]
push eax
push 6
push 0x4271a8
call fcn.00407291
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.00401249
mov esi, eax
call fcn.00401d32
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.004013ba
cmp dword [edi + 0x14], 8
jb 0x408017
mov eax, dword [edi]
jmp 0x408019
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40803d
shr eax, 4
and al, 1
je 0x40803d
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407fb5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040c489
leave
ret
Function at 0x40804d
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4dc], ecx
call fcn.00402233
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x40808d
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4d8], eax
cmp eax, 0xffffffff
jne 0x4080ca
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.004013ba
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040c489
leave
ret 4
push 0x423844
lea esi, [ebp - 0x284]
call fcn.00401249
push 0x423848
lea esi, [ebp - 0x268]
call fcn.00401249
mov ebx, 0x435d44
test byte [ebp - 0x4d4], 0x10
je 0x40814e
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x284]
call fcn.00406f16
test eax, eax
je 0x4081d3
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x268]
call fcn.00406f16
test eax, eax
je 0x4081d3
lea eax, [ebp - 0x4a8]
push eax
lea esi, [ebp - 0x230]
call fcn.00401249
mov ecx, dword [ebp - 0x4dc]
mov eax, esi
push eax
call fcn.0040804d
jmp 0x4081c4
cmp dword [edi + 0x14], 8
jb 0x408158
mov eax, dword [edi]
jmp 0x40815a
mov eax, edi
lea ecx, [ebp - 0x4a8]
push ecx
push eax
push 5
push 0x4271b4
call fcn.00407291
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.00401249
cmp dword [ebp - 0x21c], 8
mov esi, dword [ebp - 0x230]
jae 0x4081a6
lea esi, [ebp - 0x230]
push 0xb
push 0x42850c
call fcn.00401dcd
push eax
push 8
push ebx
call fcn.00401d81
push eax
call fcn.00401e13
push esi
call eax
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.004013ba
lea eax, [ebp - 0x4d4]
push eax
push dword [ebp - 0x4d8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4080ef
push 9
push 0x42842c
call fcn.00401dcd
push eax
push 8
push ebx
call fcn.00401d81
push eax
call fcn.00401e13
push dword [ebp - 0x4d8]
call eax
cmp dword [edi + 0x14], 8
jb 0x408219
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.004013ba
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.004013ba
mov bl, 1
jmp 0x4080a8
Function at 0x409a49
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x409a54
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x409b08
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
add ecx, 8
sub edi, 8
dec esi
jne 0x409a6b
pop ebx
test edi, edi
je 0x409b21
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x4233f0]
inc ecx
dec edi
jne 0x409b0c
pop esi
not eax
pop edi
ret

Function at 0x409b26
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4233f0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4233f0]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x40a189
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40a1b9
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a1b4
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x40a1e1
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40a1ca
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040f230
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret 0xc