joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407573
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.00403908
and dword [ebp - 4], 0
cmp dword [0x416198], 0
mov ebx, eax
jne 0x407624
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4076d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4076d5
push eax
call fcn.00403896
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416198], eax
call esi
push eax
call fcn.00403896
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41619c], eax
call esi
push eax
call fcn.00403896
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4161a0], eax
call esi
push eax
call fcn.00403896
pop ecx
mov dword [0x4161a8], eax
test eax, eax
je 0x407624
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403896
pop ecx
mov dword [0x4161a4], eax
mov eax, dword [0x4161a4]
cmp eax, ebx
je 0x40767c
cmp dword [0x4161a8], ebx
je 0x40767c
push eax
call fcn.00403911
push dword [0x4161a8]
mov esi, eax
call fcn.00403911
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40767c
test edi, edi
je 0x40767c
call esi
test eax, eax
je 0x407673
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407673
test byte [ebp - 0xc], 1
jne 0x40767c
or dword [ebp + 0x10], 0x200000
jmp 0x4076b5
mov eax, dword [0x41619c]
cmp eax, ebx
je 0x4076b5
push eax
call fcn.00403911
pop ecx
test eax, eax
je 0x4076b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4076b5
mov eax, dword [0x4161a0]
cmp eax, ebx
je 0x4076b5
push eax
call fcn.00403911
pop ecx
test eax, eax
je 0x4076b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416198]
call fcn.00403911
pop ecx
test eax, eax
je 0x4076d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4076d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005f93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102325f0]
jne 0x10005f9d
repz ret
jmp fcn.10009486

Function at 0x1000ac5f
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.100054dc
and dword [ebp - 4], 0
cmp dword [0x10233fa4], 0
mov ebx, eax
jne 0x1000ad10
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000adc1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000adc1
push eax
call fcn.1000546a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10233fa4], eax
call esi
push eax
call fcn.1000546a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10233fa8], eax
call esi
push eax
call fcn.1000546a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10233fac], eax
call esi
push eax
call fcn.1000546a
pop ecx
mov dword [0x10233fb4], eax
test eax, eax
je 0x1000ad10
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000546a
pop ecx
mov dword [0x10233fb0], eax
mov eax, dword [0x10233fb0]
cmp eax, ebx
je 0x1000ad68
cmp dword [0x10233fb4], ebx
je 0x1000ad68
push eax
call fcn.100054e5
push dword [0x10233fb4]
mov esi, eax
call fcn.100054e5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000ad68
test edi, edi
je 0x1000ad68
call esi
test eax, eax
je 0x1000ad5f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000ad5f
test byte [ebp - 0xc], 1
jne 0x1000ad68
or dword [ebp + 0x10], 0x200000
jmp 0x1000ada1
mov eax, dword [0x10233fa8]
cmp eax, ebx
je 0x1000ada1
push eax
call fcn.100054e5
pop ecx
test eax, eax
je 0x1000ada1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000ada1
mov eax, dword [0x10233fac]
cmp eax, ebx
je 0x1000ada1
push eax
call fcn.100054e5
pop ecx
test eax, eax
je 0x1000ada1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10233fa4]
call fcn.100054e5
pop ecx
test eax, eax
je 0x1000adc1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000adc3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c0c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10231a1c], 0
mov byte [0x10231a20], 0
mov dword [0x10231a18], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000c11e
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, 0x1fdd
mov dword [0x10231a18], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x1000c150
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10231a10], 0x1fdd
mov eax, dword [0x10231a18]
add eax, 1
mov dword [0x10231a18], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000c11e
jmp 0x1000c105
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
mov dword [0x10231a24], 0
mov dword [ebp - 0x28], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [ebp - 0x28]
add edi, 0xfffff6b9
mov ebx, dword [0x10231a1c]
mov esi, dword [ebp - 0x18]
movzx esi, byte [esi + ecx]
add esi, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add esi, edx
mov dword [0x10231a24], esi
mov dword [0x10231a14], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x10231a1c], edx
mov dword [0x10231a10], edi
mov edi, dword [ebp - 0x18]
mov bl, byte [edi + ecx]
mov byte [0x10231a20], bl
mov dword [0x10231a14], 0xe30
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov ecx, dword [0x10231a14]
add ecx, 0xfffffd81
mov dword [0x10231a10], ecx
mov bl, byte [0x10231a20]
mov ecx, dword [0x10231a1c]
mov byte [edi + ecx], bl
mov ecx, dword [0x10231a18]
add ecx, 1
mov dword [0x10231a18], ecx
cmp ecx, 0x100
mov dword [ebp - 0x30], ecx
jge 0x1000c0fd
mov eax, dword [0x10231a10]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x1000c150
Function at 0x1000d2e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10231a10], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1000d32d
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jge 0x1000d343
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
jne 0x1000d316
mov eax, dword [ebp - 0x18]
mov dword [0x10231a14], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x1000d3cb
mov dword [0x10231a14], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1000d3cb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1000d3cb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1000d3cb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000d3cb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1000d3cb
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x1000d3da
xor eax, eax
mov dword [0x10231a14], 0x1864
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x1000d7d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10231a18], 0
mov dword [0x10231a1c], 0
mov dword [0x10231a28], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x1000d81e
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1000d82f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov edi, eax
add edi, 1
mov dword [0x10231a10], 0x1e8a
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x10231a18], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10231a1c], edx
mov dword [0x10231a10], 0x40c5
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x10231a20], cl
mov dword [0x10231a14], 0x471
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10231a20]
mov edx, dword [0x10231a1c]
mov byte [ebx + edx], cl
mov edx, dword [0x10231a18]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10231a1c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10231a28], ecx
mov dword [0x10231a10], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x10231a14], 0xbad
mov dword [0x10231a10], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x1000d92f
mov eax, dword [0x10231a18]
mov ecx, dword [0x10231a1c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
jmp 0x1000d82f
jmp 0x1000d816
Function at 0x1000d940
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x10231a10], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1000c250
lea ecx, [0x1000bfc0]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x48], edx
mov dword [esp + 0x64], 0x153200
mov edx, dword [0x102319fc]
mov dword [esp + 0x6c], edx
mov edx, dword [0x10231a00]
mov dword [esp + 0x28], edx
mov edx, dword [0x10231a04]
mov dword [esp + 0x5c], edx
mov edx, dword [0x10231a08]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10231a0c]
mov dword [esp + 0x30], edx
mov dword [0x10231a10], 0x212d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1000da04
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov dword [0x10231a14], 0x1fcc
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x34], eax
call fcn.1000d2e0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1000da3f
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x1000da2b
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x1000d9cc
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1000da04
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000cbf0
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10231a10], 0x1ed4
mov dword [esp + 0x10], eax
jmp 0x1000d9fc
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x66572513
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x136218be
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0
push 0
push 0
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x24], 0x22
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], 0x18
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 0xc], 0xb
mov dword [ebp - 8], 0x13
mov dword [ebp - 4], 0xf
call dword [0x40c008]
call dword [0x40c014]
cmp eax, 0x57
je 0x401e92
push 0
call dword [0x40c004]
xor eax, eax
xor edx, edx
jmp 0x401ea0
movzx ecx, byte [ebp + eax*4 - 0x2c]
inc eax
xor byte [edx + 0x4120c0], cl
xor ecx, ecx
cmp eax, 0xb
cmove eax, ecx
movzx ecx, byte [ebp + eax*4 - 0x2c]
inc eax
xor byte [edx + 0x4120c1], cl
xor ecx, ecx
cmp eax, 0xb
cmove eax, ecx
movzx ecx, byte [ebp + eax*4 - 0x2c]
inc eax
xor byte [edx + 0x4120c2], cl
xor ecx, ecx
cmp eax, 0xb
cmove eax, ecx
movzx ecx, byte [ebp + eax*4 - 0x2c]
inc eax
xor byte [edx + 0x4120c3], cl
xor ecx, ecx
cmp eax, 0xb
cmove eax, ecx
add edx, 4
cmp edx, 0x12800
jb 0x401ea0
call fcn.00401d30
push 0
test eax, eax
jne 0x401e8c
call dword [0x40c010]
int3
Function at 0x402ed5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x438800
push 0x400
add eax, 0x3e8
push esi
push ebx
mov dword [0x42a24c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00405de7
mov edi, eax
cmp edi, 0xffffffff
mov dword [0x40a018], edi
jne 0x402f2f
mov eax, str.Error_launching_installer
jmp 0x403174
push esi
mov esi, 0x436800
push esi
call fcn.00406212
push esi
call fcn.00405c12
push eax
push 0x439000
call fcn.00406212
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x418ee0], eax
mov esi, eax
jle 0x40304d
mov eax, dword [0x42a254]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x402f7e
mov edi, eax
push edi
push 0x418ee8
call fcn.004033ec
test eax, eax
je 0x4030e8
cmp dword [0x42a254], ebx
jne 0x403017
push 0x1c
lea eax, [ebp - 0x24]
push 0x418ee8
push eax
call fcn.00405da2
mov eax, dword [ebp - 0x24]
test eax, 0xfffffff0
jne 0x403024
cmp dword [ebp - 0x20], 0xdeadbeef
jne 0x403024
cmp dword [ebp - 0x14], 0x74736e49
jne 0x403024
cmp dword [ebp - 0x18], 0x74666f73
jne 0x403024
cmp dword [ebp - 0x1c], 0x6c6c754e
jne 0x403024
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x418ed0]
and eax, 2
or dword [0x42a2e0], eax
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [0x42a254], ecx
jg 0x40312c
test byte [ebp + 8], 8
jne 0x403009
test byte [ebp + 8], 4
jne 0x40304d
inc dword [ebp - 8]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x403024
mov edi, esi
jmp 0x403024
test byte [ebp + 8], 2
jne 0x403024
push ebx
call fcn.00402e33
pop ecx
cmp esi, dword [0x418ee0]
jge 0x40303d
push edi
push 0x418ee8
push dword [ebp - 4]
call fcn.0040669d
mov dword [ebp - 4], eax
add dword [0x418ed0], edi
sub esi, edi
cmp esi, ebx
jg 0x402f63
push 1
jmp 0x4765e0
push 1
call fcn.00402e33
pop ecx
jmp 0x40312c
mov eax, str.Installer_integrity_check_has_failed._Common_causes_include_nincomplete_download_and_damaged_media._Contact_the_ninstallers_author_to_obtain_a_new_copy._n_nMore_information_at:_nhttp:__nsis.sf.net_NSIS_Error
jmp 0x403174
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403a5b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [0x42a250]
push edi
push 2
call fcn.004065ec
xor edi, edi
cmp eax, edi
je 0x403a87
call eax
movzx eax, ax
push eax
push 0x437000
call fcn.00406159
jmp 0x403ae1
mov ebx, 0x423728
push edi
push ebx
push edi
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x437000], 0x30
mov word [0x437002], 0x78
mov word [0x437004], di
call fcn.004060df
cmp word [0x423728], di
jne 0x403ad6
push edi
push ebx
push 0x4083d4
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004060df
push ebx
push 0x437000
call sub.KERNEL32.dll_lstrcatW
call fcn.00403d31
mov eax, dword [0x42a258]
mov ebp, 0x435800
and eax, 0x20
push ebp
mov dword [0x42a2c0], eax
mov dword [0x42a2dc], 0x10000
call fcn.00405cce
test eax, eax
jne 0x403b9c
jmp 0x476c20
push ebp
call fcn.00405cce
test eax, eax
jne 0x403bb2
push dword [esi + 0x118]
push ebp
call fcn.00406234
push 0x8040
push edi
push edi
push 1
push 0x67
push dword [0x42a240]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x429228], eax
cmp dword [esi + 0x50], 0xffffffff
mov ebx, 0x4291e0
je 0x403c58
mov ecx, dword [0x42a240]
mov esi, 0x40a3b4
push ebx
mov dword [0x4291e4], 0x401000
mov dword [0x4291f0], ecx
mov dword [0x4291f4], eax
mov dword [0x429204], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x403d27
lea eax, [esp + 0x10]
push edi
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push edi
push dword [0x42a240]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edi
push edi
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0x80000000
push edi
push esi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x423708], eax
push edi
call fcn.0040140b
test eax, eax
je 0x403c6a
push 2
pop eax
jmp 0x403d29
call fcn.00403d31
cmp dword [0x42a2e0], edi
jne 0x403cfe
push 5
push dword [0x423708]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.0040657c
test eax, eax
jne 0x403ca1
push str.RichEd32
call fcn.0040657c
mov esi, dword [sym.imp.USER32.dll_GetClassInfoW]
mov ebp, 0x408318
push ebx
push ebp
push edi
call esi
test eax, eax
jne 0x403ccb
push ebx
push str.RichEdit
push edi
call esi
push ebx
mov dword [0x429204], ebp
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x429220]
push edi
add eax, 0x69
push 0x403dfe
movzx eax, ax
push edi
push eax
push dword [0x42a240]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.0040140b
push 1
call fcn.004039ab
mov eax, esi
jmp 0x403d29
push edi
call fcn.00405444
test eax, eax
je 0x403d20
cmp dword [0x42920c], edi
jne 0x403c62
push 2
call fcn.0040140b
jmp 0x403c62
push 1
call fcn.0040140b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x405840
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405891
xor eax, eax
jmp 0x4058b8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058b8
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40588d
call esi
pop esi
leave
ret 4

Function at 0x4058f2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426730], 0x44
push eax
xor eax, eax
push 0x426730
push eax
push eax
push 0x4000000
push eax
jmp loc.00476b58

Function at 0x4059bb
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dc2
mov edi, eax
cmp edi, 0xffffffff
je 0x4059fc
test byte [esp + 0x10], 1
push esi
je 0x4059de
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059e4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059ed
xor eax, eax
inc eax
jmp 0x4059fe
test byte [esp + 0x10], 4
jne 0x4059fc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8