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

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405f11
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058f7
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a30
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a0f20], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a0f20
je 0x40593b
push 1
push 0
push esi
call fcn.0040585c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a36
cmp eax, edi
jg 0x405a36
mov esi, 0x7a0998
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a36
cmp eax, edi
jg 0x405a36
push esi
push ebp
push str._s_s_r_n
push 0x7a0598
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a2790]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405ba7
push 4
push 0xc0000000
push esi
call fcn.0040585c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a30
push 0
push ebp
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
test esi, esi
je 0x405a29
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a29
cmp edi, dword [esp + 0x18]
jne 0x405a29
push str._Rename__r_n
push esi
call fcn.004057d1
test eax, eax
jne 0x405a3d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b85
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a0598
push eax
call fcn.0040581d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2810]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409404
push eax
call fcn.004057d1
test eax, eax
je 0x4059f4
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a64
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a59
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059f6
Function at 0x405a6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405add
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405acc
cmp dword [ebp + 0x14], 1
je 0x405ace
cmp dword [ebp + 0x14], 2
je 0x405ace
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405ea7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ecb
xor eax, eax
test eax, eax
je 0x405edd
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405edd
xor ecx, ecx
jmp 0x405ee0
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

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

Disassembly:
cmp dword [0x7a1324], 0
push esi
jne 0x405fb7
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f91
mov dword [ecx*4 + 0x7a1320], eax
inc ecx
cmp ecx, 0x100
jl 0x405f8c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fe8
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1320]
xor eax, esi
inc ecx
dec edx
jne 0x405fca
pop edi
not eax
pop esi
ret 0xc
Function at 0x4011c0
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0c32
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0x9c], eax
lea ecx, [eax + 0xf]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0x3e000000
mov dword [ebp - 0x60], 0x3f000000
mov dword [ebp - 0x5c], 0x37363534
mov dword [ebp - 0x58], 0x3b3a3938
mov dword [ebp - 0x54], 0x3d3c
mov dword [ebp - 0x50], eax
lea edx, [eax + 1]
mov dword [ebp - 0x4c], 0x2010000
mov dword [ebp - 0x48], 0x6050403
mov dword [ebp - 0x44], 0xa090807
mov dword [ebp - 0x40], 0xe0d0c0b
mov dword [ebp - 0x3c], 0x1211100f
mov dword [ebp - 0x38], 0x16151413
mov dword [ebp - 0x34], 0x191817
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x1c1b1a00
mov dword [ebp - 0x28], 0x201f1e1d
mov dword [ebp - 0x24], 0x24232221
mov dword [ebp - 0x20], 0x28272625
mov dword [ebp - 0x1c], 0x2c2b2a29
mov dword [ebp - 0x18], 0x302f2e2d
mov word [ebp - 0x14], 0x3231
mov byte [ebp - 0x12], 0x33
mov byte [esi], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x90], eax
cmp dword [ebp + 8], eax
jle 0x4013be
mov al, byte [edi]
cmp al, 0xd
je 0x4013a7
cmp al, 0xa
je 0x4013a7
cmp al, 0x20
je 0x4013a7
cmp al, 9
je 0x4013a7
movsx ecx, al
movsx eax, byte [edi + edx]
movsx ebx, byte [ebp + ecx - 0x8c]
movsx ecx, byte [ebp + eax - 0x8c]
add edi, edx
shl ebx, 0x12
shl ecx, 0xc
add ebx, ecx
mov dword [ebp - 0x98], ebx
sar ebx, 0x10
add edi, edx
call fcn.00401e10
mov eax, dword [ebp - 0x94]
inc dword [eax]
mov al, byte [edi]
cmp al, 0x3d
je 0x401399
mov ebx, dword [ebp - 0x98]
movsx edx, al
movsx eax, byte [ebp + edx - 0x8c]
shl eax, 6
add ebx, eax
mov dword [ebp - 0x98], ebx
sar ebx, 8
inc edi
call fcn.00401e10
mov eax, dword [ebp - 0x94]
inc dword [eax]
mov al, byte [edi]
cmp al, 0x3d
je 0x401399
mov ebx, dword [ebp - 0x98]
movsx ecx, al
movsx edx, byte [ebp + ecx - 0x8c]
add ebx, edx
inc edi
call fcn.00401e10
mov eax, dword [ebp - 0x94]
inc dword [eax]
add dword [ebp - 0x90], 4
mov edx, 1
jmp 0x4013af
add edi, edx
add dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp + 8]
jl 0x4012e4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret 8
Function at 0x401ff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f29b6
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov edi, edx
cmp dword [esi + 0x10], ebx
je 0x402172
cmp dword [esi + 0x14], 8
jb 0x402037
mov eax, dword [esi]
jmp 0x402039
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402172
push 0x18
push str.UmVnc3ZyMzIgL3MgIiVzIg
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00408040
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x402077
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x154]
push eax
push edx
lea edx, [ebp - 0x48]
call fcn.004011c0
mov byte [ebp - 4], 1
mov eax, dword [0x54bf28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf28
call edx
add eax, 0x10
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x4020b5
lea eax, [ebp - 0x48]
push 3
push eax
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x14c]
push edx
mov dword [ebp - 0x150], ecx
call fcn.00404f40
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x4020dc
mov esi, dword [esi]
mov eax, dword [ebp - 0x150]
push esi
push eax
lea edi, [ebp - 0x154]
call fcn.00407fa0
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
add esp, 8
cmp eax, ecx
je 0x40210b
push eax
call fcn.004bcb59
add esp, 4
mov esi, dword [ebp - 0x154]
push esi
call fcn.00402350
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40213a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x34], ebx
jb 0x40214b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x40216e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
mov al, 1
jmp 0x402182
push 7
push 0x511210
mov ecx, edi
call fcn.00408810
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x4021a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2966
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov edi, edx
cmp dword [esi + 0x10], ebx
je 0x402322
cmp dword [esi + 0x14], 8
jb 0x4021e7
mov eax, dword [esi]
jmp 0x4021e9
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402322
push 0x1c
push str.UmVnc3ZyMzIgL3UgL3MgIiVzIg
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00408040
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x402227
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x154]
push eax
push edx
lea edx, [ebp - 0x48]
call fcn.004011c0
mov byte [ebp - 4], 1
mov eax, dword [0x54bf28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf28
call edx
add eax, 0x10
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x402265
lea eax, [ebp - 0x48]
push 3
push eax
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x14c]
push edx
mov dword [ebp - 0x150], ecx
call fcn.00404f40
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x40228c
mov esi, dword [esi]
mov eax, dword [ebp - 0x150]
push esi
push eax
lea edi, [ebp - 0x154]
call fcn.00407fa0
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
add esp, 8
cmp eax, ecx
je 0x4022bb
push eax
call fcn.004bcb59
add esp, 4
mov esi, dword [ebp - 0x154]
push esi
call fcn.00402350
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4022ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x34], ebx
jb 0x4022fb
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x40231e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
mov al, 1
jmp 0x402332
push 7
push 0x511210
mov ecx, edi
call fcn.00408810
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x402350
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor ecx, ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x5c]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
push ecx
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp + 8]
push ecx
push 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40239d
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7530
push edx
xor esi, esi
call edi
test eax, eax
je 0x4023c9
inc esi
cmp esi, 5
je 0x4023c9
mov eax, dword [ebp - 0x14]
push 0x7530
push eax
call edi
test eax, eax
jne 0x4023b4
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call esi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4023f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.004c3610
add esp, 0xc
cmp byte [ebp + 8], 0
push 0x104
je 0x402444
lea edx, [ebp - 0x20c]
push edx
push str._ProgramW6432_
jmp 0x402450
lea eax, [ebp - 0x20c]
push eax
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402472
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00408810
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret

Function at 0x4024a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4024d6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004c3610
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402532
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea edx, [ebp - 0x20c]
push edx
push ebx
call fcn.004bc356
add esp, 8
test eax, eax
je 0x40254b
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x402510
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
xor ecx, ebp
pop esi
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x402580
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.004c3610
add esp, 0xc
push esi
lea edx, [ebp - 0x41c]
push 0x51129c
push edx
call fcn.004bc3e1
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402715
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.004c3610
add esp, 0xc
lea ecx, [ebp - 0x66c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40270e
mov edi, edi
mov ecx, 0x5118cc
lea eax, [ebp - 0x640]
jmp 0x402630
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402656
test dx, dx
je 0x402652
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402656
add eax, 4
add ecx, 4
test dx, dx
jne 0x402630
xor eax, eax
jmp 0x40265b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4026f8
mov ecx, 0x5112a8
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402696
test dx, dx
je 0x402692
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402696
add eax, 4
add ecx, 4
test dx, dx
jne 0x402670
xor eax, eax
jmp 0x40269b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4026f8
push 0x104
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.004c3610
add esp, 0xc
lea eax, [ebp - 0x640]
push eax
push esi
lea ecx, [ebp - 0x214]
push 0x5112b0
push ecx
call fcn.004bc3e1
add esp, 0x10
test byte [ebp - 0x66c], 0x10
je 0x4026eb
lea edx, [ebp - 0x214]
push edx
call fcn.00402580
add esp, 4
jmp 0x4026f8
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x66c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402620
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Hash data with md5
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2910
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x402789
mov eax, dword [eax]
push 0x5112bc
push eax
call fcn.004bc673
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4027d0
push 0x5112c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x2c]
mov byte [esi], 0
call fcn.004015f0
cmp dword [ebp - 0x18], 0x10
jb 0x4028c0
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x4028b8
push 0x100000
mov byte [ebp - 0xb4], 0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.004bc710
push edi
mov ebx, eax
call fcn.004bc7a4
add esp, 8
test eax, eax
jne 0x402840
push edi
push 0x100000
push 1
push ebx
call fcn.004bca5b
add esp, 0x10
test eax, eax
je 0x402840
push ebx
lea esi, [ebp - 0xb4]
call fcn.004303a0
push edi
call fcn.004bc7a4
add esp, 4
test eax, eax
je 0x402812
push edi
call fcn.004bcae5
push ebx
call fcn.004bcb59
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.00430460
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0xb4]
call fcn.004305f0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004015f0
mov ebx, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x402890
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
mov esi, dword [ebp - 0xb8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
lea edi, [ebp - 0x2c]
mov byte [esi], 0
call fcn.004015f0
cmp dword [ebp - 0x18], ebx
jb 0x4028c0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x402910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
push edi
mov ebx, eax
jb 0x402927
mov eax, dword [esi]
jmp 0x402929
mov eax, esi
push 0x5112bc
push eax
call fcn.004bc673
mov edi, eax
add esp, 8
test edi, edi
jne 0x40297f
mov ecx, dword [ebp + 0xc]
push 8
push 0x5112e8
call fcn.00408810
cmp dword [esi + 0x14], 8
jb 0x402954
mov esi, dword [esi]
push esi
push str.UncmpZipFile
push str.PublicCommonCommonFun.cpp
mov edx, 0xb6
mov esi, 2
mov eax, 0x54fee0
call fcn.0042c610
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.004bca5b
push edi
call fcn.004bcae5
mov ecx, dword [ebp + 0x10]
add esp, 0x14
cmp dword [ecx], 0
jne 0x402a94
mov ax, word [ebp - 4]
cmp al, 0x37
jne 0x4029bd
cmp ah, 0x7a
jne 0x4029ca
mov ecx, 8
cmp dword [ebx + 0x14], ecx
jb 0x4029e2
mov eax, dword [ebx]
jmp 0x4029e4
cmp al, 0x50
jne 0x4029ca
cmp ah, 0x4b
je 0x402a53
mov ecx, dword [ebp + 0xc]
push 8
push str._rN_e
call fcn.00408810
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
cmp dword [esi + 0x14], ecx
jb 0x4029ed
mov edx, dword [esi]
jmp 0x4029ef
mov edx, esi
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.0046c0b0
add esp, 8
test al, al
jne 0x402a94
push edi
mov edx, 0x511380
call fcn.00408960
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x402a20
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x402a27
mov esi, dword [esi]
push ebx
push esi
push 0x511398
push str.PublicCommonCommonFun.cpp
mov edx, 0xc9
mov esi, 2
mov eax, 0x54fee0
call fcn.0042c610
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x402a5f
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x402a66
mov esi, dword [esi]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax]
push ebx
push esi
call fcn.0044d240
add esp, 0xc
test al, al
jne 0x402a94
mov edx, dword [ebp + 0xc]
push edx
mov edx, 0x5113d8
call fcn.00408960
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret