joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009640
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, ecx
test ebx, ebx
je 0x100097d2
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000967e
sub eax, 1
je 0x10009673
sub eax, 1
jne 0x1000967e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x10009690
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x10009690
mov ebx, dword [esp + 0x20]
jmp 0x10009690
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x100096e4
xor edi, edi
test ebx, ebx
jbe 0x10009709
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x100096b4
mov eax, 0x4000
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x10009709
add edi, 0x4000
cmp edi, ebx
jb 0x100096a4
jmp 0x10009701
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x100097cc
cmp byte [esi + 0x14], 0
je 0x100097cc
cmp dword [esi + 0xc], 0
jne 0x100097cc
push 0
lea edi, [esi + 0x418]
push edi
lea ebp, [esi + 0x17]
push ebp
mov ecx, 0x1002bd54
call fcn.10006090
test al, al
je 0x100097b3
mov eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x10009690
test eax, eax
jbe 0x10009690
mov ecx, esi
call fcn.10008eb0
mov ecx, dword [esp + 0x10]
xor ebx, ebx
sub eax, ecx
mov ecx, dword [esi + 4]
sbb edx, ebx
cmp ecx, 0xffffffff
je 0x10009682
mov ebx, edx
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
sar ebx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10009682
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10009682
cmp byte [esi + 0x14], 0
je 0x10009682
push edi
push ebp
mov ecx, 0x1002bd54
call fcn.100061c0
jmp 0x10009682
lea eax, [esi + 0x418]
push eax
lea ecx, [esi + 0x17]
push ecx
push 0
push 0
mov ecx, 0x1002bd54
call fcn.10006200
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 8
ret 8

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

Disassembly:
call fcn.1000a720
test eax, eax
je 0x10009929
mov eax, dword [esp + 8]
test eax, eax
je 0x10009929
cmp word [eax], 0
je 0x10009929
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x10009943
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10009943
mov eax, 1
ret
xor eax, eax
ret

Function at 0x10009970
Capabilities:
Get file attributes

Disassembly:
call fcn.1000a720
test eax, eax
je 0x1000998f
mov eax, dword [esp + 8]
test eax, eax
je 0x1000998f
cmp word [eax], 0
je 0x1000998f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret
Function at 0x100099a0
Capabilities:
Set file attributes

Disassembly:
call fcn.1000a720
test eax, eax
je 0x100099c9
mov eax, dword [esp + 8]
test eax, eax
je 0x100099c9
cmp word [eax], 0
je 0x100099c9
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x100099e3
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret
xor al, al
ret

Function at 0x10009b00
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push edi
call fcn.1000a720
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x10009b28
test esi, esi
je 0x10009b28
cmp word [esi], 0
je 0x10009b28
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10009b35
test edi, edi
je 0x10009b69
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10009b54
cmp byte [esp + 0x14], 0
je 0x10009b4f
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.100099a0
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10009b69
cmp eax, 3
mov eax, 1
jne 0x10009b6e
mov eax, 2
pop edi
pop esi
ret

Function at 0x10009b80
Capabilities:
Create directory

Disassembly:
sub esp, 0x40c
mov eax, dword [0x10029700]
xor eax, esp
mov dword [esp + 0x408], eax
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
je 0x10009cb2
cmp byte [ebp], 0
je 0x10009cb2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
mov byte [esp + 0xf], 1
mov edi, ebp
push esi
mov edi, edi
mov esi, edi
sub esi, ebp
cmp esi, 0x400
jge 0x10009c33
cmp byte [edi], 0x5c
jne 0x10009c15
push esi
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.10019a90
add esp, 0xc
mov byte [esp + esi + 0x18], 0
call fcn.1000a720
push 0
lea ecx, [esp + 0x1c]
push ecx
call ebx
test eax, eax
je 0x10009c0a
push 0
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.100099a0
add esp, 0xc
jmp 0x10009c15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x13], 0
cmp byte [0x1002f490], 0
je 0x10009c2d
push edi
mov ecx, 0x1002f390
call fcn.10011de0
mov edi, eax
jmp 0x10009c2e
inc edi
cmp byte [edi], 0
jne 0x10009bc0
cmp byte [esp + 0x424], 0
pop esi
jne 0x10009c96
push ebp
call fcn.1000b3a0
movsx eax, byte [eax]
push eax
call fcn.1000b110
add esp, 8
test al, al
jne 0x10009c96
call fcn.1000a720
push 0
push ebp
call ebx
test eax, eax
je 0x10009c8b
push 0
push 0
push ebp
call fcn.100099a0
mov al, byte [esp + 0x1b]
add esp, 0xc
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.10018d13
add esp, 0x40c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0xf], 0
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.10018d13
add esp, 0x40c
ret
mov ecx, dword [esp + 0x40c]
pop ebp
xor ecx, esp
xor al, al
call fcn.10018d13
add esp, 0x40c
ret
Function at 0x10009cd0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x10029700]
xor eax, esp
mov dword [esp + 0xc08], eax
push ebp
mov ebp, dword [esp + 0xc14]
test ebp, ebp
je 0x10009e2b
cmp word [ebp], 0
je 0x10009e2b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov byte [esp + 0xf], 1
xor edi, edi
push esi
nop
mov esi, edi
sar esi, 1
cmp esi, 0x400
jge 0x10009da1
cmp word [edi + ebp], 0x5c
jne 0x10009d93
push esi
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.1001996f
xor ecx, ecx
add esp, 0xc
mov word [esp + esi*2 + 0x18], cx
call fcn.1000a720
test eax, eax
je 0x10009d8e
cmp word [esp + 0x18], 0
je 0x10009d8e
push 0
lea edx, [esp + 0x1c]
push edx
call ebx
test eax, eax
je 0x10009d88
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.100099a0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x81c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.10011680
add esp, 0xc
jmp 0x10009d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x13], 0
add edi, 2
cmp word [edi + ebp], 0
jne 0x10009d10
cmp byte [esp + 0xc24], 0
pop esi
jne 0x10009e0f
push ebp
call fcn.1000b090
movzx eax, word [eax]
push eax
call fcn.1000b110
add esp, 8
test al, al
jne 0x10009e0f
call fcn.1000a720
test eax, eax
je 0x10009e0a
cmp word [ebp], 0
je 0x10009e0a
push 0
push ebp
call ebx
test eax, eax
je 0x10009e04
push 0
push ebp
push 0
call fcn.100099a0
mov al, byte [esp + 0x1b]
add esp, 0xc
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0xc08]
xor ecx, esp
call fcn.10018d13
add esp, 0xc0c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0xf], 0
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0xc08]
xor ecx, esp
call fcn.10018d13
add esp, 0xc0c
ret
mov ecx, dword [esp + 0xc0c]
pop ebp
xor ecx, esp
xor al, al
call fcn.10018d13
add esp, 0xc0c
ret
Function at 0x10009e90
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x830
mov eax, dword [0x10029700]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [esp + 0x844]
push ebx
mov ebx, dword [esp + 0x844]
push ebp
mov ebp, dword [esp + 0x83c]
push esi
mov esi, dword [esp + 0x848]
push edi
mov edi, dword [esp + 0x848]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
call fcn.1000a720
test eax, eax
je 0x1000a037
test esi, esi
je 0x10009ef2
cmp dword [esi], 0
mov byte [esp + 0x12], 1
jne 0x10009ef7
mov byte [esp + 0x12], 0
test ebx, ebx
je 0x10009f05
cmp dword [ebx], 0
mov byte [esp + 0x11], 1
jne 0x10009f0a
mov byte [esp + 0x11], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10009f1c
cmp dword [eax], 0
mov byte [esp + 0x13], 1
jne 0x10009f21
mov byte [esp + 0x13], 0
call fcn.1000a720
test eax, eax
je 0x10009f41
test edi, edi
je 0x10009f41
cmp word [edi], 0
je 0x10009f41
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x14], eax
jmp 0x10009f4c
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1000a050
test al, 1
je 0x1000a050
push 0
push edi
push ebp
mov bl, 1
call fcn.100099a0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x40]
push ecx
push edi
push ebp
call fcn.1000b240
add esp, 0x10
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000a037
cmp byte [esp + 0x12], 0
je 0x10009fbc
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
call fcn.10011250
cmp byte [esp + 0x11], 0
je 0x10009fd1
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.10011250
cmp byte [esp + 0x13], 0
je 0x10009fe6
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
call fcn.10011250
movzx eax, byte [esp + 0x12]
movzx edx, byte [esp + 0x13]
neg eax
sbb eax, eax
lea ecx, [esp + 0x34]
and eax, ecx
movzx ecx, byte [esp + 0x11]
neg edx
push eax
sbb edx, edx
lea eax, [esp + 0x28]
and edx, eax
push edx
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x34]
and ecx, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1000a037
mov eax, dword [esp + 0x14]
push eax
push edi
push ebp
call fcn.100099a0
add esp, 0xc
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10018d13
add esp, 0x830
ret
xor bl, bl
jmp 0x10009f6b

Function at 0x1000a060
Capabilities:
Set file attributes

Disassembly:
call fcn.1000a720
test eax, eax
je 0x1000a081
mov eax, dword [esp + 8]
test eax, eax
je 0x1000a081
cmp word [eax], 0
je 0x1000a081
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x1000a092
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x1000e710
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x10029700]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov ebp, ecx
mov ecx, 8
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor ecx, ecx
xor eax, eax
lea esp, [esp]
cmp edi, 0xa
jg 0x1000e86d
cmp eax, 4
jge 0x1000e786
mov edi, edi
cmp ecx, 4
jge 0x1000e789
mov bl, byte [esp + eax*4 + 0x10]
lea edx, [ecx + edi*4]
mov byte [ebp + edx*4 + 0x14], bl
lea edx, [ecx + edi*4]
lea esi, [ebp + edx*4]
movzx edx, byte [esp + eax*4 + 0x11]
mov byte [esi + 0x15], dl
movzx edx, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], dl
movzx edx, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], dl
jl 0x1000e750
cmp ecx, 4
jne 0x1000e78e
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x1000e740
cmp edi, 0xa
jg 0x1000e86d
mov edx, 0x1002ed68
movzx esi, byte [esp + 0x1d]
mov al, byte [esp + 0x10]
xor al, byte [esi + 0x1002ee88]
movzx esi, byte [esp + 0x1e]
movzx ebx, byte [esi + 0x1002ee88]
movzx esi, byte [esp + 0x1f]
xor byte [esp + 0x11], bl
movzx ebx, byte [esi + 0x1002ee88]
movzx esi, byte [esp + 0x1c]
xor byte [esp + 0x12], bl
movzx ebx, byte [esi + 0x1002ee88]
xor al, byte [edx]
xor byte [esp + 0x13], bl
mov byte [esp + 0x10], al
inc edx
lea eax, [esp + 0x11]
mov esi, 3
movzx ebx, byte [eax - 1]
xor byte [eax + 3], bl
movzx ebx, byte [eax]
xor byte [eax + 4], bl
movzx ebx, byte [eax + 1]
xor byte [eax + 5], bl
movzx ebx, byte [eax + 2]
xor byte [eax + 6], bl
add eax, 4
sub esi, 1
jne 0x1000e7f0
xor eax, eax
cmp edi, 0xa
jg 0x1000e86d
cmp eax, 4
jge 0x1000e857
nop
cmp ecx, 4
jge 0x1000e85a
movzx ebx, byte [esp + eax*4 + 0x10]
lea esi, [ecx + edi*4]
mov byte [ebp + esi*4 + 0x14], bl
movzx ebx, byte [esp + eax*4 + 0x11]
lea esi, [ecx + edi*4]
lea esi, [ebp + esi*4]
mov byte [esi + 0x15], bl
movzx ebx, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], bl
movzx ebx, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], bl
jl 0x1000e820
cmp ecx, 4
jne 0x1000e85f
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x1000e815
cmp edi, 0xa
jle 0x1000e7a1
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10018d13
add esp, 0x24
ret 4
Function at 0x1000e890
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x10029700]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, ecx
push edi
lea esi, [eax + 0x24]
lea ecx, [eax + 0x28]
mov edi, 9
mov edi, edi
xor eax, eax
jmp 0x1000e8c0
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x1002bd68]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x1002c168]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x1002c568]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x1002c968]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0xc], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x1002bd68]
xor dl, byte [eax + ebx*4 + 0x1002c168]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x1002c568]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x1002c968]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x1002bd68]
xor dl, byte [eax + ebx*4 + 0x1002c168]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x1002c568]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x1002c968]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x1002bd68]
xor dl, byte [eax + ebx*4 + 0x1002c168]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x1002c568]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x1002c968]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x17], dl
jl 0x1000e8c0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
add ecx, 0x10
add esi, 0x10
sub edi, 1
jne 0x1000e8b0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10018d13
add esp, 0x14
ret
Function at 0x1000f480
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10029700]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov ebx, ecx
test esi, esi
je 0x1000f575
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x1000f575
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
shr eax, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x10]
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test eax, eax
jbe 0x1000f545
lea edx, [esp + 0x28]
push edx
push esi
mov ecx, ebx
call fcn.1000e9f0
mov edx, dword [esp + 0x20]
xor dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
xor dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
xor eax, ebp
mov ebp, dword [esi]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x24], edx
jne 0x1000f4d7
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], ebp
pop ebp
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x20]
pop edi
mov dword [ebx + 0xc], ecx
pop esi
mov dword [ebx + 0x10], edx
shl eax, 4
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10018d13
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10018d13
add esp, 0x2c
ret 0xc

Function at 0x10010a30
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x10013cd0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
mov dword [esp + 0x14], ebx
push edi
push esi
call fcn.10013c10
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
lea ecx, [ecx]
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x10013d10
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x10013d10
add dword [esi + 0x4a84], ecx
mov eax, dword [esi + 0x4a78]
xor edx, edx
div dword [esi + 0x4a84]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
mov dword [esi + 0x4a78], edi
div edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jl 0x10013d76
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x10013df3
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x10013da0
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x10013d90
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x10013dd9
add byte [edi + 3], 0xff
jne 0x10013dd9
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.10013bd0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
sub ecx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
sub ecx, 1
mov byte [edx + esi + 0x66c], bl
jne 0x10013e13
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
Function at 0x10018d13
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10029700]
jne 0x10018d1d
repz ret
jmp fcn.1001c39c

Function at 0x100219bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1001bd1a
and dword [ebp - 4], 0
cmp dword [0x1002ff54], 0
mov ebx, eax
jne 0x10021a70
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10021b21
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10021b21
push eax
call fcn.1001bca8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002ff54], eax
call esi
push eax
call fcn.1001bca8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002ff58], eax
call esi
push eax
call fcn.1001bca8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1002ff5c], eax
call esi
push eax
call fcn.1001bca8
pop ecx
mov dword [0x1002ff64], eax
test eax, eax
je 0x10021a70
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001bca8
pop ecx
mov dword [0x1002ff60], eax
mov eax, dword [0x1002ff60]
cmp eax, ebx
je 0x10021ac8
cmp dword [0x1002ff64], ebx
je 0x10021ac8
push eax
call fcn.1001bd23
push dword [0x1002ff64]
mov esi, eax
call fcn.1001bd23
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10021ac8
test edi, edi
je 0x10021ac8
call esi
test eax, eax
je 0x10021abf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10021abf
test byte [ebp - 0xc], 1
jne 0x10021ac8
or dword [ebp + 0x10], 0x200000
jmp 0x10021b01
mov eax, dword [0x1002ff58]
cmp eax, ebx
je 0x10021b01
push eax
call fcn.1001bd23
pop ecx
test eax, eax
je 0x10021b01
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10021b01
mov eax, dword [0x1002ff5c]
cmp eax, ebx
je 0x10021b01
push eax
call fcn.1001bd23
pop ecx
test eax, eax
je 0x10021b01
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002ff54]
call fcn.1001bd23
pop ecx
test eax, eax
je 0x10021b21
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10021b23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4034fd
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a7b07
call fcn.004a6844
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
and dword [edi + 0xc], 0
and dword [ebp - 4], 0
lea ebx, [edi + 0x14]
mov esi, ebx
mov dword [edi], vtable.TiXmlAttribute.0
call fcn.004035d7
lea esi, [edi + 0x30]
call fcn.004035d7
push dword [ebp + 0xc]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0040356b
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0040356b
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x40621b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406232
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x406267
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x406263
cmp edi, eax
jae 0x406267
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x406255
cmp edi, eax
jb 0x40626b
xor eax, eax
jmp 0x406275
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x406386
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x406414
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4063bd
cmp dword [ebp - 8], 2
jne 0x406413
push esi
mov esi, dword [ebp + 0xc]
call fcn.00401208
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00401248
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4063fb
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x40640b
push eax
call fcn.00476b5e
pop ecx
mov edx, esi
call fcn.004013fd
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8