joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43517c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x448400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042e58c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042e58c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4351f3
cmp word [ecx], dx
je 0x4351f3
mov eax, dword [0x440464]
push edi
dec eax
push eax
push 0x440350
call fcn.0043511b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x435266
cmp word [eax], dx
je 0x435266
mov eax, dword [edi]
test eax, eax
je 0x435217
cmp word [eax], dx
je 0x435217
lea eax, [ebp - 0x10]
push eax
call fcn.00434afe
jmp 0x435220
lea eax, [ebp - 0x10]
push eax
call fcn.00434b99
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x435290
mov eax, dword [0x44034c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x440040
call fcn.0043511b
add esp, 0xc
test al, al
je 0x435290
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43525b
cmp word [eax], di
je 0x43525b
lea eax, [ebp - 0x10]
push eax
call fcn.00434afe
pop ecx
jmp 0x435292
lea eax, [ebp - 0x10]
push eax
call fcn.00434b99
jmp 0x435258
mov eax, dword [edi]
test eax, eax
je 0x43527d
cmp word [eax], dx
je 0x43527d
lea eax, [ebp - 0x10]
push eax
call fcn.00434ab3
pop ecx
jmp 0x435290
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x43535b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00434fa0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43535b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43535b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43535b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4352e8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042f2f5
test ebx, ebx
je 0x435356
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042f2f5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43535b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43535b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043897d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43535d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004237e2
leave
ret
Function at 0x43739e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4499e8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4373de
cmp byte [ebx], 0xa
jne 0x4373de
or byte [edi + eax + 0x28], 4
jmp 0x4373e3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4374e2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4374c5
inc eax
cmp dl, 0xd
je 0x43740f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x437435
cmp eax, ecx
jae 0x437443
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4373f7
jmp 0x4374e2
push 0
lea eax, [ebp - 0x10]
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 0x4374c0
cmp dword [ebp - 0x10], 0
je 0x4374c0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4499e8]
test byte [eax + edi + 0x28], 0x48
je 0x43749a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x437485
mov byte [esi], dl
jmp 0x437496
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4499e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4374e2
cmp byte [ebp - 1], 0xa
jne 0x4374a9
cmp esi, ebx
jne 0x4374a9
mov byte [esi], 0xa
jmp 0x4374e1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043075d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4374e2
mov byte [esi], 0xd
jmp 0x4374e1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4499e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4374df
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4374e2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4374eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4499e8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x437531
cmp word [ebx], dx
jne 0x437531
or byte [eax + edi + 0x28], 4
jmp 0x437536
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x437699
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x437679
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x437577
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4375ad
cmp eax, edx
jae 0x4375bb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x437552
jmp 0x437699
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437674
cmp dword [ebp - 0x18], 0
je 0x437674
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4499e8]
test byte [eax + edi + 0x28], 0x48
je 0x43764a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43760e
mov word [esi], cx
jmp 0x437645
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4499e8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4499e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4499e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x437699
pop eax
cmp word [ebp - 4], ax
jne 0x43765a
cmp esi, ebx
jne 0x43765a
mov word [esi], ax
jmp 0x437696
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043075d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x437699
push 0xd
pop eax
jmp 0x437655
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4499e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x437693
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x437699
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x439cd5
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00439c51
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x439e44
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x439e44
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x439df9
jg 0x439d31
test eax, eax
je 0x439def
push 1
push 0x1000
call fcn.0042e1f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d54
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439de6
push 0x8000
push ebx
call fcn.0042af79
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x439d7d
jg 0x439d78
cmp ecx, 0x1000
jb 0x439d7d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042fde3
add esp, 0x10
cmp eax, 0xffffffff
je 0x439dc2
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 0x439d78
jl 0x439da9
test ecx, ecx
jne 0x439d6a
push dword [ebp - 0xc]
push ebx
call fcn.0042af79
push esi
call fcn.0042e1b7
add esp, 0xc
xor ebx, ebx
jmp 0x439e52
cmp byte [edi + 0x24], 0
je 0x439dd9
cmp dword [edi + 0x20], 5
jne 0x439dd9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x439de4
mov ebx, dword [edi + 0x18]
jmp 0x439de6
xor ebx, ebx
push esi
call fcn.0042e1b7
pop ecx
jmp 0x439e52
test ecx, ecx
jg 0x439dbb
jl 0x439df9
test eax, eax
jae 0x439dbb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043075d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x439e19
cmp byte [edi + 0x1c], 0
je 0x439dbb
jmp 0x439e4a
push ebx
call fcn.00432f76
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x439dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439e52
cmp byte [edi + 0x1c], 0
je 0x439e4f
mov ebx, dword [edi + 0x18]
jmp 0x439e52
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043075d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b1b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b1dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b1dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001b6ba
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001b6d3
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
jmp 0x1001b6ec
push 0x135c
push 0x12ab
push 0
push 0x1c91
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
pop ebp
ret
Function at 0x1002b631
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002b6a7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push 4
push 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
mov eax, dword [ebp - 4]
push dword [eax + 0x34]
push 0x1d2b
push 0x162f
call fcn.10022c48
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x1002b6a5
push 4
push 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push 0
push 0x1d2b
push 0x162f
call fcn.10022c48
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1002b6d6
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1002b6d6
push 0x135c
push 0x12ab
push 0
push 0x1c91
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret

Function at 0x1002c1be
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002c1e2
xor eax, eax
jmp 0x1002c302
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002c200
xor eax, eax
jmp 0x1002c302
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.1002b930
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002c21f
xor eax, eax
jmp 0x1002c302
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.1002b97d
add esp, 0x18
lea eax, [ebp - 8]
push eax
push 0x3437
push 0x7785
push 1
lea eax, [ebp + 8]
push eax
push 0x6f1
lea eax, [ebp - 4]
push eax
call fcn.1002ba0e
add esp, 0x1c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x1002c287
push 0x546c
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.1002c0f3
add esp, 0x10
push dword [ebp - 4]
call fcn.1002ab1c
pop ecx
test eax, eax
jne 0x1002c298
xor eax, eax
jmp 0x1002c302
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002c14c
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002c2ea
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002c2c4
xor eax, eax
jmp 0x1002c302
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002c2dd
xor eax, eax
jmp 0x1002c302
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002c18d
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002c2fb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002c2ff
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1003eb2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003eb69
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x14]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x1003eb82
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003eb82
push 0xe94
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x1003efdb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003f025
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
shl eax, 1
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [eax + 0x24], ecx
jmp 0x1003f042
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003f042
push 0
push 0x2605
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esp, ebp
pop ebp
ret

Function at 0x1003f38f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003f3c6
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x1003f3df
push 0x135c
push 0x12ab
push 0
push 0x1c91
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret
Function at 0x10079502
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100815b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10068b04
mov dword [ebp - 0x14], eax
cmp dword [0x1066e820], esi
jne 0x100795f5
push 0x800
push esi
push 0x10007e9c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10079582
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100796d5
push esi
push esi
push 0x10007e9c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100796d5
push 0x10007eb4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100796d5
push eax
call ebx
push 0x10007ec0
push edi
mov dword [0x1066e820], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ed0
push edi
mov dword [0x1066e824], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ee4
push edi
mov dword [0x1066e828], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066e830], eax
test eax, eax
je 0x100795f2
push 0x10007f00
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066e82c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007961a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007960d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007962f
push 4
pop eax
jmp 0x100796d7
cmp dword [ebp - 0x14], esi
je 0x1007962f
push dword [0x1066e820]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10079614
mov eax, dword [0x1066e82c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007968d
cmp dword [0x1066e830], edi
je 0x1007968d
push eax
call ebx
push dword [0x1066e830]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007968d
test eax, eax
je 0x1007968d
call ecx
test eax, eax
je 0x10079682
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10079682
test byte [ebp - 8], 1
jne 0x1007968d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100796bd
mov eax, dword [0x1066e824]
cmp eax, edi
je 0x100796ba
push eax
call ebx
test eax, eax
je 0x100796ba
call eax
mov esi, eax
test esi, esi
je 0x100796ba
mov eax, dword [0x1066e828]
cmp eax, edi
je 0x100796ba
push eax
call ebx
test eax, eax
je 0x100796ba
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066e820]
call ebx
test eax, eax
je 0x100796d5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100796d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10064e4d
mov esp, ebp
pop ebp
ret
Function at 0x40333c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040515c
test esi, esi
jne 0x403372
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040524c
jmp 0x403390
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031e0
mov edi, eax
test esi, esi
je 0x403390
cmp dword [ebx], 0
je 0x403390
dec esi
jmp 0x403379
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403ff8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a7020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404090
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404070
xor eax, eax
push ebp
push 0x404069
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4040ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404070
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4a7020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a7020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404f08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4aa04c], 0
je 0x404f69
cmp word [0x4aa220], 0xd7b2
jne 0x404f31
cmp dword [0x4aa228], 0
jbe 0x404f31
mov eax, 0x4aa21c
call dword [0x4aa238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a7764
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404f90
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a702c], 0
jne 0x404f85
push 0
push 0x4a775c
push 0x4a7764
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4050e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4a7034], 0
je 0x405106
mov edx, esi
mov eax, ebx
call dword [0x4a7034]
jmp 0x405115
mov eax, 8
call fcn.00402ef0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4aa04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4050a8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc