joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073f3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x407400
xor eax, eax
pop ebp
ret
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
mov ecx, 0x473c70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
call fcn.004071d0
test al, al
je 0x407428
mov eax, dword [ebp + 0x1c]
pop ebp
ret
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
movzx eax, al
push eax
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406e29
add esp, 0x1c
pop ebp
ret

Function at 0x40a1d4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, ebx
and eax, edi
mov esi, ecx
test al, 1
je 0x40a1fa
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40a1fa
and ebx, 0xfffffffe
mov eax, ebx
and eax, edi
test al, 2
je 0x40a212
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40a212
and ebx, 0xfffffffd
mov eax, ebx
and eax, edi
test al, 4
je 0x40a22a
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40a22a
and ebx, 0xfffffffb
push 6
pop ebp
test bl, 1
je 0x40a249
push ebp
push 0x10
mov ecx, esi
call fcn.00409df0
push ebp
push 0xa1
mov ecx, esi
call fcn.00409df0
test bl, 2
je 0x40a265
push ebp
push 0x11
mov ecx, esi
call fcn.00409df0
push ebp
push 0xa3
mov ecx, esi
call fcn.00409df0
test bl, 4
je 0x40a29d
test bl, 3
jne 0x40a279
push ebp
push 0x11
mov ecx, esi
call fcn.00409df0
push ebp
push 0x12
mov ecx, esi
call fcn.00409df0
mov edi, 0xa5
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x40a29d
push ebp
push edi
mov ecx, esi
call fcn.00409df0
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40a81c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
jne 0x40a8e4
mov eax, 0x80
cmp word [ebp + 8], ax
jae 0x40a8e4
cmp byte [ebp + 0x10], 0
jne 0x40a861
cmp byte [esi + 0xd], 0
jne 0x40a857
call sym.qmmacro.exe_GetMod
test eax, eax
setne al
inc al
mov byte [esi + 0xd], al
cmp byte [esi + 0xd], 2
je 0x40a8e4
cmp dword [esi + 8], 0
jne 0x40a86f
call fcn.00409183
mov dword [esi + 8], eax
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx edi, ax
cmp di, 0xffff
je 0x40a8e4
push ebx
mov ebx, edi
shr ebx, 8
and bl, 7
mov byte [ebp + 0xc], bl
cmp bl, 1
ja 0x40a8c9
movzx eax, byte [ebp + 8]
mov ecx, 0x103
test word [eax*2 + 0x475468], cx
je 0x40a8c9
cmp byte [esi + 0xc], 0
jne 0x40a8bd
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
inc al
mov byte [esi + 0xc], al
cmp byte [esi + 0xc], 2
jne 0x40a8c9
xor bl, 1
mov byte [ebp + 0xc], bl
xor eax, eax
cmp bl, 1
setne al
mov ecx, esi
dec eax
and eax, 2
push eax
push edi
push dword [ebp + 0xc]
call fcn.0040a03a
pop ebx
jmp 0x40a8f7
movzx eax, word [ebp + 8]
push 0
or eax, 0x40000
push eax
mov ecx, esi
call fcn.00409df0
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x422ce3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
push edi
mov ecx, esi
call fcn.0042b85f
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push edi
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call ebx
cmp eax, 8
jl 0x422db7
cmp eax, 0xffffffff
je 0x422db7
cmp eax, 0x2746
je 0x422db7
cmp byte [ebp - 0xc], 0x51
jne 0x422db7
cmp byte [ebp - 0xb], 0x4d
jne 0x422db7
cmp byte [ebp - 0xa], 0
jne 0x422db7
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x422d4c
movsx ecx, byte [ebp - 9]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 4]
mov dword [ebp - 4], ecx
mov edi, 0x100
cmp eax, ecx
jae 0x422daa
lea ecx, [eax + edi]
cmp ecx, dword [ebp - 4]
jbe 0x422d6b
mov edi, dword [ebp - 4]
sub edi, eax
push 1
add eax, edi
push eax
mov ecx, esi
call fcn.0042b7c7
mov eax, dword [esi + 4]
add eax, dword [esi]
push 0
push edi
push eax
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x422daa
test eax, eax
je 0x422daa
mov ecx, dword [esi + 4]
add ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.0042b85f
mov eax, dword [esi + 4]
mov edi, 0x2000
cmp eax, dword [ebp - 4]
jb 0x422d5e
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi + 4], ecx
sete al
jmp 0x422db9
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x422dbe
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x422df8
push edi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
je 0x422df2
push edi
push str.WSAStartup
call fcn.00422c86
pop ecx
pop ecx
test edi, edi
sete al
mov byte [esi], al
pop edi
mov al, byte [esi]
pop esi
add esp, 0x190
ret

Function at 0x422e46
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x45da10
call fcn.0044e550
sub esp, 0x10
push ebx
xor ebx, ebx
cmp byte [ebp + 0x14], bl
je 0x422e91
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dl, byte [ebp + 0x10]
mov byte [ecx + 2], bl
mov ecx, dword [eax]
mov byte [ecx + 3], dl
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ebx
sub ecx, 8
mov dword [edx + 4], ecx
push dword [eax + 4]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x422ee3
push esi
mov esi, dword [ebp + 0xc]
push esi
push str.QM__....
lea ecx, [ebp - 0x1c]
call fcn.00422e26
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp + 0x10]
mov byte [eax + 2], bl
mov eax, dword [ebp - 0x1c]
mov byte [eax + 3], cl
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
push ebx
mov dword [ecx + 4], eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042b651
mov al, bl
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x422ef0
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov eax, 0x45d813
call fcn.0044e550
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
push 0x3a
push edi
call fcn.00450740
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422f42
lea eax, [esi + 1]
push eax
call fcn.0043b2b0
movzx ebx, ax
test bx, bx
je 0x422f42
sub esi, edi
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0042c86b
mov edi, dword [ebp - 0x20]
jmp 0x422f47
mov ebx, 0x1ff1
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x422f5f
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x422f6d
push 2
push 4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x422f91
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0042b651
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
pop esi
mov dword [ebp - 0x2c], eax
mov eax, esi
push ebx
mov word [ebp - 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
mov word [ebp - 0x2e], ax
push 0x10
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x422f74
push 1
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push edi
call fcn.00422e46
add esp, 0x10
test al, al
je 0x422f74
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x423025
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00422ce3
add esp, 0xc
test al, al
jne 0x422ffc
push 2
pop esi
jmp 0x422f74
cmp dword [ebp - 0x1c], ebx
je 0x423010
push dword [ebp - 0x20]
call fcn.0043b2b0
mov esi, eax
jmp 0x422f74
push 1
push ebx
push esi
push edi
call fcn.00422e46
add esp, 0x10
test al, al
jne 0x423025
push 6
jmp 0x422ff6
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00422ce3
add esp, 0xc
test al, al
je 0x422ff4
cmp dword [ebp - 0x1c], ebx
jne 0x423001
cmp dword [ebp + 0x18], ebx
je 0x423063
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
push edi
call fcn.00422ce3
add esp, 0xc
test al, al
jne 0x423059
push 7
jmp 0x422ff6
test byte [ebp + 0x1c], 0x80
je 0x423063
push 8
jmp 0x422ff6
xor esi, esi
jmp 0x422f74

Function at 0x425a48
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
mov esi, dword [esp + 0x10]
inc dword [esi + 0x10]
xor ebp, ebp
cmp byte [esi + 0xa], 0
je 0x425a64
call ebx
mov ebp, eax
push dword [esi + 4]
call dword [esi]
pop ecx
cmp al, byte [esi + 8]
je 0x425a73
mov al, 1
jmp 0x425aa3
cmp byte [esi + 0xa], 0
je 0x425aa1
push edi
mov edi, dword [esi + 0x10]
call ebx
movzx edx, word [esi + 0x14]
lea ecx, [edi - 1]
imul ecx, edx
sub ecx, ebp
add eax, ecx
xor edx, edx
div edi
mov ecx, 0x1388
pop edi
cmp eax, ecx
jb 0x425a9d
mov eax, ecx
mov word [esi + 0x14], ax
xor al, al
pop esi
pop ebp
pop ebx
ret
Function at 0x4261af
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
and eax, 1
push esi
mov dword [esp + 4], eax
je 0x4261c5
call fcn.004343c7
jmp 0x4261cb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x426239
push ebx
push ebp
push edi
call fcn.0042d450
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [eax + 0x4c]
call ebx
mov ebp, eax
xor esi, esi
cmp edi, esi
je 0x426206
test byte [esp + 0x1c], 2
push esi
pop eax
setne al
mov ecx, edi
lea eax, [eax + eax - 1]
push eax
push 0xa
call fcn.004260b8
jmp 0x426213
push esi
push esi
push esi
push 0xa
call fcn.00430700
add esp, 0x10
cmp dword [esp + 0x10], esi
je 0x426220
call fcn.004343c7
jmp 0x426226
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x426236
call ebx
sub eax, ebp
cmp eax, dword [esp + 0x18]
jb 0x4261e6
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4262bd
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], ecx
call edi
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.00425ab3
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp ebx, esi
jne 0x426341
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, bl
push ebx
call esi
mov byte [ebp + 0x13], al
jmp 0x426326
push ebx
call esi
cmp al, byte [ebp + 0x13]
je 0x426309
test al, al
jns 0x426339
mov byte [ebp + 0x13], al
cmp dword [ebp + 8], 0xffffffff
je 0x426326
call edi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jb 0x426326
mov ecx, dword [ebp - 8]
push 0x21c
call fcn.004052f9
mov ecx, dword [ebp - 8]
push 5
call fcn.004052e3
test al, al
jne 0x4262fa
jmp 0x426404
mov eax, dword [ebp + 0xc]
jmp 0x42640a
cmp dword [ebp + 0xc], esi
push 5
pop edi
mov dword [ebp - 4], edi
jg 0x426362
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov byte [ebp + ebx - 0x10c], al
inc ebx
cmp ebx, esi
jle 0x42634c
push edi
jmp 0x4263f4
call fcn.0043b58e
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov edi, edx
jmp 0x426397
cmp ebx, 3
je 0x426396
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
lea ecx, [ebp + ebx - 0x10c]
cmp al, byte [ecx]
je 0x426396
test al, al
jns 0x426408
mov byte [ecx], al
inc ebx
cmp ebx, dword [ebp + 0x10]
jle 0x426376
call fcn.0043b58e
push 0
push dword [ebp - 4]
sub eax, esi
sbb edx, edi
push edx
push eax
call fcn.00450ed0
test edx, edx
jl 0x4263c7
jg 0x4263bc
cmp eax, 0xa
jbe 0x4263c7
cmp dword [ebp - 4], 0x32
jae 0x4263d0
inc dword [ebp - 4]
jmp 0x4263d0
cmp dword [ebp - 4], 5
jbe 0x4263d0
dec dword [ebp - 4]
cmp dword [ebp + 8], 0xffffffff
je 0x4263f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jb 0x4263f1
mov ecx, dword [ebp - 8]
push 0x21c
call fcn.004052f9
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004052e3
test al, al
jne 0x426368
xor eax, eax
jmp 0x42640a
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42a9da
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x45de87
call fcn.0044e550
sub esp, 0x10
push ebx
push esi
push dword [ebp + 0xc]
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], esi
call fcn.0040478c
mov dword [ebp - 4], esi
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x10]
call fcn.0043d2ed
mov dword [ebp - 0x10], esi
cmp ebx, esi
jne 0x42aa46
cmp dword [ebp - 0x14], 4
je 0x42aa3f
push 0xd
pop ebx
jmp 0x42aa46
mov eax, dword [ebp - 0x18]
cmp eax, esi
jne 0x42aa4f
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42d31d
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x42d35e
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0xc], eax
pop ebx
push esi
push dword [0x473f64]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.0042e11f
test byte [esi + 4], 2
jne 0x42d37e
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or byte [esi + 5], 1
pop edi
pop esi
ret

Function at 0x42d390
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x28]
call fcn.0042cf17
test byte [esi + 4], 2
jne 0x42d3a7
call dword [sym.imp.ole32.dll_OleUninitialize]
test byte [esi + 4], 1
je 0x42d3b9
mov eax, dword [esi]
mov byte [esi + 6], 1
mov ecx, esi
pop esi
jmp dword [eax + 4]
push 0
push dword [0x473f64]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 8]
pop esi
ret

Function at 0x42d3d2
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x28]
call fcn.0042cf17
mov ecx, esi
call fcn.0042cf4d
test al, al
je 0x42d402
test byte [esi + 4], 2
jne 0x42d3f4
call dword [sym.imp.ole32.dll_OleUninitialize]
push 0
push dword [0x473f64]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x42d40f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 8]
pop esi
ret

Function at 0x42d411
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x473f64]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42d428
mov ecx, eax
jmp fcn.0042d390
ret

Function at 0x42d429
Capabilities:
Terminate thread

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or byte [esi + 5], 2
pop esi
ret 4

Function at 0x42d4b0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x473e5c]
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 4]
mov esi, eax
lea eax, [esi + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push 0x10004
push esi
and eax, 8
push 0x42d48d
shl eax, 0xf
push eax
push 0
call fcn.00451bfe
mov edi, eax
add esp, 0x18
test edi, edi
je 0x42d50d
push edi
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042d2f3
test byte [ebp + 0x10], 4
jne 0x42d509
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
jmp 0x42d51c
test esi, esi
je 0x42d51a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 8]
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x43041b
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x45de37
call fcn.0044e550
sub esp, 0x20
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401974
xor edi, edi
mov dword [ebp - 4], edi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004362a2
test eax, eax
jne 0x430461
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040199e
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x8000
mov dword [ebp - 0x14], edi
call fcn.0043174b
pop ecx
xor ecx, ecx
cmp edx, ecx
ja 0x430485
jb 0x430481
cmp eax, dword [ebp - 0x10]
jae 0x430485
inc eax
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.004041b5
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x4304f0
mov ebx, dword [ebp + 0xc]
cmp dword [ebp - 0x10], edi
je 0x430513
cmp byte [ebp + 0x10], 0
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
je 0x4304ce
push ebx
call dword [0x47400c]
jmp 0x4304dc
push dword [ebp - 0x14]
call sym.qmmacro.exe___Crc
add esp, 0xc
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x4304b4
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042b651
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040199e
pop esi
mov al, bl
pop ebx
jmp 0x430454
cmp byte [ebp + 0x10], 0
jne 0x43051e
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov bl, 1
jmp 0x4304f2

Function at 0x430700
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x430726
cmp dword [ebp + 0x14], edi
jne 0x430726
push dword [ebp + 0xc]
call fcn.00430681
pop ecx
test al, al
je 0x430797
mov eax, 0x102
jmp 0x43079a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xfffffa41
add esi, 0x5ff
push dword [ebp + 0xc]
call fcn.00430681
pop ecx
test al, al
je 0x430797
cmp edi, 0xffffffff
je 0x430778
mov eax, 0xfff6d83f
cmp edi, eax
jb 0x430766
mov edi, eax
call ebx
sub eax, dword [ebp + 8]
cmp eax, edi
jae 0x430776
sub edi, eax
add dword [ebp + 8], eax
jmp 0x430778
xor edi, edi
mov eax, dword [ebp + 0xc]
push esi
push edi
shr eax, 2
and eax, 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, dword [ebp + 0x14]
je 0x430749
jmp 0x43079a
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4309ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x45de75
call fcn.0044e550
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, eax
je 0x430a0c
mov dword [ecx], eax
cmp dword [ebp + 0x10], eax
jne 0x430a18
mov dword [ebp + 0x10], 0xfc
cmp dword [ebp + 0x14], eax
jne 0x430a26
mov ecx, dword [0x474138]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0x18]
mov edi, 0x10000
and ebx, 1
je 0x430a6c
cmp ecx, edi
jb 0x430a5c
push ecx
lea ecx, [ebp - 0x18]
call fcn.00406118
mov dword [ebp - 0x20], eax
cmp esi, edi
jb 0x430a6c
push esi
lea ecx, [ebp - 0x14]
call fcn.00406118
mov dword [ebp - 0x24], eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x430aef
test ebx, ebx
je 0x430ab1
cmp dword [ebp - 0x20], edi
jae 0x430a92
cmp dword [ebp - 0x24], edi
jb 0x430ab1
mov byte [ebp - 4], 2
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0x14]
call esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x430aef
mov byte [ebp - 4], 0
push dword [ebp - 0x14]
call fcn.0043d2ed
and dword [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0043d2ed
and dword [ebp - 0x18], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
jne 0x430b20
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call fcn.0043d2ed
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0043d2ed
mov dword [ebp - 0x18], ebx
jmp 0x430ad1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x430b50
xor esi, esi
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call fcn.0043d2ed
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0043d2ed
mov dword [ebp - 0x18], ebx
mov eax, esi
jmp 0x430ad3
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x430b65
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
mov esi, edi
jmp 0x430b2f
Function at 0x4312b5
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45cd39
call fcn.0044e550
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4313fd
cmp byte [esi], bl
je 0x4313fd
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
test byte [ebp + 0xc], 4
je 0x4312f8
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.00438269
mov esi, eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], esi
cmp edi, ebx
jne 0x431308
lea edi, [ebp - 0x14]
cmp byte [esi], 0x5c
jne 0x431370
lea eax, [esi + 1]
cmp byte [eax], 0x5c
jne 0x431340
cmp byte [esi + 2], 0x3f
jne 0x431340
cmp byte [esi + 3], 0x5c
jne 0x431340
push 8
pop ebx
push 4
add esi, 4
push str.UNC_
push esi
call sym.qmmacro.exe_q_strnicmp
add esp, 0xc
test eax, eax
jne 0x431370
add esi, 3
jmp 0x431347
mov esi, eax
cmp byte [esi], 0x5c
jne 0x43136b
push 0
push 0
push edi
push 0x40
push str._____
push esi
call fcn.00445eff
add esp, 0x18
test eax, eax
jl 0x4313f1
add esi, dword [edi]
or ebx, 2
jmp 0x431396
push 0x11
pop ebx
jmp 0x431396
cmp byte [esi + 1], 0x3a
jne 0x4313f1
movzx eax, byte [esi]
mov ecx, 0x103
test word [eax*2 + 0x475468], cx
je 0x4313f1
mov dword [ebp + 8], esi
inc esi
inc esi
cmp byte [esi], 0x5c
jne 0x431393
inc esi
or ebx, 1
mov eax, esi
sub eax, dword [ebp - 0x10]
mov dword [edi], eax
cmp byte [esi], 0
je 0x4313ab
test byte [ebp + 0xc], 1
jne 0x4313f1
or ebx, 4
test byte [ebp + 0xc], 2
je 0x4313e1
mov eax, ebx
and al, 0x11
cmp al, 1
jne 0x4313e1
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov al, byte [eax + 1]
mov byte [ebp + 9], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 8], cl
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x4313e1
or ebx, 2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042b651
mov eax, ebx
jmp 0x4313ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042b651
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret