joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10071f0d
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 0x10071faa
push ebx
push esi
call fcn.10071ed6
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.100707ee
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10071f57
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10071fa9
push edi
push eax
call fcn.1006cb36
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10071f77
call fcn.1006cafc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10071fa8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100707ee
add esp, 0x20
test eax, eax
jne 0x10071f96
push edi
call fcn.1006cafc
jmp 0x10071f9e
push ebx
call fcn.1006cafc
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 0x10071fad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10071fbe
pop esi
ret
push ebx
push edi
push esi
call fcn.10071ed6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1006cb36
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10071fe6
push ebx
push esi
push edi
call fcn.10053e20
add esp, 0xc
push 0
call fcn.1006cafc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100723b6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10071ffb

Function at 0x100745ce
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1006b14c
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 0x1007463d
cmp esi, dword [ebp - 4]
je 0x10074638
cmp dword [ebp + 0xc], 0
je 0x10074638
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10074615
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10074120
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1007463f
xor eax, eax
inc eax
jmp 0x1007463f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100746a4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1009c040]
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.1006b14c
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.1006b14c
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 0x1007471b
cmp word [ecx], dx
je 0x1007471b
mov eax, dword [0x100878dc]
push edi
dec eax
push eax
push 0x100877c8
call fcn.10074643
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1007478e
cmp word [eax], dx
je 0x1007478e
mov eax, dword [edi]
test eax, eax
je 0x1007473f
cmp word [eax], dx
je 0x1007473f
lea eax, [ebp - 0x10]
push eax
call fcn.10074026
jmp 0x10074748
lea eax, [ebp - 0x10]
push eax
call fcn.100740c1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100747b8
mov eax, dword [0x100877c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100874b8
call fcn.10074643
add esp, 0xc
test al, al
je 0x100747b8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10074783
cmp word [eax], di
je 0x10074783
lea eax, [ebp - 0x10]
push eax
call fcn.10074026
pop ecx
jmp 0x100747ba
lea eax, [ebp - 0x10]
push eax
call fcn.100740c1
jmp 0x10074780
mov eax, dword [edi]
test eax, eax
je 0x100747a5
cmp word [eax], dx
je 0x100747a5
lea eax, [ebp - 0x10]
push eax
call fcn.10073fdb
pop ecx
jmp 0x100747b8
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 0x10074883
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100744c8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10074883
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10074883
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10074883
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10074810
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1006d2f6
test ebx, ebx
je 0x1007487e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1006d2f6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10074883
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 0x10074883
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100784ce
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10074885
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004dfe8
leave
ret
Function at 0x1007a790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007a7bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007a7bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001390
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000dd6d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10015040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, 0x40d
mov word [ebp - 0x1c], ax
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x1a], eax
call fcn.10001070
mov esi, eax
test esi, esi
jne 0x100013e4
xor al, al
jmp 0x100014ba
push esi
call fcn.10001050
add esp, 4
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
push 0x5d
push str.SELECT_CharName_FROM__PS_GameData_._dbo_._Chars__WHERE_CharNameCAST___AS_VARCHAR__AND_Del0_
call fcn.10001100
push 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 4], 0
push 0
push 0x13
push 0xc
push 1
push 1
push 1
push dword [esi + 0x830]
call sub.ODBC32.dll_SQLBindParameter
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
push 0xfffffffffffffffd
cmova eax, dword [ebp - 0x34]
push eax
push dword [esi + 0x830]
call sub.ODBC32.dll_SQLPrepareA
push dword [esi + 0x830]
call sub.ODBC32.dll_SQLExecute
test ax, ax
je 0x10001481
push esi
call fcn.10001060
push esi
call fcn.10001080
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10001270
xor al, al
jmp 0x100014ba
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xffffffff
push eax
push dword [esi + 0x830]
call sub.ODBC32.dll_SQLRowCount
push esi
call fcn.10001080
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
sete byte [ebp - 0x35]
call fcn.10001270
mov al, byte [ebp - 0x35]
mov byte [ebp - 0x16], al
mov eax, dword [edi + 0x87f8]
test eax, eax
je 0x100014d6
push 7
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.10001030
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10001ef4
mov esp, ebp
pop ebp
ret
Function at 0x10001d90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10015040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], edi
cmp esi, 5
jb 0x10001e0d
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10001e0d
push esi
push 0x90
push dword [ebp - 0xc]
call fcn.10003680
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov byte [eax], 0xe9
inc dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
sub ecx, edi
sub ecx, 5
mov dword [eax], ecx
dec dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001ef4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10001ef4
mov esp, ebp
pop ebp
ret

Function at 0x10001e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10015040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push edi
mov edi, dword [ebp + 8]
cmp esi, 1
jb 0x10001e8c
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10001e8c
push 0
push esi
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10001e8c
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001ef4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10001ef4
mov esp, ebp
pop ebp
ret

Function at 0x1000578d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100057cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100057cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100057cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100057cc
cmp dword [ecx + 0x74], 0xe
jbe 0x100057cc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000837a
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 0x10008417
push ebx
push esi
call fcn.10008343
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.100082d7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100083c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10008416
push edi
push eax
call fcn.10006d27
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100083e4
call fcn.10006e1e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10008415
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100082d7
add esp, 0x20
test eax, eax
jne 0x10008403
push edi
call fcn.10006e1e
jmp 0x1000840b
push ebx
call fcn.10006e1e
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 0x10008684
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fab0
push 0x1000faa8
push str.FlsAlloc
push 0x1f
call fcn.100085a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100086b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e128]
call esi
jmp 0x100086be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10008702
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fac0
push 0x1000fab8
push str.FlsGetValue
push 0x21
call fcn.100085a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008739
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10008741
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fac8
push 0x1000fac0
push str.FlsSetValue
push 0x22
call fcn.100085a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000877b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000dbd0
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40b702
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b709
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b6f8
mov eax, 1
add ebx, ebx
jne 0x40b71b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b710
jne 0x40b72c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b710
xor ecx, ecx
sub eax, 3
jb 0x40b740
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b7b2
mov ebp, eax
add ebx, ebx
jne 0x40b74b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b758
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b77c
inc ecx
add ebx, ebx
jne 0x40b768
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b75d
jne 0x40b779
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b75d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b79c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b78d
jmp 0x40b6fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b79c
add edi, ecx
jmp 0x40b6fe
pop esi
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b7fb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd068]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd0c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b7b9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd0c8]
or eax, eax
je 0x40b7f5
mov dword [ebx], eax
add ebx, 4
jmp 0x40b7d6
call dword [esi + 0xd0c4]
mov ebp, dword [esi + 0xd0cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b82f
sub esp, 0xffffff80
jmp 0x402d70

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401617
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401671
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x401671
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401661
cmp esi, ecx
jae 0x401671
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40164f
cmp esi, ecx
jae 0x401671
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x401673
xor eax, eax
pop esi
pop ebp
ret

Function at 0x408b3f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x465e7c
call fcn.00464890
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
xor eax, eax
push 8
mov dword [esi], 0x4754dc
lea edi, [esi + 0x10]
mov dword [esi + 4], ebx
mov byte [esi + 8], 0x11
pop ecx
mov dword [esi + 0xc], ebx
rep stosd dword es:[edi], eax
push 6
pop ecx
lea edi, [esi + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x48]
call fcn.00401d56
push 0x38
mov dword [ebp - 4], ebx
lea eax, [esi + 0x68]
push ebx
push eax
mov dword [esi + 0x58], 0x1312d65
mov dword [esi + 0x5c], 1
mov byte [esi + 0x60], bl
mov dword [esi + 0x64], ebx
call fcn.0043a570
add esp, 0xc
mov ecx, esi
push str.MOZ.
call fcn.00409217
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409eaf
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x46602f
call fcn.00464890
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], edi
xor esi, esi
call fcn.0041692e
mov dword [ebp - 4], esi
cmp dword [ebx + 4], esi
jbe 0x409ef4
push esi
mov ecx, ebx
call fcn.004088f3
xor al, 0xaa
lea ecx, [ebp - 0x28]
movzx eax, al
push eax
call fcn.00401e6e
inc esi
cmp esi, dword [ebx + 4]
jb 0x409ed8
push edi
lea ecx, [ebp - 0x28]
call fcn.00416a83
push dword [ebp - 0x1c]
call fcn.00430166
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40e49e
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x1c]
mov ebp, dword [ecx]
movzx ebx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ebx, 8
add ebx, eax
movzx eax, byte [edx + 1]
movzx esi, byte [edx + 7]
shl ebx, 8
add ebx, eax
shl esi, 8
movzx eax, byte [edx]
shl ebx, 8
add ebx, eax
movzx eax, byte [edx + 6]
add esi, eax
movzx eax, byte [edx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [edx + 4]
shl esi, 8
mov edx, esi
mov dword [esp + 0x1c], esi
add edx, eax
xor esi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xc]
push 0x20
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
pop edi
mov ecx, edx
lea esi, [esi - 0x61c88647]
shr ecx, 5
add ecx, eax
mov eax, edx
shl eax, 4
add eax, ebp
xor ecx, eax
lea eax, [esi + edx]
xor ecx, eax
add ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [esp + 0x10]
shl eax, 4
add eax, dword [esp + 0x14]
xor ecx, eax
lea eax, [esi + ebx]
xor ecx, eax
mov eax, dword [esp + 0x1c]
add edx, ecx
sub edi, 1
jne 0x40e50b
mov ecx, dword [esp + 0x20]
mov eax, ebx
shr eax, 8
pop edi
pop esi
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
mov byte [ecx], bl
shr ebx, 0x18
shr eax, 0x10
mov byte [ecx + 4], dl
shr edx, 0x18
pop ebp
mov byte [ecx + 3], bl
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
pop ebx
pop ecx
pop ecx
ret 8

Function at 0x40e58a
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x1c]
mov ebp, dword [ecx + 8]
movzx ebx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ebx, 8
add ebx, eax
movzx eax, byte [edx + 1]
movzx esi, byte [edx + 7]
shl ebx, 8
add ebx, eax
shl esi, 8
movzx eax, byte [edx]
shl ebx, 8
add ebx, eax
movzx eax, byte [edx + 6]
add esi, eax
movzx eax, byte [edx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [edx + 4]
shl esi, 8
mov edx, esi
mov dword [esp + 0x1c], esi
add edx, eax
mov esi, 0xc6ef3720
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
push 0x20
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
pop edi
mov ecx, ebx
shr ecx, 5
add ecx, eax
mov eax, ebx
shl eax, 4
add eax, ebp
xor ecx, eax
lea eax, [esi + ebx]
xor ecx, eax
sub edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 5
add ecx, dword [esp + 0x10]
shl eax, 4
add eax, dword [esp + 0x14]
xor ecx, eax
lea eax, [esi + edx]
xor ecx, eax
lea esi, [esi + 0x61c88647]
mov eax, dword [esp + 0x1c]
sub ebx, ecx
sub edi, 1
jne 0x40e5fa
mov ecx, dword [esp + 0x20]
mov eax, ebx
shr eax, 8
pop edi
pop esi
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
mov byte [ecx], bl
shr ebx, 0x18
shr eax, 0x10
mov byte [ecx + 4], dl
shr edx, 0x18
pop ebp
mov byte [ecx + 3], bl
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
pop ebx
pop ecx
pop ecx
ret 8
Function at 0x40f422
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x466995
call fcn.00464890
sub esp, 0x68
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x40]
call fcn.00401d56
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
sub esi, 0
je 0x40f487
sub esi, 1
je 0x40f471
sub esi, 1
jne 0x40f49b
push str.Note
lea ecx, [ebp - 0x40]
call fcn.004160df
mov dword [ebp - 0x18], 0x40
jmp 0x40f49b
push str.Warning
lea ecx, [ebp - 0x40]
call fcn.004160df
mov dword [ebp - 0x18], 0x30
jmp 0x40f49b
push 0x4760bc
lea ecx, [ebp - 0x40]
call fcn.004160df
mov dword [ebp - 0x18], 0x10
cmp dword [0x73b794], 0
je 0x40f5f2
lea ecx, [ebp - 0x30]
call fcn.0041692e
xor ebx, ebx
lea eax, [ebp - 0x40]
inc ebx
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], bl
call fcn.004169d5
push 0x47528c
mov ecx, eax
call fcn.004169af
push edi
mov ecx, eax
call fcn.004169d5
push 0xa
mov ecx, eax
call fcn.00401e6e
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_AttachConsole]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.004169e7
push 0
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40f5d2
push str.CONOUT_
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00415bc9
push 0x180
push ebx
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x70]
call fcn.004156c5
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00415c2c
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.004169e7
push esi
push eax
lea ecx, [ebp - 0x70]
call fcn.00415a34
lea ecx, [ebp - 0x70]
call fcn.00415733
jmp 0x40f56e
push 0x180
push 0x101
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x58]
push 0x73b790
mov byte [ebp - 4], 7
call fcn.004156c5
push 2
push ecx
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.0041593c
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.004169e7
push esi
push eax
lea ecx, [ebp - 0x58]
call fcn.00415a34
lea ecx, [ebp - 0x58]
call fcn.00415733
mov dword [ebp - 4], ebx
jmp 0x40f5d2
mov byte [ebp - 4], 0
push dword [ebp - 0x24]
mov dword [ebp - 0x30], 0x47507c
call fcn.00430166
cmp dword [0x73b794], 0
pop ecx
jne 0x40f610
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.00415cf7
mov ecx, edi
mov esi, eax
call fcn.00415cf7
push dword [ebp - 0x18]
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x40]
call fcn.00415c2c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret