joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a410
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push ebp
push edi
push 0x1000
mov dword [esp + 0x10], 0x1000
call sub.MFC80U.DLL_Ordinal_265
mov ebx, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
mov dword [edi], eax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x41a480
push edi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41a4c2
mov edx, dword [esp + 0xc]
push edx
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
mov edi, eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
mov dword [edi], eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x41a447
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [edi + 8]
test eax, eax
push 0
push 0
push 0
lea ebx, [esi + 0x18c]
push 0
je 0x41a4db
push eax
mov eax, dword [esi + 0x280]
push eax
push 3
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_3873
mov ecx, dword [esi + 0xdf8]
mov edx, dword [esi + 0x280]
push ecx
push 1
push edx
jmp 0x41a4ff
cmp eax, 0x103
push ebp
je 0x41a5fb
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x280]
push eax
push ecx
push 3
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_3873
mov edx, dword [esi + 0xdf8]
mov eax, dword [esi + 0x280]
push edx
push 1
push eax
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_5869
add dword [esi + 0x280], 1
push edi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
push 0x1000
mov dword [esp + 0x10], 0x1000
call sub.MFC80U.DLL_Ordinal_265
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 0xc]
mov edi, eax
push edx
push edi
push ebp
mov dword [edi], ecx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x41a582
push edi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41a4c2
mov eax, dword [esp + 0xc]
push eax
call sub.MFC80U.DLL_Ordinal_265
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 0xc]
mov edi, eax
push edx
push edi
push ebp
mov dword [edi], ecx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
je 0x41a544
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [edi + 8]
test eax, eax
push 0
push 0
push 0
push 0
je 0x41a5be
mov ecx, dword [esi + 0x280]
push eax
push ecx
push 3
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_3873
mov edx, dword [esi + 0xdf8]
mov eax, dword [esi + 0x280]
push edx
push 1
push eax
jmp 0x41a5e2
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x280]
push ecx
push edx
push 3
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_3873
mov eax, dword [esi + 0xdf8]
mov ecx, dword [esi + 0x280]
push eax
push 1
push ecx
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_5869
add dword [esi + 0x280], 1
push edi
call sub.MFC80U.DLL_Ordinal_266
jmp 0x41a513
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x41c0e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42699d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x255c0
call fcn.00423640
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x255bc], eax
push esi
push edi
mov eax, dword [0x435028]
xor eax, esp
push eax
lea eax, [esp + 0x255d0]
mov dword fs:[0], eax
push 0x427d0c
push 0x64
push 0x435938
mov esi, ecx
mov byte [0x435a00], 0
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, dword [esi + 0x44]
add esp, 0xc
push eax
mov dword [0x43592c], eax
mov dword [0x435934], eax
lea eax, [esi + 0xf8]
push eax
call fcn.00408ac0
push 0x42c838
push 0
push 0
mov dword [0x43592c], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x435a08], eax
call edi
cmp eax, 0xb7
jne 0x41c1b1
push str.USBGuardShowEvent
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
call edi
test esi, esi
je 0x41c1a5
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c277
call sub.MFC80U.DLL_Ordinal_1121
mov ecx, dword [sym.imp.BCGCBPRO1500u80.dll_struct_BCGPGLOBAL_DATA_globalData]
call dword [sym.imp.BCGCBPRO1500u80.dll_public:_int___thiscall_BCGPGLOBAL_DATA::SetDPIAware_void_]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0xfa0
push 0x435a54
call edi
push 0xfa0
push 0x435a3c
call edi
push 0xfa0
push 0x435a24
call edi
push 0xfa0
push 0x435a0c
call edi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_3824
push 0
call sub.MFC80U.DLL_Ordinal_1049
add esp, 4
push str.Zbshareware_Lab
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5971
push 0
call fcn.00422ac0
lea edx, [esp + 0x14]
push edx
mov byte [0x435a01], 1
call fcn.0041c480
lea eax, [esp + 0x14]
mov dword [esp + 0x255d8], 0
mov ecx, eax
mov dword [esi + 0x20], eax
call dword [sym.imp.BCGCBPRO1500u80.dll_public_virtual:_int___thiscall_CBCGPDialog::DoModal_void_]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x255dc], 0xffffffff
call fcn.0041c2a0
xor eax, eax
mov ecx, dword [esp + 0x255d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x255bc]
xor ecx, esp
call fcn.00422de8
mov esp, ebp
pop ebp
ret
Function at 0x41e280
Capabilities:
Get disk information

Disassembly:
sub esp, 0x448
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x444], eax
push 0x206
lea eax, [esp + 0x242]
push 0
push eax
mov word [esp + 0x248], 0
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x46]
push 0
push ecx
mov word [esp + 0x4c], 0
call sub.MSVCR80.dll_memset
lea edx, [esi - 0x41]
add esp, 0x18
xor eax, eax
cmp dx, 0x19
ja 0x41e34c
push 0x42941c
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
lea eax, [esp + 0x10]
push 0x14
push eax
mov word [esp + 0x18], si
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x104
lea edx, [esp + 0x254]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.00422de8
add esp, 0x448
ret
Function at 0x420a80
Capabilities:
Create directory
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push ebp
push esi
xor ebp, ebp
push 0x7e
mov esi, ecx
lea ecx, [esp + 0x12]
push ebp
push ecx
mov dword [esp + 0x14], eax
mov word [esp + 0x18], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea edx, [esp + 0x11e]
push ebp
push edx
mov word [esp + 0x124], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea eax, [esp + 0xaa]
push ebp
push eax
mov word [esp + 0xb0], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea ecx, [esp + 0x1b6]
push ebp
push ecx
mov word [esp + 0x1bc], bp
call sub.MSVCR80.dll_memset
add esp, 0x30
cmp esi, ebp
jne 0x420b0d
xor al, al
jmp 0x420c67
push ebx
push edi
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push esi
lea edx, [esp + 0x18]
push 0x40
push edx
call edi
mov ebx, dword [sym.imp.MSVCR80.dll_wcscat_s]
push str.AUTORUN.INF
lea eax, [esp + 0x24]
push 0x40
push eax
call ebx
add esp, 0x18
push ebp
lea ecx, [esp + 0x98]
push ecx
push 0x40
push ebp
push str.AUTORUN.INF
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
je 0x420b8b
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x420c5f
push 0x80
lea eax, [esp + 0x98]
push eax
call ebp
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
je 0x420c63
push 2
lea eax, [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x118]
push 0x40
push edx
call edi
push str.immunity.._
lea eax, [esp + 0x124]
push 0x40
push eax
call ebx
add esp, 0x18
push 0
lea ecx, [esp + 0x118]
push ecx
call esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x198]
push 0x40
push eax
call edi
push str.ReadMe.txt
lea ecx, [esp + 0x1a4]
push 0x40
push ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x420c63
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x5cc]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420c37
sub eax, edi
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
add eax, eax
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x420c65
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x20c]
pop esi
pop ebp
xor ecx, esp
call fcn.00422de8
add esp, 0x208
ret 4
Function at 0x420c80
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x284
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
xor ebp, ebp
push 0x7e
lea eax, [esp + 0xe]
push ebp
push eax
mov ebx, ecx
mov word [esp + 0x14], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea ecx, [esp + 0x19a]
push ebp
push ecx
mov word [esp + 0x1a0], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea edx, [esp + 0x226]
push ebp
push edx
mov word [esp + 0x22c], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea eax, [esp + 0xb2]
push ebp
push eax
mov word [esp + 0xb8], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea ecx, [esp + 0x13e]
push ebp
push ecx
mov word [esp + 0x144], bp
call sub.MSVCR80.dll_memset
add esp, 0x3c
cmp ebx, ebp
jne 0x420d2c
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.00422de8
add esp, 0x284
ret
push esi
mov esi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push edi
push ebx
lea edx, [esp + 0x14]
push 0x40
push edx
call esi
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push str.AUTORUN.INF
lea eax, [esp + 0x20]
push 0x40
push eax
call edi
add esp, 0x18
push ebp
lea ecx, [esp + 0x94]
push ecx
push 0x40
push ebp
push str.AUTORUN.INF
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x420e6a
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
push 0x80
je 0x420e4e
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x14]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x194]
push 0x40
push edx
call esi
push str.zhengbo.._
lea eax, [esp + 0x1a0]
push 0x40
push eax
call edi
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x22c]
push 0x40
push edx
call esi
push str.immunity.._
lea eax, [esp + 0x238]
push 0x40
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x30
lea ecx, [esp + 0x190]
push ecx
call ebx
lea edx, [esp + 0x210]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x114]
push 0x40
push ecx
call esi
push str.ReadMe.txt
lea edx, [esp + 0x120]
push 0x40
push edx
call edi
add esp, 0x18
push 0x80
lea eax, [esp + 0x114]
push eax
call ebp
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
call ebx
test eax, eax
setne al
jmp 0x420e6c
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422de8
add esp, 0x284
ret
Function at 0x421600
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
mov eax, 0x174c
call fcn.00423640
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x1748], eax
mov eax, dword [esp + 0x1754]
push ebp
mov ebp, dword [esp + 0x1754]
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
lea eax, [esp + 0x100]
push 0x64
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0xfc]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
lea edx, [esp + 0x1c4]
push edx
lea esi, [esp + 0x100]
call fcn.0040eae0
add esp, 4
test al, al
je 0x421884
push ebx
xor ebx, ebx
push 0x7fe
lea eax, [esp + 0x75e]
push ebx
push eax
mov word [esp + 0x764], bx
call sub.MSVCR80.dll_memset
push 0x3fe
lea ecx, [esp + 0x2a2]
push ebx
push ecx
mov word [esp + 0x2a8], bx
call sub.MSVCR80.dll_memset
push str.log.dmb
lea edx, [esp + 0x54]
push 0x32
push edx
call edi
push str.log.ini
lea eax, [esp + 0xc4]
push 0x32
push eax
call edi
push 0x400
lea esi, [esp + 0x78c]
call fcn.0040e7b0
add esp, 0x34
push ebx
lea ecx, [esp + 0xf5c]
push ecx
push 0x400
push ebx
lea edx, [esp + 0x48]
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_SearchPathW]
push edx
push eax
call esi
test eax, eax
je 0x42187d
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x75c]
push 0x400
push edx
call edi
add esp, 0xc
push 0x200
lea ebx, [esp + 0x294]
call fcn.00402770
test al, al
je 0x42187d
lea eax, [esp + 0x9c]
push eax
mov ecx, ebx
push 0x200
push ecx
call edi
add esp, 0xc
push 0
lea edx, [esp + 0xf5c]
push edx
push 0x400
push 0
mov eax, ebx
push eax
push 0
call esi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x42177f
push 0x80
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, ebx
push edx
call esi
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x75c]
call fcn.00421c30
cmp eax, 1
jne 0x42187d
mov ecx, dword [str.none]
mov ax, word [0x4279f8]
mov edx, dword [0x4279f4]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x290]
push ecx
mov word [esp + 0x1c], ax
xor eax, eax
push 0x64
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x698]
push edx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1d8]
push ecx
add ebp, 0x64
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x42d310
lea eax, [esp + 0x690]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421839
test dx, dx
je 0x421835
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421839
add eax, 4
add ecx, 4
test dx, dx
jne 0x421813
xor eax, eax
jmp 0x42183e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42186c
lea edx, [esp + 0x290]
push edx
call esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1754]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00422de8
add esp, 0x174c
ret 8
lea eax, [esp + 0x290]
push eax
call esi
mov eax, 6
jmp 0x421851
mov eax, 5
jmp 0x421851
mov eax, 1
jmp 0x421852
Function at 0x422010
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x408
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x410]
push ebx
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
mov edi, ecx
cmp edi, 1
mov esi, edx
mov dword [esp + 0x10], eax
lea ebx, [esp + 0x14]
jne 0x42204e
call fcn.00402890
jmp 0x422058
push 0x200
call fcn.00402770
test al, al
je 0x4220bf
lea ecx, [esi + 0x12c]
push ecx
lea edx, [esp + 0x18]
push 0x200
push edx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
cmp edi, 1
je 0x42208b
push 0x80
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edx, [esi + 0x190]
push edx
lea edi, [esi + 0x64]
push edi
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
add esi, 0x1c2
push esi
push edi
call ebx
test eax, eax
setne al
jmp 0x4220c1
xor al, al
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422de8
add esp, 0x408
ret 8

Function at 0x422de8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435028]
jne 0x422df2
repz ret
jmp fcn.004232f4
Function at 0x4018c1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x2c
cmp dword [0x40bd18], eax
jne 0x401915
push eax
push 0x2c
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [0x413c14]
test eax, eax
jl 0x401915
xor edx, edx
mov eax, 0x40bd18
div dword [ebp - 0x14]
imul eax, dword [ebp - 0x14]
jmp 0x401909
cmp word [eax], 0x5a4d
jne 0x401906
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x401910
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
ja 0x4018f3
jmp 0x401915
mov dword [0x40bd18], eax
mov eax, dword [0x40bd18]
leave
ret

Function at 0x40442c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404469
xor eax, eax
leave
ret
add eax, 0x2c
push 1
push eax
call fcn.00405e2c
cmp dword [ebp + 8], eax
mov eax, dword [ebp - 4]
pop ecx
pop ecx
je 0x404471
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [eax + 0x18], 0
jne 0x40444f
jmp 0x40444b
mov eax, dword [eax + 0x18]
leave
ret

Function at 0x404476
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x34
test ecx, ecx
push ebx
push esi
push edi
je 0x404539
cmp word [ecx], 0x5a4d
jne 0x404539
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404539
mov esi, dword [eax + 0x78]
test esi, esi
je 0x404539
mov eax, dword [eax + 0x7c]
and dword [ebp - 4], 0
add esi, ecx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
add edi, ecx
add ebx, ecx
test eax, eax
mov dword [ebp - 0x10], eax
jbe 0x404539
mov eax, dword [edi]
add eax, ecx
mov edx, dword [eax]
cmp edx, dword [ebp + 0xc]
jne 0x40452b
push 0
push 0
push eax
call fcn.00406272
add esp, 0xc
cmp eax, dword [ebp + 0x10]
jne 0x404528
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
cmp eax, esi
mov dword [ebp - 0x14], eax
jb 0x40453b
cmp eax, dword [ebp - 0xc]
ja 0x40453b
push 0x2e
push 0x1c
push eax
call fcn.00405e62
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
ja 0x404540
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [ebp - 0x10]
jb 0x4044db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
inc esi
push esi
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.00405853
push 4
lea eax, [ebp + esi - 0x34]
push str.4__bk_
push eax
call fcn.00405853
add esi, edi
xor edi, edi
push edi
push edi
push esi
call fcn.00406272
add esp, 0x24
push eax
push dword [esi]
lea eax, [ebp - 0x34]
push 1
push edi
push eax
call fcn.00406272
push eax
call fcn.0040442c
add esp, 0x10
push eax
call fcn.00404476
add esp, 0xc
jmp 0x40453b
Function at 0x4055bb
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, 0x4000000
je 0x4055ce
mov eax, 0x200
push esi
mov esi, ecx
and esi, 0x20000000
push edi
mov edx, 0x40000000
mov edi, 0x80000000
je 0x4055ec
test edx, ecx
je 0x4055ec
test edi, ecx
jne 0x40561a
test esi, esi
je 0x4055f9
test edx, ecx
je 0x4055f9
or eax, 0x20
jmp 0x40561d
mov esi, ecx
and esi, edx
je 0x405608
test edi, ecx
je 0x405611
or eax, 4
jmp 0x40561d
test edi, ecx
je 0x405611
or eax, 8
jmp 0x40561d
test esi, esi
je 0x40561a
or eax, 2
jmp 0x40561d
or eax, 0x40
pop edi
pop esi
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x40ef50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x60b410], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x60b40c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x60b410], eax
cmp ecx, 0x26f
jl 0x40ef60
mov dword [0x5890d0], 0x270
ret

Function at 0x40efa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x60a010]
cmp eax, dword [0x588820]
je 0x40efb8
mov dword [0x5890d0], 0x271
cmp dword [0x5890d0], 0x270
jl 0x40f0d7
cmp dword [0x5890d0], 0x271
jne 0x40efef
mov eax, dword [0x60a010]
call fcn.0040ef50
mov eax, dword [0x60a010]
not eax
mov dword [0x60a010], eax
mov dword [0x588820], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x60b414]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x60b410]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x60ba44]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x5890e0]
xor edx, eax
mov dword [ebx*4 + 0x60b410], edx
cmp ebx, 0xe2
jl 0x40eff8
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x60b414]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x60b410]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x60b084]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x5890e0]
xor edx, eax
mov dword [ebx*4 + 0x60b410], edx
cmp ebx, 0x26e
jl 0x40f04c
mov eax, dword [0x60bdcc]
and eax, 0x80000000
mov edx, dword [0x60b410]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x60ba40]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x5890e0]
xor eax, edx
mov dword [0x60bdcc], eax
mov dword [0x5890d0], 0
mov eax, dword [0x5890d0]
mov eax, dword [eax*4 + 0x60b410]
add dword [0x5890d0], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x410b90
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x588530]
cmp ax, 0xcb
je 0x410c8c
cmp ax, 0xcc
je 0x410c8c
mov edx, dword [0x60c020]
test edx, edx
je 0x410bc2
mov eax, dword [0x60bec0]
call edx
mov ebx, eax
jmp 0x410bc7
mov ebx, 0x60bec4
cmp word [0x60beb0], 0
jle 0x410bea
mov eax, 0x60be90
call fcn.00410e40
mov eax, ebx
call fcn.00410770
mov eax, ebx
call fcn.004107e0
mov edi, dword [ebx]
jmp 0x410c0a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410c05
mov edx, edi
mov eax, ebx
call fcn.0040fc40
jmp 0x410c08
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410bf0
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x60beb0], 0
jle 0x410c8c
mov edx, 0x60bdd0
mov eax, ebx
call fcn.0040fd70
mov edi, eax
test edi, edi
je 0x410c5f
mov eax, dword [0x60be64]
mov dword [edi + 0xc], eax
cmp dword [0x60be64], 0
je 0x410c54
mov eax, dword [0x60be64]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x60be64], eax
sub word [0x60beb0], 1
cmp word [0x60beb0], 0
sete bl
mov eax, 0x60be90
call fcn.00410e50
test bl, bl
je 0x410c8c
mov eax, 0x60be90
call fcn.00410e30
pop edi
pop esi
pop ebx
ret