joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010df6e
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 + 0x10156de8]
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 0x1010dfae
cmp byte [ebx], 0xa
jne 0x1010dfae
or byte [edi + eax + 0x28], 4
jmp 0x1010dfb3
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 0x1010e0b2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1010e095
inc eax
cmp dl, 0xd
je 0x1010dfdf
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1010e005
cmp eax, ecx
jae 0x1010e013
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 0x1010dfc7
jmp 0x1010e0b2
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 0x1010e090
cmp dword [ebp - 0x10], 0
je 0x1010e090
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10156de8]
test byte [eax + edi + 0x28], 0x48
je 0x1010e06a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1010e055
mov byte [esi], dl
jmp 0x1010e066
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10156de8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1010e0b2
cmp byte [ebp - 1], 0xa
jne 0x1010e079
cmp esi, ebx
jne 0x1010e079
mov byte [esi], 0xa
jmp 0x1010e0b1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10116994
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1010e0b2
mov byte [esi], 0xd
jmp 0x1010e0b1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10156de8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010e0af
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1010e0b2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010e0bb
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 + 0x10156de8]
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 0x1010e101
cmp word [ebx], dx
jne 0x1010e101
or byte [eax + edi + 0x28], 4
jmp 0x1010e106
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 0x1010e269
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 0x1010e249
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1010e147
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1010e17d
cmp eax, edx
jae 0x1010e18b
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 0x1010e122
jmp 0x1010e269
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 0x1010e244
cmp dword [ebp - 0x18], 0
je 0x1010e244
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10156de8]
test byte [eax + edi + 0x28], 0x48
je 0x1010e21a
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 0x1010e1de
mov word [esi], cx
jmp 0x1010e215
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10156de8]
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 + 0x10156de8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10156de8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1010e269
pop eax
cmp word [ebp - 4], ax
jne 0x1010e22a
cmp esi, ebx
jne 0x1010e22a
mov word [esi], ax
jmp 0x1010e266
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10116994
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1010e269
push 0xd
pop eax
jmp 0x1010e225
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10156de8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1010e263
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1010e269
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 0x1011203c
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 0x101120d9
push ebx
push esi
call fcn.10112005
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.10111f99
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10112086
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101120d8
push edi
push eax
call fcn.1010ec62
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101120a6
call fcn.1010ba4d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101120d7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10111f99
add esp, 0x20
test eax, eax
jne 0x101120c5
push edi
call fcn.1010ba4d
jmp 0x101120cd
push ebx
call fcn.1010ba4d
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 0x101120dc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101120ed
pop esi
ret
push ebx
push edi
push esi
call fcn.10112005
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1010ec62
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10112115
push ebx
push esi
push edi
call fcn.100e0d20
add esp, 0xc
push 0
call fcn.1010ba4d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1011286f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1011238a

Function at 0x10112d21
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10131148
push 0x10131140
push str.FlsAlloc
push 0x1f
call fcn.10112b8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10112d55
push dword [ebp + 8]
mov ecx, esi
call dword [0x101272e4]
call esi
jmp 0x10112d5b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10112d9f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10131158
push 0x10131150
push str.FlsGetValue
push 0x21
call fcn.10112b8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10112dd6
push dword [ebp + 8]
mov ecx, esi
call dword [0x101272e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10112dde
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10131160
push 0x10131158
push str.FlsSetValue
push 0x22
call fcn.10112b8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10112e18
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101272e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10112eb6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x10131034
push str.GetTempPath2W
push 5
call fcn.10112b8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10112ef0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101272e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x1011b163
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1010c1f2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1011b1d2
cmp esi, dword [ebp - 4]
je 0x1011b1cd
cmp dword [ebp + 0xc], 0
je 0x1011b1cd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1011b1aa
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1011acb5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1011b1d4
xor eax, eax
inc eax
jmp 0x1011b1d4
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1011b239
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10144040]
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.1010c1f2
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.1010c1f2
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 0x1011b2b0
cmp word [ecx], dx
je 0x1011b2b0
mov eax, dword [0x10131b54]
push edi
dec eax
push eax
push 0x10131a40
call fcn.1011b1d8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1011b323
cmp word [eax], dx
je 0x1011b323
mov eax, dword [edi]
test eax, eax
je 0x1011b2d4
cmp word [eax], dx
je 0x1011b2d4
lea eax, [ebp - 0x10]
push eax
call fcn.1011abbb
jmp 0x1011b2dd
lea eax, [ebp - 0x10]
push eax
call fcn.1011ac56
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1011b34d
mov eax, dword [0x10131a3c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10131730
call fcn.1011b1d8
add esp, 0xc
test al, al
je 0x1011b34d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1011b318
cmp word [eax], di
je 0x1011b318
lea eax, [ebp - 0x10]
push eax
call fcn.1011abbb
pop ecx
jmp 0x1011b34f
lea eax, [ebp - 0x10]
push eax
call fcn.1011ac56
jmp 0x1011b315
mov eax, dword [edi]
test eax, eax
je 0x1011b33a
cmp word [eax], dx
je 0x1011b33a
lea eax, [ebp - 0x10]
push eax
call fcn.1011ab70
pop ecx
jmp 0x1011b34d
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 0x1011b418
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1011b05d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1011b418
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1011b418
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1011b418
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1011b3a5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10112ffc
test ebx, ebx
je 0x1011b413
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10112ffc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1011b418
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 0x1011b418
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100f80ee
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1011b41a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007c329
leave
ret
Function at 0x1011e1bd
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.1011e139
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1011e32c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1011e32c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1011e2e1
jg 0x1011e219
test eax, eax
je 0x1011e2d7
push 1
push 0x1000
call fcn.101100a5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1011e23c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1011e2ce
push 0x8000
push ebx
call fcn.1011e06a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1011e265
jg 0x1011e260
cmp ecx, 0x1000
jb 0x1011e265
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10115cea
add esp, 0x10
cmp eax, 0xffffffff
je 0x1011e2aa
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 0x1011e260
jl 0x1011e291
test ecx, ecx
jne 0x1011e252
push dword [ebp - 0xc]
push ebx
call fcn.1011e06a
push esi
call fcn.1010ba4d
add esp, 0xc
xor ebx, ebx
jmp 0x1011e33a
cmp byte [edi + 0x24], 0
je 0x1011e2c1
cmp dword [edi + 0x20], 5
jne 0x1011e2c1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1011e2cc
mov ebx, dword [edi + 0x18]
jmp 0x1011e2ce
xor ebx, ebx
push esi
call fcn.1010ba4d
pop ecx
jmp 0x1011e33a
test ecx, ecx
jg 0x1011e2a3
jl 0x1011e2e1
test eax, eax
jae 0x1011e2a3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10116994
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1011e301
cmp byte [edi + 0x1c], 0
je 0x1011e2a3
jmp 0x1011e332
push ebx
call fcn.10119071
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1011e2a3
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 0x1011e33a
cmp byte [edi + 0x1c], 0
je 0x1011e337
mov ebx, dword [edi + 0x18]
jmp 0x1011e33a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10116994
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10120bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10120bfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10120bfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100010a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [0x100043c8]
push edi
push 0xa
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0x40
push 5
push esi
call ebx
mov ecx, dword [esi]
mov dword [edi], ecx
mov dl, byte [esi + 4]
mov byte [edi + 4], dl
add edi, 5
mov ecx, 0x10001400
mov eax, esi
sub eax, edi
sub ecx, esi
mov byte [edi], 0xe9
mov dword [edi + 1], eax
sub ecx, 5
lea edx, [esp + 0xc]
push edx
mov byte [esi], 0xe9
mov dword [esi + 1], ecx
mov eax, dword [esp + 0x10]
push eax
push 5
push esi
call ebx
lea eax, [edi - 5]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10001110
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push esi
push edi
call ebx
mov ecx, dword [esp + 0xc]
push esi
push ecx
push edi
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x10]
add esp, 0xc
push 0
push edx
push esi
push edi
call ebx
pop ebx
pop ecx
ret
Function at 0x100017e0
Capabilities:
Create thread
Execute command
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000251c
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
mov esi, dword [ebp + 8]
jne 0x100018e9
push 0
push 0
push 0
push 0x10001680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::constructor_void_]
push 0x40
push 2
push str.xigncodexigncode.log
lea ecx, [esp + 0x18]
mov dword [esp + 0x1bc], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::open_char_const___int__int_]
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
push ecx
lea ecx, [esp + 0x14]
push ecx
call fcn.10001a50
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::close_void_]
push 0x104
lea edx, [esp + 0x98]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x94]
push str.C_10083.dll
push eax
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
ja 0x100018d4
push str.shutdown__s__t_01
call dword [sym.imp.MSVCR90.dll_system]
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1b0], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov eax, 1
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.10001c0b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001c0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001c15
repz ret
jmp fcn.10001fc8
Function at 0x401019
Capabilities:
Set current directory

Disassembly:
jmp 0x41a8d0
push esi
push edi
push 0x44f818
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x41a97a
push ebx
mov ebx, dword [sym.imp.USER32.dll_DialogBoxParamW]
push ebp
lea ebp, [edi + 1]
sub esi, 5
je 0x41a92d
sub esi, ebp
jne 0x41a973
cmp dword [0x450c54], esi
jne 0x41a91c
mov eax, dword [0x486304]
push esi
push 0x4010c3
push esi
push 0x6d
push eax
call ebx
mov esi, eax
jmp 0x41a95f
cmp dword [0x478e2c], 2
jne 0x41a95d
mov dword [0x451678], ebp
jmp 0x41a957
cmp dword [0x450c54], 0
jne 0x41a94e
mov ecx, dword [0x486304]
push 0
push 0x4011f9
push 0
push 0x6c
push ecx
call ebx
mov esi, eax
jmp 0x41a95f
cmp dword [0x478e2c], 2
jne 0x41a95d
mov dword [0x478e2c], ebp
xor esi, esi
mov edi, ebp
call fcn.004011d1
push ebp
call fcn.00401316
add esp, 4
test esi, esi
jne 0x41a8f6
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x40101e
Capabilities:
Copy file

Disassembly:
jmp 0x405060
sub esp, 0x468
mov eax, dword [0x44e1b4]
xor eax, esp
mov dword [esp + 0x464], eax
xor eax, eax
cmp dword [esp + 0x46c], eax
push esi
mov esi, dword [esp + 0x474]
je 0x405284
test esi, esi
je 0x405284
push edi
push 0x44c
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
push eax
call fcn.0041be10
push esi
lea ecx, [esp + 0x30]
push 0x226
push ecx
call fcn.0041c22f
xor edi, edi
add esp, 0x18
cmp word [esp + 0x20], di
je 0x405136
lea edx, [esp + 0x20]
lea ecx, [ecx]
mov ax, word [edx]
cmp ax, word [0x450440]
jne 0x405127
mov eax, 0x450440
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4050f4
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x10]
push 0xb
push ecx
call fcn.0041c29b
lea edx, [esp + 0x18]
push 0x450440
push edx
call fcn.0041c5e7
add esp, 0x18
test eax, eax
je 0x405136
add edi, 1
cmp word [esp + edi*2 + 0x20], 0
lea edx, [esp + edi*2 + 0x20]
jne 0x4050e0
cmp word [esp + edi*2 + 0x20], 0
je 0x405157
mov eax, 0x450440
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405146
sub eax, edx
sar eax, 1
add edi, eax
cmp word [esp + edi*2 + 0x20], 0
lea eax, [esp + edi*2 + 0x20]
je 0x40517e
mov word [eax], 0
push 0
lea eax, [esp + 0x24]
push eax
push 0x450440
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x405197
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.0041bdf4
add esp, 0x468
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
lea ecx, [esp + 0x24]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x28]
push edx
call ebx
xor esi, esi
cmp word [esp + 0x24], si
je 0x40521f
push ebp
mov bp, word [0x450440]
lea eax, [esp + 0x28]
jmp 0x4051d0
cmp word [eax], bp
jne 0x40520f
mov ecx, 0x450440
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405206
test dx, dx
je 0x405202
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405206
add eax, 4
add ecx, 4
test dx, dx
jne 0x4051e0
xor eax, eax
jmp 0x40520b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40521e
add esi, 1
cmp word [esp + esi*2 + 0x28], 0
lea eax, [esp + esi*2 + 0x28]
jne 0x4051d0
pop ebp
push 0x479448
lea eax, [esp + 0x28]
push 0x226
push eax
mov word [esp + esi*2 + 0x30], 0
call fcn.0041c1b5
add esp, 0xc
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x479448
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40526b
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.0041bdf4
add esp, 0x468
ret
lea edx, [esp + 0x24]
push edx
call edi
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x28]
push eax
call ebx
pop ebx
mov eax, 1
pop edi
mov ecx, dword [esp + 0x468]
pop esi
xor ecx, esp
call fcn.0041bdf4
add esp, 0x468
ret