joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
test eax, eax
je 0x499bad
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x499bad
mov edx, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0x14]
lea ecx, [ebp + 0xc]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x499ba5
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push esi
push edx
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x499b9b
cmp dword [ebp - 8], eax
setne bl
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ebp + 0x14]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x499bc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
push esi
cmp eax, ebx
je 0x499c2b
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x499c2b
mov edx, dword [ebp + 8]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x499c23
cmp byte [ebp + 0x14], bl
mov edx, dword [ebp + 0xc]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
setne al
push ebx
push esi
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x499c19
mov bl, 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test eax, eax
je 0x499ca9
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x499ca8
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x499ca7
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x499ca6
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x499ca6
push esi
push edi
push 1
push eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c030
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3543
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
mov dword [ebp - 0x270], edi
push ecx
mov dword [ebp - 0x274], esi
mov word [ebp - 0x218], ax
call fcn.004b7180
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
add esp, 0xc
mov word [esi], dx
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
mov dword [ebp - 4], edi
mov dword [ebp - 0x270], 1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x49c1b0
cmp eax, 0x104
jae 0x49c1b0
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
lea edx, [ebp - 0x218]
push 0x104
push edx
mov dword [ebp - 4], 1
call fcn.004b78cd
lea ecx, [eax - 1]
add esp, 8
cmp ecx, 0x102
ja 0x49c198
movzx eax, word [ebp + eax*2 - 0x21a]
cmp eax, 0x5c
je 0x49c137
cmp eax, 0x2f
je 0x49c137
push 0x4e9370
lea ecx, [ebp - 0x234]
call fcn.00421f10
push 0x40
push str.chc.4875E02D9FB21EE389F73B8D1702B320485DF8CE.1Local_StoreHelp_
lea ecx, [ebp - 0x234]
call fcn.0040d610
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x26c]
call fcn.00408780
lea ecx, [ebp - 0x234]
push ecx
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp - 4], 2
call fcn.00422f80
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00405fc0
lea ecx, [ebp - 0x250]
call fcn.00409ff0
lea ecx, [ebp - 0x26c]
call fcn.00409ff0
cmp dword [ebp - 0x220], 8
jb 0x49c1b0
mov eax, dword [ebp - 0x234]
push eax
call fcn.00406d09
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x49cfb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3716
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5246a8]
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 esi, ecx
xor edi, edi
mov dword [ebp - 0x220], esi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov eax, 7
xor ecx, ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], edi
mov word [esi + 0x40], cx
xor edx, edx
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], edi
mov word [esi + 0x5c], dx
mov dword [esi + 0x8c], eax
xor eax, eax
mov dword [esi + 0x88], edi
mov word [esi + 0x78], ax
mov ecx, dword [esi + 0x20]
mov byte [ebp - 4], 4
cmp ecx, dword [esi + 0x24]
je 0x49d06b
mov eax, dword [esi + 0x24]
cmp ecx, eax
je 0x49d06b
mov edx, dword [ebp - 0x220]
push edx
push ecx
push eax
push eax
call fcn.0049bdf0
mov edx, dword [esi + 0x24]
mov ebx, eax
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [esi + 0x2c]
push ecx
push edx
push ebx
call fcn.0049be30
add esp, 0x20
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
je 0x49d0a8
mov ecx, eax
mov eax, dword [esi + 0x34]
cmp ecx, eax
je 0x49d0a8
mov edx, dword [ebp - 0x220]
push edx
push ecx
push eax
push eax
call fcn.0049bdf0
mov edx, dword [esi + 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [esi + 0x3c]
push ecx
push edx
push ebx
call fcn.0049be30
add esp, 0x20
mov dword [esi + 0x34], ebx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, 1
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push 0x20
push edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
js 0x49d11f
cmp word [ebp - 0x21c], di
je 0x49d11f
lea ecx, [ebp - 0x21c]
push ecx
call ebx
test eax, eax
je 0x49d11f
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49d100
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [esi + 0x40]
call fcn.00406040
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x49d16f
lea ecx, [ebp - 0x21c]
push ecx
call ebx
test eax, eax
je 0x49d16f
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
jmp 0x49d150
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49d150
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [esi + 0x5c]
call fcn.00406040
mov ecx, esi
call fcn.0049c1d0
mov eax, esi
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.00401306
mov esp, ebp
pop ebp
ret
Function at 0x49e8e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0x5c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 5
push edx
call ebx
mov eax, dword [esi + 0x5c]
push 0
push 0
push 7
push eax
call ebx
mov ecx, dword [esi + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp byte [esi + 0x59], 0
je 0x49e995
push edi
nop
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x49e994
mov edi, dword [esi + 4]
test edi, edi
je 0x49e97a
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0x24]
cmp ecx, eax
je 0x49e964
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x49e97a
mov ecx, dword [edi + 0x24]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x37f
push ecx
call ebx
cmp eax, 1
je 0x49e98e
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0x59], 0
jne 0x49e930
pop edi
xor eax, eax
cmp dword [esi + 0x54], 1
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49f530
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x49f5a4
cmp dword [esi + 0x14], 8
jb 0x49f54c
mov eax, dword [esi]
jmp 0x49f54e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x49f5a4
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004b7180
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 1
jb 0x49f582
mov esi, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x49f5a6
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
pop edi
mov dword [edx], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x49fc10
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3b20
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
mov eax, dword [0x5246a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x40]
mov esi, 1
mov dword [ebp - 4], esi
test eax, 0x100000
jne 0x49fd4d
test eax, 0x20000
je 0x49fc62
test eax, 0x10000
je 0x49fd4d
cmp dword [ebp + 0x18], 0
je 0x49fd4d
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x49fc78
lea eax, [ebp + 8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsURLW]
push eax
call ebx
test eax, eax
je 0x49fd4d
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004b7180
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x44], esi
jae 0x49fcaf
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCrackUrlW]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push edx
push eax
call esi
test eax, eax
je 0x49fd4d
mov eax, dword [ebp - 0x40]
cmp eax, 3
je 0x49fcd7
cmp eax, 4
jne 0x49fd4d
cmp dword [ebp + 0x34], 0
je 0x49fd4d
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x49fce9
lea eax, [ebp + 0x24]
push eax
call ebx
test eax, eax
je 0x49fd4d
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004b7180
mov eax, dword [ebp + 0x24]
add esp, 0xc
cmp dword [ebp + 0x38], 8
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x44], 1
jae 0x49fd1a
lea eax, [ebp + 0x24]
mov edx, dword [ebp + 0x34]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push edx
push eax
call esi
test eax, eax
je 0x49fd4d
mov eax, dword [ebp - 0x40]
cmp eax, 3
je 0x49fd38
cmp eax, 4
jne 0x49fd4d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x60]
push 1
lea eax, [ebp + 8]
push eax
push edx
call fcn.0047e220
add esp, 0xc
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x49fd63
mov eax, dword [ebp + 8]
push eax
call fcn.00406d09
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], esi
jb 0x49fd88
mov edx, dword [ebp + 0x24]
push edx
call fcn.00406d09
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x4a57f0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3ee8
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5246a8]
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 esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov edi, ecx
test eax, eax
je 0x4a5993
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x4a583c
mov eax, dword [esi]
jmp 0x4a583e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x4a5993
push 0x3c
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.004b7180
mov ecx, dword [esi + 0x10]
mov eax, 1
add esp, 0xc
mov dword [ebp - 0xc0], 0x3c
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xac], eax
cmp dword [esi + 0x14], ebx
jb 0x4a5887
mov eax, dword [esi]
jmp 0x4a5889
mov eax, esi
lea edx, [ebp - 0xc0]
push edx
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4a5993
mov eax, dword [ebp - 0xb4]
cmp eax, 3
je 0x4a58b6
cmp eax, 4
jne 0x4a5993
mov eax, dword [ebp - 0xbc]
xor bl, bl
test eax, eax
je 0x4a5980
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x4a5980
cmp dword [ebp - 0xb0], 0
je 0x4a5980
cmp dword [ebp - 0xac], 0
jbe 0x4a5980
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004608c0
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
push eax
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.004608c0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], 1
call fcn.004a5770
add esp, 0xc
push eax
lea edx, [ebp - 0x84]
push edx
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 2
call fcn.004a49e0
lea ecx, [ebp - 0x80]
call fcn.00409fa0
mov eax, dword [ebp - 0x84]
cmp eax, dword [edi + 0x68]
je 0x4a596c
add eax, 0x44
cmp dword [eax + 0x14], 8
jb 0x4a595f
mov eax, dword [eax]
push eax
mov eax, dword [edi + 0x5c]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov bl, 1
lea ecx, [ebp - 0x48]
call fcn.00409ff0
lea ecx, [ebp - 0x2c]
call fcn.00409ff0
test bl, bl
jne 0x4a5993
cmp dword [esi + 0x14], 8
jb 0x4a5988
mov esi, dword [esi]
mov ecx, dword [edi + 0x5c]
push esi
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
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.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x4a74e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4199
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5246a8]
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 edi, ecx
mov esi, dword [ebp + 8]
xor al, al
mov dword [ebp - 0x34], 0
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x2d], al
je 0x4a763f
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x4a7534
mov eax, dword [esi]
jmp 0x4a7536
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x4a763c
push 0x3c
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.004b7180
mov eax, dword [esi + 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x70], 0x3c
neg ecx
or ecx, eax
push ecx
call fcn.00416893
add esp, 0x10
mov dword [ebp - 0x60], eax
test eax, eax
je 0x4a7584
mov eax, dword [esi + 0x10]
inc eax
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], ebx
jb 0x4a758e
mov esi, dword [esi]
lea ecx, [ebp - 0x70]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4a762c
mov eax, dword [ebp - 0x64]
cmp eax, 3
je 0x4a7603
cmp eax, 4
jne 0x4a762c
mov edx, 0x1bb
cmp word [ebp - 0x58], dx
jne 0x4a762c
mov ecx, dword [ebp - 0x60]
xor esi, esi
cmp ecx, esi
je 0x4a760a
mov eax, dword [ebp - 0x5c]
cmp eax, esi
je 0x4a760a
push eax
xor edx, edx
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
call fcn.00406040
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 1
call fcn.004a7130
test al, al
je 0x4a760a
xor bl, bl
jmp 0x4a760c
cmp word [ebp - 0x58], 0x50
jmp 0x4a75ba
mov bl, 1
test byte [ebp - 0x34], 1
je 0x4a7624
cmp dword [ebp - 0x18], 8
jb 0x4a7624
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406d09
add esp, 4
test bl, bl
jne 0x4a762c
mov byte [ebp - 0x2d], 1
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4a763c
push eax
call fcn.004168eb
add esp, 4
mov al, byte [ebp - 0x2d]
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.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x4aa050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x528fe8]
push edi
push 0xf0
push eax
mov edi, 1
push esi
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4aa218
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4aa218
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4aa218
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x4aa0c6
mov edi, dword [ebp - 0x10c]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4aa203
mov edx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov ecx, 0x403
add esi, 8
mov dword [ebp - 0x114], edx
cmp cx, ax
jne 0x4aa156
push 3
lea edx, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], edx
call fcn.004a9110
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x110]
push eax
mov eax, dword [edx + 4]
push 0
push 0x143
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4aa134
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x4aa1d7
push eax
call fcn.00402cee
add esp, 4
jmp 0x4aa1d7
mov edx, 0x1234
cmp dx, ax
jne 0x4aa1d7
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.004a9110
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x4aa1ad
push eax
call fcn.00402cee
add esp, 4
mov ecx, dword [ebp - 0x110]
lea edx, [ebp - 0x138]
push edx
mov edx, dword [ecx + 4]
push 0
push 0x40b
push edi
push edx
call ebx
cmp eax, 0xffffffff
jne 0x4aa1d7
mov dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x4aa0c0
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x4ace80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.004a61f0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push ebx
push esi
mov dword [ebp - 8], 0
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4acf4e
push 0xf0
push ebx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x4aced4
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x4acf37
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4acf37
push ebx
push edi
call fcn.004a8390
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 8
push ecx
mov ebx, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4acf23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x4acf40
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4acf40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4acf4e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4adc50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e34d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5246a8]
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]
mov edi, dword [ebp + 8]
mov esi, ecx
cmp byte [esi + 0x104], 0
mov dword [ebp - 0x30], eax
mov eax, 2
mov dword [esi + 0x128], eax
mov dword [esi + 0x10c], edi
je 0x4add77
push 0
push edi
call fcn.004ad510
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4add44
test edi, edi
je 0x4adcc8
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 4]
push 5
push ecx
mov byte [esi + 0x124], 1
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
call ebx
test eax, eax
je 0x4add2d
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004a8f20
test eax, eax
jne 0x4add14
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0x124], 0
je 0x4add2d
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x4adcf1
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
test edi, edi
je 0x4add44
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.004ad140
mov ecx, dword [ebp - 0x30]
push eax
mov dword [ebp - 4], 0
call fcn.00405fc0
cmp dword [ebp - 0x18], 8
jb 0x4add71
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406d09
add esp, 4
mov eax, dword [esi + 0x128]
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.00401306
mov esp, ebp
pop ebp
ret 8
Function at 0x4af750
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push 0x7f02
push 0
mov ebx, ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4af779
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 4], eax
jmp 0x4af780
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x5c]
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp byte [ebx + 0x59], 0
mov edi, eax
je 0x4af7e5
mov edi, edi
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4af7e5
call esi
call esi
sub eax, edi
cmp eax, 0x493e0
ja 0x4af7e5
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [ebx + 0x59], 0
jne 0x4af7a0
mov eax, dword [ebp - 4]
pop edi
pop esi
test eax, eax
je 0x4af7f5
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp dword [ebx + 0x54], 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret