joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072a7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x414040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4072f2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004074c4
test al, al
jne 0x4072ec
sub edx, 2
cmp edx, edi
jne 0x4072d2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x407314
lea eax, [edi + 2]
cmp edx, eax
je 0x407314
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004071f3
add esp, 0x10
jmp 0x40740e
push esi
lea ecx, [ebp - 0x255]
call fcn.004074c4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407357
push dword [ebp - 0x25c]
jmp 0x407304
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x407394
cmp word [ebp - 0x226], 0
je 0x4073b5
cmp word [ebp - 0x226], ax
jne 0x407394
cmp word [ebp - 0x224], 0
je 0x4073b5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004071f3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x407401
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40736e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4073e9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40740e
push 0x407023
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040a020
add esp, 0x10
jmp 0x4073de
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b9e
leave
ret

Function at 0x408ef3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffec
push 0x40ffe4
push str.FlsAlloc
push 0x1f
call fcn.00408e2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408f27
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e108]
call esi
jmp 0x408f2d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408f71
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fffc
push 0x40fff4
push str.FlsGetValue
push 0x21
call fcn.00408e2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408fa8
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e108]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408fb0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410004
push 0x40fffc
push str.FlsSetValue
push 0x22
call fcn.00408e2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408fea
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e108]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40dd40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dd6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dd6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4012d0
Capabilities:
Schedule task via itaskservice

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push ebx
lea eax, [ebp - 0x4c]
sub esp, 0x8c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x405520
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x405320
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x401409
xor ecx, ecx
xor edi, edi
mov eax, dword [ebp - 0x4c]
xor edx, edx
mov word [ebp - 0x38], cx
xor ebx, ebx
mov word [ebp - 0x18], di
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0x48], dx
mov edx, dword [eax]
mov word [ebp - 0x28], bx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 0x10], ecx
call dword [edx + 0x28]
sub esp, 0x44
test eax, eax
js 0x401400
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0x4c]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
sub esp, 4
test ebx, ebx
js 0x401410
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
test byte [0x403000], 1
jne 0x401448
xor eax, eax
jmp 0x4013eb
test byte [0x403000], 1
je 0x401409
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.GetFolder_failed:__08lx_n
mov dword [esp + 8], str.get_tasks_root_folder
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x4013eb
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Connect_failed:__08lx_n
mov dword [esp + 8], str.get_tasks_root_folder
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x4013eb
Function at 0x402570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4025c8
cmp byte [esi + ebx - 1], 0xa
je 0x40259c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x408084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x408094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402d30
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x408094]
movzx eax, al
bt eax, esi
jae 0x402d90
mov ecx, dword [0x408084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402c35
test byte [0x403018], 8
jne 0x402cd0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x403028], 8
jne 0x402c80
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402c04
cmp esi, 3
jbe 0x402c40
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40660c]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402c04
mov ecx, dword [0x408094]
test ecx, ecx
je 0x402d70
mov dword [esp], 0x403028
call dword [0x408094]
test al, 8
je 0x402bdb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x402bdb
mov ebx, dword [0x408094]
test ebx, ebx
je 0x402d50
mov dword [esp], 0x403018
call dword [0x408094]
test al, 8
je 0x402bc6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x402bce
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x408094
call sym._load_func.part.0
jmp 0x402b8d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x408094
call sym._load_func.part.0
jmp 0x402cda
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x408094
call sym._load_func.part.0
jmp 0x402c8e
mov eax, 0xffffffff
jmp 0x402c35
Function at 0x402ef0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x404e10
Capabilities:
Create pipe
Create process on windows
Set environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x240c
call fcn.00411360
mov eax, dword [0x45cafc]
mov ecx, dword [0x45c588]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x404f43
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x45cafc], 0x959
jne 0x404f2c
push 0
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1c08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 0
push 0x404794
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0x2408]
push ecx
push 0
call edi
mov edx, dword [ebp - 4]
push edx
call fcn.00404b80
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404e4e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4074d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d168]
jne 0x4074dc
repz ret
jmp fcn.0040d2dc

Function at 0x40d6d0
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.0040900a
and dword [ebp - 4], 0
cmp dword [0x453af8], 0
mov ebx, eax
jne 0x40d781
push 0x401cc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d832
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401cb4
push edi
call esi
test eax, eax
je 0x40d832
push eax
call fcn.00408f98
mov dword [esp], 0x401ca4
push edi
mov dword [0x453af8], eax
call esi
push eax
call fcn.00408f98
mov dword [esp], 0x401c90
push edi
mov dword [0x453afc], eax
call esi
push eax
call fcn.00408f98
mov dword [esp], 0x401c74
push edi
mov dword [0x453b00], eax
call esi
push eax
call fcn.00408f98
pop ecx
mov dword [0x453b08], eax
test eax, eax
je 0x40d781
push 0x401c5c
push edi
call esi
push eax
call fcn.00408f98
pop ecx
mov dword [0x453b04], eax
mov eax, dword [0x453b04]
cmp eax, ebx
je 0x40d7d9
cmp dword [0x453b08], ebx
je 0x40d7d9
push eax
call fcn.00409013
push dword [0x453b08]
mov esi, eax
call fcn.00409013
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d7d9
test edi, edi
je 0x40d7d9
call esi
test eax, eax
je 0x40d7d0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d7d0
test byte [ebp - 0xc], 1
jne 0x40d7d9
or dword [ebp + 0x10], 0x200000
jmp 0x40d812
mov eax, dword [0x453afc]
cmp eax, ebx
je 0x40d812
push eax
call fcn.00409013
pop ecx
test eax, eax
je 0x40d812
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d812
mov eax, dword [0x453b00]
cmp eax, ebx
je 0x40d812
push eax
call fcn.00409013
pop ecx
test eax, eax
je 0x40d812
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453af8]
call fcn.00409013
pop ecx
test eax, eax
je 0x40d832
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d834
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409e20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, dword [esp + 0x20]
cmp bl, 3
je 0x409fbf
push ebp
mov ebp, dword [ecx]
push edi
mov dword [esp + 0x10], 0
test bl, 2
je 0x409e76
movzx eax, byte [ecx + 9]
movzx esi, byte [edx]
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 1]
mov dword [esp + 0x14], edi
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 2]
sub eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov edi, 3
jmp 0x409e89
movzx eax, byte [edx + 3]
movzx edi, byte [ecx + 9]
sub edi, eax
mov dword [esp + 0x14], edi
mov edi, 1
test bl, 4
je 0x409e9d
movzx edx, byte [edx + 4]
movzx eax, byte [ecx + 9]
sub eax, edx
mov dword [esp + edi*4 + 0x14], eax
inc edi
xor edx, edx
xor eax, eax
cmp edi, edx
jle case.0x409eeb.3
lea esp, [esp]
cmp dword [esp + eax*4 + 0x14], edx
jg 0x409ebc
mov dword [esp + eax*4 + 0x14], edx
jmp 0x409ec4
mov dword [esp + 0x10], 1
inc eax
cmp eax, edi
jl 0x409eb0
cmp word [esp + 0x10], dx
je case.0x409eeb.3
movzx eax, byte [ecx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x409eeb.3
movzx eax, byte [eax + 0x409fdc]
jmp dword [eax*4 + 0x409fc8]
mov ecx, dword [ecx + 4]
mov eax, esi
cmp ecx, edx
jbe case.0x409eeb.3
nop
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x409f00
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x409eeb.3
lea ebx, [ebx]
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x409f40
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x409eeb.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x14]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x409f62
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x409eeb.3
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x409f86
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x42cbf0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5544c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x58005c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.004c4c30
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], vtable.CEffectHotaru.0
push 0x3840
call fcn.00413380
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
push 0x21c
call fcn.00413380
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x18], 0x258
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], 0x12c
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x20], 0x64
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x24], 0x64
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x28], 0xffffff9c
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x2c], 0xa
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], 0xf
mov dword [ebp - 0x10], 0
jmp 0x42ccca
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x258
jge 0x42cce1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0042db50
jmp 0x42ccc1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4