joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405928
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424eb8
push esi
call fcn.00405dd5
push esi
call fcn.004058cb
mov edi, eax
test edi, edi
jne 0x405949
xor eax, eax
jmp 0x4059a1
push edi
call fcn.00406069
test byte [0x4291d8], 0x80
je 0x405966
mov ax, word [edi]
test ax, ax
je 0x405945
cmp ax, 0x5c
je 0x405945
sub edi, esi
sar edi, 1
jmp 0x405980
call fcn.00406118
test eax, eax
je 0x40597a
test byte [eax], 0x10
je 0x405945
push esi
call fcn.0040586c
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40596c
call fcn.00405820
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405a1c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a3b
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405a41
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409528]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40952c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ac0
test edi, edi
jne 0x405a7d
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405aba
Function at 0x405af3
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x425d50
push 0x40954c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405b42
push 1
push 0
push esi
call fcn.00405a41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405c69
cmp eax, edi
jg 0x405c69
mov esi, 0x426550
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405c69
cmp eax, edi
jg 0x405c69
push esi
push ebx
push str._ls_ls_r_n
push 0x425950
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4291d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405df7
push 4
push 0xc0000000
push esi
call fcn.00405a41
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405c69
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 0x405c62
push edi
push esi
push ebp
call fcn.00405ac4
test eax, eax
je 0x405c62
push str._Rename__r_n
push esi
call fcn.004059a6
test eax, eax
jne 0x405bf8
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405c2d
add eax, 0xa
push 0x409530
push eax
call fcn.004059a6
mov ebp, eax
test ebp, ebp
je 0x405c29
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405c1a
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405c14
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405c2f
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x425950
push eax
call fcn.004059fc
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
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]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405ca2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405d16
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405d03
cmp dword [ebp + 0x14], 1
je 0x405d06
cmp dword [ebp + 0x14], 2
je 0x405d06
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4061ed
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d54], 0
push esi
jne 0x406224
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 0x4061fe
mov dword [ecx*4 + 0x426d50], eax
inc ecx
cmp ecx, 0x100
jl 0x4061f9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406255
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 + 0x426d50]
xor eax, esi
inc ecx
dec edx
jne 0x406237
pop edi
not eax
pop esi
ret 0xc
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b008]
jne 0x40100a
repz ret
jmp fcn.00401a7b

Function at 0x40613a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040350a
and dword [ebp - 4], 0
cmp dword [0x43d55c], 0
mov ebx, eax
jne 0x4061eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40629c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40629c
push eax
call fcn.00403498
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43d55c], eax
call esi
push eax
call fcn.00403498
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43d560], eax
call esi
push eax
call fcn.00403498
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43d564], eax
call esi
push eax
call fcn.00403498
pop ecx
mov dword [0x43d56c], eax
test eax, eax
je 0x4061eb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403498
pop ecx
mov dword [0x43d568], eax
mov eax, dword [0x43d568]
cmp eax, ebx
je 0x406243
cmp dword [0x43d56c], ebx
je 0x406243
push eax
call fcn.00403513
push dword [0x43d56c]
mov esi, eax
call fcn.00403513
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406243
test edi, edi
je 0x406243
call esi
test eax, eax
je 0x40623a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40623a
test byte [ebp - 0xc], 1
jne 0x406243
or dword [ebp + 0x10], 0x200000
jmp 0x40627c
mov eax, dword [0x43d560]
cmp eax, ebx
je 0x40627c
push eax
call fcn.00403513
pop ecx
test eax, eax
je 0x40627c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40627c
mov eax, dword [0x43d564]
cmp eax, ebx
je 0x40627c
push eax
call fcn.00403513
pop ecx
test eax, eax
je 0x40627c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43d55c]
call fcn.00403513
pop ecx
test eax, eax
je 0x40629c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40629e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436c80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x43b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x80c], eax
cmp esi, 0x182
jne 0x436cba
lea ecx, [ebp - 0x82c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x436cca
cmp esi, 0x19f
jne 0x436cca
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor edi, edi
test esi, esi
jle 0x436d75
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
jmp 0x436ce0
lea esi, [ebp - 0x808]
mov dword [ebp - 0x808], 0
call fcn.00436c70
mov dl, byte [ebp - 0x808]
mov eax, dword [ebp - 0x80c]
mov esi, dword [ebp + 0xc]
xor byte [eax + edi], dl
cmp esi, 0xf
jne 0x436d6b
push 0
push 0
call ebx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.fakelukeposogizomuzofoco
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push str.tazofonodeponevizeroxisewotuk
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupRead]
inc edi
cmp edi, esi
jl 0x436ce0
pop ebx
pop edi
cmp esi, 0x2d
pop esi
jne 0x436d90
mov dword [0x533248], 0xa62e7790
mov dword [0x53324c], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x436da0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x43b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x533114]
push esi
push edi
mov edi, dword [0x532f5c]
mov esi, eax
cmp eax, 0x5dd
jne 0x436ddd
push 0
lea eax, [ebp - 0x404]
push eax
push str.tiwugowe
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x43c300]
call fcn.00436c40
cmp dword [0x533114], 0x2f
jne 0x436df8
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
push edi
call fcn.00436c80
add esp, 8
cmp dword [0x533114], 0x568
pop edi
pop esi
jne 0x436e2b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [ebp - 0x408]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x454e5be3
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5dc32b9a
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4015a0
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ecx, 7
jl 0x40167c
xor edi, edi
mov dword [0x410c24], 0
mov dword [0x410c20], 1
test ecx, ecx
jle 0x401731
lea esp, [esp]
mov edx, dword [ebx + edi*4]
mov ecx, 0x40de24
mov eax, edx
lea ebx, [ebx]
mov si, word [eax]
cmp si, word [ecx]
jne 0x401626
test si, si
je 0x401622
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x401626
add eax, 4
add ecx, 4
test si, si
jne 0x401600
xor eax, eax
jmp 0x40162b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401690
mov esi, dword [ebx + edi*4 + 4]
inc edi
mov edx, 0x104
mov ecx, 0x410c28
xor ebx, ebx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x401660
movzx eax, word [esi]
test ax, ax
je 0x401660
mov word [ecx], ax
add ecx, 2
add esi, 2
dec edx
jne 0x401640
jmp 0x401664
test edx, edx
jne 0x40166c
sub ecx, 2
mov ebx, 0x8007007a
xor eax, eax
test ebx, ebx
mov ebx, dword [ebp - 8]
mov word [ecx], ax
jns 0x401727
test ebx, ebx
je 0x401687
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x40de2c
mov eax, edx
mov si, word [eax]
cmp si, word [ecx]
jne 0x4016bd
test si, si
je 0x4016b9
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x4016bd
add eax, 4
add ecx, 4
test si, si
jne 0x401697
xor eax, eax
jmp 0x4016c2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4016dc
push 0xa
inc edi
push eax
push dword [ebx + edi*4]
call fcn.00402081
movzx eax, ax
mov dword [0x410c24], eax
jmp 0x401724
mov eax, 0x40de34
mov cx, word [edx]
cmp cx, word [eax]
jne 0x401707
test cx, cx
je 0x401703
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x401707
add edx, 4
add eax, 4
test cx, cx
jne 0x4016e1
xor eax, eax
jmp 0x40170c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401727
push 0xa
inc edi
push eax
push dword [ebx + edi*4]
call fcn.00402081
movzx eax, ax
mov dword [0x410c20], eax
add esp, 0xc
inc edi
cmp edi, dword [ebp - 4]
jl 0x4015f0
test ebx, ebx
je 0x40173c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x410c28
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x401960
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x40f050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x410c20], 0
push ebx
push esi
push edi
jne 0x401995
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401e96
mov esp, ebp
pop ebp
ret
push 0x410c28
push str._s.
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00401080
add esp, 0x10
test eax, eax
jns 0x4019ca
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401e96
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019b7
test byte [ebp - 0x460], 0x10
je 0x401a9a
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ecx]
mov ecx, 0x40de48
lea eax, [ebp - 0x434]
jmp 0x401a10
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401a36
test dx, dx
je 0x401a32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401a36
add eax, 4
add ecx, 4
test dx, dx
jne 0x401a10
xor eax, eax
jmp 0x401a3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401a7f
mov eax, 0x40de4c
lea ecx, [ebp - 0x434]
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401a76
test dx, dx
je 0x401a72
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401a76
add ecx, 4
add eax, 4
test dx, dx
jne 0x401a50
xor eax, eax
jmp 0x401a7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401a9a
lea eax, [ebp - 0x460]
push eax
push esi
call edi
test eax, eax
je 0x401a9c
test byte [ebp - 0x460], 0x10
jne 0x401a00
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00401e96
mov esp, ebp
pop ebp
ret
Function at 0x40648a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004035d5
mov dword [ebp - 0x14], eax
cmp dword [0x410bf0], edi
jne 0x40657b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x406508
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40665b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40665b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40665b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x410bf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x410bf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x410bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x410c00], eax
test eax, eax
je 0x406578
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x410bfc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4065a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406593
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4065b5
push 4
pop eax
jmp 0x40665d
cmp dword [ebp - 0x14], edi
je 0x4065b5
push dword [0x410bf0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40659a
mov eax, dword [0x410bfc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x406613
cmp dword [0x410c00], esi
je 0x406613
push eax
call ebx
push dword [0x410c00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x406613
test eax, eax
je 0x406613
call ecx
test eax, eax
je 0x406608
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x406608
test byte [ebp - 8], 1
jne 0x406613
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x406643
mov eax, dword [0x410bf4]
cmp eax, esi
je 0x406640
push eax
call ebx
test eax, eax
je 0x406640
call eax
mov edi, eax
test edi, edi
je 0x406640
mov eax, dword [0x410bf8]
cmp eax, esi
je 0x406640
push eax
call ebx
test eax, eax
je 0x406640
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x410bf0]
call ebx
test eax, eax
je 0x40665b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40665d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e96
leave
ret
Function at 0x402c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74c
mov eax, dword [0x46ae20]
xor eax, ebp
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x74c], ecx
cmp dword [ebp + 8], 0
jne 0x402c49
xor eax, eax
jmp 0x402e85
cmp dword [ebp + 0xc], 0
jne 0x402c56
xor eax, eax
jmp 0x402e85
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x744], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x331]
push edx
call fcn.00438a1e
add esp, 0x10
mov eax, dword [ebp - 0x74c]
add eax, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0x33c], 0
push 0x200
push 0
lea ecx, [ebp - 0x330]
push ecx
call fcn.00437e00
add esp, 0xc
mov edx, dword [ebp - 0x74c]
add edx, 0x10
push edx
call fcn.00438500
add esp, 4
push eax
mov eax, dword [ebp - 0x74c]
add eax, 0x10
push eax
lea ecx, [ebp - 0x330]
push ecx
call fcn.00437e80
add esp, 0xc
push 0x100
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.004019f0
add esp, 0xc
mov cl, byte [ebp + 0x14]
mov byte [ebp - 5], cl
mov dword [ebp - 0x338], 0
jmp 0x402d0a
mov edx, dword [ebp - 0x338]
add edx, 0x10
mov dword [ebp - 0x338], edx
mov eax, dword [ebp - 0x338]
cmp eax, dword [ebp - 0x744]
jge 0x402e04
mov ecx, dword [ebp + 8]
push ecx
push 0x10
push 1
lea edx, [ebp - 0x740]
push edx
call fcn.00438a1e
add esp, 0x10
cmp eax, 0x10
je 0x402d7f
push 0
push str.Error__
push str.fread_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x400
push 0
lea eax, [ebp - 0x740]
push eax
call fcn.00437e00
add esp, 0xc
push 0x118
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.00437e00
add esp, 0xc
xor eax, eax
jmp 0x402e85
lea edx, [ebp - 0x740]
push edx
lea eax, [ebp - 0x740]
push eax
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.00401ce0
add esp, 0x10
mov dword [ebp - 0x748], 0
jmp 0x402db9
mov edx, dword [ebp - 0x748]
add edx, 1
mov dword [ebp - 0x748], edx
cmp dword [ebp - 0x748], 0x10
jge 0x402dff
mov eax, dword [ebp - 0x338]
add eax, dword [ebp - 0x748]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x748]
mov dl, byte [ebp + edx - 0x740]
mov byte [ecx + eax], dl
movsx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x338]
add ecx, dword [ebp - 0x748]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [edx + ecx]
add eax, ecx
mov byte [ebp - 5], al
jmp 0x402daa
jmp 0x402cfb
mov edx, dword [ebp + 8]
push edx
push 1
push 1
lea eax, [ebp - 0x121]
push eax
call fcn.00438a1e
add esp, 0x10
movsx ecx, byte [ebp - 0x331]
movsx edx, byte [ebp - 0x121]
cmp ecx, edx
jne 0x402e3c
movsx eax, byte [ebp - 0x331]
movsx ecx, byte [ebp - 5]
cmp eax, ecx
je 0x402e80
push 0
push str.Error__
push str.CheckCrc_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x400
push 0
lea edx, [ebp - 0x740]
push edx
call fcn.00437e00
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00437e00
add esp, 0xc
xor eax, eax
jmp 0x402e85
mov eax, 1
mov ecx, dword [ebp - 0x12c]
xor ecx, ebp
call fcn.0043876f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405810
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x10325476
push 0x40
push 0
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
call fcn.00406bb0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x5c], 0x80
mov esp, ebp
pop ebp
ret