joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418330
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ca90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4183fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4183fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4183ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4183b9
or bh, 8
and edi, 0x8000000
je 0x4183d4
mov eax, dword [0x438a3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4183fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4187d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4187fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41881f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41883a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41d949
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41d98b
call fcn.00422214
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d98b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d982
xor eax, eax
jmp 0x41d993
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d999
pop edi
pop esi
pop ebx
ret 4

Function at 0x422c24
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x422c52
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422c70
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00422b8a
jmp 0x422c70
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422c70
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00422b8a
test edi, edi
mov eax, edi
jne 0x422c5a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4021e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x40221c
cmp dword [ebp + 8], 0xffffffff
je 0x40221c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x40221c
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x40221c
mov eax, dword [ebp - 4]
jmp 0x40221e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100020f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x10020008]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push 0x58
lea eax, [ebp - 0x28c]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.10007710
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x28c], 0x58
push 0x100
push 0
push eax
call fcn.10007710
xor eax, eax
mov byte [ebp - 0x1c], 0
add esp, 0xc
mov word [ebp - 0x22c], ax
mov dword [ebp - 0x222], eax
xorps xmm0, xmm0
mov word [ebp - 0x21e], ax
lea eax, [ebp - 0x22c]
movups xmmword [ebp - 0x1b], xmm0
push eax
mov word [ebp - 0xb], 0
mov byte [ebp - 9], 0
movq qword [ebp - 0x22a], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x224]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x22a]
push eax
movzx eax, word [ebp - 0x22c]
push eax
lea eax, [ebp - 0x1c]
push str._04d_02d_02d__02d_02d_02d
push eax
call fcn.100023e0
lea eax, [esi + 0x218]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x11c]
push str.CG70__s__s._s.bin
push eax
call fcn.10002420
add esp, 0x34
lea eax, [ebp - 0x21c]
push 0x100
push 0
push eax
call fcn.10007710
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea eax, [esi + 0x118]
push eax
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call fcn.10002420
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x26c], 0x100
mov dword [ebp - 0x270], eax
add esp, 0x10
lea eax, [esi + 0x318]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
test eax, eax
je 0x100022a4
lea eax, [ebp - 0x11c]
add esi, 0x418
push eax
push 0x100
push esi
call fcn.1000a747
add esp, 0xc
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push 0x1001e640
push esi
push eax
call fcn.100097f9
mov eax, dword [ebp - 0x230]
add esp, 0xc
test eax, eax
jne 0x100022d3
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10006742
mov esp, ebp
pop ebp
ret
push 0x1001e640
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x230], 0
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100097f9
mov eax, dword [ebp - 0x230]
add esp, 0xc
test eax, eax
je 0x100022ed
push eax
push dword [ebp + 8]
push 1
push edi
call fcn.1000a6ef
push dword [ebp - 0x230]
call fcn.1000a437
add esp, 0x14
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10006742
mov esp, ebp
pop ebp
ret
Function at 0x10002310
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10020008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
lea eax, [ebp - 0x104]
mov esi, ecx
push 0
push eax
call fcn.10007710
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x104]
push str._s_btn.ini
push eax
call fcn.10002420
push 0x1001e650
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.100097f9
add esp, 0x24
cmp dword [ebp - 0x108], 0
pop esi
je 0x100023cf
lea eax, [ebp - 0x104]
push eax
push 0xffffffffffffffff
push str.func
push str.Button
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x1002131c], eax
cmp eax, 0x64
je 0x100023ae
or ecx, 0xffffffff
cmp eax, 0x6f
cmovne eax, ecx
mov dword [0x1002131c], eax
push dword [ebp - 0x108]
call fcn.1000a437
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006742
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10006742
mov esp, ebp
pop ebp
ret
Function at 0x10004d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10020008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x18], edi
call fcn.10002020
test eax, eax
je 0x10004f76
push 0x1001e5ac
lea eax, [edi + 0x418]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
call fcn.100097f9
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x10004f3c
push 2
push 0
push eax
call fcn.10009afa
add esp, 0xc
push dword [ebp - 8]
call fcn.1000a06c
add esp, 4
mov esi, eax
push dword [ebp - 8]
call fcn.1000a077
add esp, 4
push esi
call fcn.10006753
add esp, 4
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
push esi
push 1
push eax
call fcn.1000a311
push dword [ebp - 8]
call fcn.1000a437
add esp, 0x14
mov dword [ebp - 8], 0
cmp dword [edi + 0x6ce], esi
je 0x10004df4
mov esi, 0x102
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x10004f7b
push edi
call fcn.1000675c
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006742
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
call fcn.10006190
mov esi, eax
push 0x3eb
test esi, esi
je 0x10004e44
push str._failed
push 0x190
call ebx
add esp, 0xc
push 0x3ec
push 0x1001e66c
push 0xc8
call ebx
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006742
mov esp, ebp
pop ebp
ret
push 0x1001e670
push 0x190
call ebx
add esp, 0xc
cmp word [ebp - 0xc], 3
jne 0x10004e6b
mov dword [0x10021320], 1
push 0x3ed
jmp 0x10004e7a
mov dword [0x10021320], 2
push 0x470
push 0x1001e66c
push 0xc8
call ebx
add esp, 0xc
mov dword [ebp - 0x10], 0
sub esp, 0xd0
mov dword [ebp - 0xc], 0x2d
mov ecx, 0x34
lea esi, [ebp + 8]
mov edi, esp
lea edx, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.10004800
mov esi, eax
add esp, 0xd0
test esi, esi
jne 0x10004dcd
push eax
push 0x1001e66c
push dword [ebp - 0x10]
call ebx
add esp, 0xc
push 0x3f5
push 0x1001e66c
push 0xc8
call ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0xc], 0x37
mov edx, dword [ecx + 0x6ce]
mov ecx, dword [ecx + 0x6ae]
push eax
push ebx
push edi
call fcn.10004980
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10004dd0
push eax
push 0x1001e66c
push 0x64
call ebx
add esp, 0xc
push 0x3f5
push str._success
push 0x190
call ebx
add esp, 0xc
jmp 0x10004dd0
push 0
push 0x1001e66c
push 0
call ebx
add esp, 0xc
push 0x403
push str._failed.
push 0x190
call ebx
mov esi, 0x100
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006742
mov esp, ebp
pop ebp
ret
mov esi, 0x101
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006742
mov esp, ebp
pop ebp
ret

Function at 0x1000ef48
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000edc7
Function at 0x4010d4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010e6
mov eax, dword [0x44108b]
shl eax, 2
mov dword [0x44108f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00404e28
pop edx
call fcn.004041c4
call fcn.00404e2c
push 0
call fcn.0040637c
pop ecx
push 0x441034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x441093], eax
push 0
jmp fcn.0040ca88

Function at 0x4015a8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x490c21]
mov edx, dword [0x490c29]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x490c25]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x490c2d]
mov dword [0x4a8cf4], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4016ec
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401657
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4016ee
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.004053a0
add esp, 0xc
test eax, eax
je 0x401671
xor eax, eax
jmp 0x4016ee
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40169a
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4016ee
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x49016c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x49016c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4016e5
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4016ee
mov eax, 1
jmp 0x4016ee
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4017c4
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
cmp dword [ebp + 0xc], 0
je 0x4017ea
lea eax, [ebp - 0x458]
push eax
call fcn.00401730
pop ecx
test eax, eax
jne 0x40188a
push 0x400
push 0
lea edx, [ebp - 0x458]
push edx
call fcn.00405148
add esp, 0xc
lea ecx, [ebp - 0x458]
push ecx
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow3D.exe
lea eax, [ebp - 0x458]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 4
push 0x1000
push 0xf000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x401842
xor eax, eax
jmp 0x401908
push ebx
push 0x4810a4
call fcn.0040f368
add esp, 8
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x458]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40188a
push 0
lea eax, [ebp - 4]
push eax
push 0xf000
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00405148
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push 0x10
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00405148
add esp, 0xc
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x458]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x4018f8
xor eax, eax
jmp 0x401908
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4033e4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403418
mov edx, dword [eax + 8]
test edx, edx
jne 0x403407
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403414
add edx, esi
cmp ebx, edx
jb 0x403425
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x4033fd
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403460
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x40347a
xor eax, eax
jmp 0x4035fa
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x40348e
xor eax, eax
jmp 0x4035fa
cmp word [ebx + 0x14], 0xe0
jne 0x40349e
cmp word [ebx + 0x18], 0x10b
je 0x4034a5
xor eax, eax
jmp 0x4035fa
mov dword [0x4a89a0], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004033e4
add esp, 8
test eax, eax
jne 0x4034d0
xor eax, eax
jmp 0x4035fa
mov edx, dword [0x4a89a0]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040342c
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403502
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x4035fa
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x4035cc
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x4035be
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x4035b9
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x4035b0
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x4035a5
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4035a5
test cl, cl
je 0x40359a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4035a5
add eax, 2
add edx, 2
test cl, cl
jne 0x40357e
jne 0x4035a5
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4035fa
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403564
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x40353c
jmp 0x4035f8
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4035f0
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x4035ec
cmp dword [eax], 0
je 0x4035ec
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4035fa
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4035d3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4037b8
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401d48
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x40386b
mov eax, fcn.004019a8
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40386b
mov eax, fcn.004039d8
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40386b
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x40386b
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403833
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403888
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401d48
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x40393e
mov eax, fcn.004019a8
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40393e
mov eax, fcn.00403888
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40393e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x40393e
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403906
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret