joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push ebx
lea eax, [esi + 4]
push 0x100
push eax
push 0
push str.SERVERIP
push str.PATCH_FTP
call ebp
test eax, eax
ja 0x4013d5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
push ebx
push 0
push str.PORT
push str.PATCH_FTP
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esi + 0x104], eax
jne 0x4013fb
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
push ebx
lea ecx, [esi + 0x108]
push 0x100
push ecx
push 0
push str.USERID
push str.PATCH_FTP
call ebp
test eax, eax
ja 0x401423
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
push ebx
lea edx, [esi + 0x208]
push 0x100
push edx
push 0
push str.PASSWD
push str.PATCH_FTP
call ebp
test eax, eax
ja 0x40144b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
push ebx
lea eax, [esi + 0x308]
push 0x100
push eax
push 0
push str.BASEDIRECTORY
push str.PATCH_FTP
call ebp
test eax, eax
ja 0x401473
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
lea edi, [esi + 0x408]
push ebx
push 0x100
push edi
push 0
push str.LISTFILE
push str.PATCH_FTP
call ebp
test eax, eax
ja 0x40149b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
lea ebx, [esi + 0x913]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x401a40
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
push edi
push 0x5c
push ebx
call fcn.0040a0e0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401aa0
inc ebp
push 0x5c
push ebp
call fcn.0040a0e0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401aa0
sub eax, ebx
mov esi, ebx
mov ecx, eax
lea edi, [esp + 0x10]
mov edx, ecx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x14], 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x401a62
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
Function at 0x401ab0
Capabilities:
Delete directory
Delete file
Move file
Set file attributes
Timestomp file

Disassembly:
sub esp, 0x440
xor eax, eax
xor edx, edx
mov dword [esp + 0x19], eax
mov word [esp + 9], dx
mov word [esp + 0x1d], ax
push ebx
push esi
mov esi, dword [esp + 0x44c]
mov byte [esp + 0x27], al
mov byte [esp + 0x13], dl
mov word [esp + 9], ax
mov word [esp + 0xd], dx
mov byte [esp + 0xb], al
mov byte [esp + 0xf], dl
mov edx, dword [esi + 1]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov ax, word [esi + 6]
mov dword [esp + 0x20], edx
mov dx, word [esi + 9]
mov word [esp + 0x10], ax
mov ax, word [esi + 0x11]
mov word [esp + 8], dx
mov dx, word [esi + 0x14]
lea ebx, [esi + 0x39]
push edi
push ebx
mov word [esp + 0x14], ax
mov word [esp + 0x1c], dx
call fcn.00401a40
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0xc44
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c1c
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [esp + 0x24]
push edx
call fcn.0040a0bb
mov word [esp + 0x30], ax
lea eax, [esp + 0x18]
push eax
call fcn.0040a0bb
lea ecx, [esp + 0x14]
mov word [esp + 0x36], ax
push ecx
call fcn.0040a0bb
lea edx, [esp + 0x1c]
mov word [esp + 0x3e], ax
push edx
call fcn.0040a0bb
mov word [esp + 0x44], ax
lea eax, [esp + 0x28]
push eax
call fcn.0040a0bb
add esp, 0x14
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
mov word [esp + 0x36], ax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call fcn.00409be0
add esp, 8
test eax, eax
pop edi
pop esi
pop ebx
je 0x401c63
lea edx, [esp + 0x40]
mov byte [eax], 0
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0x440
ret 4
Function at 0x401d00
Capabilities:
Connect to http server
Delete file

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, ecx
mov eax, dword [esi + 0xd3c]
test eax, eax
je 0x401d33
mov eax, dword [eax + 4]
cmp byte [eax], 0x44
jne 0x401d6e
add eax, 0x39
push eax
call edi
mov eax, dword [esi + 0xd3c]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xd3c], ecx
jmp 0x401d0a
push 1
push 0x417174
mov ecx, esi
call fcn.004022f0
mov eax, dword [esi + 0xd4c]
push 0
test eax, eax
push 0
je 0x401d5d
mov edx, dword [esi]
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
ret
mov eax, dword [esi]
push 0x402
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
ret
mov ax, word [esi + 0x104]
push esi
push 1
lea ecx, [esi + 0x208]
push 1
lea edx, [esi + 0x108]
push ecx
push edx
mov edx, dword [esi + 0x508]
lea ecx, [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
pop edi
pop esi
ret

Function at 0x401da0
Capabilities:
Create http request
Create thread

Disassembly:
sub esp, 0x404
push esi
mov esi, ecx
push edi
push 0x400
lea edi, [esi + 0x513]
push edi
call fcn.00401230
push edi
lea eax, [esp + 0x10]
push str._sMir3Patch.ini
push eax
call fcn.00409fde
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004013a0
test al, al
jne 0x401e0b
mov edx, dword [esi]
push 0x10
push 0x417054
push 0x41719c
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x404
ret
push 0x10000000
push 0
push 0
push 0
push str.Mir3AuthPatch
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x508], eax
je 0x401eb3
push 0x402bb0
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0xd54], eax
call edi
lea edx, [esp + 8]
mov dword [esi + 0xd58], eax
push edx
push 0
push esi
push 0x402c20
push 0
push 0
call fcn.0040a26f
mov ecx, dword [esi + 0xd54]
add esp, 0x18
test ecx, ecx
mov dword [esi + 0xd50], eax
je 0x401eb3
mov ecx, dword [esi + 0xd58]
test ecx, ecx
je 0x401eb3
test eax, eax
je 0x401eb3
mov eax, dword [esi]
push 0
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
add esp, 0x404
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004011e0
mov ecx, dword [esi]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x404
ret
Function at 0x402170
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x5c]
lea eax, [esi + 0x513]
push eax
push str._sMir3.exe
push ecx
call fcn.00409fde
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x28], 0
xor edx, edx
add esp, 0xc
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
push eax
push ecx
push edx
push edx
push edx
push edx
push edx
mov dword [esp + 0x30], edx
push edx
lea edx, [esp + 0x7c]
push 0x4171d0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4021f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004011e0
mov eax, dword [esi]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x454
ret
Function at 0x4022f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x510], 4
jne 0x402347
mov eax, dword [esi + 0xd3c]
fild dword [esi + 0xd44]
mov ecx, dword [eax + 4]
fidiv dword [ecx + 0x83c]
fmul qword [0x4141f8]
call fcn.0040a430
mov edx, dword [esi]
push 0
push eax
push 0x402
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, al
jne 0x402367
call ebx
sub eax, dword [esi + 0xd34]
cmp eax, 0x3e8
jb 0x4024f2
call ebx
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [esi + 0xd34], eax
mov eax, dword [ebp + 8]
push eax
push 0x3ea
push ecx
call edi
cmp byte [esi + 0x510], 4
jne 0x4024f2
mov edx, dword [esi + 0xd3c]
mov eax, dword [edx + 4]
mov dword [esp + 0xc], eax
call ebx
mov edx, dword [esi + 0xd40]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x3e8
jl 0x4024f2
mov eax, 0x10624dd3
mov ebx, dword [esi + 0xd44]
imul ecx
mov ecx, edx
mov eax, ebx
sar ecx, 6
mov edx, ecx
shr edx, 0x1f
add ecx, edx
cdq
idiv ecx
mov edx, dword [esi + 0xd48]
mov ecx, eax
mov eax, dword [esi + 0xd2c]
sub eax, edx
mov dword [esp + 0x10], ecx
cdq
idiv ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x118]
push eax
mov eax, dword [edx + 0x83c]
sub eax, ebx
cdq
idiv ecx
mov ecx, esi
push eax
call fcn.00402230
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x198]
push eax
push ecx
mov ecx, esi
call fcn.00402230
mov edx, dword [esp + 0xc]
sub esp, 8
sub esp, 8
lea eax, [esp + 0x128]
fild dword [edx + 0x83c]
lea ecx, [esp + 0x28]
fmul qword [0x4141f0]
fstp qword [esp + 8]
fild dword [esi + 0xd44]
fmul qword [0x4141f0]
fstp qword [esp]
push eax
push str._s___.2f_MB____.2f_MB_
push ecx
call fcn.00409fde
mov eax, dword [esi]
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
push 0x3f7
push eax
call edi
fild dword [esi + 0xd2c]
sub esp, 8
lea ecx, [esp + 0x1a0]
sub esp, 8
lea edx, [esp + 0x28]
fmul qword [0x4141f0]
fstp qword [esp + 8]
fild dword [esi + 0xd48]
fmul qword [0x4141f0]
fstp qword [esp]
push ecx
push str._s___.2f_MB____.2f_MB_
push edx
call fcn.00409fde
mov ecx, dword [esi]
add esp, 0x1c
lea eax, [esp + 0x18]
push eax
push 0x3f5
push ecx
call edi
fild dword [esp + 0x10]
sub esp, 8
fmul qword [0x4141e8]
fstp qword [esp]
lea edx, [esp + 0x20]
push str._.1f_KB_
push edx
call fcn.00409fde
mov ecx, dword [esi]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0x3f6
push ecx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402ad0
Capabilities:
Connect to http server
Delete file

Disassembly:
mov eax, dword [ecx + 0xd3c]
mov byte [ecx + 0x510], 3
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xd3c], edx
jmp fcn.00401d00
Function at 0x402c30
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xd58]
mov ecx, dword [ebp + 0xd54]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push 0
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x402de0
mov eax, dword [ebp + 0xd3c]
push 0x4170a0
mov ebx, dword [eax + 4]
mov dword [esp + 0x14], ebx
add ebx, 0xc44
push ebx
call fcn.00404b70
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x402d75
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
sub edx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x20]
push 0x41748c
push edx
call fcn.00409bc2
mov esi, eax
add esp, 8
test esi, esi
je 0x402d85
mov edi, dword [esp + 0x14]
push esi
push edi
mov ecx, ebp
call fcn.00402df0
test al, al
push edi
je 0x402db8
call fcn.004053c0
push esi
call fcn.00409b14
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00401ab0
mov edx, dword [ebp]
push 0
push 0
push 0x40c
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x402c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.004011e0
jmp 0x402dd0
push 0
call fcn.004053c0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.004011e0
mov ecx, dword [ebp]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
call fcn.004053c0
push esi
call fcn.00409b14
lea edx, [esp + 0x28]
push edx
call fcn.0040a3d2
add esp, 0xc
mov eax, dword [ebp]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x403120
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
push ecx
mov eax, dword [0x41f990]
push ebx
push ebp
push esi
cmp eax, 2
push edi
jg 0x403137
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x403178
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x41f994]
mov ecx, dword [eax + 8]
push ecx
call ebp
test eax, eax
jne 0x40319c
push 0x64
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x403158
jmp 0x403180
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40319c
push 0x10
push 0x417054
push 0x417518
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret

Function at 0x4035c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
push edx
lea edx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
ret 0xc

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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40372b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x40382e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x414208]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x414208]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x414208]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x414208]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x414208]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x414208]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x414208]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x414208]
xor eax, edx
inc ecx
dec edi
jne 0x403746
pop edi
test esi, esi
je 0x403850
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x414208]
xor eax, edx
inc ecx
dec esi
jne 0x403832
pop esi
pop ebx
not eax
ret
Function at 0x40ffd1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41b2e0
cmp edx, dword [eax]
je 0x40fff3
add eax, 8
inc ecx
cmp eax, 0x41b370
jl 0x40ffe4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41b2e0]
jne 0x410121
mov eax, dword [0x41f9d0]
cmp eax, 1
je 0x4100fb
test eax, eax
jne 0x410024
cmp dword [0x418b54], 1
je 0x4100fb
cmp edx, 0xfc
je 0x410121
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41005b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410380
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d6b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41009e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d6b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x415818
push edi
call fcn.004101c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410380
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410390
lea eax, [ebp - 0xa0]
push 0x4157f8
push eax
call fcn.00410390
push dword [esi + 0x41b2e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410390
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004122e6
add esp, 0x2c
pop edi
jmp 0x410121
lea eax, [ebp + 8]
lea esi, [esi + 0x41b2e4]
push 0
push eax
push dword [esi]
call fcn.0040d6b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40a60b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40a61a
pop dword [ebp - 0x20]
mov eax, 0xf0461893
add eax, 0xffa8d87
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xef865bd7
sub dword [ebp - 0x30], 0xa134168c
mov dword [ebp - 0x2c], 0xb03a6d14
sub dword [ebp - 0x2c], 0x7e0720cf
mov dword [ebp - 0x28], 0x3cbb517e
add dword [ebp - 0x28], 0xf90f2b0
mov dword [ebp - 0x24], 0x12397e0e
sub dword [ebp - 0x24], 0x12397e0e
lea eax, [ebp - 0x30]
push eax
mov eax, 0x444c8311
sub eax, 0x440bb2bd
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xb86e47b1
add dword [ebp - 0x30], 0xbc0421a5
mov dword [ebp - 0x2c], 0x11d5a37e
sub dword [ebp - 0x2c], 0xd0694209
mov dword [ebp - 0x28], 0xecf70860
sub dword [ebp - 0x28], 0x89879bf4
mov dword [ebp - 0x24], 0xaad3270c
add dword [ebp - 0x24], 0x552cd8f4
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3b70c
push 0
call eax
mov ecx, 0x95ed4127
add ecx, 0x6a130d21
xor edi, edi
add edi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x20]
mov esi, 0x9c6e0320
sub esi, 0x95b71691
sub dword [ebp - 8], edx
mov ebx, dword [edx]
xor dword [ebp - 0x1c], esi
xor ebx, esi
add dword [ebp - 0xc], edx
mov dword [edi], ebx
add dword [ebp - 0x10], ecx
add edi, 0x9289a627
add edi, 0x6d7659dd
add edx, 4
loop 0x40a733
add eax, 0x12bf3
mov ebx, eax
add eax, 5
mov ecx, 0x3df92995
sub ecx, 0x3db92995
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4035e9
Capabilities:
Terminate process

Disassembly:
jmp 0x452a89
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x452a9a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040590c
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40371a
Capabilities:
Query environment variable

Disassembly:
jmp 0x49bff2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c003
pop esi
ret
push ebx
push edi
push esi
call fcn.0049bed9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c02b
push ebx
push esi
push edi
call fcn.004056ff
add esp, 0xc
push 0
call fcn.0040624e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4057bd
Capabilities:
Parse pe header

Disassembly:
jmp 0x44183f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44187e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44187e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44187e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44187e
cmp dword [ecx + 0x74], 0xe
jbe 0x44187e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret