joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5b4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestSplayTree.exe_gMozillaPoisonSize], eax
call fcn.0040b0f5
pop ecx
mov ecx, dword [sym.TestSplayTree.exe_gMozillaPoisonSize]
mov dword [sym.TestSplayTree.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40e5ec
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSplayTree.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x403e59
pop dword [ebp - 8]
mov eax, 0x49ae642c
add eax, 0xb691da2d
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x2df753fe
add dword [ebp - 0x18], 0x205af14d
mov dword [ebp - 0x14], 0xa5cf6595
sub dword [ebp - 0x14], 0x739c1950
mov dword [ebp - 0x10], 0x4e20b8db
sub dword [ebp - 0x10], 0x1d474ad
mov dword [ebp - 0xc], 0xcb24bc0c
add dword [ebp - 0xc], 0x34db43f4
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x60288be1
add dword [ebp - 0x18], 0x1449dd75
mov dword [ebp - 0x14], 0xe410c86a
sub dword [ebp - 0x14], 0xa2a466f5
mov dword [ebp - 0x10], 0xda454d29
add dword [ebp - 0x10], 0x892a1f43
mov dword [ebp - 0xc], 0xbb48461a
add dword [ebp - 0xc], 0x44b7b9e6
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xbaeafd00
add eax, 0x455583d4
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3af55
push 0
call eax
mov ecx, 0x579db902
sub ecx, 0x579d602a
mov esi, eax
mov edi, 0x411000
add edi, dword [ebp - 8]
mov ebx, 0xbbf64cfb
add ebx, 0xc0653c64
add dword [ebp - 4], ebx
mov edx, dword [edi]
xor dword [ebp - 4], 0xbd2a4dc1
add edx, ebx
sub dword [ebp - 4], 0x715834a5
mov dword [esi], edx
xor dword [ebp - 4], 0xb4f19900
add esi, 0x6989f4ed
sub esi, 0x6989f4e9
add edi, 4
loop 0x403f70
add eax, 0xd4e7cf35
sub eax, 0xd4e67902
mov ebx, eax
add eax, 5
mov ecx, 0x19073d0b
sub ecx, 0x18c73d0b
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x43b641
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
push 0xf3219d53
pop ecx
call fcn.0043b67f
or ecx, ecx
sub ecx, 0x49602b30
mov edi, 0x9b9533a6
xor dword [esi], edx
add edi, ecx
sub edi, edi
inc esi
or ecx, edi
sub edi, 0xd261db2f
cmp esi, ebx
jne fcn.0043b641
push edi
mov ecx, dword [esp]
add esp, 4
add ecx, edi
or edi, ecx
ret
Function at 0x402550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x446008]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov dword [esp + 0x18], edx
lea edi, [esp + 0x20]
mov edx, ecx
mov esi, str.00000000____________________................_n
mov ecx, 0x13
mov dword [esp + 0xc], edx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
xorps xmm0, xmm0
mov dword [esp + 8], eax
movaps xmmword [esp + 0x70], xmm0
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 0xc]
test esi, esi
jl 0x4025a6
mov edi, dword [ebp + 8]
jg 0x4025b2
test edi, edi
jne 0x4025b0
or edi, 0xffffffff
or esi, 0xffffffff
nop dword [eax]
test esi, esi
jb 0x4025c2
ja 0x4025bb
cmp edi, 0x10
jbe 0x4025c2
mov eax, 0x10
jmp 0x4025c4
mov eax, edi
push edx
push eax
lea eax, [esp + 0x78]
push 1
push eax
call fcn.0040fbda
mov edx, dword [esp + 0x18]
add esp, 0x10
sub edi, eax
mov dword [esp + 0x14], eax
mov ecx, edx
mov dword [esp + 0x10], edi
sbb esi, 0
mov edi, str._n__r
shr ecx, 0x1c
mov dword [esp + 0x1c], esi
mov cl, byte [ecx + 0x426660]
mov byte [esp + 0x20], cl
mov ecx, edx
shr ecx, 0x18
and ecx, 0xf
movzx eax, byte [ecx + 0x426660]
mov byte [esp + 0x21], al
mov eax, edx
shr eax, 0x14
and eax, 0xf
movzx eax, byte [eax + 0x426660]
mov byte [esp + 0x22], al
mov eax, edx
shr eax, 0x10
and eax, 0xf
movzx eax, byte [eax + 0x426660]
mov byte [esp + 0x23], al
mov eax, edx
shr eax, 0xc
and eax, 0xf
movzx eax, byte [eax + 0x426660]
mov byte [esp + 0x24], al
mov eax, edx
shr eax, 8
and eax, 0xf
movzx eax, byte [eax + 0x426660]
mov byte [esp + 0x25], al
mov eax, edx
shr eax, 4
and eax, 0xf
movzx eax, byte [eax + 0x426660]
mov byte [esp + 0x26], al
mov eax, edx
and eax, 0xf
xor esi, esi
movzx eax, byte [eax + 0x426660]
mov byte [esp + 0x27], al
movzx edx, byte [esp + esi + 0x70]
mov ecx, dword [edi + esi*8]
mov eax, edx
shr eax, 4
movzx eax, byte [eax + 0x426660]
mov byte [esp + ecx + 0x20], al
mov eax, edx
and eax, 0xf
movzx eax, byte [eax + 0x426660]
mov byte [esp + ecx + 0x21], al
mov ecx, dword [esi*8 + 0x4264c4]
inc esi
movzx eax, byte [edx + str................................._________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz................................................................................................................................._f]
mov byte [esp + ecx + 0x20], al
cmp esi, 0x10
jb 0x402682
mov esi, dword [esp + 0x14]
mov eax, esi
mov edi, dword [esp + 0x10]
cmp esi, 0x10
jae 0x4026f2
mov edx, str._n__r
mov ecx, dword [edx + eax*8]
mov word [esp + ecx + 0x20], 0x2020
mov ecx, dword [eax*8 + 0x4264c4]
inc eax
mov byte [esp + ecx + 0x20], 0x20
cmp eax, 0x10
jb 0x4026d6
push dword [esp + 0x18]
lea eax, [esp + 0x24]
push 1
push 0x4d
push eax
call fcn.0040f9c7
add esp, 0x10
test eax, eax
je 0x40272f
add dword [esp + 8], 0x10
cmp esi, 0x10
jne 0x40272f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
test esi, esi
ja 0x4025bb
jb 0x40272f
test edi, edi
jne 0x4025b0
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.0040a22f
mov esp, ebp
pop ebp
ret
Function at 0x406f50
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x446008]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
mov eax, ecx
mov ebx, edx
mov ecx, dword [esp + 0x74]
push ebp
push esi
mov esi, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
push edi
test esi, esi
je 0x407020
mov eax, dword [eax + 4]
mov ebp, dword [ebx]
lea edx, [esi + eax*2]
cmp esi, edx
jae 0x407020
nop dword [eax]
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x20], 0x90020
mov edi, eax
mov dword [esp + 0x10], ecx
mov eax, 0x3000
mov dword [esp + 0x24], 0xd000a
mov word [esp + 0x48], ax
mov ecx, 0x20
mov dword [esp + 0x28], 0xc000b
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0x20000085
mov dword [esp + 0x30], 0x20022001
mov dword [esp + 0x34], 0x20042003
mov dword [esp + 0x38], 0x20062005
mov dword [esp + 0x3c], 0x20092008
mov dword [esp + 0x40], 0x2028200a
mov dword [esp + 0x44], 0x205f2029
nop
cmp cx, di
je 0x407015
add eax, 2
lea ecx, [esp + 0x4a]
cmp eax, ecx
je 0x407040
movzx ecx, word [eax]
jmp 0x407000
add esi, 2
cmp esi, edx
jb 0x406f90
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0040a22f
add esp, 0x6c
ret
movzx edi, word [edx - 2]
mov eax, 0x3000
mov word [esp + 0x74], ax
mov ecx, 0x20
mov dword [esp + 0x4c], 0x90020
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], 0xd000a
mov dword [esp + 0x54], 0xc000b
mov dword [esp + 0x58], 0x20000085
mov dword [esp + 0x5c], 0x20022001
mov dword [esp + 0x60], 0x20042003
mov dword [esp + 0x64], 0x20062005
mov dword [esp + 0x68], 0x20092008
mov dword [esp + 0x6c], 0x2028200a
mov dword [esp + 0x70], 0x205f2029
cmp cx, di
je 0x4070bc
add eax, 2
lea ecx, [esp + 0x76]
cmp eax, ecx
je 0x4070dc
movzx ecx, word [eax]
jmp 0x4070a7
add edx, 0xfffffffe
cmp esi, edx
jb 0x407040
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0040a22f
add esp, 0x6c
ret
cmp esi, edx
jae 0x407020
mov ecx, dword [esp + 0x10]
cmp cx, 0x2d
mov edi, dword [esp + 0x14]
sete al
mov byte [edi], al
je 0x4070fd
cmp word [esi], 0x2b
jne 0x407108
add esi, 2
cmp esi, edx
jae 0x407020
test ebp, ebp
jne 0x407159
mov eax, edx
sub eax, esi
sar eax, 1
cmp eax, 2
jl 0x40713d
cmp word [esi], 0x30
jne 0x407152
movzx eax, word [esi + 2]
cmp eax, 0x78
je 0x40712b
cmp eax, 0x58
jne 0x407148
add esi, 4
mov ebp, 0x10
cmp esi, edx
jae 0x407020
jmp 0x407197
cmp eax, 1
jl 0x407152
cmp word [esi], 0x30
jne 0x407152
mov ebp, 8
add esi, 2
jmp 0x407197
mov ebp, 0xa
jmp 0x407197
cmp ebp, 0x10
jne 0x40718b
mov eax, edx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 4
jl 0x407197
cmp word [esi], 0x30
jne 0x407197
movzx eax, word [esi + 2]
cmp eax, 0x78
je 0x40717e
cmp eax, 0x58
jne 0x407197
add esi, 4
cmp esi, edx
jae 0x407020
jmp 0x407197
lea eax, [ebp - 2]
cmp eax, 0x22
ja 0x407020
mov eax, dword [esp + 0x18]
sub edx, esi
mov ecx, dword [esp + 0x78]
sar edx, 1
pop edi
mov dword [eax], esi
mov dword [eax + 4], edx
mov eax, ebx
pop esi
mov dword [eax], ebp
mov al, 1
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a22f
add esp, 0x6c
ret
Function at 0x407610
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x446008]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push dword [esp + 0x34]
mov esi, ecx
lea ecx, [esp + 0x10]
push dword [esp + 0x34]
call fcn.00407920
add esp, 8
mov dword [esp + 8], 0
cmp dword [esp + 0x20], 0x10
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push 0
push ecx
push dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 8]
or ecx, 0xffffffff
cmp eax, 1
cmovne esi, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, 0x10
jb 0x40769d
mov edx, dword [esp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407693
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076af
push ecx
push edx
call fcn.0040a272
add esp, 8
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a22f
add esp, 0x28
ret
call fcn.0041026d
int3
Function at 0x409350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
movaps xmm0, xmm3
test eax, eax
jns 0x409369
mov eax, 6
mov dword [esp + 4], eax
jmp fcn.00408970
cmp eax, 0x3b9aca00
jge 0x409379
mov dword [esp + 4], eax
jmp fcn.00408970
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret
Function at 0x40aeb1
Capabilities:
Parse pe header

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

Function at 0x411da0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42171c
push 0x421714
push str.FlsAlloc
push 0x1f
call fcn.00411c7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411dd4
push dword [ebp + 8]
mov ecx, esi
call dword [0x42013c]
call esi
jmp 0x411dda
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411e1e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42172c
push 0x421724
push str.FlsGetValue
push 0x21
call fcn.00411c7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411e55
push dword [ebp + 8]
mov ecx, esi
call dword [0x42013c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x411e5d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421734
push 0x42172c
push str.FlsSetValue
push 0x22
call fcn.00411c7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411e97
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42013c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x415388
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4473a0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4153c8
cmp byte [ebx], 0xa
jne 0x4153c8
or byte [edi + eax + 0x28], 4
jmp 0x4153cd
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4154cc
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4154af
inc eax
cmp dl, 0xd
je 0x4153f9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41541f
cmp eax, ecx
jae 0x41542d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4153e1
jmp 0x4154cc
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4154aa
cmp dword [ebp - 0x10], 0
je 0x4154aa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4473a0]
test byte [eax + edi + 0x28], 0x48
je 0x415484
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41546f
mov byte [esi], dl
jmp 0x415480
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4473a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4154cc
cmp byte [ebp - 1], 0xa
jne 0x415493
cmp esi, ebx
jne 0x415493
mov byte [esi], 0xa
jmp 0x4154cb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004160a8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4154cc
mov byte [esi], 0xd
jmp 0x4154cb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4473a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4154c9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4154cc
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4154d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4473a0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41551b
cmp word [ebx], dx
jne 0x41551b
or byte [eax + edi + 0x28], 4
jmp 0x415520
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x415683
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x415663
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x415561
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415597
cmp eax, edx
jae 0x4155a5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41553c
jmp 0x415683
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41565e
cmp dword [ebp - 0x18], 0
je 0x41565e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4473a0]
test byte [eax + edi + 0x28], 0x48
je 0x415634
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4155f8
mov word [esi], cx
jmp 0x41562f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4473a0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4473a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4473a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x415683
pop eax
cmp word [ebp - 4], ax
jne 0x415644
cmp esi, ebx
jne 0x415644
mov word [esi], ax
jmp 0x415680
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004160a8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x415683
push 0xd
pop eax
jmp 0x41563f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4473a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41567d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x415683
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416472
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041ee60
mov eax, dword [0x446008]
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.004106f2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4164b4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416610
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ecb0
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 + 0x4473a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041608a
mov ecx, dword [esi*4 + 0x4473a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x416609
cmp eax, dword [ecx + edi + 0x24]
jne 0x416609
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416609
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041608a
add esp, 0x14
test edx, edx
jl 0x416609
jg 0x41657f
test eax, eax
jb 0x416609
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416609
jl 0x416599
cmp dword [ebp - 0x1008], eax
ja 0x416609
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4165b7
test ebx, ebx
je 0x4165f0
cmp ecx, edi
jae 0x4165f0
mov al, byte [ecx]
cmp al, 0xd
jne 0x4165d1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4165dd
cmp byte [ecx + 1], 0xa
jne 0x4165dd
inc ecx
jmp 0x4165dd
movzx eax, al
movsx eax, byte [eax + 0x446200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4165b7
cmp edx, ebx
jne 0x4165b7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41660e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a22f
leave
ret
Function at 0x4174cb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x446008]
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 0x417516
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004176e8
test al, al
jne 0x417510
sub edx, 2
cmp edx, edi
jne 0x4174f6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x417538
lea eax, [edi + 2]
cmp edx, eax
je 0x417538
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00417417
add esp, 0x10
jmp 0x417632
push esi
lea ecx, [ebp - 0x255]
call fcn.004176e8
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 0x41757b
push dword [ebp - 0x25c]
jmp 0x417528
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 0x4175b8
cmp word [ebp - 0x226], 0
je 0x4175d9
cmp word [ebp - 0x226], ax
jne 0x4175b8
cmp word [ebp - 0x224], 0
je 0x4175d9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00417417
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x417625
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x417592
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41760d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x417632
push 0x417247
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041c7d0
add esp, 0x10
jmp 0x417602
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.0040a22f
leave
ret

Function at 0x41816f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x418180
pop esi
ret
push ebx
push edi
push esi
call fcn.00418138
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004132ef
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4181a8
push ebx
push esi
push edi
call fcn.0040cd00
add esp, 0xc
push 0
call fcn.00411b2b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x418578
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004181bd