joyce8/EMBER2024-capa huggingface dataset:
Function at 0x548610
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x548646
push str.Couldnt_set_desired_mode
push ebx
call fcn.00530250
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x54865d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.005301c0
add esp, 0xc
cmp ebp, 0x13
jne 0x548671
push edi
call fcn.005485a0
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x548685
push edi
call fcn.00545a20
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x548697
mov eax, edi
call fcn.005485f0
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x5486a5
mov eax, edi
call fcn.00548600
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x54f820
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5c0db0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005200e1
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x54f885
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x54f885
lea edx, [esp]
push edx
call dword [0x5c22a0]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005087f8
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.005087f8
add esp, 0x108
ret
jmp 0x54f820

Function at 0x54f8a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5c0db0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005200e1
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x54f885
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x54f885
lea edx, [esp]
push edx
call dword [0x5c22a0]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005087f8
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.005087f8
add esp, 0x108
ret
jmp 0x54f820
Function at 0x554760
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [eax + 0x2c]
mov ebx, dword [ebp]
mov ecx, dword [ebx + 0x1ec]
push esi
push edi
mov esi, ecx
test ecx, ecx
jne 0x55477d
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0052fc10
push edx
push eax
call fcn.0052fc40
mov ecx, eax
mov eax, edx
mov dword [esp + 0x24], eax
mov eax, esi
cdq
add esp, 0x10
mov edi, eax
sub edi, ecx
mov ecx, dword [esp + 0x14]
mov esi, edx
sbb esi, ecx
cmp dword [ebx + 0x1e0], 0
je 0x5547ea
mov edx, dword [ebp + 0x184]
mov eax, dword [ebp + 0x180]
push edx
push eax
call fcn.0052fc10
push edx
push eax
call fcn.0052fc40
mov ecx, eax
mov eax, dword [ebx + 0x1e0]
mov ebp, edx
cdq
add esp, 0x10
sub eax, ecx
sbb edx, ebp
cmp esi, edx
jl 0x5547ea
jg 0x5547ee
cmp edi, eax
jae 0x5547ee
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x555ad0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x555b02
push 0x2e
push esi
call fcn.00515550
add esp, 8
test eax, eax
je 0x555b00
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x555be0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x5c0db0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x555c8a
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.00555b50
mov ecx, esi
push 8
push ecx
call fcn.0055ac40
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x555c9c
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005087f8
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.005087f8
add esp, 0x24
ret
Function at 0x555e20
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x555e30
sub eax, edx
mov esi, eax
lea ebp, [esi + esi]
push ebp
call dword [0x5c2294]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x555e59
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
add esp, 0xc
ret
mov ecx, ebx
call fcn.00555df0
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x555edf
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x555ed2
mov eax, dword [esp + 0x10]
push 0
push ebp
push ebx
push eax
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x5c2298]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x558650
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x558672
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x558666
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x5586a2
cmp dword [esi + 8], 0
jne 0x558695
mov ecx, dword [eax + 8]
push 0x56e9c4
push ecx
call fcn.00509aeb
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x558695
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0050a994
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5586c4
mov eax, dword [esi + 8]
test eax, eax
je 0x5586be
push eax
call fcn.0050996f
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x55b8b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x5c2294]
mov edi, eax
add esp, 4
test edi, edi
jne 0x55b8d5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x55b91c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x55b920
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x55b97e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x55b943
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x55b9c1
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x59ff45
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x59ff46
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x55b990
mov eax, edi
pop edi
pop esi
pop ecx
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x55bbaa
call fcn.0050c773
mov dword [eax], esi
call fcn.0050c760
push 0x16
pop esi
mov dword [eax], esi
call fcn.00510a98
mov eax, esi
jmp 0x55bbff
test dword [ebp + 0xc], 0xfffffff9
jne 0x55bb90
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x55bbd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050c786
pop ecx
call fcn.0050c760
mov eax, dword [eax]
jmp 0x55bbff
test al, 0x10
jne 0x55bbfd
test al, 1
je 0x55bbfd
test byte [ebp + 0xc], 2
je 0x55bbfd
call fcn.0050c773
mov dword [eax], 5
call fcn.0050c760
mov dword [eax], 0xd
jmp 0x55bbce
xor eax, eax
pop esi
pop ebp
ret
Function at 0x405ae0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401646
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x28
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401348
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
lea eax, [ebp - 0x24]
push eax
push 0x40390c
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x80000002
call fcn.00403478
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
add eax, 5
jo 0x405c49
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 1
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.004034c0
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00403430
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
push 0x405c36
jmp 0x405c35
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
int3
Function at 0x406890
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42b79b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404b6c
call fcn.004074f1
push 4
mov dword [esp + 0x18], 0
call fcn.0040842a
mov edi, eax
add esp, 4
test edi, edi
je 0x406904
push ebx
call fcn.004073c9
mov dword [edi], eax
call fcn.00407188
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004074b2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4068f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004074da
pop ebx
jmp 0x406906
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408ea1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f520]
jne 0x408eab
repz ret
jmp fcn.0040d4dc
Function at 0x411f1f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f520]
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.0040b699
and dword [ebp - 0x14], 0
cmp dword [0x434a94], 0
mov dword [ebp - 0x18], eax
jne 0x411fd2
push 0x403a84
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41207a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403a78
push ebx
call edi
test eax, eax
je 0x41207a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403a68
push ebx
mov dword [0x434a94], eax
call edi
push eax
call esi
push 0x403a54
push ebx
mov dword [0x434a98], eax
call edi
push eax
call esi
push 0x403a38
push ebx
mov dword [0x434a9c], eax
call edi
push eax
call esi
mov dword [0x434aa4], eax
test eax, eax
je 0x411fd2
push 0x403a20
push ebx
call edi
push eax
call esi
mov dword [0x434aa0], eax
mov eax, dword [0x434aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41202b
cmp dword [0x434aa4], ecx
je 0x41202b
push eax
call esi
push dword [0x434aa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41202b
test ebx, ebx
je 0x41202b
call edi
test eax, eax
je 0x412022
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412022
test byte [ebp - 8], 1
jne 0x41202b
or dword [ebp + 0x10], 0x200000
jmp 0x41205e
mov eax, dword [0x434a98]
cmp eax, dword [ebp - 0x18]
je 0x41205e
push eax
call esi
test eax, eax
je 0x41205e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41205e
mov eax, dword [0x434a9c]
cmp eax, dword [ebp - 0x18]
je 0x41205e
push eax
call esi
test eax, eax
je 0x41205e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x434a94]
call esi
test eax, eax
je 0x41207a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41207c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408ea1
leave
ret
Function at 0x4293f0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0x7b8834], 0x37
jne 0x429489
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x4042a4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x7b9828]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x439884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x429700
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b8834]
sub esp, 0x684
push ebx
push ebp
push esi
mov esi, dword [0x439884]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x4298ff
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x429736
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7b8834], 0x1c
jne 0x42974d
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x430700]
mov ebx, dword [0x430708]
mov ebp, dword [0x43070c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x430704]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x429796
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7b87a4], edi
mov eax, dword [esp + 0x1c]
add dword [0x7b87a4], eax
mov eax, dword [0x7b87a4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0x7b8834], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x42982d
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x7b8834], 0x979
mov dword [0x7b87a8], 0xff6b3619
mov dword [0x7b87ac], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x429877
push 0
lea ecx, [esp + 0x294]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0x7b8834]
cmp eax, 0x93
je 0x42989d
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x429790
cmp eax, 0x8d4
jne 0x4298b4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0x7b8834], 0x17
jne 0x4298ee
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x40]
push edx
push 0x404250
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x429730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x684
ret
Function at 0x401d40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x41658c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.VirtualAlloc
push eax
call dword [0x406050]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov ebx, dword [0x40604c]
mov esi, dword [0x406068]
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x24], edx
xor edx, edx
mov dx, word [eax + 0x14]
mov dword [ebp - 0x20], 0
lea edi, [edx + eax + 0x18]
mov dword [ebp - 0x18], edi
mov eax, dword [ecx]
xor ecx, ecx
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jge 0x401f1d
push 0x4164b8
call ebx
push 0x4164b8
call ebx
mov eax, dword [edi + 0x10]
push 0x4164b8
test eax, eax
jne 0x401e4c
call ebx
push 0x4164b8
call ebx
mov edx, dword [ebp + 0xc]
push 0x4164b8
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x1c], eax
call ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x401e40
push 0x4164b8
call ebx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edi + 0xc]
push 4
push 0x1000
push ecx
mov ecx, dword [ebp - 0x24]
add edx, ecx
push edx
call dword [ebp - 0x28]
push 0xa
mov dword [ebp - 0x14], eax
call esi
push 0xa
call esi
mov eax, dword [ebp - 0x14]
push 0x4164b8
mov dword [edi + 8], eax
call ebx
push 0xa
call esi
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x18]
push 0x4164b8
call ebx
jmp 0x401f08
call ebx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
push 4
push 0x1000
push eax
mov eax, dword [ebp - 0x24]
add ecx, eax
push ecx
call dword [ebp - 0x28]
push 0xa
mov dword [ebp - 0x14], eax
call esi
push 0xa
call esi
lea edx, [ebp - 0x2c]
push 0x406c90
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0x3a
call fcn.00404f8a
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, ecx
add esi, edi
mov edi, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x401eb1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x20]
inc ecx
add edi, 0x28
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
jmp 0x401da0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f30
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x406068]
push edi
push 0xa
call esi
mov ebx, dword [esp + 0x18]
xor ecx, ecx
push 0xa
mov eax, dword [ebx]
mov cx, word [eax + 0x14]
lea edi, [ecx + eax + 0x18]
call esi
mov ebx, dword [ebx]
xor ebp, ebp
cmp word [ebx + 6], bp
jbe 0x401ff7
add edi, 0x24
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401f97
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [0x416588]
jmp 0x401fdf
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x415a78]
je 0x401fb1
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401fcc
test al, 0x40
je 0x401fc3
mov ecx, dword [ebx + 0x20]
jmp 0x401fca
test al, 0x80
je 0x401fdf
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401fdf
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [0x416584]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x401f64
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret