joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100095e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100198d0
push 0x10018650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0xbe037055
xor esi, esi
push esi
call fcn.1000f800
add esp, 8
cmp eax, esi
jne 0x10009630
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
push eax
push esi
push 0x400
call dword [0x10019308]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, esi
je 0x10009710
lea eax, [ebp - 0x30]
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x10009710
mov dword [ebp - 0x38], esi
lea ecx, [ebp - 0x38]
push ecx
push esi
push esi
push 1
mov edx, dword [ebp - 0x30]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x10009710
push eax
call fcn.10018554
add esp, 4
mov esi, eax
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x30]
push edx
call edi
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10009710
mov dword [ebp - 0x140], 0x104
mov dword [ebp - 0x144], 0x100
push 0x100
call fcn.10018554
add esp, 4
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x140]
push edx
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x144]
push edx
push eax
mov eax, dword [esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
call 0x10009722
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
test ebx, ebx
je 0x1000972d
push ebx
call dword [0x100191e8]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000973b
push eax
call dword [0x100191e8]
test esi, esi
je 0x10009748
push esi
call fcn.1001854e
add esp, 4
mov esp, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x114
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
cmp ebx, ecx
push edi
je 0x1000e55d
mov eax, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x12c]
add eax, ebx
mov dword [esp + 0x10], ecx
mov esi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
add esi, ebx
mov dword [esp + 0x1c], eax
test ebp, 0x80000000
jne 0x1000e4fb
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
add eax, ebx
cmp edx, ecx
mov dword [esp + 0x18], ecx
jbe 0x1000e519
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0
mov edi, dword [ecx]
add edi, ebx
push edi
call fcn.10013780
add esp, 4
push eax
push edi
call fcn.10010680
and eax, 0x7fffffff
add esp, 0xc
cmp eax, ebp
je 0x1000e4e6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jb 0x1000e4a3
jmp 0x1000e519
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax*2]
mov dx, word [ecx + ebx]
mov word [esp + 0x10], dx
jmp 0x1000e519
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, ebp
add edx, ecx
and eax, 0xffff
cmp eax, edx
jae 0x1000e55d
cmp eax, ecx
jb 0x1000e55d
sub bp, cx
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
and eax, 0xffff
lea edx, [ecx + eax*4]
mov eax, dword [edx + ebx]
add eax, ebx
je 0x1000e55f
cmp eax, esi
jb 0x1000e55f
mov ecx, dword [esp + 0x1c]
add ecx, esi
cmp eax, ecx
jae 0x1000e55f
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
mov esi, eax
je 0x1000e55d
lea edx, [esp + 0x20]
sub edx, eax
mov al, byte [esi]
inc ecx
mov byte [edx + esi], al
inc esi
cmp al, 0x2e
je 0x1000e56a
cmp byte [esi], 0
jne 0x1000e54d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
test ecx, ecx
jle 0x1000e55d
mov byte [esp + ecx + 0x20], 0x64
inc ecx
mov al, 0x6c
lea edx, [esp + 0x20]
mov byte [esp + ecx + 0x20], al
inc ecx
push edx
mov byte [esp + ecx + 0x24], al
mov byte [esp + ecx + 0x25], 0
call fcn.10014be0
add esp, 4
lea eax, [esp + 0x20]
push eax
call sym.digest.dll_DllInstall
push 0
push esi
mov edi, eax
call fcn.10013780
add esp, 4
push eax
push esi
call fcn.10010680
and eax, 0x7fffffff
push eax
push edi
call fcn.1000e450
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

Function at 0x1000e5d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x40
push ebx
push esi
xor esi, esi
push 0xf003f
push esi
mov dword [esp + 0x24], ecx
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000f2c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
pushal
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
add edx, 0x14
mov edx, dword [edx]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x1000f301
mov esi, dword [edx + 0x28]
mov edi, dword [ebp + 8]
mov bx, word [esi]
mov bh, byte [edi]
cmp bl, 0x5a
jg 0x1000f2f5
cmp bl, 0x41
jl 0x1000f2f5
add bl, 0x20
cmp bl, bh
jne 0x1000f2d4
inc esi
inc esi
inc edi
test bx, bx
jne 0x1000f2e3
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f8b0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10018ad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x10019850
mov edi, dword [0x100191f0]
lea eax, [esi + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call edi
lea ecx, [esi + 0x10]
push 0
push ecx
call edi
mov edx, dword [esi + 0x2c]
mov edi, dword [0x100191ec]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [esi + 0x30]
push 0xffffffffffffffff
push eax
call edi
mov ecx, dword [esi + 0x2c]
mov edi, dword [0x100191e8]
push ecx
call edi
mov edx, dword [esi + 0x30]
push edx
call edi
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x1000f927
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.10009380
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1000ffc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, 0x5f8
mov eax, esi
mov dl, byte [esi + 0xf]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ecx
jne 0x1000ffd0
mov al, byte [esi]
mov cl, byte [esi + 0xe]
pop esi
cmp al, cl
pop ebx
jne 0x1000ffec
cmp al, 0x40
jne 0x1000ffec
mov al, 1
ret
xor al, al
ret

Function at 0x10010680
Capabilities:
Encode data using xor

Disassembly:
push esi
call fcn.10014050
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test esi, esi
jbe 0x100106b5
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10023120]
xor eax, edx
inc ecx
dec esi
jne 0x10010696
pop ebx
not eax
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100106d1
push esi
push 0x10021dcc
push eax
call dword [0x10019498]
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x10010f90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [0x10019294]
test eax, eax
je 0x10011006
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [0x1001927c]
test eax, eax
je 0x10011006
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x10011006
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x10010ff4
mov edx, esi
cmp edi, ebx
jb 0x10010ffe
add edx, ebx
cmp edi, edx
jbe 0x10011010
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x10010fe6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x100113c0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x10018be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call fcn.1000df90
push 0xf003f
push 0
push 0
mov dword [esp + 0x1c], 0
mov dword [esi], 0x10019888
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10011dc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x808
lea eax, [esp + 0x10c]
push ebx
push esi
push edi
push 0x104
push eax
call dword [0x100192d0]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10021268
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [0x1001924c]
lea edx, [esp + 0x14]
push edx
call dword [0x10019220]
lea ebx, [esp + eax + 0x14]
mov eax, dword [0x10020060]
or ecx, 0xffffffff
push ebx
lea edi, [eax + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1000edb0
mov edi, 0x10021884
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 4
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 2
rep movsb byte es:[edi], byte [esi]
push eax
call dword [0x10019288]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10011f61
mov esi, dword [0x10020060]
mov ecx, 0x17e
lea edi, [esp + 0x21c]
push 0
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x220]
call dword [0x10019378]
push eax
call dword [0x1001937c]
mov edi, dword [0x10019380]
add esp, 8
call edi
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x10019860]
call fcn.1001860c
test al, al
je 0x10011ed1
mov ecx, 0x5f8
mov dl, byte [esi]
xor dl, al
mov byte [esi], dl
inc esi
dec ecx
jne 0x10011eef
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x224]
push 0x5f8
push edx
push ebx
call dword [0x1001929c]
push ebx
call dword [0x100191e8]
mov edi, 0x10021874
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call fcn.1000ef70
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x808
ret
Function at 0x100124b0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 0x130
push ebx
mov ebx, ecx
mov ecx, dword [0x100211ac]
push esi
mov dword [esp + 0xc], ecx
mov cx, word [0x100211b8]
push edi
mov word [esp + 0x1c], cx
mov ecx, 6
mov esi, 0x1002118c
lea edi, [esp + 0x20]
mov eax, dword [str.QevBnieZjlc14a0_]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x100211b0]
mov dword [esp + 0xc], eax
mov eax, dword [0x100211b4]
mov dword [esp + 0x14], edx
mov dl, byte [0x100211ba]
mov ecx, ebx
movsw word es:[edi], word [esi]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1e], dl
movsb byte es:[edi], byte [esi]
call fcn.10008070
push eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [0x10019498]
add esp, 0xc
lea edx, [esp + 0x3c]
mov ecx, ebx
push edx
call fcn.10003450
mov esi, eax
test esi, esi
je 0x1001254f
mov ax, word [esi]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, ebx
call fcn.10010700
mov edx, dword [esi + 4]
push edx
call sub.USER32.dll_SetClipboardData
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.10003450
mov esi, eax
test esi, esi
je 0x10012579
mov cx, word [esi]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, ebx
call fcn.10010700
mov eax, dword [esi + 4]
push eax
call sub.USER32.dll_SetClipboardData
pop edi
pop esi
pop ebx
add esp, 0x130
ret

Function at 0x10013040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], 1
call fcn.1000dfc0
add esp, 8
nop
xor ecx, ecx
test eax, eax
jle 0x10013094
push ebx
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
xor bl, 0x13
mov byte [ecx + edx], bl
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
xor bl, 0xa
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x10013063
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100137a0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100198c0
push 0x10018650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebx
push esi
push edi
mov byte [ebp - 0x53c], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x53b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], eax
push 0xf003f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10014050
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x10023120
mov eax, edx
mov esi, 8
test al, 1
je 0x1001406c
shr eax, 1
xor eax, 0xedb88320
jmp 0x1001406e
shr eax, 1
dec esi
jne 0x1001405f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x10023520
jl 0x10014058
pop esi
ret
Function at 0x10015640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100198f8
push 0x10018650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], ebx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [0x1001909c]
test eax, eax
je 0x1001571e
lea ecx, [ebp - 0x38]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x1001571e
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
add edi, 0x10
mov dword [ebp - 0x2c], edi
push edi
push 8
call dword [0x100191b8]
push eax
call dword [0x100191b0]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x1001571e
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1001571e
mov ecx, dword [ebp - 0x38]
push ecx
push 0x10000000
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
je 0x1001571e
push ebx
push esi
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001571e
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.1001575c
cmp dword [ebp - 0x24], ebx
jne 0x1001576b
cmp esi, ebx
je 0x10015742
push esi
push ebx
call dword [0x100191b8]
push eax
call dword [0x100191bc]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401f1d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x4140cc
push dword [0x4151c8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
lea eax, [ebp - 0x104]
push 0x8101
push eax
call fcn.00401751
mov esi, eax
or eax, 0xffffffff
add esp, 0xc
cmp esi, eax
je 0x401fe1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0040182a
push esi
call fcn.0040184c
add esp, 0x10
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040dc38
mov esi, eax
lea eax, [ebp - 0x18c]
push 0x1001
push eax
push dword [ebp + 8]
call fcn.0040dc38
mov edi, eax
push edi
push esi
call fcn.0040dc32
push esi
mov ebx, eax
call fcn.0040dc2c
push edi
call fcn.0040dc2c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401fe6
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0
push str.welcome
push dword [0x4151c8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call fcn.00401f1d
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x40208d
push 0x100
lea eax, [ebp - 0x104]
push 0x8000
push eax
call fcn.00401751
mov edi, eax
lea eax, [esi + 1]
add esp, 0xc
test eax, eax
je 0x402066
push eax
call fcn.004071da
pop ecx
push esi
push eax
push edi
mov dword [0x4151ac], eax
call fcn.00401808
push edi
call fcn.0040184c
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x402090
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x402094
Capabilities:
Get common file path

Disassembly:
push esi
push 0x104
call fcn.004071da
pop ecx
xor esi, esi
push eax
push esi
push 0x4140ec
mov dword [0x41519c], eax
push dword [0x4151c8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x41519c]
call fcn.00401f1d
add esp, 0xc
test eax, eax
jge 0x4020f8
push esi
push esi
push str.LoadLanguage_Failed
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x41519c]
cmp eax, esi
je 0x4020f2
push eax
call fcn.004071ab
pop ecx
mov dword [0x41519c], esi
xor eax, eax
pop esi
ret
Function at 0x40b6f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4146d8
cmp edx, dword [eax]
je 0x40b713
add eax, 8
inc ecx
cmp eax, 0x414768
jl 0x40b704
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4146d8]
jne 0x40b841
mov eax, dword [0x415304]
cmp eax, 1
je 0x40b81b
test eax, eax
jne 0x40b744
cmp dword [0x4142e4], 1
je 0x40b81b
cmp edx, 0xfc
je 0x40b841
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b77b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407130
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b7be
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407130
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x412740
push edi
call fcn.0040c990
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407930
lea eax, [ebp - 0xa0]
push 0x4141cc
push eax
call fcn.00407930
push dword [esi + 0x4146dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407930
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call 0x40c8fd
add esp, 0x2c
pop edi
jmp 0x40b841
lea eax, [ebp + 8]
lea esi, [esi + 0x4146dc]
push 0
push eax
push dword [esi]
call fcn.00407130
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40c5d2
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40c5eb
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40c5d0
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40c5d8
cmp edx, ebx
jne 0x40c726
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40c5a7
add eax, dword [eax + 4]
jmp 0x40c594
mov dword [ebp + 0xc], ebx
jmp 0x40c5f6
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40c60e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40c62c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40c68a
inc eax
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40c671
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40c67a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40c684
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40c666
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40c5f0
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40c6d7
dec eax
je 0x40c6ce
sub eax, 3
je 0x40c6c5
mov dword [ebp - 4], 0x40
jmp 0x40c6f4
mov dword [ebp - 4], 4
jmp 0x40c6da
mov dword [ebp - 4], 0x20
jmp 0x40c6da
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40c726
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40c6a6
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040bf37
movsd dword es:[edi], dword [esi]
insb byte es:[edi], dx
adc byte [edi + edi*8 + 0x75], ah
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x40c732
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40dde1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xb
lea eax, [ebp - 0x7cc]
push eax
call fcn.0040bf47
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.0040bea8
add esp, 0xc
jmp 0x40deaf