joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49deca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x49def8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x49deff
cmp ebx, dword [eax + 4]
jae 0x49deff
xor eax, eax
jmp 0x49e0ef
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x49df10
xor eax, eax
inc eax
jmp 0x49e0ee
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x49df26
cmp ecx, edx
jae 0x49e06b
cmp dword [eax + 4], 0
je 0x49df2f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x49df17
cmp dword [ebp + 8], 0
je 0x49df51
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x49e06b
cmp eax, esi
jae 0x49e06b
mov eax, dword [0x519ea8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x49df76
cmp dword [esi*4 + 0x519eb0], edi
je 0x49e06f
inc esi
cmp esi, eax
jl 0x49df64
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49e0eb
cmp dword [ebp - 8], 0x1000000
jne 0x49e0eb
test byte [ebp - 0xc], 0xcc
je 0x49dff4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x49e0eb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x49e0eb
cmp word [eax + 0x18], 0x10b
jne 0x49e0eb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x49e0eb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x49dff4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x49dff4
test byte [ecx + 0x27], 0x80
jne 0x49e06b
push 1
push 0x519ef0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x49df08
mov ecx, dword [0x519ea8]
test ecx, ecx
mov edx, ecx
jle 0x49e028
lea eax, [ecx*4 + 0x519eac]
cmp dword [eax], edi
je 0x49e028
dec edx
sub eax, 4
test edx, edx
jg 0x49e01c
test edx, edx
jne 0x49e059
push 0xf
pop ebx
cmp ecx, ebx
jg 0x49e035
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x49e04d
lea eax, [edx*4 + 0x519eb0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x49e03b
cmp ecx, 0x10
jge 0x49e059
inc ecx
mov dword [0x519ea8], ecx
push 0
push 0x519ef0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x49df08
xor eax, eax
jmp 0x49e0ee
test esi, esi
jle 0x49df08
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x519ef0
call ebx
test eax, eax
jne 0x49df08
cmp dword [esi*4 + 0x519eb0], edi
je 0x49e0c5
mov eax, dword [0x519ea8]
lea esi, [eax - 1]
test esi, esi
jl 0x49e0b3
cmp dword [esi*4 + 0x519eb0], edi
je 0x49e0af
dec esi
jns 0x49e0a3
test esi, esi
jge 0x49e0c3
cmp eax, 0x10
jge 0x49e0be
inc eax
mov dword [0x519ea8], eax
lea esi, [eax - 1]
jmp 0x49e0c5
je 0x49e0dd
xor ecx, ecx
test esi, esi
jl 0x49e0dd
lea eax, [ecx*4 + 0x519eb0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x49e0cb
push 0
push 0x519ef0
call ebx
jmp 0x49df08
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a083f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004916e0
mov eax, dword [0x4e5704]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0049cffd
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4a0972
push 2
push esi
push dword [ebp + 8]
call fcn.0049cffd
add esp, 0xc
cmp eax, ebx
je 0x4a0972
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4a0912
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00493360
push 0x8000
push dword [ebp + 8]
call fcn.004a0980
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4a08c8
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0049bb97
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a08e8
sub edi, eax
test edi, edi
jg 0x4a08c0
jmp 0x4a0900
call fcn.004922fb
cmp dword [eax], 5
jne 0x4a08fd
call fcn.004922f2
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004a0980
pop ecx
pop ecx
jmp 0x4a095a
jge 0x4a095a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049cffd
push dword [ebp + 8]
call fcn.0049f9ac
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4a095a
call fcn.004922f2
mov dword [eax], 0xd
call fcn.004922fb
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0049cffd
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4a0974
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00499fd9
leave
ret

Function at 0x4a5908
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a5940
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a3992
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a396a
jmp 0x4a594c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a6ff6
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 0x4a7038
call fcn.004acaaf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a7038
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a702f
xor eax, eax
jmp 0x4a7040
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a7046
pop edi
pop esi
pop ebx
ret 4
Function at 0x4acfdf
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 0x4ad00d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ad02b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004acf45
jmp 0x4ad02b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad02b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004acf45
test edi, edi
mov eax, edi
jne 0x4ad015
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x298068a3
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x298529aa
call fcn.29802379
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x298069b3
cmp byte [edi + 0x3d], bl
je 0x298069b3
mov eax, dword [edi]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x298583e0]
mov ecx, edi
call esi
cmp eax, 0xffffffff
jne 0x298068e4
xor al, al
jmp 0x298069b5
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2980706a
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x38]
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x2980693d
sub eax, 1
je 0x29806940
dec eax
sub eax, 1
jne 0x298069a0
inc eax
jmp 0x2980699e
mov byte [edi + 0x3d], bl
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x2c]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x30], edx
je 0x2980697c
push dword [edi + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x30]
add esp, 0x10
cmp edx, eax
jne 0x2980699c
mov esi, dword [ebp - 0x14]
cmp byte [edi + 0x3d], 0
je 0x2980699a
test edx, edx
jne 0x29806902
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.29806fa0
jmp 0x298068ff
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.29809f2c
mov al, bl
jmp 0x298069b5
mov al, 1
call fcn.29802cf8
ret
Function at 0x298076c0
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x29852b5e
call fcn.29802379
mov ebx, ecx
or edi, 0xffffffff
cmp dword [ebp + 8], edi
jne 0x298076dd
xor eax, eax
jmp 0x29807843
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x29807711
mov eax, dword [ebx + 0x30]
mov ecx, ebx
mov edx, dword [ebx + 0x20]
mov esi, dword [eax]
add esi, dword [edx]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x29807711
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov ecx, dword [ebp + 8]
mov byte [eax], cl
mov eax, ecx
jmp 0x29807843
cmp dword [ebx + 0x4c], 0
je 0x29807841
mov ecx, ebx
call fcn.29806d41
xor ecx, ecx
cmp dword [ebx + 0x38], ecx
jne 0x29807745
push dword [ebx + 0x4c]
mov ebx, dword [ebp + 8]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x29807841
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x29], al
mov dword [ebp - 0x14], 0xf
call fcn.2980706a
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
lea eax, [ebx + 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 0x29807832
cmp eax, 1
jg 0x29807817
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x298077e8
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x34]
add esp, 0x10
cmp edx, eax
jne 0x29807832
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x29]
mov byte [ebx + 0x3d], 1
cmp dword [ebp - 0x38], eax
jne 0x29807812
test edx, edx
jne 0x2980776a
cmp dword [ebp - 0x18], 0x20
jae 0x29807832
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.29806fa0
jmp 0x29807767
mov edi, dword [ebp + 8]
jmp 0x29807832
cmp eax, 3
jne 0x29807832
push dword [ebx + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
cmovne edi, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.29809f2c
mov eax, edi
call fcn.29802cf8
ret 4
Function at 0x29809f2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x29809f3b
pop dword [ebp - 0x1c]
mov eax, 0xebc2423d
sub eax, 0xc241a302
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x2e8cf7fe
sub dword [ebp - 0x2c], 0xe03ab2b3
mov dword [ebp - 0x28], 0xb194df
add dword [ebp - 0x28], 0x3181b766
mov dword [ebp - 0x24], 0x76637044
add dword [ebp - 0x24], 0xd5e8d3ea
mov dword [ebp - 0x20], 0x940af6ad
add dword [ebp - 0x20], 0x6bf50953
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x6078a513
sub eax, 0x36f32453
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xd5a55698
add dword [ebp - 0x2c], 0x9ecd12be
mov dword [ebp - 0x28], 0xbafdf262
add dword [ebp - 0x28], 0x866e6f13
mov dword [ebp - 0x24], 0x2740f181
add dword [ebp - 0x24], 0x3c2e7aeb
mov dword [ebp - 0x20], 0x8ce25add
add dword [ebp - 0x20], 0x731da523
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x50c6dfa7
add eax, 0xd8bea111
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x4dfb7
push 0
call eax
mov ecx, 0x6108
xor ebx, ebx
add ebx, eax
mov esi, 0x3c65dd1a
add esi, 0xed23a8e6
add esi, dword [ebp - 0x1c]
mov edi, 0x445e23bf
add dword [ebp - 0x10], esi
mov edx, dword [esi]
sub dword [ebp - 4], 0x380461b1
xor edx, edi
add dword [ebp - 0x14], 0xa955224c
mov dword [ebx], edx
add ebx, 0xdcd44b2
add ebx, 0xf232bb52
add esi, 4
loop 0x2980a053
add eax, 0x9e738d39
add eax, 0x618de9ba
mov ebx, eax
add eax, 0xc10e743a
add eax, 0x3ef18bcb
mov ecx, 0x29800000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401298
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b5c8]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xb60154]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132c
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xb60154]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xb60150]
cmove eax, edx
xor edx, edx
mov dword [0xb60150], eax
cmp ecx, 0x3eb
mov eax, dword [0xb600a8]
cmove eax, edx
mov dword [0xb600a8], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xb6014c], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x4012fa
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d35e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405595
mov dword [ebp - 0x14], eax
cmp dword [0x4bb904], esi
jne 0x40d451
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d531
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d531
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d531
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4bb904], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4bb908], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4bb90c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb914], eax
test eax, eax
je 0x40d44e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb910], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d476
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d469
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d48b
push 4
pop eax
jmp 0x40d533
cmp dword [ebp - 0x14], esi
je 0x40d48b
push dword [0x4bb904]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d470
mov eax, dword [0x4bb910]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4e9
cmp dword [0x4bb914], edi
je 0x40d4e9
push eax
call ebx
push dword [0x4bb914]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4e9
test eax, eax
je 0x40d4e9
call ecx
test eax, eax
je 0x40d4de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d4de
test byte [ebp - 8], 1
jne 0x40d4e9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d519
mov eax, dword [0x4bb908]
cmp eax, edi
je 0x40d516
push eax
call ebx
test eax, eax
je 0x40d516
call eax
mov esi, eax
test esi, esi
je 0x40d516
mov eax, dword [0x4bb90c]
cmp eax, edi
je 0x40d516
push eax
call ebx
test eax, eax
je 0x40d516
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4bb904]
call ebx
test eax, eax
je 0x40d531
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d533
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a0
mov esp, ebp
pop ebp
ret
Function at 0x427dc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.004f4c50
mov dword [ebp - 8], eax
push str.Info_View
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00427c10
push 5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4285e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0x111
jne 0x428640
cmp dword [ebp + 0x10], 0x3ee
jne 0x428619
push 5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x428640
cmp dword [ebp + 0x10], 0x3ef
jne 0x428640
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.004f4d30
mov esp, ebp
pop ebp
ret 0x10
Function at 0x428760
Capabilities:
Check if file exists
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0x73fcb8
push 0x73fce0
lea eax, [ebp - 0x1c]
push eax
call fcn.004e6960
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.0041b040
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4287d8
lea ecx, [ebp - 0x1c]
call fcn.0041b040
push eax
push 0
push str.show_info_view
push 0x73fd04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
je 0x4287d6
mov dword [ebp - 0x40], 1
lea ecx, [ebp - 0x1c]
call fcn.00419320
mov eax, dword [ebp - 0x40]
jmp 0x428886
jmp 0x4287ef
mov dword [ebp - 0x48], 1
lea ecx, [ebp - 0x1c]
call fcn.00419320
mov eax, dword [ebp - 0x48]
jmp 0x428886
push 0
push 0x4286b0
push 0
push 0xbd
push 0
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x44], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x34], eax
push 0x41
push 0
push 0
mov eax, dword [ebp - 0x34]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 0x20]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
mov eax, dword [ebp - 0x44]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x38], 1
lea ecx, [ebp - 0x1c]
call fcn.00419320
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
Function at 0x4295b0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push str.FabDebugConfig.ini
push 0x740478
lea eax, [ebp - 0x1c]
push eax
call fcn.004e6960
add esp, 0x10
movzx ecx, byte [0x78b2ec]
test ecx, ecx
jne 0x429633
lea ecx, [ebp - 0x1c]
call fcn.0041b040
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429633
lea ecx, [ebp - 0x1c]
call fcn.0041b040
push eax
push 0
push str.setup_test_mode
push str.root
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jne 0x429623
mov dword [ebp - 0x24], 1
jmp 0x42962a
mov dword [ebp - 0x24], 0
mov dl, byte [ebp - 0x24]
mov byte [0x78b2ec], dl
mov al, byte [0x78b2ec]
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x1c]
call fcn.00419320
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret