joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad16b48
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
jne 0x4ad16c6a
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 4], edi
push edi
mov edi, dword [0x4ad1e01c]
jmp 0x4ad16c4a
cmp word [ebp - 0x214], 0x2e
je 0x4ad16c33
lea eax, [ebp - 0x214]
push eax
call dword [fcn.4ad01118]
mov esi, eax
lea eax, [ebp - 0x214]
mov dword [esp], 0x4ad1c398
push eax
call dword [fcn.4ad010c4]
lea eax, [ebp - 0x41c]
push 0x4ad1c358
push eax
call dword [fcn.4ad01114]
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [0x4ad1e030]
test eax, eax
jne 0x4ad16c33
and word [ebp + esi*2 - 0x214], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4ad0ba44
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x208
call dword [0x4ad1e02c]
push dword [ebp + 0xc]
mov esi, eax
call dword [0x4ad1e028]
test esi, esi
jne 0x4ad16c33
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x4ad3a340
call fcn.4ad03e14
add esp, 0xc
cmp dword [0x4ad289e8], 0
jne 0x4ad16c65
inc dword [ebp - 4]
push ebx
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x4ad16b7d
cmp esi, 0x103
jne 0x4ad16c83
xor esi, esi
jmp 0x4ad16c83
xor eax, eax
inc eax
jmp 0x4ad16c85
cmp word [ebx], 0x2e
jne 0x4ad16c8c
push 0x7b
pop esi
push ebx
push 1
push 0x23a5
call fcn.4ad0b54d
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
push edi
push ebx
call fcn.4ad01b82
mov ebx, eax
push 0x20
push ebx
call fcn.4ad01b0c
cmp eax, edi
je 0x4ad16ca4
mov word [eax], di
push ebx
push 0x4ad1c32c
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [fcn.4ad010c0]
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [0x4ad1e030]
cmp eax, edi
je 0x4ad16cdb
mov esi, eax
jmp 0x4ad16c73
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4ad0ba44
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x208
call dword [0x4ad1e02c]
mov esi, eax
cmp esi, edi
jne 0x4ad16c73
lea eax, [ebp - 0x41c]
push eax
push ebx
push 0x4ad3a340
call fcn.4ad03e14
jmp 0x4ad16c80
Function at 0x4ad16d21
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push 0x4ad1c32c
push 0x104
push eax
call dword [fcn.4ad010c0]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [0x4ad1e030]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4ad16dfe
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4ad16de8
cmp word [eax], di
je 0x4ad16de8
lea esi, [ebp - 0x214]
jmp 0x4ad16d86
cmp word [esi], 0x5c
je 0x4ad16d8b
inc esi
inc esi
cmp word [esi], di
jne 0x4ad16d7e
mov bx, word [esi]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x2000000
push edi
push edi
push edi
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
mov word [esi], di
call dword [0x4ad1e038]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x4ad16dce
cmp bx, di
je 0x4ad16dfe
push dword [ebp - 4]
mov word [esi], bx
inc esi
inc esi
call dword [0x4ad1e028]
jmp 0x4ad16d86
push dword [ebp + 0xc]
push 1
push 0x23a5
call fcn.4ad0b54d
mov eax, dword [ebp - 8]
add esp, 0xc
jmp 0x4ad16e78
push dword [ebp + 0xc]
push 1
push 0x23a5
call fcn.4ad0b54d
add esp, 0xc
mov eax, esi
jmp 0x4ad16e78
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x4ad16e4b
cmp word [esi], di
je 0x4ad16e4b
push esi
call dword [fcn.4ad01118]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push edi
push 0x4ad0ba44
push dword [ebp - 4]
call dword [0x4ad1e034]
mov ebx, eax
cmp ebx, edi
jne 0x4ad16e3f
push esi
push dword [ebp + 0xc]
push 0x4ad3a340
call fcn.4ad03e14
jmp 0x4ad16e6a
push dword [ebp + 0xc]
push 1
push 0x235d
jmp 0x4ad16e65
push edi
push dword [ebp - 4]
call dword [0x4ad1e020]
mov ebx, eax
cmp ebx, edi
je 0x4ad16e6d
push dword [ebp + 0xc]
push 1
push 0x23a5
call fcn.4ad0b54d
add esp, 0xc
push dword [ebp - 4]
call dword [0x4ad1e028]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x7561925
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x3cbe7166
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x47ca44ab
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x3bcf42e8
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10001a26
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10017004]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x78
mov byte [ebp - 0x13], 0x78
mov byte [ebp - 0x12], 0x78
mov byte [ebp - 0x11], 0x78
mov byte [ebp - 0x10], 0x2d
mov byte [ebp - 0xf], 0x78
mov byte [ebp - 0xe], 0x78
mov byte [ebp - 0xd], 0x3a
mov byte [ebp - 0xc], 0x78
mov byte [ebp - 0xb], 0x78
mov byte [ebp - 0xa], 0x3a
mov byte [ebp - 9], 0x78
mov byte [ebp - 8], 0x78
mov byte [ebp - 7], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call dword [eax + 0x3048]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x3058]
mov byte [ebp - 0x2c], 0x55
mov byte [ebp - 0x2b], 0x54
mov byte [ebp - 0x2a], 0x43
mov byte [ebp - 0x29], 0x3a
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 0x25
mov byte [ebp - 0x26], 0x75
mov byte [ebp - 0x25], 0x2d
mov byte [ebp - 0x24], 0x25
mov byte [ebp - 0x23], 0x75
mov byte [ebp - 0x22], 0x2d
mov byte [ebp - 0x21], 0x25
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x20
mov byte [ebp - 0x1e], 0x25
mov byte [ebp - 0x1d], 0x75
mov byte [ebp - 0x1c], 0x3a
mov byte [ebp - 0x1b], 0x25
mov byte [ebp - 0x1a], 0x75
mov byte [ebp - 0x19], 0x3a
mov byte [ebp - 0x18], 0x25
mov byte [ebp - 0x17], 0x75
mov byte [ebp - 0x16], 0
movzx eax, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call dword [eax + 0x308c]
add esp, 0x20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006678
leave
ret

Function at 0x10001b24
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10017004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x3a
mov byte [ebp - 0xe], 0x5c
mov byte [ebp - 0xd], 0
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
mov cl, byte [ecx + 0x19c4]
mov byte [ebp + eax - 0x10], cl
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x305c]
mov byte [ebp - 0xc], 0x55
mov byte [ebp - 0xb], 0x49
mov byte [ebp - 0xa], 0x44
mov byte [ebp - 9], 0x3a
mov byte [ebp - 8], 0x20
mov byte [ebp - 7], 0x25
mov byte [ebp - 6], 0x75
mov byte [ebp - 5], 0
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call dword [eax + 0x308c]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006678
leave
ret
Function at 0x402f9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fb9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402fc8
mov ebx, 0x40e8c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fdd
mov ecx, dword [0x423778]
add ecx, eax
push ecx
call fcn.0040318e
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403178
test eax, eax
je 0x40312f
test byte [ebp + 0x17], 0x80
je 0x403118
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40a830
mov dword [ebp - 0xc], eax
call fcn.00406427
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40316e
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40302d
mov esi, dword [ebp + 0x14]
mov edi, 0x40a8c0
push esi
push edi
call fcn.00403178
test eax, eax
je 0x40312f
sub dword [ebp + 0x14], esi
mov dword [0x40a848], edi
mov dword [0x40a84c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40a830
mov dword [0x40a850], ebx
mov dword [0x40a854], eax
call fcn.00406447
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403110
mov esi, dword [0x40a850]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4237d4], 1
mov edi, eax
je 0x4030cf
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40309c
cmp dword [ebp + 0x14], 0
jne 0x4030cf
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.00405091
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403104
cmp dword [ebp + 0x10], 0
jne 0x4030ec
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405baa
test eax, eax
je 0x403114
add dword [ebp - 4], esi
jmp 0x4030f8
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40a850]
cmp dword [ebp - 0x10], 1
jne 0x403050
jmp 0x40316e
cmp dword [ebp + 0x14], 0
jg 0x403020
jmp 0x40316e
push 0xfffffffffffffffc
jmp 0x403131
push 0xfffffffffffffffe
jmp 0x403131
test edi, edi
je 0x403163
cmp dword [ebp + 0x14], esi
jge 0x403124
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403178
test eax, eax
jne 0x40316b
push 0xfffffffffffffffd
pop eax
jmp 0x403171
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40313f
mov esi, dword [ebp + 0x14]
mov edi, 0x40a8c0
push esi
push edi
call fcn.00403178
test eax, eax
je 0x40312f
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405baa
test eax, eax
je 0x403114
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403134
jmp 0x40316e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405557
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407374
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], 0x407364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4055a8
xor eax, eax
jmp 0x4055cf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4055cf
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4055a4
call esi
pop esi
leave
ret 4

Function at 0x405609
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x421510], 0x44
push eax
xor eax, eax
push 0x421510
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405648
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40564c
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405ade
mov edi, eax
cmp edi, 0xffffffff
je 0x40572b
test byte [esp + 0x10], 1
push esi
je 0x40570d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405713
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40571c
xor eax, eax
inc eax
jmp 0x40572d
test byte [esp + 0x10], 4
jne 0x40572b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x406294
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062b8
xor eax, eax
test eax, eax
je 0x4062ca
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4062ca
xor ecx, ecx
jmp 0x4062cd
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4063b9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x4063f0
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4063ca
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x4063c5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406421
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406403
pop edi
not eax
pop esi
ret 0xc
Function at 0x402260
Capabilities:
Encode data using xor
Hash data using murmur2
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
mov eax, dword [0x431010]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov ebx, dword [0x45e800]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], edx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x28], ecx
add eax, ebx
mov dword [esp + 0x14], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x40243a
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x3c], 0
mov eax, edx
mov dword [esp + 0x40], 0
movups xmmword [esp + 0x2c], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022d1
sub eax, esi
lea ecx, [esp + 0x2c]
push eax
push edx
call fcn.00402be0
mov edi, dword [esp + 0x3c]
lea ebx, [esp + 0x2c]
mov esi, edi
xor esi, 0x36c
cmp dword [esp + 0x40], 0x10
cmovae ebx, dword [esp + 0x2c]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.00401110
add esp, 0xc
xor edx, edx
test edi, edi
je 0x402341
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e995
inc edx
imul esi, esi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
cmp edx, edi
jl 0x402320
mov eax, dword [esp + 0x3c]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40236b
sub eax, 1
je 0x402361
sub eax, 1
jne 0x402379
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x20]
je 0x4023e9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
add eax, 4
mov dword [esp + 0x14], eax
cmp ecx, 0x10
jb 0x4023d8
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4023ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402453
push ecx
push edx
call fcn.00405761
mov eax, dword [esp + 0x1c]
add esp, 8
mov ebx, dword [esp + 0x18]
inc ebp
cmp ebp, dword [esp + 0x24]
jb 0x4022b0
jmp 0x40243a
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x40243a
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402430
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402453
push ecx
push edx
call fcn.00405761
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405723
add esp, 0x3c
ret
call fcn.0040bdd2
int3
Function at 0x405f21
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405f60
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405f60
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405f60
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405f60
cmp dword [ecx + 0x74], 0xe
jbe 0x405f60
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41217d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426988
push 0x426980
push str.FlsAlloc
push 0x1e
call fcn.00411fea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4121b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x423154]
call esi
jmp 0x4121b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4121fb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426998
push 0x426990
push str.FlsGetValue
push 0x20
call fcn.00411fea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412232
push dword [ebp + 8]
mov ecx, esi
call dword [0x423154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x414bab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041484d

Function at 0x414bb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004149dc
Function at 0x416221
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004062c0
mov eax, dword [0x431010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413712
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416263
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4163bf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421ad0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x432aa8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00416647
mov ecx, dword [esi*4 + 0x432aa8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4163b8
cmp eax, dword [edi + ecx + 0x24]
jne 0x4163b8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4163b8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416647
add esp, 0x14
test edx, edx
jl 0x4163b8
jg 0x41632e
test eax, eax
jb 0x4163b8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4163b8
jl 0x416348
cmp dword [ebp - 0x1008], eax
ja 0x4163b8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x416366
test ebx, ebx
je 0x41639f
cmp ecx, edi
jae 0x41639f
mov al, byte [ecx]
cmp al, 0xd
jne 0x416380
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41638c
cmp byte [ecx + 1], 0xa
jne 0x41638c
inc ecx
jmp 0x41638c
movzx eax, al
movsx eax, byte [eax + 0x431950]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416366
cmp edx, ebx
jne 0x416366
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4163bd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405723
leave
ret
Function at 0x419fed
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 0x41a08a
push ebx
push esi
call fcn.00419fb6
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.00418c3b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41a037
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a089
push edi
push eax
call fcn.004127b0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41a057
call fcn.00411d0f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a088
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418c3b
add esp, 0x20
test eax, eax
jne 0x41a076
push edi
call fcn.00411d0f
jmp 0x41a07e
push ebx
call fcn.00411d0f
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