joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef0f0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x534476
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x729878]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.005213aa
cmp dword [0x78c234], ebx
je 0x4ef160
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.0051ef73
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x729878]
push ebp
push edi
mov edi, 1
mov dword [0x78c234], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4ef189
mov dword [esp + 0x20], ebx
jmp 0x4ef190
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.005234ef
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.0051f060
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4ef1ee
mov dword [esp + 0x14], ebx
jmp 0x4ef1f5
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4ef20f
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x4ef209
cmp eax, 2
jne 0x4ef20f
mov dword [esp + 0x18], edi
jmp 0x4ef213
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4ef221
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005209df
mov edi, eax
cmp edi, ebx
jne 0x4ef231
xor eax, eax
jmp 0x4ef234
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4ef25c
mov ecx, esi
call fcn.005234ef
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4ef274
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x78c234], 0
test eax, eax
je 0x4ef29d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4ef29d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.0051ef73
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0051ef73
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4f2440
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x72230c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4f2453
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4f2494
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x7223b4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4f24c6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f24ca
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4f24bb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4f24e8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f24ec
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4f24dd
xor ecx, ecx
mov eax, 0x72231c
xor ebx, ebx
mov bl, byte [ecx + 0x7223c4]
cmp byte [esp + ebx + 0x14], 0
je 0x4f2517
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x7223dc]
cmp byte [esp + ebx + 0x14], 0
je 0x4f252e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4f24fe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4f2487
lea edx, [esp + 0x84]
push edx
call fcn.004f2570
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4f7140
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x78c67c]
xor edx, edx
cmp eax, edx
jne 0x4f7166
xor eax, eax
mov byte [eax + 0x78c57c], al
inc eax
cmp eax, 0x100
jl 0x4f714e
mov dword [0x78c67c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x78c57c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4f71f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4f71ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4f7198
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4f7200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4f7253
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4f723a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fdbd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53497e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004fe4f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6fcf4c
call fcn.0051ecb4
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4fdc63
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051ecb4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4fdc5c
push 0
mov ecx, eax
call fcn.004f4dc0
mov dword [esi + 0xc], eax
jmp 0x4fdc65
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4fdc65
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5213aa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5213e2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051f3ce
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051f3a6
jmp 0x5213ee
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x522c1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x522c60
call fcn.00529bd3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x522c60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x522c57
xor eax, eax
jmp 0x522c68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00522c6e
pop edi
pop esi
pop ebx
ret 4

Function at 0x52a103
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 0x52a131
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x52a14f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0052a069
jmp 0x52a14f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x52a14f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0052a069
test edi, edi
mov eax, edi
jne 0x52a139
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x52ca2f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x52ca57
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x52ca68
push 2
call edi
test ax, ax
jge 0x52ca68
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005209df
cmp dword [esi + 0x30], ebx
jne 0x52cb42
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005209df
cmp eax, dword [esp + 0x34]
jne 0x52cb42
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x52cade
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x52cb23
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x52cb42
cmp eax, 0x205
je 0x52cb42
cmp eax, 0x201
je 0x52cb42
cmp eax, 0x204
je 0x52cb42
cmp eax, ebx
jne 0x52cb09
cmp dword [esp + 0x1c], 0x1b
je 0x52cb42
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x79e1cc]
jbe 0x52cb38
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x52ca9b
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x45c290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e000]
push edi
or ebp, 0xffffffff
jmp 0x45c2b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45c2b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45c2a8
mov eax, 1
add ebx, ebx
jne 0x45c2cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45c2dc
jne 0x45c2fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45c2fb
dec eax
add ebx, ebx
jne 0x45c2e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45c2c0
add ebx, ebx
jne 0x45c2f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45c34d
xor ecx, ecx
sub eax, 3
jb 0x45c313
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45c382
sar eax, 1
mov ebp, eax
jmp 0x45c31e
add ebx, ebx
jne 0x45c31e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45c2ec
inc ecx
add ebx, ebx
jne 0x45c32c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45c2ec
add ebx, ebx
jne 0x45c339
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45c32e
jne 0x45c34a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45c32e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45c36c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45c35e
jmp 0x45c2ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45c36c
add edi, ecx
jmp 0x45c2ae
pop esi
mov edi, esi
mov ecx, 0x1e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45c38a
cmp byte [edi], 0
jne 0x45c38a
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 0x45c38f
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45c3fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c22c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c298]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45c3bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c2a0]
or eax, eax
je 0x45c3f8
mov dword [ebx], eax
add ebx, 4
jmp 0x45c3d9
call dword [esi + 0x5c29c]
mov ebp, dword [esi + 0x5c2a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x45c432
sub esp, 0xffffff80
jmp 0x401770
Function at 0x4013fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
push edx
pop ebx
mov esi, eax
push ebx
pop eax
call fcn.004020d0
test esi, esi
jne 0x401432
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
push eax
pop ecx
push esp
pop edx
mov eax, ebx
call fcn.004021bc
jmp 0x401450
call sub.kernel32.dll_GetCommandLineA
push eax
pop edi
push ebx
pop edx
mov eax, edi
call fcn.00401310
mov edi, eax
or esi, esi
je 0x401450
cmp dword [ebx], 0
je 0x401450
dec esi
jmp 0x401439
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4018d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
sub ebx, ebx
imul edx, dword [ebx + 0x406008], 0x8088405
inc edx
mov dword [ebx + 0x406008], edx
mul edx
push edx
pop eax
pop ebx
ret

Function at 0x403390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
nop
push 5
nop
pop edx
call fcn.004018b0
mov eax, dword [ebp - 0xc]
inc eax
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00402448
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.00402fb0
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
push ebp
pop esp
pop ebp
ret

Function at 0x40350c
Capabilities:
Set registry value

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
call fcn.00402f60
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00402448
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
or eax, eax
je 0x40355d
mov ecx, dword [ebp - 8]
mov edx, 0x40356c
mov eax, dword [ebp - 4]
call fcn.00403088
mov esp, ebp
pop ebp
ret 8

Function at 0x40358c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00402448
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4035d7
mov ecx, dword [ebp - 8]
mov edx, 0x4035fc
mov eax, dword [ebp - 4]
call fcn.00403088
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.00402fb0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x309013c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x309013d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x309013ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x3090140e
cmp esi, eax
jae 0x309013e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x30901400
cmp esi, eax
jae 0x309013e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x30902cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30922208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.30902970
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.30901770
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x30902d42
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x309045d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30922430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push esi
push edi
push 8
mov esi, ecx
push eax
lea ecx, [esp + 0x20]
mov edi, 1
call fcn.3090d3a1
mov ecx, dword [esp + 0x3c]
push 8
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.3090d3a1
mov ecx, dword [esi + 0x10]
push 0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
push 0x309245ec
mov byte [esp + 0x40], 1
call fcn.3090c84a
test eax, eax
je 0x3090463d
xor edi, edi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 8]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x30905080
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30922530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ecx + 0x14]
push ebx
push esi
push edi
lea esi, [ecx + 0x14]
mov dword [ebp - 0x10], esp
push 0x5c
push eax
mov dword [ebp - 0x1c], ecx
call fcn.3090f0b4
xor ebx, ebx
add esp, 8
cmp eax, ebx
jne 0x309050c0
or eax, 0xffffffff
jmp 0x309050c4
sub eax, dword [esi]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.30904dd0
push str._cdf.tmp
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], ebx
call fcn.30904ee0
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x30905107
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [ebp - 0x14]
push ebx
push edi
call fcn.3090f0e4
add esp, 8
cmp eax, 0xffffffff
je 0x30905124
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x3090514e
mov eax, dword [esi]
push ebx
push str._LANGID0x0409_CP1252_COUNTRY0
push edi
push eax
mov dword [ebp - 0x20], 0x80004005
mov byte [ebp - 4], 3
call fcn.3090d012
mov esi, dword [esi]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x30905193
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x3090516f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x19], bl
jmp 0x309051a8
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x309051c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x309084d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30922371
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], 0x309244f8
mov eax, dword [edi + 0x30]
mov ecx, dword [eax]
lea esi, [edi + 0x2c]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x28], 2
call fcn.309023a0
mov eax, dword [esi + 4]
push eax
call fcn.3091a4f0
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
add esp, 4
lea esi, [edi + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x28], 1
call fcn.30903970
mov eax, dword [esi + 4]
push eax
call fcn.3091a4f0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x10]
sub eax, 0x10
add esp, 4
mov byte [esp + 0x1c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x30903ff7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [edi + 0xc]
sub edi, 0x10
mov dword [esp + 0x1c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x3090401c
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
mov esi, ecx
mov dword [esi], 0x309251cc
mov dword [esi + 4], 0xc0000001
call fcn.30903df0
mov ecx, dword [0x3092f880]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp 0x30903f50

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x3090f104
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.3091046f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x3090f127
test byte [esp + 8], 2
je 0x3090f127
call fcn.3091045d
mov dword [eax], 0xd
call fcn.30910466
mov dword [eax], 5
jmp 0x3090f100
xor eax, eax
ret