joyce8/EMBER2024-capa huggingface dataset:
Function at 0x504e40
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push edi
push str.Foxmail.exe
mov edi, ecx
push eax
mov dword [ebp - 0x644], edi
call esi
push str.msimn.exe
lea eax, [ebp - 0x414]
push eax
call esi
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call ebx
push 0x104
lea eax, [ebp - 0x414]
push eax
call ebx
push 0
push 2
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x504f49
lea eax, [ebp - 0x640]
mov dword [ebp - 0x640], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x504f3e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [eax]
push 0x104
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x504f0a
mov bl, 1
jmp 0x504f27
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
lea eax, [ebp - 0x640]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x504ee0
mov edi, dword [ebp - 0x644]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x504f58
push 0
push 0
push 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [edi + 0x3f4]
push eax
push 0x4e0fd0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, edi
call fcn.005054f0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x506170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7248e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7db1e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
je 0x5061e0
cmp dword [esi], 0
jne 0x5061cc
push 0
push 0
push esi
push fcn.00506530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x5061e9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00506530
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x506bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.004dbd40
mov esi, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp + 8]
push 5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x506c7c
push 0xf0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, eax
mov dword [ebp + 0xc], edi
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
test ecx, ecx
je 0x506c07
push ecx
push ebx
call eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 4]
xor esi, esi
push ebx
call eax
test eax, eax
je 0x506c69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x506c69
push dword [ebp + 0xc]
push eax
call fcn.004d8c10
add esp, 8
mov ebx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov edi, eax
test edi, edi
jne 0x506c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, dword [ebp - 4]
je 0x506c71
test ebx, ebx
je 0x506c71
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x506c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x506c7c
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x506f80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x506ffd
mov esi, dword [ebp + 8]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x506fb7
push edi
mov ecx, esi
call fcn.004d5ad0
mov edx, dword [esi]
push edi
push edx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x506fde
mov ecx, dword [esi]
test ecx, ecx
je 0x506fe2
push dword [ecx - 8]
push ecx
call fcn.006fbebc
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x506ffd
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x506ffd
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.004cf5d0
int3
Function at 0x507630
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72203d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7db1e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xfc
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x5076eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004d4560
mov esi, dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5076d7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004cf5d0
int3
Function at 0x50c1e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea eax, [esi - 0x28]
neg esi
sbb esi, esi
and esi, eax
cmp dword [ebp + 0x14], 0
je 0x50c2de
push ebx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
js 0x50c32f
mov edi, dword [ebp + 0xc]
mov ecx, 1
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, ebx
or ecx, eax
jge 0x50c23b
push ebx
mov ecx, edi
call fcn.004d5ad0
mov edx, dword [edi]
cmp ebx, dword [edx - 8]
jg 0x50c32f
mov dword [edx - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
lea eax, [ebx + 1]
push eax
push edx
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp + 0xc], eax
mov eax, dword [edi]
test eax, eax
jne 0x50c26a
xor ecx, ecx
jmp 0x50c280
push dword [eax - 8]
push eax
call fcn.006fbebc
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x50c32f
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x50c32f
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
cmp dword [ebp + 0xc], ebx
pop ebx
mov word [eax + ecx*2], dx
jge 0x50c2a0
xor edi, edi
jmp 0x50c2f5
cmp dword [ebp + 0x18], edx
je 0x50c322
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, dword [ebp + 0x1c]
jle 0x50c322
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [ebp + 8]
lea eax, [esi + 0x28]
neg eax
sbb eax, eax
and eax, esi
push dword [eax + 4]
mov eax, dword [sym.imp.USER32.dll_GetDlgItem]
call eax
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, eax
test edi, edi
jne 0x50c327
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [ebp + 8]
mov eax, dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esi + 0x28]
neg ecx
sbb ecx, ecx
and ecx, esi
push dword [ecx + 4]
call eax
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18
push 0x80070057
call fcn.004cf5d0
int3
Function at 0x50c340
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
cmp esi, 0xffffffff
je 0x50c358
cmp esi, 0xcc
jne 0x50c3d3
lea edi, [ebx + 0x28]
mov dword [ebp + 0xc], 1
neg edi
push 1
sbb edi, edi
and edi, ebx
cmp dword [ebp + 8], 0
je 0x50c38a
lea eax, [ebp + 0xc]
push eax
push 0xcc
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItemInt]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0xc]
jmp 0x50c39e
push dword [ebx + 0x2c]
push 0xcc
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x50c3ce
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
lea eax, [edi + 0x28]
neg eax
push 0xcc
sbb eax, eax
and eax, edi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp + 0xc], 0
je 0x50c3fa
cmp esi, 0xffffffff
je 0x50c3db
cmp esi, 0xde
jne 0x50c40a
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x40]
push 0
push 0
push edi
push 4
push eax
push 0xde
lea ecx, [ebx + 0x28]
call fcn.0050c1e0
test eax, eax
jne 0x50c403
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
cmp esi, 0xffffffff
je 0x50c419
jmp 0x50c40d
mov edi, dword [ebp + 8]
cmp esi, 0xd7
jne 0x50c4b2
lea eax, [ebx + 0x28]
neg eax
push 0xd7
sbb eax, eax
and eax, ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test edi, edi
je 0x50c440
mov dword [ebx + 0x414], 0xffffffff
xor edi, edi
push 0
push 0
push 0x87
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 0x40
je 0x50c493
cmp dword [ebp + 8], 0
push 0
je 0x50c479
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xf0
push esi
call eax
test eax, eax
je 0x50c492
mov dword [ebx + 0x414], edi
jmp 0x50c492
xor eax, eax
cmp edi, dword [ebx + 0x414]
sete al
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0xf1
push esi
call eax
inc edi
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x50c4b2
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x50c442
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
Function at 0x50ca30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x724e90
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xdc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push 1
push str.SoftwareNeteaseNeteasePluginOtherPlugin_
mov dword [ebp - 0x38], eax
call fcn.004cc520
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.004dbac0
lea ecx, [ebp - 0x84]
call fcn.004cca40
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x84], vtable.std::ios_base.0
call fcn.006f3999
add esp, 4
lea ecx, [ebp - 0x2c]
xor esi, esi
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x30], esi
cmovae eax, dword [ebp - 0x28]
push ecx
push 0x20019
push esi
push eax
push edi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50cb17
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp - 0x38]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50cb17
cmp dword [ebp - 0x3c], 4
jne 0x50cb17
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
mov bl, 1
jmp 0x50cb19
xor bl, bl
test esi, esi
je 0x50cb24
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x50cb54
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50cb4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50cb74
push edx
push ecx
call fcn.006f4b9f
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 0xc
call fcn.006fb96e
int3
Function at 0x50d430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72203d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7db1e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 4]
call esi
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xd3
push dword [edi + 4]
mov byte [edi + 0x379], 0
call ebx
push 0
push eax
call esi
push 0xd5
push dword [edi + 4]
call ebx
push 0
push eax
call esi
push 0x101
push dword [edi + 4]
call ebx
push 0
push eax
call esi
push 0xd4
push dword [edi + 4]
call ebx
push 0
push eax
call esi
push 0x146
push dword [edi + 4]
call ebx
push 0
push eax
call esi
lea ecx, [edi + 0x74]
mov byte [edi + 0x94], 1
call fcn.005104b0
mov eax, dword [edi + 0x74]
lea ecx, [edi + 0x74]
call dword [eax + 8]
mov eax, dword [edi + 0x1d0]
test eax, eax
je 0x50d4e8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [edi + 0x1cc], 1
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x50d57e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x72
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004d4560
push 0xde
push dword [edi + 4]
call ebx
mov esi, dword [ebp - 0x10]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xe2
push dword [edi + 4]
call ebx
push 0
push 0
push 0x172
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50d568
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004cf5d0
int3
Function at 0x50ffe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72203d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7db1e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [edi + 4]
call esi
xor edx, edx
cmp byte [edi + 0x45], dl
sete dl
push edx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xd3
push dword [edi + 4]
mov byte [edi + 0x379], 0
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 0xd5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call esi
push 0x101
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call esi
push 0xd4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call esi
push 0x146
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call esi
mov ecx, edi
call fcn.0050f0c0
push 5
push dword [edi + 4]
call esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xe2
push dword [edi + 4]
call esi
push 0
push 0
push 0x172
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x510132
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x72
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004d4560
push 0xde
push dword [edi + 4]
call esi
mov esi, dword [ebp - 0x10]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
lea ecx, [edi + 4]
call fcn.004fd220
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x510120
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004cf5d0
int3
Function at 0x510950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [0x7f44f0]
push edi
push 0xf0
push 0x144
push esi
mov dword [ebp - 0x10c], ecx
mov edi, 1
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x510ad6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x510ad6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x510ad6
mov edx, 0x1234
nop
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x510ad0
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x510a48
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.004d3aa0
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x510abd
push eax
call fcn.006fa47e
add esp, 4
jmp 0x510abd
cmp dx, ax
jne 0x510ac2
push 3
lea eax, [ebp - 0x104]
mov dword [ebp - 0x138], 1
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.004d3aa0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x510a9a
push eax
call fcn.006fa47e
add esp, 4
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x510ad0
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x5109c0
mov ebx, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5117c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [0x7f44f0]
push edi
push 0xf0
push 0xcf
push esi
mov dword [ebp - 0x10c], ecx
mov edi, 1
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x511946
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x511946
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x511946
mov edx, 0x1234
nop
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x511940
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x5118b8
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.004d3aa0
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x51192d
push eax
call fcn.006fa47e
add esp, 4
jmp 0x51192d
cmp dx, ax
jne 0x511932
push 3
lea eax, [ebp - 0x104]
mov dword [ebp - 0x138], 1
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.004d3aa0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x51190a
push eax
call fcn.006fa47e
add esp, 4
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x511940
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x511830
mov ebx, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x512560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 8]
test esi, esi
je 0x5126b8
test edi, edi
je 0x5126b8
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x7d9a60
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d9a78]
mov dword [esi + 8], eax
push 0x7d9a60
mov dword [0x7d9a78], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [edi + 0x20], 1
mov dword [edi + 0x24], 0
mov esi, dword [0x7f44f0]
mov dword [ebp - 8], esi
call fcn.004dbd40
push 5
push 0x144
push esi
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x51269a
push 0xf0
push 0x144
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], 0
test eax, eax
je 0x512618
push eax
push esi
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
xor esi, esi
push dword [ebp - 8]
call ecx
test eax, eax
je 0x512687
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x512687
push dword [ebp - 4]
push eax
call fcn.004d8c10
add esp, 8
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push 0x4d8f40
push dword [ebp + 8]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov ebx, eax
test ebx, ebx
je 0x512663
cmp ebx, 0xffffffff
jne 0x51266b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x51268f
test eax, eax
je 0x51268f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x51268f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x51269a
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x24]
test eax, eax
jns 0x5126ad
cmp ebx, 0xffffffff
jne 0x5126ad
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0xc0000005
call fcn.004d9b20
int3