joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a930
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x18], ebx
mov dword [ebx + 0x10c], 1
call fcn.0049ebe0
mov eax, dword [eax + 8]
mov ebp, 0x84
push eax
push 0x4d7f30
push 0x4de008
mov dword [0x4de078], 0x4d7f78
mov dword [0x4de094], 0x4de008
mov dword [0x4de008], ebp
mov dword [0x4de06c], 0x300
call fcn.0044cb90
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x4de08c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cx, word [0x4d834c]
mov dl, byte [0x4d834e]
mov word [esp + 0x10], cx
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, 0x4de008
mov byte [esp + 0x1a], dl
call fcn.0044a8e0
mov esi, eax
test esi, esi
je 0x44a9f9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x44aa3c
push str.RegServer
push esi
call edi
test eax, eax
je 0x44aa61
lea edx, [esp + 0x10]
mov ecx, 0x4de008
push edx
push esi
call fcn.0044a8e0
mov esi, eax
test esi, esi
jne 0x44a9cb
mov edx, 0x4de008
test edx, edx
je 0x44ab5e
mov esi, dword [0x4de018]
xor edi, edi
cmp dword [esi], 0
je 0x44ab72
mov ebp, dword [sym.imp.ole32.dll_CoRegisterClassObject]
lea ebx, [esi + 0x14]
test edi, edi
jne 0x44ab58
mov eax, dword [esi + 8]
mov dword [esp + 0x14], edi
test eax, eax
jne 0x44ab01
jmp 0x44ab36
push 0
push 0
push 0
push 0x66
push 0x4de008
call fcn.0044cec0
push 0
push 1
push 0x4de008
call fcn.0044ce30
jmp 0x44aae3
push 0
push 0
push 1
push 0x66
push 0x4de008
call fcn.0044cec0
mov eax, 0x4de008
test eax, eax
je 0x44aae3
mov esi, dword [0x4de018]
xor edi, edi
cmp dword [esi], 0
je 0x44aad7
mov eax, dword [esi + 0x18]
test eax, eax
je 0x44aa96
call eax
test eax, eax
jne 0x44aabd
push 1
call dword [esi + 4]
mov edi, eax
test edi, edi
jl 0x44aae3
cmp dword [0x4de008], ebp
jne 0x44aabd
push 1
call dword [esi + 0x1c]
mov ecx, dword [esi]
push eax
push ecx
call fcn.0044ccf0
mov edi, eax
test edi, edi
jl 0x44aae3
cmp dword [0x4de008], 0x64
jne 0x44aacb
add esi, 0x1c
jmp 0x44aace
add esi, 0x24
cmp dword [esi], 0
jne 0x44aa89
test edi, edi
jl 0x44aae3
push 0
push 0x4de008
call fcn.0044d2b0
push 0x4de008
mov dword [ebx + 0x10c], 0
call fcn.0044cc20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0x4bd580
push edx
call eax
mov edi, eax
test edi, edi
jl 0x44ab28
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push ebx
push 1
push 4
push eax
push ecx
call ebp
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x44ab36
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [0x4de008], 0x64
jne 0x44ab47
add esi, 0x1c
add ebx, 0x1c
jmp 0x44ab4d
add esi, 0x24
add ebx, 0x24
cmp dword [esi], 0
jne 0x44aa20
test edi, edi
jge 0x44ab72
mov ebx, dword [esp + 0x18]
pop edi
pop esi
mov dword [ebx + 0x10c], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x4604c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4ab43c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push ebp
push esi
xor esi, esi
mov dword [ecx + 4], esi
mov eax, dword [0x4d93ac]
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x440], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
push str.SearchEngine.ini
lea eax, [esp + 0x14]
push 0x4ddfc8
push eax
mov byte [esp + 0x44c], 2
mov dword [esp + 0x3c], 1
xor edi, edi
call fcn.0048fe06
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x440], 3
lea ecx, [esp + 0x19]
push 0xa
push ecx
push edi
mov byte [esp + 0x24], 0x4e
call fcn.0047aedc
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x38]
lea ecx, [esp + 0x18]
push edx
push 0x400
push eax
push 0x4db730
push ecx
push 0x4d6cd8
call ebx
cmp eax, esi
jne 0x460576
mov dword [esp + 0x30], esi
jmp 0x4606b0
lea edx, [esp + 0x38]
lea ecx, [esp + 0x24]
push edx
call fcn.0048fcfa
lea eax, [esp + 0x19]
push 0xa
push eax
push edi
mov byte [esp + 0x24], 0x53
call fcn.0047aedc
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push ecx
push 0x400
push edx
push 0x4db730
push eax
push 0x4d6cd8
call ebx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0048fcfa
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push esi
push eax
push 0x4d6cd8
mov byte [esp + 0x28], 0x43
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x19]
push 0xa
push ecx
push edi
mov ebp, eax
mov byte [esp + 0x24], 0x49
call fcn.0047aedc
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x38]
lea ecx, [esp + 0x18]
push edx
push 0x400
push eax
push 0x4db730
push ecx
push 0x4d6cd8
call ebx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x14]
push edx
call fcn.0048fcfa
push 0x10
call fcn.0049018f
add esp, 4
cmp eax, esi
je 0x460652
mov ecx, dword [0x4d93ac]
mov esi, eax
mov dword [eax + 4], ecx
mov edx, dword [0x4d93ac]
mov dword [eax + 8], edx
mov ecx, dword [0x4d93ac]
mov dword [eax + 0xc], ecx
lea edx, [esp + 0x24]
lea ecx, [esi + 4]
push edx
mov dword [esi], ebp
call fcn.0048fcaa
lea eax, [esp + 0x28]
lea ecx, [esi + 8]
push eax
call fcn.0048fcaa
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0xc]
call fcn.0048fcaa
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
mov eax, dword [edx + 0x10]
lea ebp, [edx + 8]
mov dword [esp + 0x38], eax
inc eax
push eax
mov ecx, ebp
call fcn.00446000
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax + ecx*4], esi
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x4606b0
mov eax, dword [esp + 0x2c]
inc dword [eax + 4]
mov eax, dword [esp + 0x30]
xor esi, esi
inc edi
cmp eax, esi
jne 0x460534
lea ecx, [esp + 0x10]
mov byte [esp + 0x440], 2
call fcn.0048fb71
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 1
call fcn.0048fb71
lea ecx, [esp + 0x24]
mov byte [esp + 0x440], 0
call fcn.0048fb71
lea ecx, [esp + 0x28]
mov dword [esp + 0x440], 0xffffffff
call fcn.0048fb71
mov ecx, dword [esp + 0x438]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x434
ret
Function at 0x4637f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4ab896
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x830
mov edx, dword [str.name]
mov eax, dword [str.state]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edx
mov cx, word [0x4d5944]
mov dword [esp + 0x2c], eax
mov al, byte [0x4d593c]
mov word [esp + 0x30], cx
mov ecx, dword [0x4d5934]
push str.LastVisit.ini
lea edx, [esp + 0x14]
xor ebp, ebp
push 0x4ddfc8
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x3e], ebp
mov byte [esp + 0x28], al
mov dword [esp + 0x29], ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebp
call fcn.0048fe06
mov eax, dword [0x4d93ac]
mov dword [esp + 0x848], ebp
xor esi, esi
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x848], 1
jmp 0x46388d
xor ebp, ebp
lea ecx, [esp + 0x31]
push 0xa
push ecx
push esi
call fcn.0047aedc
lea edx, [esp + 0x28]
push 0xa
push edx
push esi
call fcn.0047aedc
lea eax, [esp + 0x53]
push 0xa
push eax
push esi
call fcn.0047aedc
mov ecx, dword [esp + 0x34]
add esp, 0x24
lea edx, [esp + 0x2c]
push ecx
push ebp
push edx
push str.LastVisit
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x44]
push 0x800
push ecx
lea edx, [esp + 0x44]
push 0
push edx
push str.LastVisit
call ebx
test eax, eax
mov dword [esp + 0x28], eax
je 0x463952
lea eax, [esp + 0x40]
lea ecx, [esp + 0x14]
push eax
call fcn.0048fcfa
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
push 0x800
push edx
lea eax, [esp + 0x24]
push 0
push eax
push str.LastVisit
call ebx
push 0
push ebp
push 0
lea ecx, [esp + 0x4c]
push 0
add edi, 0x9c
push ecx
push esi
push 3
mov ecx, edi
call fcn.00488f11
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
push 1
push esi
call fcn.0048900c
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
inc esi
test eax, eax
jne 0x46388b
lea ecx, [edi + 0x9c]
call fcn.00469290
lea ecx, [esp + 0x14]
mov byte [esp + 0x848], 0
call fcn.0048fb71
lea ecx, [esp + 0x10]
mov dword [esp + 0x848], 0xffffffff
call fcn.0048fb71
mov ecx, dword [esp + 0x840]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x83c
ret
Function at 0x4639b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4ab8ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
mov eax, dword [str.name]
mov edx, dword [0x4d5934]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov cl, byte [0x4d593c]
push str.LastClose.ini
lea eax, [esp + 0x14]
push 0x4ddfc8
push eax
mov byte [esp + 0x28], cl
mov dword [esp + 0x29], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0
call fcn.0048fe06
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x834], 0
xor ebp, ebp
lea ecx, [esp + 0x1c]
push 0xa
push ecx
push ebp
call fcn.0047aedc
lea edx, [esp + 0x33]
push 0xa
push edx
push ebp
call fcn.0047aedc
mov eax, dword [esp + 0x28]
add esp, 0x18
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x18]
push eax
push 0x800
push ecx
push 0
push edx
push str.LastClose
call ebx
mov esi, eax
test esi, esi
je 0x463abc
mov eax, dword [esp + 0x14]
push 0
push 9
push 0
lea ecx, [esp + 0x38]
push 0
lea edi, [eax + 0x9c]
push ecx
push 0
push 3
mov ecx, edi
call fcn.00488f11
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push 0x800
push eax
lea ecx, [esp + 0x30]
push 0
push ecx
push str.LastClose
call ebx
mov esi, eax
test esi, esi
je 0x463abc
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
push 1
push 0
call fcn.0048900c
inc ebp
test esi, esi
jne 0x463a27
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x9c]
call fcn.00469290
lea ecx, [esp + 0x10]
mov dword [esp + 0x834], 0xffffffff
call fcn.0048fb71
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x828
ret
Function at 0x469760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ac270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [0x4d93ac]
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0x88]
push 0
push 0
push 0x1004
push ecx
mov byte [esp + 0x30], 1
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
jle 0x469838
push 0
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [ebp + 0x6c]
call fcn.00489037
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.0048fcaa
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0048fb71
lea ecx, [esp + 0xc]
call fcn.004900a5
lea ecx, [esp + 0x28]
call fcn.004900a5
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x469822
test cl, cl
je 0x46981e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x469822
add eax, 2
add esi, 2
test cl, cl
jne 0x4697fe
xor eax, eax
jmp 0x469827
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x469834
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x4697b7
mov eax, dword [esp + 0x10]
cmp edi, eax
jne 0x469892
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push eax
push edi
push 1
lea ecx, [ebp + 0x6c]
call fcn.00488f11
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push 0x4ddfd8
push edx
call fcn.0048fda0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 3
call fcn.0048fcaa
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0048fb71
mov eax, dword [esp + 0x28]
push eax
call fcn.0040ff70
add esp, 4
mov ecx, dword [ebp + 0x88]
push 0
push edi
push 0x1013
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea esi, [ebp + 0x6c]
push 3
push 3
push edi
mov ecx, esi
call fcn.00488fe1
mov ecx, esi
call fcn.0048f2db
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0048fb71
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0048fb71
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x46a8e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ac4d8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
mov edi, ecx
push 0
push 0
push 0x431
mov eax, dword [edi + 0x138]
push eax
call ebx
push eax
call fcn.004895d1
test eax, eax
je 0x46a926
mov ecx, eax
call fcn.004895bb
lea ecx, [esp + 0xc]
call fcn.0048953f
push 1
push 8
push 0xff
push 0xc
push 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.00489604
mov ecx, dword [0x4dde94]
push str.StatusTool.bmp
call fcn.00439300
mov edx, dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 0xc]
push 0xff00ff
neg eax
sbb eax, eax
push esi
and eax, edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
mov ecx, dword [edi + 0x138]
neg eax
sbb eax, eax
and eax, edx
push eax
push 0
push 0x430
push ecx
call ebx
push eax
call fcn.004895d1
lea ecx, [esp + 0xc]
call fcn.00489591
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00489568
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46c7d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ac740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.0049333b
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00492a4c
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00492e4c
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call fcn.00492e98
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00492e4c
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call fcn.00492e98
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00492e4c
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call fcn.00492e98
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00492e4c
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call fcn.00492e98
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00492e4c
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call fcn.00492e98
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call fcn.00492e4c
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call fcn.00492e98
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call fcn.00492e4c
push ebp
push ebx
mov ecx, esi
call fcn.00492e98
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.00492a4c
lea ecx, [esp + 0x10]
call fcn.00493392
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.00493392
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x46cbc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ac7b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], vtable.CBrush.0
mov ebx, dword [esp + 0x30]
push 0x3feb3333
push 0x33333333
mov dword [esp + 0x24], 0
mov eax, dword [ebx]
push eax
call fcn.0046c010
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x10]
call fcn.0049333b
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xc]
mov ecx, dword [edi + 4]
neg eax
sbb eax, eax
and eax, esi
mov esi, dword [esp + 0x28]
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0xc]
call fcn.00493392
mov eax, dword [ebx]
mov ecx, edi
push eax
push eax
push esi
call fcn.0049a367
mov eax, dword [esp + 0x2c]
push 7
test eax, eax
jne 0x46cc7a
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
add edx, 4
add eax, 5
push edx
push eax
push edi
call fcn.0046c7d0
jmp 0x46cc94
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 5
push ecx
push edx
push edi
call fcn.0046c960
add esp, 0x10
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 1
call fcn.00493392
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x47fc48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4dad90
cmp edx, dword [eax]
je 0x47fc6a
add eax, 8
inc ecx
cmp eax, 0x4dae20
jl 0x47fc5b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4dad90]
jne 0x47fd98
mov eax, dword [0x4e02d8]
cmp eax, 1
je 0x47fd72
test eax, eax
jne 0x47fc9b
cmp dword [0x4da564], 1
je 0x47fd72
cmp edx, 0xfc
je 0x47fd98
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47fcd2
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0047efc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0047f3d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x47fd15
lea eax, [ebp - 0x1a4]
push eax
call fcn.0047f3d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4d7e84
push edi
call fcn.004794b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0047efc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0047efd0
lea eax, [ebp - 0xa0]
push 0x4bd278
push eax
call fcn.0047efd0
push dword [esi + 0x4dad94]
lea eax, [ebp - 0xa0]
push eax
call fcn.0047efd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00481d05
add esp, 0x2c
pop edi
jmp 0x47fd98
lea eax, [ebp + 8]
lea esi, [esi + 0x4dad94]
push 0
push eax
push dword [esi]
call fcn.0047f3d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x486a30
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.00478f60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x486afb
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 0x486afb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x486aae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x486ab9
or bh, 8
and edi, 0x8000000
je 0x486ad4
mov eax, dword [0x4e1a9c]
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 0x486afb
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 0x486ed0
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 0x486efb
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 0x486f1f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x486f3a
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