joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b530
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b22e0
mov eax, dword fs:[0]
push eax
mov eax, 0x503c
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x3010]
push 0x800
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x46b72e
cmp eax, 0x800
jae 0x46b72e
push 0x800
lea eax, [ebp - 0x4010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x46b72e
cmp eax, 0x800
jae 0x46b72e
lea eax, [ebp - 0x3010]
push eax
call fcn.00452b20
mov ebx, eax
lea eax, [ebp - 0x4010]
push eax
call fcn.00452b20
mov esi, eax
add esp, 8
cmp word [esi], 0
je 0x46b72e
push esi
push ebx
call fcn.004501b0
add esp, 8
test eax, eax
je 0x46b72e
push esi
push edi
call fcn.00452b20
add esp, 4
push eax
call fcn.004501b0
add esp, 8
test eax, eax
jne 0x46b72e
mov word [ebp - 0x1010], ax
xor esi, esi
test ax, ax
jne 0x46b683
push 0x800
lea eax, [ebp - 0x1010]
push edi
push eax
call fcn.00452f20
add esp, 0xc
lea eax, [ebp - 0x1010]
push esi
push str.rtmp_d
push 0x800
push eax
call fcn.00452b20
add esp, 4
push eax
call fcn.00451820
lea eax, [ebp - 0x1010]
push eax
call fcn.0045b3c0
add esp, 0x14
test al, al
je 0x46b668
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x46b66f
mov ax, word [ebp - 0x1010]
add esi, 0x7b
cmp esi, 0x2710
jl 0x46b610
test ax, ax
je 0x46b72e
push 0x800
lea eax, [ebp - 0x2010]
push edi
push eax
call fcn.00452f20
push 0x800
lea eax, [ebp - 0x2010]
push ebx
push eax
call fcn.00452c20
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x1010]
add esp, 0x18
push eax
lea eax, [ebp - 0x2010]
push eax
call esi
test eax, eax
je 0x46b72e
lea ecx, [ebp - 0x5048]
call fcn.0045db60
push edi
mov dword [ebp - 4], 0
xor bl, bl
call fcn.0045b3c0
add esp, 4
test al, al
jne 0x46b6f5
push 0x12
push edi
lea ecx, [ebp - 0x5048]
call fcn.0045de00
mov bl, al
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
test bl, bl
je 0x46b71f
lea ecx, [ebp - 0x5048]
call fcn.0045dda0
lea ecx, [ebp - 0x5048]
call fcn.0045df10
lea ecx, [ebp - 0x5048]
call fcn.0045dbb0
mov al, 1
jmp 0x46b730
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ae26
mov esp, ebp
pop ebp
ret
Function at 0x46ed00
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x4d7b54], 2
jl 0x46ed25
movaps xmm0, xmmword [0x4b8390]
movaps xmmword [0x4dace0], xmm0
movaps xmm0, xmmword [0x4b8380]
movaps xmmword [0x4dacf0], xmm0
push esi
mov esi, dword [esp + 8]
push 0xf0
push 0
push esi
call fcn.00472940
mov dword [esi + 0x100], 0
add esp, 0xc
mov byte [esi + 0x104], 0
mov eax, dword [esi + 0xf4]
mov dword [eax], 0x6a09e667
mov eax, dword [esi + 0xf4]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [esi + 0xf4]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [esi + 0xf4]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x1c], 0x5be0cd19
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret

Function at 0x46efb0
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x200
push 0
lea eax, [edi + 0x948]
push eax
call fcn.00472940
push 1
lea eax, [edi + 0x840]
mov dword [edi + 0xb48], 0
push 0
push eax
call fcn.0046ed00
add esp, 0x18
mov dword [esp + 0xc], 0
lea esi, [edi + 0xf4]
cmp dword [0x4d7b54], 2
jl 0x46f019
movaps xmm0, xmmword [0x4b8390]
movaps xmmword [0x4dace0], xmm0
movaps xmm0, xmmword [0x4b8380]
movaps xmmword [0x4dacf0], xmm0
push 0xf0
lea eax, [esi - 0xf4]
push 0
push eax
call fcn.00472940
mov dword [esi + 0xc], 0
add esp, 0xc
mov byte [esi + 0x10], 0
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
mov dword [eax], 0x6a09e667
mov eax, dword [esi]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [esi]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [esi]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [esi]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [esi]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [esi]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [esi]
mov dword [eax + 0x1c], 0x5be0cd19
mov eax, dword [esi]
xor dword [eax], 0x2080020
mov eax, dword [esi]
xor dword [eax + 8], ecx
inc ecx
mov eax, dword [esi]
add esi, 0x108
mov dword [esp + 0xc], ecx
xor dword [eax + 0xc], 0x20000000
cmp ecx, 8
jb 0x46eff4
mov byte [edi + 0x944], 1
mov byte [edi + 0x83c], 1
pop edi
pop esi
ret
Function at 0x4703c0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x44
mov eax, dword [0x4d500c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x54]
push edi
mov edx, dword [esi + 0x18]
mov edi, edx
mov ebx, dword [esi + 0x1c]
and edx, 0x3f
shld ebx, edi, 3
shl edi, 3
mov byte [esi + edx + 0x20], 0x80
inc edx
cmp edx, 0x38
je 0x470444
jbe 0x47042c
cmp edx, 0x40
jae 0x470416
mov eax, 0x40
lea ecx, [esi + 0x20]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00472940
add esp, 0xc
push 1
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0046f2a0
add esp, 0x10
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x20]
add eax, edx
push 0
push eax
call fcn.00472940
add esp, 0xc
push 1
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
bswap ebx
bswap edi
push esi
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edi
call fcn.0046f2a0
mov eax, dword [esi]
add esp, 0x10
mov ecx, dword [esp + 0x50]
mov dword [ebp], eax
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x10], eax
pop edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ae26
add esp, 0x44
ret

Function at 0x4704d0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x470740
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
xor ecx, ecx
movzx eax, byte [ecx + 0x4d56b0]
mov byte [eax + 0x4dad00], cl
inc ecx
cmp ecx, 0x100
jl 0x470742
push ebx
xor edx, edx
push esi
lea esp, [esp]
mov al, byte [edx + 0x4d56b0]
mov bl, 2
mov byte [edx*4 + 0x4dba01], al
mov cl, al
mov byte [edx*4 + 0x4dba00], al
xor ah, ah
mov byte [edx*4 + 0x4db603], al
mov byte [edx*4 + 0x4db600], al
mov byte [edx*4 + 0x4db203], al
mov byte [edx*4 + 0x4db202], al
mov byte [edx*4 + 0x4dae02], al
mov byte [edx*4 + 0x4dae01], al
mov ch, cl
test bl, 1
je 0x4707ad
xor ah, cl
add cl, cl
test ch, ch
jns 0x4707b6
xor cl, 0x1b
shr bl, 1
jne 0x4707a4
mov byte [edx*4 + 0x4dba03], ah
mov cl, 3
mov byte [edx*4 + 0x4db602], ah
xor bl, bl
mov byte [edx*4 + 0x4db201], ah
mov byte [edx*4 + 0x4dae00], ah
lea ebx, [ebx]
mov ah, al
test cl, 1
je 0x4707e9
xor bl, al
add al, al
test ah, ah
jns 0x4707f1
xor al, 0x1b
shr cl, 1
jne 0x4707e0
mov cl, byte [edx + 0x4dad00]
xor ah, ah
mov byte [edx*4 + 0x4dba02], bl
mov al, cl
mov byte [edx*4 + 0x4db601], bl
mov byte [edx*4 + 0x4db200], bl
mov byte [edx*4 + 0x4dae03], bl
mov bl, 0xb
lea ecx, [ecx]
mov ch, al
test bl, 1
je 0x470829
xor ah, al
add al, al
test ch, ch
jns 0x470831
xor al, 0x1b
shr bl, 1
jne 0x470820
movzx esi, cl
mov al, cl
mov byte [edx*4 + 0x4dca02], ah
xor bl, bl
mov byte [edx*4 + 0x4dc601], ah
mov byte [edx*4 + 0x4dc200], ah
mov byte [edx*4 + 0x4dbe03], ah
mov byte [esi*4 + 0x4dda02], ah
mov byte [esi*4 + 0x4dd601], ah
mov byte [esi*4 + 0x4dd200], ah
mov byte [esi*4 + 0x4dce03], ah
mov ah, 9
mov ch, al
test ah, 1
je 0x47087f
xor bl, al
add al, al
test ch, ch
jns 0x470887
xor al, 0x1b
shr ah, 1
jne 0x470876
mov byte [edx*4 + 0x4dca00], bl
mov ah, 0xd
mov byte [edx*4 + 0x4dc603], bl
mov al, cl
mov byte [edx*4 + 0x4dc202], bl
mov byte [edx*4 + 0x4dbe01], bl
mov byte [esi*4 + 0x4dda00], bl
mov byte [esi*4 + 0x4dd603], bl
mov byte [esi*4 + 0x4dd202], bl
mov byte [esi*4 + 0x4dce01], bl
xor bl, bl
lea esp, [esp]
mov ch, al
test ah, 1
je 0x4708d9
xor bl, al
add al, al
test ch, ch
jns 0x4708e1
xor al, 0x1b
shr ah, 1
jne 0x4708d0
mov byte [edx*4 + 0x4dca01], bl
xor al, al
mov byte [edx*4 + 0x4dc600], bl
mov byte [edx*4 + 0x4dc203], bl
mov byte [edx*4 + 0x4dbe02], bl
mov byte [esi*4 + 0x4dda01], bl
mov byte [esi*4 + 0x4dd600], bl
mov byte [esi*4 + 0x4dd203], bl
mov byte [esi*4 + 0x4dce02], bl
mov bl, 0xe
mov ah, cl
test bl, 1
je 0x47092a
xor al, cl
add cl, cl
test ah, ah
jns 0x470933
xor cl, 0x1b
shr bl, 1
jne 0x470921
mov byte [edx*4 + 0x4dca03], al
mov byte [edx*4 + 0x4dc602], al
mov byte [edx*4 + 0x4dc201], al
mov byte [edx*4 + 0x4dbe00], al
inc edx
mov byte [esi*4 + 0x4dda03], al
mov byte [esi*4 + 0x4dd602], al
mov byte [esi*4 + 0x4dd201], al
mov byte [esi*4 + 0x4dce00], al
cmp edx, 0x100
jl 0x470760
pop esi
pop ebx
ret
Function at 0x471c40
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, 1
push esi
mov esi, dword [esp + 0xc]
xor cl, cl
cmp esi, eax
jbe 0x471c5c
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x471c54
cmp cl, byte [edx]
jne 0x471c9f
push esi
push edx
push 0xffffffffffffffff
call fcn.0045ea10
add esp, 0xc
xor edx, edx
not eax
xor ecx, ecx
cmp dword [ecx + 0x4d57c4], eax
jne 0x471c82
cmp dword [ecx + 0x4d57c0], esi
je 0x471c8f
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x471c72
pop esi
ret 0xc
lea eax, [edx + edx*2]
mov ecx, dword [eax*4 + 0x4d57c8]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
pop esi
ret 0xc

Function at 0x488d8d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00488a0a
Function at 0x40c140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x40c160
jl 0x40c157
cmp dword [ebp + 0xc], 0
ja 0x40c160
xor eax, eax
xor edx, edx
jmp 0x40c297
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40c182
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040c2a0
jmp 0x40c297
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.004081a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40c1f1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00404240
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040a700
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00409ee0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040a610
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40c288
mov ecx, dword [ebp - 8]
call fcn.00408db0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x40c261
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00413155
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40c25f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40c297
jmp 0x40c20d
cmp dword [ebp - 4], 0
jbe 0x40c288
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00413155
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e1ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e1ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e1ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e1ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e1ea
cmp dword [ecx + 0x74], 0xe
jbe 0x40e1ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41c3ee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432530
push 0x432528
push str.FlsAlloc
push 0x1e
call fcn.0041c25b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c422
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e158]
call esi
jmp 0x41c428
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41c46c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432540
push 0x432538
push str.FlsGetValue
push 0x20
call fcn.0041c25b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c4a3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41db4d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d9be

Function at 0x41df47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040e5c0
mov eax, dword [0x43d064]
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.0041ca21
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41df89
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e0e5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042c030
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 + 0x43ecc0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ef24
mov ecx, dword [esi*4 + 0x43ecc0]
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 0x41e0de
cmp eax, dword [edi + ecx + 0x24]
jne 0x41e0de
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 0x41e0de
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ef24
add esp, 0x14
test edx, edx
jl 0x41e0de
jg 0x41e054
test eax, eax
jb 0x41e0de
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e0de
jl 0x41e06e
cmp dword [ebp - 0x1008], eax
ja 0x41e0de
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e08c
test ebx, ebx
je 0x41e0c5
cmp ecx, edi
jae 0x41e0c5
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e0a6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e0b2
cmp byte [ecx + 1], 0xa
jne 0x41e0b2
inc ecx
jmp 0x41e0b2
movzx eax, al
movsx eax, byte [eax + 0x43d2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e08c
cmp edx, ebx
jne 0x41e08c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e0e3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040da37
leave
ret
Function at 0x41e3dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x43ecc0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e41c
cmp byte [ebx], 0xa
jne 0x41e41c
or byte [eax + edi + 0x28], 4
jmp 0x41e421
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e51f
mov al, byte [edx]
cmp al, 0x1a
je 0x41e501
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e450
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e475
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e47f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41e432
jmp 0x41e51f
push 0
lea eax, [ebp - 0xc]
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 0x41e4fc
cmp dword [ebp - 0xc], 0
je 0x41e4fc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43ecc0]
test byte [eax + edi + 0x28], 0x48
je 0x41e4d6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e4c1
mov byte [esi], dl
jmp 0x41e4d2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43ecc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e51f
cmp byte [ebp - 1], 0xa
jne 0x41e4e5
cmp esi, ebx
jne 0x41e4e5
mov byte [esi], 0xa
jmp 0x41e51e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ef42
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e51f
mov byte [esi], 0xd
jmp 0x41e51e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43ecc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e51b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e51f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e528
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43ecc0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e56b
cmp word [esi], dx
jne 0x41e56b
or byte [edi + eax + 0x28], 4
jmp 0x41e570
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41e6a9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41e689
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41e5b2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e5e8
cmp eax, edx
jae 0x41e5f4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41e58a
jmp 0x41e6a9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e685
cmp dword [ebp - 0x14], 0
je 0x41e685
mov eax, dword [ebx*4 + 0x43ecc0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41e65d
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x41e6a3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43ecc0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x43ecc0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43ecc0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41e6a6
pop ebx
cmp word [ebp - 4], bx
jne 0x41e66e
cmp esi, dword [ebp + 0xc]
jne 0x41e66e
mov word [esi], bx
jmp 0x41e6a6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ef42
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41e6a9
push 0xd
jmp 0x41e6a2
mov ecx, dword [ebx*4 + 0x43ecc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e6a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e6a9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423e89
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 0x423f26
push ebx
push esi
call fcn.00423e52
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.00422c41
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x423ed3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423f25
push edi
push eax
call fcn.0041f121
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x423ef3
call fcn.0041b344
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423f24
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00422c41
add esp, 0x20
test eax, eax
jne 0x423f12
push edi
call fcn.0041b344
jmp 0x423f1a
push ebx
call fcn.0041b344
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