joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fc839
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 + 0x1013b468]
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 0x100fc87f
cmp word [ebx], dx
jne 0x100fc87f
or byte [eax + edi + 0x28], 4
jmp 0x100fc884
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 0x100fc9e7
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 0x100fc9c7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100fc8c5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100fc8fb
cmp eax, edx
jae 0x100fc909
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 0x100fc8a0
jmp 0x100fc9e7
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 0x100fc9c2
cmp dword [ebp - 0x18], 0
je 0x100fc9c2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1013b468]
test byte [eax + edi + 0x28], 0x48
je 0x100fc998
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 0x100fc95c
mov word [esi], cx
jmp 0x100fc993
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1013b468]
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 + 0x1013b468]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1013b468]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100fc9e7
pop eax
cmp word [ebp - 4], ax
jne 0x100fc9a8
cmp esi, ebx
jne 0x100fc9a8
mov word [esi], ax
jmp 0x100fc9e4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101050c4
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100fc9e7
push 0xd
pop eax
jmp 0x100fc9a3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1013b468]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100fc9e1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100fc9e7
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 0x10100019
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011f0e8
push 0x1011f0e0
push str.FlsAlloc
push 0x1f
call fcn.100ffe84
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010004d
push dword [ebp + 8]
mov ecx, esi
call dword [0x101152d8]
call esi
jmp 0x10100053
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10100097
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011f0f8
push 0x1011f0f0
push str.FlsGetValue
push 0x21
call fcn.100ffe84
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101000ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x101152d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101000d6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011f100
push 0x1011f0f8
push str.FlsSetValue
push 0x22
call fcn.100ffe84
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10100110
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101152d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x101001ae
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x1011efd4
push str.GetTempPath2W
push 5
call fcn.100ffe84
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101001e8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101152d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x10102bee
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 0x10102c8b
push ebx
push esi
call fcn.10102bb7
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.10100fb9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10102c38
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10102c8a
push edi
push eax
call fcn.100fa6af
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10102c58
call fcn.100fa6fd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10102c89
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10100fb9
add esp, 0x20
test eax, eax
jne 0x10102c77
push edi
call fcn.100fa6fd
jmp 0x10102c7f
push ebx
call fcn.100fa6fd
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 0x10102c8e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10102c9f
pop esi
ret
push ebx
push edi
push esi
call fcn.10102bb7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100fa6af
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10102cc7
push ebx
push esi
push edi
call fcn.100cf4b0
add esp, 0xc
push 0
call fcn.100fa6fd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10103421
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10102f3c
Function at 0x10109e10
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100fad3c
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 0x10109e7f
cmp esi, dword [ebp - 4]
je 0x10109e7a
cmp dword [ebp + 0xc], 0
je 0x10109e7a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10109e57
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10109962
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10109e81
xor eax, eax
inc eax
jmp 0x10109e81
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10109ee6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10130040]
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.100fad3c
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.100fad3c
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 0x10109f5d
cmp word [ecx], dx
je 0x10109f5d
mov eax, dword [0x1011fb34]
push edi
dec eax
push eax
push 0x1011fa20
call fcn.10109e85
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10109fd0
cmp word [eax], dx
je 0x10109fd0
mov eax, dword [edi]
test eax, eax
je 0x10109f81
cmp word [eax], dx
je 0x10109f81
lea eax, [ebp - 0x10]
push eax
call fcn.10109868
jmp 0x10109f8a
lea eax, [ebp - 0x10]
push eax
call fcn.10109903
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10109ffa
mov eax, dword [0x1011fa1c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1011f710
call fcn.10109e85
add esp, 0xc
test al, al
je 0x10109ffa
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10109fc5
cmp word [eax], di
je 0x10109fc5
lea eax, [ebp - 0x10]
push eax
call fcn.10109868
pop ecx
jmp 0x10109ffc
lea eax, [ebp - 0x10]
push eax
call fcn.10109903
jmp 0x10109fc2
mov eax, dword [edi]
test eax, eax
je 0x10109fe7
cmp word [eax], dx
je 0x10109fe7
lea eax, [ebp - 0x10]
push eax
call fcn.1010981d
pop ecx
jmp 0x10109ffa
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 0x1010a0c5
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10109d0a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1010a0c5
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1010a0c5
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1010a0c5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1010a052
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.101002f4
test ebx, ebx
je 0x1010a0c0
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.101002f4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1010a0c5
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 0x1010a0c5
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10105bc1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1010a0c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081a63
leave
ret
Function at 0x1010cbbf
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.1010cb3b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1010cd2e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1010cd2e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1010cce3
jg 0x1010cc1b
test eax, eax
je 0x1010ccd9
push 1
push 0x1000
call fcn.100ff2b1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1010cc3e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1010ccd0
push 0x8000
push ebx
call fcn.1010ca6c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1010cc67
jg 0x1010cc62
cmp ecx, 0x1000
jb 0x1010cc67
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1010441a
add esp, 0x10
cmp eax, 0xffffffff
je 0x1010ccac
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 0x1010cc62
jl 0x1010cc93
test ecx, ecx
jne 0x1010cc54
push dword [ebp - 0xc]
push ebx
call fcn.1010ca6c
push esi
call fcn.100fa6fd
add esp, 0xc
xor ebx, ebx
jmp 0x1010cd3c
cmp byte [edi + 0x24], 0
je 0x1010ccc3
cmp dword [edi + 0x20], 5
jne 0x1010ccc3
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1010ccce
mov ebx, dword [edi + 0x18]
jmp 0x1010ccd0
xor ebx, ebx
push esi
call fcn.100fa6fd
pop ecx
jmp 0x1010cd3c
test ecx, ecx
jg 0x1010cca5
jl 0x1010cce3
test eax, eax
jae 0x1010cca5
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101050c4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1010cd03
cmp byte [edi + 0x1c], 0
je 0x1010cca5
jmp 0x1010cd34
push ebx
call fcn.10107d1e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1010cca5
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 0x1010cd3c
cmp byte [edi + 0x1c], 0
je 0x1010cd39
mov ebx, dword [edi + 0x18]
jmp 0x1010cd3c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101050c4
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010f420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1010f44d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1010f44d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7cb71b11
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x60cb15b8
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xc
push 0
mov dword [edi], 0x422814
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0xc
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x401082
sub eax, esi
sub eax, 0xa
mov dword [esi + 6], eax
mov byte [esi], 0xb9
mov byte [esi + 5], 0xe9
mov dword [esi + 1], edi
mov dword [edi + 8], esi
mov eax, edi
pop esi
leave
ret

Function at 0x4016ae
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR80.dll_srand]
pop ecx
lea ecx, [esp + 4]
call fcn.004112f8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
call fcn.00401689
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0x432af0
push 0x432f38
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x40172c
push 0x42282c
push 0x426574
call fcn.00414b27
pop ecx
pop ecx
call fcn.004010c5
mov ecx, eax
call fcn.00403247
test eax, eax
jne 0x401741
push 2
pop esi
jmp 0x40174d
call fcn.004082d0
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [0x432f38]
call sub.gdiplus.dll_GdiplusShutdown
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402687
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x402644
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret 4
Function at 0x403097
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx]
sub esp, 0x28
push esi
xor esi, esi
cmp dword [eax + 0xc], esi
push edi
je 0x4031e0
cmp dword [eax + 8], esi
je 0x4031e0
mov ecx, dword [ebx + 8]
mov eax, dword [eax + 0x20]
mov dword [ebp - 4], esi
push 4
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call fcn.0040183a
push 8
lea edi, [ebp - 0x24]
call fcn.0040183a
cmp dword [ebp - 0x18], 0
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
je 0x403123
cmp dword [ebp - 0x20], 0
je 0x403123
mov eax, dword [ebx]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push 4
add eax, 8
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0x14]
call esi
mov eax, dword [ebx]
lea ecx, [ebp - 8]
push ecx
push 4
add eax, 0xc
push eax
lea eax, [edi + 8]
push eax
push dword [ebp - 0x14]
call esi
mov dword [ebp - 4], 1
jmp 0x403126
mov edi, dword [ebp - 0x10]
push 0x20
mov ecx, ebx
call fcn.004026a9
test eax, eax
mov dword [ebp - 8], eax
jne 0x403147
push 0x426eb0
push 0x426560
call fcn.00414b27
pop ecx
pop ecx
push dword [ebp - 8]
mov ecx, ebx
call fcn.00402443
mov ecx, ebx
call fcn.00402754
test eax, eax
jne 0x40316d
push 0x426ed8
push 0x426560
call fcn.00414b27
pop ecx
pop ecx
push 0x60
mov ecx, ebx
call fcn.004026a9
test eax, eax
jne 0x40318b
push 0x426f04
push 0x426560
call fcn.00414b27
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x4031b7
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
add edi, 8
push edi
push dword [ebp - 0x14]
call esi
xor esi, esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
push esi
mov dword [ebp - 0xc], esi
push dword [eax + 0x5d4]
push 0x403045
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x2c], eax
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
push 0x20
mov ecx, ebx
call fcn.004026a9
mov edi, eax
cmp edi, esi
jne 0x403200
push 0x426f28
push 0x426560
call fcn.00414b27
pop ecx
pop ecx
push edi
mov ecx, ebx
call fcn.00402443
mov ecx, ebx
call fcn.00402754
test eax, eax
jne 0x403224
push 0x426f50
push 0x426560
call fcn.00414b27
pop ecx
pop ecx
push 0x60
mov ecx, ebx
call fcn.004026a9
test eax, eax
jne 0x4031b9
push 0x426f7c
push 0x426560
call fcn.00414b27
pop ecx
pop ecx
jmp 0x4031b9
Function at 0x40331c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
stosd dword es:[edi], eax
push esi
push esi
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push esi
push dword [eax + 0x5e0]
push dword [eax + 0x5dc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, esi
je 0x40338e
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x40339f
push str.CBugReportInfo::RestartCrashProcess_Fail_
push str.BugReport
call fcn.00414b27
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 4