joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3a15710
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x3a3785e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
test byte [0x3a7b2cc], 1
jne 0x3a1576e
or dword [0x3a7b2cc], 1
mov dword [esp + 0x20], 0
mov ecx, 0x3a7b228
call fcn.039efdc0
push 0x3a39f70
call fcn.03a01ea3
add esp, 4
mov dword [esp + 0x20], 0xffffffff
cmp dword [0x3a7b22c], 0
jne 0x3a1585a
mov ecx, dword [edi + 0x2e8]
mov edx, dword [edi + 0x2fc]
lea eax, [esp + 0xc]
push eax
push str.SELECT__Value__FROM__Property__WHERE__Property___ProductVersion
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call edx
mov esi, eax
test esi, esi
jne 0x3a15801
mov ecx, dword [edi + 0x300]
push eax
mov eax, dword [esp + 0x10]
push eax
call ecx
mov esi, eax
test esi, esi
jne 0x3a15801
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0x304]
lea edx, [esp + 0x10]
push edx
push eax
call ecx
mov esi, eax
test esi, esi
jne 0x3a15801
mov edx, dword [0x3a7b230]
mov ecx, dword [0x3a7b228]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x318]
push ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x18]
push 1
push edx
call eax
mov esi, eax
test esi, esi
je 0x3a1583e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x3a15812
mov ecx, dword [edi + 0x320]
push eax
call ecx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x3a15823
mov edx, dword [edi + 0x320]
push eax
call edx
push esi
call dword [0x3a5fde0]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esp + 0x14]
push eax
mov ecx, 0x3a7b228
call fcn.039efbb0
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 0x320]
push ecx
call edx
mov eax, dword [0x3a7b228]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x3a1b860
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x3a380b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
call fcn.039b09f0
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov edi, dword [esp + 0x30]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x3a1b8a0
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0393d9d0
mov ecx, edi
add esp, 4
mov dword [esp + 0x10], eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x3a1b8d2
sub ecx, esi
sar ecx, 1
push edi
inc ecx
push ecx
push eax
call fcn.03a0280c
mov esi, dword [esp + 0x40]
add esp, 0xc
cmp esi, ebp
jne 0x3a1b8fb
mov dword [esp + 0x14], ebp
jmp 0x3a1b94d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x3a1b900
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0393d9d0
mov ecx, esi
add esp, 4
mov dword [esp + 0x14], eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x3a1b932
sub ecx, edi
sar ecx, 1
push esi
inc ecx
push ecx
push eax
call fcn.03a0280c
add esp, 0xc
mov esi, dword [esp + 0x38]
cmp esi, ebp
jne 0x3a1b95b
mov dword [esp + 0x18], ebp
jmp 0x3a1b9ad
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x3a1b960
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0393d9d0
mov ecx, esi
add esp, 4
mov dword [esp + 0x18], eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x3a1b992
sub ecx, edi
sar ecx, 1
push esi
inc ecx
push ecx
push eax
call fcn.03a0280c
add esp, 0xc
mov esi, dword [esp + 0x3c]
cmp esi, ebp
jne 0x3a1b9bb
mov dword [esp + 0x1c], ebp
jmp 0x3a1ba0d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x3a1b9c0
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0393d9d0
mov ecx, esi
add esp, 4
mov dword [esp + 0x1c], eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x3a1b9f2
sub ecx, edi
sar ecx, 1
push esi
inc ecx
push ecx
push eax
call fcn.03a0280c
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov ecx, 0x3a7b14c
call fcn.03a1b760
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.03a105b0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x10024de2
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x10024e05
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x10024df3
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x100385c7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1003decb
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x10038606
sub eax, 1
je 0x10038601
sub eax, 1
je 0x100385fd
xor eax, eax
leave
ret
push 3
jmp 0x10038608
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100488c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100488ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100488ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1004adff
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10061e7c
push 0x10061e74
push str.FlsAlloc
push 0x1e
call fcn.1004b35b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004ae33
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1004ae39
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004ae7d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10061e8c
push 0x10061e84
push str.FlsGetValue
push 0x20
call fcn.1004b35b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004aeb4
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1004f74d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10020f90
mov eax, dword [0x10070c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1004e0b8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004f78f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004f8eb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10020e70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10073200]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1004f4f4
mov ecx, dword [esi*4 + 0x10073200]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1004f8e4
cmp eax, dword [edi + ecx + 0x24]
jne 0x1004f8e4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004f8e4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004f4f4
add esp, 0x14
test edx, edx
jl 0x1004f8e4
jg 0x1004f85a
test eax, eax
jb 0x1004f8e4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004f8e4
jl 0x1004f874
cmp dword [ebp - 0x1008], eax
ja 0x1004f8e4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004f892
test ebx, ebx
je 0x1004f8cb
cmp ecx, edi
jae 0x1004f8cb
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004f8ac
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004f8b8
cmp byte [ecx + 1], 0xa
jne 0x1004f8b8
inc ecx
jmp 0x1004f8b8
movzx eax, al
movsx eax, byte [eax + 0x10071650]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004f892
cmp edx, ebx
jne 0x1004f892
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004f8e9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10020e59
leave
ret
Function at 0x1004fd75
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1004fe12
push ebx
push esi
call fcn.1004fe63
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10048c7b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004fdbf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004fe11
push edi
push eax
call fcn.10048bb1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004fddf
call fcn.10048b77
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004fe10
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10048c7b
add esp, 0x20
test eax, eax
jne 0x1004fdfe
push edi
call fcn.10048b77
jmp 0x1004fe06
push ebx
call fcn.10048b77
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1004fe15
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1004fe26
pop esi
ret
push ebx
push edi
push esi
call fcn.1004fe63
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10048bb1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1004fe4e
push ebx
push esi
push edi
call fcn.1003b170
add esp, 0xc
push 0
call fcn.10048b77
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1004fe9a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004fea5
Function at 0x1005106a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10051075
Function at 0x10051ae1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10073200]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10051b21
cmp byte [ebx], 0xa
jne 0x10051b21
or byte [eax + edi + 0x28], 4
jmp 0x10051b26
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10051c24
mov al, byte [edx]
cmp al, 0x1a
je 0x10051c06
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10051b55
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10051b7a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10051b84
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10051b37
jmp 0x10051c24
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10051c01
cmp dword [ebp - 0xc], 0
je 0x10051c01
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10073200]
test byte [eax + edi + 0x28], 0x48
je 0x10051bdb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10051bc6
mov byte [esi], dl
jmp 0x10051bd7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10073200]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10051c24
cmp byte [ebp - 1], 0xa
jne 0x10051bea
cmp esi, ebx
jne 0x10051bea
mov byte [esi], 0xa
jmp 0x10051c23
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004f496
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10051c24
mov byte [esi], 0xd
jmp 0x10051c23
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10073200]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10051c20
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10051c24
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10051c2d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10073200]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10051c70
cmp word [esi], dx
jne 0x10051c70
or byte [edi + eax + 0x28], 4
jmp 0x10051c75
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10051dae
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10051d8e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10051cb7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10051ced
cmp eax, edx
jae 0x10051cf9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10051c8f
jmp 0x10051dae
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10051d8a
cmp dword [ebp - 0x14], 0
je 0x10051d8a
mov eax, dword [ebx*4 + 0x10073200]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10051d62
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10051da8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10073200]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10073200]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10073200]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10051dab
pop ebx
cmp word [ebp - 4], bx
jne 0x10051d73
cmp esi, dword [ebp + 0xc]
jne 0x10051d73
mov word [esi], bx
jmp 0x10051dab
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004f496
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10051dae
push 0xd
jmp 0x10051da7
mov ecx, dword [ebx*4 + 0x10073200]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10051da5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10051dae
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10059984
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10059b27
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10059afc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10059afc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10059aab
jg 0x100599dd
test eax, eax
je 0x10059aa1
push 1
push 0x1000
call fcn.1004bc89
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10059a03
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10059a98
push 0x8000
push ebx
call fcn.1005987e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10059a2f
jg 0x10059a2a
cmp ecx, 0x1000
jb 0x10059a2f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100505b4
add esp, 0x10
cmp eax, 0xffffffff
je 0x10059a74
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10059a2a
jl 0x10059a5b
test ecx, ecx
jne 0x10059a1c
push dword [ebp - 0xc]
push ebx
call fcn.1005987e
push esi
call fcn.10048b77
add esp, 0xc
xor edi, edi
jmp 0x10059b0d
cmp byte [edi + 0x24], 0
je 0x10059a8b
cmp dword [edi + 0x20], 5
jne 0x10059a8b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10059a96
mov edi, dword [edi + 0x18]
jmp 0x10059a98
xor edi, edi
push esi
call fcn.10048b77
pop ecx
jmp 0x10059b0d
test ecx, ecx
jg 0x10059a6d
jl 0x10059aab
test eax, eax
jae 0x10059a6d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004f496
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10059ace
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10059a6d
jmp 0x10059b05
push ebx
call fcn.10041dc7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10059a6d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10059b0d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10059b0a
mov edi, dword [edi + 0x18]
jmp 0x10059b0d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004f496
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4127c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x1c]
push 1
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.004023c0
lea edi, [esi + 0x98]
mov dword [esp + 0x14], 0
mov ecx, edi
call fcn.00401df0
push 0x60
push 0x40
push 0xffffffffffffffa0
push 0xffffffffffffffc0
mov ecx, esi
mov byte [esp + 0x24], 1
mov dword [esi], 0x4132a8
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
call fcn.00401ae0
mov edx, dword [esi + 0x74]
push 0x99
add edx, 0x30
push 0xd6
push edx
mov ecx, edi
call fcn.004022c0
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.00401130
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x402590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push str.MSGTEXT
mov eax, dword [ebp + 4]
lea edi, [ebp + 0x30]
push 0x65
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40263b
mov eax, dword [ebp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [ebp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x40263b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [eax + ebx - 1]
test cl, cl
je 0x40261e
mov ecx, ebx
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0xff
rep movsb byte es:[edi], byte [esi]
jl 0x402608
mov ebx, 0xff
mov esi, dword [esp + 0x10]
mov byte [ebx + ebp + 0x30], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x100
push eax
push edi
call fcn.0040c930
add esp, 0xc
mov byte [ebp + 0x12f], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4028a0
Capabilities:
Find taskbar

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
push edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi], 0x4133e8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movsx ecx, ax
push ecx
call fcn.0040cafc
add esp, 4
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
push ebp
cmp ebx, ebp
je 0x402960
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebp
push 0xa
push edi
mov dword [esi + 0x10], eax
call ebp
push edi
push 0
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
sub eax, edx
cmp eax, ecx
jl 0x402986
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
sub ecx, edx
add eax, ecx
pop edi
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
push 0xa
push edi
mov dword [esi + 0x10], eax
call ebx
push edi
push ebp
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10

Function at 0x4037d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
and eax, 0xffff
push str.CONFIG
mov byte [edi], 0
mov ecx, dword [0x4175e0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4037fc
pop edi
pop esi
ret
mov edx, dword [0x4175e0]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x403813
pop edi
pop esi
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.0040c930
add esp, 0xc
mov byte [edi + ebx - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, 1
pop esi
ret